Countertrade after half SL
4 replies
Conmariin
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! 🙂
Automatisches Handeln mit Expert Advisor
https://www.rabenesche.de
tomas262
5 years ago #233763
Conmariin
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
tomas262
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)
Conmariin
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
Viewing 4 replies - 1 through 4 (of 4 total)