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
Libraries

CSALChartPoints - library for MetaTrader 5

| English Русский 中文 Español Deutsch 日本語 Português

Views:
1300
Rating:
votes: 18
\MQL5\Include\

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;

Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/14795

TangoLineCloud TangoLineCloud

The indicator displays rapid reversals to the dynamic change of the direction in the form of a cloud.

TangoLine_HTF TangoLine_HTF

The TangoLine indicator with the timeframe selection option available in the input parameters.

TangoLineCloud_HTF TangoLineCloud_HTF

The TangoLineCloud indicator with the timeframe selection option available in the input parameters.

ColorXADX_HTF ColorXADX_HTF

The ColorXADX indicator with the timeframe selection option available in the input parameters.