invalid integer number as parameter 2 for iSeries function

 

WTH, MetaEditor Compiler doesn't give an error or warning but in the experts tab it it says 

invalid integer number as parameter 2 for iSeries function 

 

and the Expert hasn't traded or even got a signal for Multi_MovingAverage.

Also, there's no level price call for stochastic oscillator with iCustom? - like 20 and 80 levels?

 
Subgenius:

WTH, MetaEditor Compiler doesn't give an error or warning but in the experts tab it it says 

invalid integer number as parameter 2 for iSeries function 

 

and the Expert hasn't traded or even got a signal for Multi_MovingAverage.

Also, there's no level price call for stochastic oscillator with iCustom? - like 20 and 80 levels?

 

iSeries is one of these functions . . .  iSeries

string                     Per = "";

   Per = Period();
   

   datetime CurrTime = iTime(Sym, Per, 1);

 What type of variable does Period() return ?  what type of variable does iTime()  take as it's second parameter ?

Reason: