|
Close Buy Order
if the price is approaching the high line.
Close Sell Order
if the Low line.
The price will never cross the high or low. Just approaching. Be near or equal let's say.
And I found the bug. See image. The signal was changed from sell to buy but the EA did not close the sell order and did not open the buy.
An other condition to close the order: the signal was changed (on the 1 bar).
See the statement. The EA still kept the sell for jpy and the signal was changed already (see image).
|