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 Libraries | CSALChartPoints

MetaTrader Experts, Indicators, Scripts and Libraries

CSALChartPoints is a class for expanding the capabilities of MqlRates.

Advantages of the class:

  1. It provides a simpler interface for working with MqlRates.
  2. It extends the parameter set of the candlesticks (for example, it add the body_high parameter, which shows the closing price for the bullish candles and the opening price for the bearish candles — the upper limit of the candle's "body").
  3. Introduces an abstract term Value, which indicates one of the specified parameters of the candlesticks.

Example №1 (the average values of 400 bar for the High parameter of the candlesticks):

CSALChartPoints points;
points.PointType(HIGH);
double m_avg = points.Avg(400);

Example №2 (the average values of 400 bar for the Low parameter of the candlesticks):

CSALChartPoints points;
points.PointType(LOW);
double m_avg = points.Avg(400);

Example №3 (processing set of 100 bars):

double sum;
CSALChartPoints points;
for(int i = 100; i > 0; i--)
  sum = points.At(i).high;
14795

Best MetaTrader Indicators + Profitable Expert Advisors