Change Strategy Tester Speed (between 31 and 32)?

Back to topics list To post a new topic, please log in or register
avatar
62
nikolaygmt 2016.04.26 18:07
 

Is there any way to change the strategy tester speed to something between 31 and 32 in visual mode?

31 is a bit slow, 32 is too fast.

avatar
12985
WHRoeder 2016.04.26 18:27 #
 
Nope, but you can stop the tester (press pause key) or programmatically
avatar
62
nikolaygmt 2016.04.26 19:10 #
 

Thank you WHRoeder!

I decided just to manage the speed through a simple for loop in the OnTick() function:

int speedSlowness = 1000000; // intended for 32 speed, adjust as desired

void OnTick() {
   for(int i=0; i<speedSlowness; i++){
   }
}
avatar
62
nikolaygmt 2016.04.27 17:31 #
 
and is there a way to programmatically move the EA to the beginning of the next bar/candle, closing the current one?
avatar
12985
WHRoeder 2016.04.27 20:35 #
 
Stop using the loop during the bar.
avatar
2017
gooly 2016.04.27 21:16 #
 
nikolaygmt:

Is there any way to change the strategy tester speed to something between 31 and 32 in visual mode?

31 is a bit slow, 32 is too fast.

Don't use every tick but Open Price for the Testing Modell
avatar
62
nikolaygmt 2016.04.28 17:18 #
 

sorry, better description of the imagined scenario: I am using "every tick" model and "visual mode" and I want to programm the following: If I press a key the current bar closes and the next bar opens. Is this possible?

I want to have both options of 1) watching the tick movement at my desired speed, and 2) when I want to just skip bars by pressing a key.

Back to topics list  

To add comments, please log in or register