Hi
I have 1M chart among 3 more charts on the screen, A customer indicator is attached on both charts.
The following does NOT produce INVALID_HANDLE
Why is the CopyBuffer returning -1 ?
When I run the code initially, it works fine and does not return -1, but when onCalculate works, it gives that error.
the Docs:
if requested timeseries are not yet built or they need to be downloaded from the server,
that can not apply here since the chart is on the screen. right?
many thx
I have 1M chart among 3 more charts on the screen, A customer indicator is attached on both charts.
The following does NOT produce INVALID_HANDLE
Why is the CopyBuffer returning -1 ?
MQL5:
if(handleStock==INVALID_HANDLE) Print ("invalid stochastic handle."); int copied = CopyBuffer(handleStock,0,0,bars,stochBuffer);
When I run the code initially, it works fine and does not return -1, but when onCalculate works, it gives that error.
the Docs:
if requested timeseries are not yet built or they need to be downloaded from the server,
that can not apply here since the chart is on the screen. right?
many thx
Last edited by a moderator: