int OnCalculate(const int rates_total,
const int prev_calculated,
const datetime &time,
const double &open,
const double &high,
const double &low,
const double &close,
const long &tick_volume,
const long &volume,
const int &spread)
void OnChartEvent(const int id,
const long& lparam,
const double& dparam,
const string& sparam
//Call OnCalculate() again here
Maybe I should work around to make arrays with like CopyTime function et cetera?
Yes you are right, the best way is to use CopyXXXX functions in the OnChartEvent().
Another solution would be to set a flag when OnChartEvent() is raised and to process your objects in OnCalculate() but that would be on the next tick.
Thank you Alain! I'll try that.
Have a nice day ♫