Please update the code of this EA so that it opens an order instantly when color changes. So it should work like following way:
Buy : when the color changes from Red to Blue and close the previous Sell order
Sell: when the color changes from Blue to Red and close the previous Buy order
It should not wait for the current bar to be closed.
Thanks in advance