tafadzwa:
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

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
///+------------------------------------------------------------------+
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.