Download MetaTrader 5

Modifying Multiple Orders

To add comments, please log in or register
Paul
528
Paul  

Can someone point me in the direction where I find information on how to modify multiple orders, where the TP of all open orders will be modified to the TP of the first order opened?


Thanks!

valgoih
26
valgoih  
loop through open orders,find order with least order open time,set its tp to SOME price value,loop through all remaining open orders using ordermodify() to modify the tp.if you are looking for mql4 code,google it.
To add comments, please log in or register