Hello
How is the best way to code this problem?
I'm trying to make a code that closes all at a certain amount of pips above or below the price of the first trade.
Example: Open a trade at point A. Set a Close price 50 pips on either side of the trade, price B. Now, all the other trades in between point A and B should close at price B.
After all trades have closed, repeat the process.
How is the best way to code this problem?
I'm trying to make a code that closes all at a certain amount of pips above or below the price of the first trade.
Example: Open a trade at point A. Set a Close price 50 pips on either side of the trade, price B. Now, all the other trades in between point A and B should close at price B.
After all trades have closed, repeat the process.