Modifying Multiple Orders

 

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!

 
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.