Struggling with onTester()

 

Hello!

I recently came over from MQL4 and I am struggling with the onTester() function of MT5/MQL5. Even with this simple function:

double onTester(){
   Print("This is the OnTester() function");
   double val = 0.5;
   return(val);
}

I always get this result:

OnTester result 0

in my Journal and the "This is the onTester() function" printout doesn't appear either... I am using 1 minute OHLC, daily candle, no forward testing, no optimisation.

Can anyone suggest what I am doing wrong? Thank you!

 
osterchrisi:

Hello!

I recently came over from MQL4 and I am struggling with the onTester() function of MT5/MQL5. Even with this simple function:

I always get this result:

in my Journal and the "This is the onTester() function" printout doesn't appear either... I am using 1 minute OHLC, daily candle, no forward testing, no optimisation.

Can anyone suggest what I am doing wrong? Thank you!

Du solltest onTester() korrigieren in OnTester() !!!!!!

onTester() wird niemals aufgerufen werden !!
 

Whoop whoop! Danke Otto!!!

Bin auf Linux und da eben auch passend zu MQL5 auf Visual Studio Code umgestiegen, da klappt alles noch nicht so ganz mit dem Autocomplete ("Intellisense"), sonst hätte sich die IDE vermutlich eh von selber beschwert. Voll super, danke für den schnellen Hinweis!

Grund der Beschwerde: