Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Views:
3156
Rating:
(22)
Published:
2016.02.16 15:33
\MQL5\Include\
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

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 Ltd.
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.