davmartin: But what I want is the EA to take a position as soon as the BB is hit (next tick). Probably common question, but can't find the information online searching for iBands next tick etc. Most be something with the shift? |
|
|
Very helpful, not!
Clearly trying to be a smart ass. I am just starting and trying to learn. You just copy paste something that you use as a response to many people who try to figure something out.
Hopefully someone else can help me further. If my question is not clear, let me know I will try to rephrase.
All the best!
Dave
Incomplete code.
davmartin: Clearly trying to be a smart ass. Hopefully someone else can help me further. If my question is not clear, let me know I will try to rephrase.
| I did let you know:
|
Hi Marco
Please see the complete code. I don't know what I should adjust so that as soon as the current price hits a bollinger band a market order is pleased.
What happens now in a backtest is that a market order is placed when the bar closed above (or below) the upper (or lower) band.
Are you backtesting in Every Tick mode?
Are you backtesting in Every Tick mode?
Thanks Keith! That solved the problem :)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi!
I am backtesting a simple EA I wrote and the EA takes a position when the bar closes outside of the Bollinger Band (either upper or lower).
But what I want is the EA to take a position as soon as the BB is hit (next tick).
Probably common question, but can't find the information online searching for iBands next tick etc. Most be something with the shift?
Below the entry rules
Thanks:)