Hi,
Has anyone else experienced a big difference in backtesting the same code on PRT Demo vs PRT Live? Have a look at the pics below. The code is exactly the same, tested on the same amount of units and with the same spread. How can this be, and which one should I trust? Probably the losing one. 🙂
You sure you have tick by tick mode selected on the winning curve?? 🙂
My first thoughts are that it looks like one is tested with tick by tick on and the other with it off?
Also is there any time conditions in the strategy and if so are both platforms set to the same time zone?
Ah you’re right, tick by tick was not “ticked” on the live one, time zones are the same on both. But it’s still behaving weirdly on the live version, banking profits that are clearly losses when I zoom in on the candlesticks. Any idea how to minimize these?
Any idea how to minimize these?
Not without the code so as to know what the strategy is!
Oh yeah, the code. 🙂
It’s a simple Heiken Ashi strategy that opens a position based on the change of color.
This is used on 1h tiumeframe between 0900 and 1800. (Not the same code used from pics in first post)
DefParam FlatBefore = 090000
DefParam FlatAfter = 180000
Defparam cumulateorders=false
xClose = (Open+High+Low+Close)/4
if(barindex>2) then
xOpen = (xOpen[1] + xClose[1])/2
endif
c1 = xClose>xOpen AND xClose[1]<xOpen[1]
c2 = xClose<xOpen AND xClose[1]>xOpen[1]
if c1 AND Not LongOnMarket then
BUY 1 SHARE AT MARKET
EXITSHORT AT MARKET
endif
if c2 AND Not ShortOnMarket then
SELLSHORT 1 SHARE AT MARKET
SELL AT MARKET
Endif
SET STOP $LOSS 26
SET TARGET $PROFIT 24
Shitforbrains – please try to remember to use the ‘Insert PRT Code’ button when posting code as it makes it much easier for others to read. I have tidied up your post for you. 🙂
I can’t see any weird trades like you suggest – do you have any screen shots to share with us?
Dear all,
I beleive the difference is prompted by the new ProOrder engine (Multi Timeframe) which has been released only on Demo for now (it is available upon request on Live as well).
They have a different ProBacktest execution in which the new engine is always right.
Regards,
Jakub
I can’t see any weird trades like you suggest – do you have any screen shots to share with us?
Now that I do the backtest and look at it side by side with the system running, I can’t find the faulty trades. Hopefully I was just looking at the wrong trades.
VNParticipant
Average
Hi Jakub, is the difference in the Multi time frame engine you mention above still present today ie in version 10.3? I have been backtesting a Multi time frame strategy in demo and I want to know if there will be differences in how the same strategy performs with the same backtest parameters in prt live.
No difference due to MTF. Jakub was talking of a time period where the two versions were existing for clients: one with new engine that embed the MTF and the old one, which is thing of the past now.