Download MetaTrader 5
To add comments, please log in or register
How to choose the most appropriate signal and subscribe to it in no time
Nikolay
170
Nikolay 2016.04.26 16: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.

whroeder1
13641
whroeder1 2016.04.26 16:27  
Nope, but you can stop the tester (press pause key) or programmatically
Nikolay
170
Nikolay 2016.04.26 17: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++){
   }
}
Nikolay
170
Nikolay 2016.04.27 15:31  
and is there a way to programmatically move the EA to the beginning of the next bar/candle, closing the current one?
whroeder1
13641
whroeder1 2016.04.27 18:35  
Stop using the loop during the bar.
Carl Schreiber
5959
Carl Schreiber 2016.04.27 19: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
Nikolay
170
Nikolay 2016.04.28 15: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.

/
To add comments, please log in or register