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
Hello,
Building a strategy for practice based on bollinger bands and stochastics.
What should happen is that if the close of a 5 minute bar is above the upper band and the stochastic has gone above 80, a sell order should enter, and conversely lower band 20.
However when I run it to test in mt4, I notice that the trades are wildly off the entry mark. Rather than opening at the close of a bar, they are several pips too high or too low. What am I doing wrong?
This is my code: