Help. closing all orders
This is what i want to do.( if the Bid crosses a level (A) up and then comes back to level (A) close all orders. if the Bid crosses a level (B) down and then comes back to level (B) close all orders. My code ( for level (B)) is not working .See my unfinished ea.
Pardon my coding. im still new to it. Thanks a lot.
you shouldn't use == when comparing prices. maybe the price "jumps" over that value and it will never close, because it's not the same value
it's better to use <= or >= like Bid <= line, that way you are sure it will close if the price is equal or lower, that way if it jumps over the line, it will still close
///+------------------------------------------------------------------+This is what i want to do.( if the Bid crosses a level (A) up and then comes back to level (A) close all orders. if the Bid crosses a level (B) down and then comes back to level (B) close all orders. My code ( for level (B)) is not working .See my unfinished ea.
Pardon my coding. im still new to it. Thanks a lot.