Hi
I often get
Unable to copy the values of the indicator. Error 4806
in the M1 chart and not on other charts.
I often get
Unable to copy the values of the indicator. Error 4806
in the M1 chart and not on other charts.
MQL5:
void SOMECLASS::populate(void) { int copied=CopyRates(_symbol, _period, 0, bars, myRates); if(copied<=0) Print("Error copying price data ",GetLastError()); stoHandle = iStochastic(_symbol, _period, 34, 3, 9, MODE_SMA, STO_CLOSECLOSE); copied=CopyBuffer(stoHandle, 0, 0, bars, stochBuffer); if(copied<=0) { Alert("Unable to copy the values of the indicator. Error = ", GetLastError(),", copied =",copied); } }
Last edited by a moderator: