Code Forex MT4 Indicators

MACD Color Histogram – indicator for MetaTrader 4

Find and signal divergence. To color histogram Download here: https://www.mediafire.com/file/qzcxtx5ftaadzcg/MACD_Color_Histogram_indicator_for_MetaTrader_4.mq4/file Or code Mql4 here //+——————————————————————+//|                                       MACD Colored Histogram.mq4 |//|                        Copyright 2018, MetaQuotes Software Corp. |//|                                             https://www.mql5.com |//+——————————————————————+#property copyright “Copyright 2018, MetaQuotes Software Corp.”#property link      “https://www.mql5.com”#property version   “1.00”#property strict #property  indicator_separate_window#property  indicator_buffers 4#property  indicator_color1   Lime#property  indicator_color2   Red#property  indicator_color3   SlateGray#property  indicator_color4   Magenta #property indicator_width1 2#property indicator_width2 2#property indicator_width3 2#property indicator_width4 1 #property indicator_level1  0#property indicator_levelcolor Silver extern int fast_ema_period=12;extern int slow_ema_period=26;extern int signal_period=9; double UpBuffer[];double DownBuffer[];double ZeroBuffer[];double SigMABuffer[];//+——————————————————————+//| Custom…

September 24, 2019 by admin
Code Forex MT4 Indicators

MACD trend- indicator for MetaTrader 4

//=============//#property copyright “Copyright 2019, Nikolaos Pantzos”#property link      “https://www.mql5.com/en/users/pannik”#property version   “1.0”#property strict//=============//#property indicator_separate_window#property indicator_buffers 2#property indicator_color1 clrDodgerBlue#property indicator_color2 clrRed//=============//extern int FastPeriod=12;extern int SlowPeriod=26;extern int SignalPeriod=9;extern ENUM_APPLIED_PRICE AppliedPrice=PRICE_CLOSE;extern int BarsForAveragePrice=140;extern double PercentageLevelUp=25;extern double PercentageLevelDn=25;//===============//double UpBuffer[];double DnBuffer[];//==============//int OnInit(void)  {//——————————————————————————–   string iName=”iMACD_Histo(“+IntegerToString(FastPeriod)+”,”+IntegerToString(SlowPeriod)+”,”+IntegerToString(SignalPeriod)+”)”;//——————————————————————————–   IndicatorShortName(iName);   IndicatorDigits((int)MarketInfo(Symbol(),MODE_DIGITS));//——————————————————————————–   SetIndexStyle(0,DRAW_HISTOGRAM,STYLE_SOLID,3);   SetIndexStyle(1,DRAW_HISTOGRAM,STYLE_SOLID,3);   SetIndexBuffer(0,UpBuffer);   SetIndexBuffer(1,DnBuffer);//——————————————————————————–   SetIndexLabel(0,”UpTrend”);   SetIndexLabel(1,”DownTrend”);//——————————————————————————–   SetIndexDrawBegin(0,SlowPeriod);   SetIndexDrawBegin(1,SlowPeriod);//——————————————————————————–   return(INIT_SUCCEEDED);//——————————————————————————–  }//==============//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[])  {//——————————————————————————–   int IndicatorShift=0;   int IndicatorTrend=0;   double IndicatorValue=0;   double AvrgValue=0;//——————————————————————————–   for(IndicatorShift=Bars-SlowPeriod-1; IndicatorShift>=0; IndicatorShift–)     {      AvrgValue=iMACD(NULL,0,FastPeriod,BarsForAveragePrice,SignalPeriod,AppliedPrice,MODE_MAIN,IndicatorShift);      IndicatorValue=iMACD(NULL,0,FastPeriod,SlowPeriod,SignalPeriod,AppliedPrice,MODE_MAIN,IndicatorShift);      //—      if(IndicatorValue>AvrgValue+((AvrgValue*PercentageLevelDn)/100))         IndicatorTrend=-1;      if(IndicatorValue<AvrgValue-((AvrgValue*PercentageLevelUp)/100))         IndicatorTrend=1;      //—      if(IndicatorTrend>0)        {         if(IndicatorValue>AvrgValue-((AvrgValue*PercentageLevelUp)/100)/2)            UpBuffer[IndicatorShift]=1.0;         else            UpBuffer[IndicatorShift]=1.0;         DnBuffer[IndicatorShift]=0;        }      //—      if(IndicatorTrend<0)        {         if(IndicatorValue<AvrgValue+((AvrgValue*PercentageLevelDn)/100)/2)            DnBuffer[IndicatorShift]=1.0;         else            DnBuffer[IndicatorShift]=1.0;         UpBuffer[IndicatorShift]=0;        }     }//———————————————————————————–   return(rates_total);//———————————————————————————–  }//===============//

September 24, 2019 by admin
Code Forex MT5 Indicators

RSI_Divergence – indicator for MetaTrader 5

RSI Divergence draws the RSI indicator line in a separate window and displays found divergences in the indicator window and on the price chart. It has six input parameters: Period – calculation period Applied price Overbought – overbought level Oversold – oversold level…

September 22, 2019 by admin
Code Forex MT5 Indicators

Commodity Channel Index (CCI) – indicator for MetaTrader 5

Commodity Channel Index technical indicator (CCI) measures the deviation of the commodity price from its average statistical price.  High values of the index point out that the price is unusually high being compared with the average one, and low values show…

September 22, 2019 by admin
Mở Tài Khoản - Nhận ngay bộ công cụ AI trị giá 56000 USD
Code Forex MT5 Indicators

RSI_Slowdown – indicator for MetaTrader 5

Semaphore signal indicator based on the RSI indicator, which features alerts, sending emails and push-notifications to mobile devices. The indicator is based on the idea that the price reversal is preceded by a reduction in indicator change rate and its…

September 22, 2019 by admin
Code Forex MT5 Indicators

ZigZag_MACDCandle – indicator for MetaTrader 5

ZigZag based on the MACDCandle indicator candles. Fig.1. ZigZag_MACDCandle indicator Translated from Russian by MetaQuotes Software Corp. Original code: https://www.mql5.com/ru/code/16605

September 22, 2019 by admin
Code Forex MT5 Indicators

PivotPoint – indicator for MetaTrader 5

Pivot Points are always very useful for trading, this is a simple way to have some idea of where the market is heading during the day.  The indicator also provides the first three supports and resistances. The formulae I used…

September 22, 2019 by admin
Code Forex MT5 Indicators

Breakout Bars Trend – indicator for MetaTrader 5

It is created as an alternative to MA to determine trend direction and is a kind of “hybrid” of a linear reversal and the iMovment indicator (https://www.mql5.com/en/code/99). The difference of the last is that the delta (the reversal parameter) is…

September 22, 2019 by admin
Code Forex MT5 Indicators

MTF_Stochastic_RSI – indicator for MetaTrader 5

Oscillating indicator Multi timeframes Stochastic RSI is the multi-timeframe Stochastic RSI. The indicator displays the data of three indicators Stochastic RSI from different timeframes on the current chart. It has ten input parameters: Stochastic %K period – stochastic %K line calculation period Stochastic %D…

September 22, 2019 by admin