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

Trade Sessions Indicator - indicatore per MetaTrader 5

Visualizzazioni:
71720
Valutazioni:
(94)
Pubblicato:
2010.03.15 11:19
Aggiornato:
2016.11.22 07:32
Hai bisogno di un robot o indicatore basato su questo codice? Ordinalo su Freelance Vai a Freelance

This indicator is based on DRAW_FILLING buffers.

The input parameters are absent, the TimeTradeServer(), TimeGMT() functions are used.

Trade Sessions Indicator

The unaccuracy in the trade session times is possible, the values are from the first site I have found :))

It is possible to change its values in the block of constants, the GMT time is used.

// Time constants are specified across Greenwich
const int   AsiaOpen=0;
const int   AsiaClose=9;
const int   AsiaOpenSummertime=1;   // The Asian session shifts
const int   AsiaCloseSummertime=10; // after the time changes
const int   EuropaOpen=6;
const int   EuropaClose=15;
const int   AmericaOpen=13;
const int   AmericaClose=22;

There is an opportunity to use the time changes to the summer time, at present time it's a primitive and realized with the function TimeDaylightSavings();

//+--------------------------------------------------------------------+
// Summertime determination is reserved for the future calculations
//+--------------------------------------------------------------------+
bool Summertime(datetime time)
{
   if(TimeDaylightSavings()!=0)
      return(true);
   else
      return(false);
} 

So, after the time change to the summer time, all of the history changes it's time and vice versa.

The first version of the indicator has been published at MQL4

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

Price_Channel Price_Channel

It's a well-known indicator that shows maximal and minimal prices (and average values) of the last n bars.

WININET_TEST WININET_TEST

Here is a simple example that shows how to download page(file) from Internet using the library wininet.dll.

Ticks Ticks

Example of a tick chart.

DemoBufferPattern DemoBufferPattern

To demo buffer-pattern: Candles + Fractals + ZigzagColor + ColorMaLine.