Attain Same Backtest Result On OpenPrice Only and EveryTick

Back to topics list To post a new topic, please log in or register
avatar
40
noobshow 2015.12.30 10:35
 

I have a NewBar() function which allow my expert trade only on New Bar, but i've been seeing different results using Every Tick and Open Prices Only,why?

 

My Expert trades On New Bar, but yet still seeing different results in the two Strategy Tester Modes..

 

Is there a way to achieve same results on the two mode or a way to make my expert function same in Open Prices Only and Every Tick?

 

Thanks,

noobshow 

avatar
Moderator
3412
GumRai 2015.12.30 11:17 #
 
Are there order management events that are tick based.? Trailing stop, move to BE etc?
avatar
40
noobshow 2015.12.30 15:00 #
 
GumRai:
Are there order management events that are tick based.? Trailing stop, move to BE etc?

TrailingStop and BE  are all before New Bar Check

 

if(Trailvalue > 0){
TrailingStop(Trailvalue);
     }
      if(!isNewBar()) return(0);
     if(Signalbuy)
          {
   OrderSend();
       }

 But, most time, this expert advisor act different in the two modes of Strategy tester

avatar
70
Keelan 2015.12.30 19:32 #
 

The tick data isnt identical, you may have a mismatch with the server but even i've noticed certain currency pairs over certain time periods the actual tick data in the strategy tester can come out quite different. There is a % of accuracy for strategy tester, its never 100% i dont think.


Yours sounds like a timing error though, like timing isnt synced properly. If you start a 1m bar at 1.30, then 2.30 then 3.30 etc the bars could look drastically different. Well the open and close anyway basically the candlesticks. The line chart would still average. Have you checked to see if the line chart looks the same?

avatar
Moderator
3412
GumRai 2015.12.30 22:16 #
 
noobshow:

TrailingStop and BE  are all before New Bar Check

 

 But, most time, this expert advisor act different in the two modes of Strategy tester

Obviously, results will be different when the trailing stop is checking every tick compared to only at bar open
Back to topics list  

To add comments, please log in or register