Re: Creating EA to buy when price crosses below Bollinger Band
Hi, I am posting this question here as the earlier post that did not have a solution was 4 years ago and I wasn't sure if that would be picked up by users if I posted there. Apologies for my ignorance.
I am trying to build a simple strategy on 5 minutes. When current price crosses below lower bollinger band, then it must take one long position and after that when the current price crosses above middle bollinger band then it must close that long.
The strategy works fine but the only issue is that it doesn't take a long every time the current price crosses below bollinger band. I'd say 5 out of 10 times it does exactly how I have explained above, but the other 5 times, it doesn't I. E. the current price crosses below the band, yet it doesn't take a trade and also at times when it must close the trade, it doesn't. I am talking about live market here and not backtesting.
Any help appreciated.
Thanks
