READ-ONLY

The forum is now a read-only archive.

For bug reports & platform questions → [email protected]

Our community lives on Discord and YouTube — come join us!

Stoploss is required but always comes up as zero so trade is placed wihtout a sl

2 replies

Daniel

Subscriber, bbp_participant, customer, community, sq-ultimate, 16 replies.

Visit profile

2 years ago #286754

Hi,

Using SQX 139.2009 Ultimate I’ve generated a strategy where the stoploss is required, and present, but always comes up as zero so the trade is put on without a stoploss. Can someone please explain to me why the stoploss is always zero? And how can I prevent this?

Using Pseudo Code I can see that the following code is used for the stoploss:

Long:

Stop Loss at level HighestInRange(Main chart, “0:30”, “0:30”)[1];
Short:
Stop Loss at level LowestInRange(Main chart, “0:30”, “0:30”)[1];

I have included the sqx file with the topic.

Attachments:
You must be logged in to view attached files.

0

Tomas Matejka

Administrator, sq-ultimate, 2 replies.

Visit profile

2 years ago #286817

The stoploss is not being used due to the fact the price determined by the Highest / Lowest is way off and impossible to use. In such cases the order (SL) is not placed. You can see that in the tradelist that trades end up being closed using either traiilig stops (that works independently) or profit-target orders

1

Daniel

Subscriber, bbp_participant, customer, community, sq-ultimate, 16 replies.

Visit profile

2 years ago #286818

Thank you for the explanation.

0

Viewing 2 replies - 1 through 2 (of 2 total)