Hi, i would like to make request for code for when the new position is open,automatically the previous order will close.Mean i dont want to use take profit or trailling.
Example:
When order buy is open,previous order sell will close
When order sell is open,previous order buy will close
i found the code is OrderCloseBy() but i dont know exactly where to put this code
thanks
Example:
When order buy is open,previous order sell will close
When order sell is open,previous order buy will close
i found the code is OrderCloseBy() but i dont know exactly where to put this code
thanks