Reply

SQX build 136 Dev2 code error

3 replies

Olax

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

Visit profile

1 year ago #278446

It looks like there is a bug in the recent release of SQX – build 136 Dev2. Code generated for every engine seems to contain an error in stop loss and or take profit thereby preventing it from compiling. I have attached a pseudo code for your reference.

Would you look into this?

Thanks a lot!

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

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

1 year ago #278455

Hi,

what you show is pseudoc code and I can see this
Stop Loss = StopLoss1 pips;
Profit target = 462%;

This means SL uses the variable StopLoss1 that is set by default to 50 (pips)
PT is set to be 462% of the initial trade price

Do you have problems compiling the MQL version of the code?

0

Olax

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

Visit profile

1 year ago #278458

Hi Tomas,

All the strategies I have built using the build136 Dev 2 for either Mql4 or Tradestation failed to compile. Below is an extract from the MQL code :

“// StopLoss & ProfitTarget

sqSetSLandPT(_ticket, sqGetSLLevel(“Current”, OP_BUYSTOP, OrderOpenPrice(), 1, StopLoss1), !!Incorrect SL or PT Set!!);

I attached the MQL code for your reference.

Thanks!

Reuben

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

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

1 year ago #278459

I see now. Thank you for reporting. This will be fixed into next dev update we plan to release very soon

0

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