Different backtest result between PRT demo and PRT live
Forums › ProRealTime English forum › ProOrder support › Different backtest result between PRT demo and PRT live
- This topic has 12 replies, 3 voices, and was last updated 7 years ago by Madrosat.
-
-
05/06/2017 at 11:18 AM #34680
Hi!
Sometimes I get different results when I backtest a strategy on the PRT connected to my demo account and the PRT connected to my real account. I’m using the same spread, tick by tick and strategy file. I have attached a screenshot of the different results and to strategy file so you can try for yourself and see if you get the same result. In this case it’s only half the amount of trades taken on the live compared to demo. Do anyone know what could cause the difference?
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596// BUND - IG MARKETS// TIME FRAME 2H// SPREAD 0.5 PIPSDEFPARAM CumulateOrders = FalseDEFPARAM PreloadBars = 200DEFPARAM Flatafter = 200000once optimization = 1once mgmt = 1// -- Optimizations selectionif optimization = 1 thenartperiod = 6wintarget = 60sl = 30stopandtargetMode = 2 // 1 = fixed stop and target 2 = dynamic stop and targetslATRmultiple = 1winATRmultiple = 4Starttime = 080000EndTime = 200000atrmultiplelong = 1atrmultipleshort = 1//mashortperiod = 2//malongperiod = 220//adxlevel = 30//adxperiod = 22elsif optimization = 2 thenartperiod = 6wintarget = 60sl = 30stopandtargetMode = 2 // 1 = fixed stop and target 2 = dynamic stop and targetslATRmultiple = 1winATRmultiple = 3Starttime = 080000EndTime = 200000atrmultiplelong = 1atrmultipleshort = 1//mashortperiod = 2//malongperiod = 220endifif mgmt = 1 thenPositionSize = 1elsif mgmt = 2 thenREM Money ManagementCapital = 4000Risk = 0.01StopLoss = sl // Could be our variable XREM Calculate contractsequity = Capital + StrategyProfitmaxrisk = round(equity*Risk)PositionSize = abs(round((maxrisk/StopLoss)/PointValue)*pipsize)endif// -- Indicaorsatr = AverageTrueRange[artperiod]//malong = average[malongperiod]//mashort = average[mashortperiod]//adxfilter = adx[adxperiod]// ENTRY CONDITION LONGb1 = (abs(open-close) > (atr*atrmultiplelong))b2 = (close > open)b3 = currenttime > StartTime and currenttime < EndTime//b4 = (mashort > malong)//b5 = (adxlevel > adxfilter)cb = b1 and b2 and b3 //and b5 // and b4IF cb THENBUY PositionSize CONTRACTS AT MARKETENDIF// ENTRY CONDITION SHORTs1 = (abs(open-close) > (atr*atrmultipleshort))s2 = (close < open)s3 = currenttime > StartTime and currenttime < EndTime//s4 = (mashort < malong)cs = s1 and s2 and s3 //and b5 //and s4IF cs THENSELLSHORT PositionSize CONTRACTS AT MARKETENDIF// STOP AND TARGETIF stopandtargetMode = 1 THENSET STOP pLOSS slSET TARGET pPROFIT wintargetENDIFIF stopandtargetMode = 2 THENSET STOP pLOSS (atr * slATRmultiple)/pointsizeSET TARGET pPROFIT (atr * winATRmultiple)/pointsizeENDIF05/06/2017 at 2:19 PM #34704Bonjour
Il y a parfois même des différences ( sur la même stratégie à la virgule près)
voir sur le graphique ci dessous sur la grande bougie rouge 12 bougies avant la fin du graphe
la flèche rouge n’est pas au même niveau de prix sur les deux graphes.
Pourquoi???
05/06/2017 at 2:34 PM #3470505/06/2017 at 3:48 PM #34714I should have known after making this misstake a million times… I had the trading hours set differently on the live platform. The result from the demo account is indeed valid.
Thanks for the help 🙂
05/07/2017 at 5:25 AM #3473605/07/2017 at 7:53 AM #3474305/07/2017 at 1:11 PM #3475805/08/2017 at 9:20 AM #3480805/09/2017 at 12:51 PM #3493005/09/2017 at 7:09 PM #3497105/09/2017 at 7:13 PM #3497405/10/2017 at 10:13 AM #35022You mean : 1.29147 and 1.29184? Do the candlestick shares the same OHLC between the 2 accounts? Did you use the same spread for the 2 backtests? You should GRAPH the variables that trigger your entries and exit to see if their calculations are the same ..
05/11/2017 at 6:50 AM #35147 -
AuthorPosts
Find exclusive trading pro-tools on