FOREX MT4 INDICATORS DOWNLOAD
  • Donate to the operator
  • MT4 INDICATORS A
  • MT4 INDICATORS B
  • MT4 INDICATORS C
  • MT4 INDICATORS D
  • MT4 INDICATORS E
  • MT4 INDICATORS F
  • MT4 INDICATORS G
  • MT4 INDICATORS H
  • MT4 INDICATORS I
  • MT4 INDICATORS J
  • MT4 INDICATORS K
  • MT4 INDICATORS L
  • MT4 INDICATORS M
  • MT4 INDICATORS N
  • MT4 INDICATORS O
  • MT4 INDICATORS P
  • MT4 INDICATORS Q
  • MT4 INDICATORS R
  • MT4 INDICATORS S
  • MT4 INDICATORS T
  • MT4 INDICATORS U
  • MT4 INDICATORS V
  • MT4 INDICATORS W
  • MT4 INDICATORS X
  • MT4 INDICATORS Y
  • MT4 INDICATORS Z
  • MT4 INDICATORS NUM
  • MT4 INDICATORS SIGN

DEMA_RLH2.mq4

DEMA_RLH2.mq4 FOREX MetaTrader4 Indicators Download

DEMA_RLH2.mq4 download link will appear after 10 seconds.


Icon

DEMA_RLH2.mq4

1 file(s) 2.90 KB
Download


DEMA_RLH2.mq4 Programming source code

//---- indicator settings
#property  indicator_chart_window
#property  indicator_buffers 3
#property  indicator_color1  Red
#property  indicator_color2  Green
#property  indicator_color3  Yellow
#property  indicator_width1  2
#property  indicator_width2  2
#property  indicator_width3  2
      
extern int EMA_Period = 14;

//---- buffers
double Dema[];
double Ema[];
double EmaOfEma[];


//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
  
//---- drawing settings
   
   SetIndexStyle(0,DRAW_LINE);
   SetIndexStyle(1,DRAW_LINE);
   SetIndexStyle(2,DRAW_LINE);
   SetIndexDrawBegin(0,EMA_Period);
   IndicatorDigits(MarketInfo(Symbol(),MODE_DIGITS)+2);

//---- 3 indicator buffers mapping
   if(!SetIndexBuffer(0,Ema) &&
      !SetIndexBuffer(1,EmaOfEma) &&
      !SetIndexBuffer(2,Dema))
      Print("cannot set indicator buffers!");
//---- name for DataWindow and indicator subwindow label
   IndicatorShortName("DEMA("+EMA_Period+")");
//---- initialization done
   return(0);
  }

int start()
{
   int i, limit;
   int    counted_bars=IndicatorCounted();
   if(counted_bars>0) counted_bars--;
   limit=Bars-counted_bars;
  
 
   for(i = limit; i >= 0; i--)
       Ema[i] = iMA(NULL,0,EMA_Period,0,MODE_EMA,PRICE_CLOSE,i);
   for(i = limit; i >=0; i--)
       EmaOfEma[i] = iMAOnArray(Ema,Bars,EMA_Period,0,MODE_EMA,i);
    
         
//========== COLOR CODING ===========================================               
        
   for(i = limit; i >=0; i--)
       Dema[i] = 2 * Ema[i] - EmaOfEma[i];
       
      return(0);
  }
//+------------------------------------------------------------------+

DEMA_mod.mq4 Divergence Petr_HL.mq4

Related Posts

METATRADER4D

Divergence Petr_HL_BB.mq4

METATRADER4D

Divergence Petr_HL.mq4

METATRADER4D

DEMA_mod.mq4

METATRADER4D

DEMA.mq4

METATRADER4D

DED.ex4

METATRADER4D

DB Pivots Strategy.mq4

METATRADER4D

Daily open line.mq4

How to use this site.
  1. Subscribe YouTube
  2. Subscribe Facebook
  3. Subscribe Instagram
  4. Download MT4
  5. Watch Youtube Video
  6. Downliad Indicator and Try Trading
  7. Donate to the operator

Recent News

  • XO ATR AA7 MTF TT.mq4
  • xma.mq4
  • YangTrader.ex4
  • zup_v135_all_hl_113.ex4
  • Zone.mq4
  • ZigzagFr_v1.mq4
  • ZigZag_ws_Chanel_SweetSNR.mq4
  • ZigZag_Larsen_out & alerts.mq4
  • Zig Zag Arrow.mq4
  • Zeus.mq4
  • ZeroLag Tema MACD – mtf + lines 2 (1).mq4
  • Zero lag T3.mq4
  • ZB TMA TT.mq4
  • Uni_cross-sep_alerts.mq4
  • Un2.ex4

Donate