Guarda come scaricare robot di trading gratuitamente
Ci trovi su Facebook!
Unisciti alla nostra fan page
Script interessante?
Pubblica il link!
lasciare che altri lo valutino
Ti è piaciuto lo script? Provalo nel Terminale MetaTrader 5
Script

Script for Calculation of Candle Statistics - script per MetaTrader 5

Visualizzazioni:
15571
Valutazioni:
(48)
Pubblicato:
2013.09.02 18:02
Aggiornato:
2016.11.22 07:32
s_range.mq5 (21.84 KB) visualizza
Hai bisogno di un robot o indicatore basato su questo codice? Ordinalo su Freelance Vai a Freelance

The script calculates candle statistics (the minimal, maximal and average values of candles body and shadows) of the current chart.

The calculated statistics is shown for 3 groups (bullish, bearish and all) of candles in the upper left corner of the chart.

The calculation interval depends on 5 first input parameters (the interval also can be selected with two vertical lines with names, defined in input parameters).

Candle statistics calculation script MQL5

How does it work:

  • If there isn't any vertical lines (with names, defined by "start line" and "name finish line" inputs) and "bars for calculation"=0 - the start and finish dates are defined by values, specified in "date start" and "date finish" input parameters.
  • If chart contains the vertical lines with names, defined by "start line" and "name finish line" inputs  and bars for calculation=0 - the start and finish dates are defined by values, depending on time properties of these vertical lines.
  • If bars for calculation > 0, it calculates the specified number of bars -1 (the current uncompleted bar is not used in calculations).

*If chart contains only one line ("name start line" or "name finish line"), or start time> finish time or bars for calculation< 0 - the script does nothing and finish its work.

Other input parameters:

Candles statistics calculation script MQL5 input parameters

  • Digits, 4 or 5 (used in normalization and string formatting);
  • Colors of groups;
  • Font size;
  • Delete text labels from the chart (if true, the script only deletes the labels and does calculate nothing).

The code has comments.

Candles statistics calculation script in MQL5



Tradotto dal russo da MetaQuotes Ltd.
Codice originale https://www.mql5.com/ru/code/1842

Clock-Indiсator Clock-Indiсator

The indicator shows the current date, time, the current spread and stop levels.

ChartChanger ChartChanger

The script is assigned to a hot key for quick change of charts around in a circle.

Awesome Oscillator Divergence Awesome Oscillator Divergence

This indicator will plot divergence lines on the Awesome_Oscillator indicator and will give buy and sell signal by displaying arrows.

IREA IREA

IREA is an automated trade algorithm based on the idea of that an unusual impact in price changes will be adjusted by an inverse movement.