Imigration artical
DxdCn:
int OnCalculate(const int rates_total, const int prev_calculated, const int begin, const double &price[])
it is a parameter of OnCalculate, generally, code used in below OnCalculate...
Thanks DxdCN,
But the compiler tells me:
'prev_calculated' - undeclared identifier
.......?
Hi,
At the article - https://www.mql5.com/en/articles/81 - the is a part:
at MQL4 is int IndicatorCounted(),
so at MQL5 it should be:
int IndicatorCountedMQL4()
{
if(int IndicatorCountedMQL4()
{
if(prev_calculated>0) return(prev_calculated-1);
if(prev_calculated==0) return(0);
return(0);
}
What is: prev_calculated
Thanks.