I know you backtested it on DAX 15-min, but I also need to know Time & Date o that candlestick + Oscillators used with theur settings, to be able to replicate your backtest.
Tahnk you.
I set the time zone to utc +2 europe berlin and I was backtesting for 100000 units. One of the errors occured on monday 30.04.18 at 14:30 o’clock.
Thanks again!:)
The problem is in lines 102-107, because once they have been reset to ZERO pending orders cannot be entered correctly. Remove them.
Sorry for the wrong suggestion.
Thank you, but now the the stop is also not at the supposed place:(
The stop was triggered by HDBP (high[1]+2) at the price of 12586.
My stop is triggered at 12571, like in the picture above. Did you change something else in the code since it is apparently working with your code? 12586 is my intedted stop.
I did not change anything, just added a few GRAPH linea at the bottom.
That is pretty weird, I don’t get it why I get different results with the exact same code.
When I change the start time from may 2016 to 2nd of april 2018 I get the same results. So what does that mean for the code? Is it only working for a short amount of time, or is the backtesting not working properly?
Unfortunately it is still not working, as you can so on friday 11.05.2018 at 13:30 o’clock.
When I change the start time from may 2016 to 2nd of april 2018 I get the same results
Picture tells a thousand words … be good to post screen shots of your two same results … as I immediately found myself asking same as what?
I guess he was referring to my topic where I attached a screenshot of a backtest in that time interval, so he meant that using that time interval he could get the same results as I did.
I will do some tests to make sure narrowing or widening the time interval when backtesting will not (it shouldn’t) affect results.
I won’t be able to debug the code till monday. Have a nice weekend!
That is no problem, thank you for your help! Have a good one, too:)
Unfortunately it is still not working, as you can so on friday 11.05.2018 at 13:30 o’clock.
It works perfectly, it opens a trade and closes it as soon as any closing price is > than the previous high, no need to reach the Stop Loss previously set.