Download MetaTrader 5

Change Strategy Tester Speed (between 31 and 32)?

To add comments, please log in or register
Nikolay
175
Nikolay  

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.

whroeder1
15331
whroeder1  
Nope, but you can stop the tester (press pause key) or programmatically
Nikolay
175
Nikolay  

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++){
   }
}
Nikolay
175
Nikolay  
and is there a way to programmatically move the EA to the beginning of the next bar/candle, closing the current one?
whroeder1
15331
whroeder1  
Stop using the loop during the bar.
Carl Schreiber
6991
Carl Schreiber  
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
Nikolay
175
Nikolay  

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.

To add comments, please log in or register