Change the color of the candles Indicator For MT5

Change the color of the candles Indicator For MT5

Table Of Contents:

  1. Change the color of the candles Indicator For MT5
  2. Установка Change the color of the candles Indicator For MT5
  3. Параметры Change the color of the candles Indicator For MT5
  4. Буферы Change the color of the candles Indicator For MT5
  5. Основные части кодекса

Индикатор « Change the color of the candles Indicator For MT5 это блестящий продуктивный и технический инструмент торговли, который предназначен для того, чтобы просто улучшить опыт торговли для трейдеров, чтобы помочь им реализовать более простой метод анализа рынка. Этот конкретный индикатор является цветным индикатором, который дает трейдеру возможность изменять цвета своих свечей в определенные периоды дня - это во многих отношениях элегантный технический инструмент торговли, хотя он и не был предназначен для предоставления трейдерам сигналов, как бы он ни был просто предназначен для улучшения торгового опыта для трейдеров. Поэтому одно из возможных блестящих применений, которое трейдер может использовать с помощью этого индикатора, - это выделение определенной цветовой схемы для каждой торговой сессии, поэтому для азиатской сессии у трейдера будет определенная цветовая схема, а для лондонской сессии у трейдера будет другая цветовая схема. а для сессии в Нью-Йорке или США будет другая цветовая схема - поэтому эта простая тактика просто поможет трейдерам легко различать различные торговые сессии.

FREE Change the color of the candles Indicator

Download the FREE Change the color of the candles Indicator for MT5.

To receive my email 100% sure: 
Put my email on your whitelist!

 

Partially Automated Trading Besides Your Day Job

Alerts In Real-Time When Divergences Occur

 

Установка Change the color of the candles Indicator For MT5

После того, как вы загрузили индикатор через форму выше, вам необходимо распаковать zip-файл. Затем вам нужно скопировать файл candles_color.mq5 в папку MQL5Indicators вашей установки MT5 . После этого перезапустите MT5, и вы сможете увидеть индикатор в списке индикаторов.

Параметры Change the color of the candles Indicator For MT5

Change the color of the candles Indicator For MT5 имеет параметры 10 для настройки.

input int Start_Day=4;      // Starting Day for show input int Start_Hour=6;     // Starting Hour of day input int Start_Minute=0;   // Starting Minute of hour input int End_Day=4;        // End of Day input int End_Hour=20;      // End Hour of day input int End_Minute=59;    // End Hour of day input color Color_Bar_Up_1=clrPowderBlue; input color Color_Bar_Down_1=clrBisque; input color Color_Bar_Up_0=clrGreen; input color Color_Bar_Down_0=clrRed; 

Буферы Change the color of the candles Indicator For MT5

Change the color of the candles Indicator For MT5 предоставляет буферы 5 .

SetIndexBuffer(0,buf_open,INDICATOR_DATA); SetIndexBuffer(1,buf_high,INDICATOR_DATA); SetIndexBuffer(2,buf_low,INDICATOR_DATA); SetIndexBuffer(3,buf_close,INDICATOR_DATA); SetIndexBuffer(4,buf_color_line,INDICATOR_COLOR_INDEX); 

Основные части кодекса

int OnCalculate(const int rates_total,                 const int prev_calculated,                 const datetime &time[],                 const double &open[],                 const double &high[],                 const double &low[],                 const double &close[],                 const long &tick_volume[],                 const long &volume[],                 const int &spread[])   {     MqlDateTime time_now;  // define time struc //In the loop we fill the data buffers and color indexes buffers for each bar    for(int i=prev_calculated;i lt =rates_total-1;i++)      {      //Set data for plotting       buf_open[i]=open[i];       buf_high[i]=high[i];       buf_low[i]=low[i];       buf_close[i]=close[i];        datetime candle_time=time[i];        TimeToStruct(time[i],time_now);  // change time to struct             if((time_now.day_of_week gt =Start_Day && time_now.hour gt =Start_Hour && time_now.min gt =Start_Minute)          && (time_now.day_of_week lt =End_Day && time_now.hour lt =End_Hour && time_now.min lt =End_Minute))         {         // if time between start day and end of day          if(open[i] gt =close[i])  //if open  gt = close set color index 3             buf_color_line[i]=3;//Assign the bar with color index, equal to 3          else             buf_color_line[i]=2;//Assign the bar with color index, equal to 2         }           // if time isn t between start day and end of day       else         {          if(open[i] gt =close[i]) //if open  gt = close set color index 1             buf_color_line[i]=1;//Assign the bar with color index, equal to 1          else             buf_color_line[i]=0;//Assign the bar with color index, equal to 0         }       }    return(rates_total-1);   } //+------------------------------------------------------------------+ 

 

About Me

I'm Mike Semlitsch the owner of PerfectTrendSystem.com. My trading career started in 2007. Since 2013 I have helped thousands of traders to take their trading to the next level. Many of them are now constantly profitable traders. 

The following performance was achieved by me while trading live in front of hundreds of my clients:

Connect With Me:  

Results From 5 Months!
This service starts soon! Be the first who get's notified when it begins!

This FREE Indicator Can Transform
Your Trading!

FREE Indicator + Telegram Group


Request the Ultimate Double Top/Bottom Indicator which is used by 10,000+ traders.