Say for example I have a 4 hour chart and I wish to go long if the price exceed the high of the previous bar/candle.
Will this execute during the current bar…or at the start of the next bar (if conditions are met during the 4 hour timeframe).
Each conditions are only tested once per bar, at close. Trades are initiated at the next open. If you want to launch trade at precise price level, you can also use pending STOP and LIMIT orders.
Thanks Nicolas…are you referring to backtesting or in live?
I appreciate in backtest this is the case…but in live?
I’m referring to both back-testing and live environment.
Hi,
I am new here and in coding^^ and I think my question is the same direction as #1 that’s why I write here instead of opening a new topic and polluting the board.
Let’s say, I want to trade a daily signal (e.g. price > mBB) on the Xetra Dax.
- Test would be at 173000 and the (next) execution (long or short) would be next morning 090000 (DAX), right?
- Now the difference price / mBB is bigger than, let’s say 20 Points and it is 17:29:55
- Can I tell the system to buy during the current period? If yes, how?
Thank you in davance!
Not possible since each conditions are only tested once per bar. But it would be part of the next major update with the multitimeframe feature. It will be possible to test for example, 5 minutes bars in a daily timeframe.
Thank you for your fast reply, nicolas.
For my understanding of the next major update: Will ist be possible to test the mbb (daily) (price (actual) 20P > mbb daily) and to execute in the same timeframe like
flatbefore 17:29:30
indicator1 = close ongoing (price?)
indicator2 = BollingerUp[Average](close) (ongoing)
c1 = (indicator1 >= indicator2 (+ 19.9))
I’m afraid, I did not get your example with the M5 bars, sorry… :-/