Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Indicator | Candles Ask

Indicator

The 'Ask' line is formed as the 'Close' price + the value from the 'spread' array (we take the array from OnCalculate)

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[])

MetaTrader Experts, Indicators, Scripts and Libraries

Pic. 1. Candles Ask

39558