Forex Factory (https://www.forexfactory.com/forum.php)
-   Platform Tech (https://www.forexfactory.com/forumdisplay.php?f=69)
-   -   Close Losing Position, Set Trailing Stop to Winning Position (https://www.forexfactory.com/showthread.php?t=630143)

johnnybegood Jan 12, 2017 3:41am | Post# 1

Close Losing Position, Set Trailing Stop to Winning Position
 
MQL5 - Pair Trading: Close LOSING Position and Set Trailing Stop to WINNING Position Simultaneously

MQL5 - Pair Trading:
When the condition is met,
how do I do this simultaneously?
1) Close the LOSING Position immediately (Position could be a Sell/Buy order of any currency)
2) Set Trailing Stop to WINNING Position immediately (Position could be a Sell/Buy order of another currency)

eghbaleh Jan 12, 2017 9:38am | Post# 2

MQL5 - Pair Trading: Close LOSING Position and Set Trailing Stop to WINNING Position Simultaneously MQL5 - Pair Trading: When the condition is met, how do I do this simultaneously? 1) Close the LOSING Position immediately (Position could be a Sell/Buy order of any currency) 2) Set Trailing Stop to WINNING Position immediately (Position could be a Sell/Buy order of another currency)
Hi Johnnybegood
Thanks for your system.
Would you tell us some examples with screen shot for clearly this system ?

johnnybegood Jan 12, 2017 12:28pm | Post# 3

Its an idea, I am trying to figure out how to code that....


© Forex Factory