![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Dear programmers,
I have a problem. I code an EA for open a trade when a bar straddle a band of IBands indicator. The problem is the EA is doing multiple tradings and I want to open
only when first bar straddles the band then wait that price should come back between the bands, not to open every bar price straddles the band.
I put if(OrdersTotal()>0 && OrderType()==MODE_BID)
(!OrderSend... ) even if I use NOT it also trades. Some solution ?