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
Visualizzazioni:
5910
Valutazioni:
(12)
Pubblicato:
2018.06.06 12:47
Hai bisogno di un robot o indicatore basato su questo codice? Ordinalo su Freelance Vai a Freelance

The Highest Lowest indicator searches for bars having High above the High of bars on the left and on the right, as well as bars having Low below the Low of bars on the left and on the right:

Highest Lowest

Fig. 1. Highest Lowest

The indicator is displayed using the DRAW_ARROW style.

Since the indicator analyzes the bar on the right, the value of the indicator may change in some cases. For example, the following bar can be redrawn:

Highest Lowest The bar can be redrawn

Fig. 2. Highest Lowest The bar can be redrawn

This bar will not be redrawn:

Highest Lowest The bar can not be redrawn

Fig. 3. Highest Lowest The bar can not be redrawn

If you want to see the default indexing of bars in indicators, uncomment code in OnCalculate:

/*
   int bar_0=0;
   int bar_rates_total_minus_1=rates_total-1;
   Comment("prev_calculated=",prev_calculated,"\n",
           "time[",bar_0,"]=",time[bar_0],"\n",
           "time[",bar_rates_total_minus_1,"]=",time[bar_rates_total_minus_1]);
*/

This code displays on the screen the value of the prev_calculated variable, the time of the bar with the 0 index and the time of the bar with the index of rates_total-1.

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

JP Oscillator JP Oscillator

A trend oscillator.

UI UI

Ulcer Index (UI) - the volatility decrease index.

EA Stop Order EA Stop Order

The Expert Advisor places a grid of pending Buy Stop and Sell Stop orders.

HLBands HLBands

An indicator of daily levels.