ZigZagExtremaOnArray – library MetaTrader 5
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[]) { int to_copy = (rates_total – prev_calculated) * (prev_calculated < rates_total) + (1) * (prev_calculated == rates_total); CopyBuffer(RSIHandle, 0, 0, to_copy, ExtRSIBuffer); … Read more