Dear MrTools,
Would like to ask if you could combine this script into function as per below
1) when the BUY signal appears, use the script to close previous SELL trade and open a BUY trade and put pending BUY STOP
2) when the SELL signal appears, use the script to close previous BUY trade and open a SELL trade and put pending SELL STOP
Thank you so much in advance