Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2016.02.16 15:33

CSALChartPoints - library for MetaTrader 5

| English 日本語 Русский Español Deutsch

votes: 17

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;
double m_avg = points.Avg(400);

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

CSALChartPoints points;
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;

Translated from Russian by MetaQuotes Software Corp.
Original code:

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

Average Directional Movement Index (ADX) Average Directional Movement Index (ADX)

The Average Directional Movement Index Indicator (ADX) helps to determine if there is a price trend.

LinesProfitLoss LinesProfitLoss

Calculates profit (loss) of the current orders on the symbol.

FFC - Forex Factory Calendar FFC - Forex Factory Calendar

Modified version of FF Calendar Indicator with new features.