Reply

Countertrade after half SL

4 replies

Conmariin

Subscriber, bbp_participant, community, customer, 54 replies.

Visit profile

5 years ago #233741

Hi 🙂

I want to open in this case a short countertrade when the Long SL is half reached. Is this correct?

Thanks! 🙂

 

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

Automatisches Handeln mit Expert Advisor
https://www.rabenesche.de

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

5 years ago #233763

Hello,

instead of Order SL you can do: Open PL (in pips) <= SL pips / -2

0

Conmariin

Subscriber, bbp_participant, community, customer, 54 replies.

Visit profile

5 years ago #233787

Hello Tomas,

where do I find SL pips? Can’t find it in strategy control. And EA Wizard says -2 is not allowed as parameter

Automatisches Handeln mit Expert Advisor
https://www.rabenesche.de

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

5 years ago #233790

Hello,

I suppose SL Pips is your stop-loss defined size as a strategy input. You simply divide (use the division) by -2 (minus 2)

0

Conmariin

Subscriber, bbp_participant, community, customer, 54 replies.

Visit profile

5 years ago #233886

I’m sorry for coming back so late. Busy week. 😉

You can’t take a value -2 in EA Wizard. It’s not allowed. But you can do it in Meta Editor and compilation seems fine.

I solved it with a custom function in EA Wizard: Open P/L (MagicLong) <= Custom Function: sqSafeDivide(sqGetOrderStopLoss(MagicLong), -2)

Automatisches Handeln mit Expert Advisor
https://www.rabenesche.de

0

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