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
.......?
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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.