Elite indicators - metatrader 5 version :) - page 41

 
Dragon:

Dear just tell you the words of one here is not the arena for the show muscle.

you city people play well.
 
Anyway:
you city people play well.

Dear I do not know what the problem is I do not have any problem with mq4

All there is to it is the MACD unchanged in most settings, four color appears on the baseline (reference)

From then we can control the powerful regions to enter.

Dear I need a good pigment to dye MACD four colors

 
Dragon:

Dear I do not know what the problem is I do not have any problem with mq4

All there is to it is the MACD unchanged in most settings, four color appears on the baseline (reference)

From then we can control the powerful regions to enter.

Dear I need a good pigment to dye MACD four colors

Please use the SRC button to post code :)

 
Anyway:

Please use the SRC button to post code :)

How to post code on tsd . . .

 
Anyway:

How to post code on tsd . . .

Dear Thank you for the clarification

 
mladen:

Dragon

At your picture, after the names of the indicators, there are some numbers.

Those are the values. Compare those values (not the mql code either)

Dear Mladen This is the code 

I ask you to forgive because I repeated more than once .

I need four colors on the MACD

//+------------------------------------------------------------------+
//|                                                         MACD.mq5 |
//|                        Copyright 2009, MetaQuotes Software Corp. |
//|                                              http://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright   "2009, MetaQuotes Software Corp."
#property link        "http://www.mql5.com"
#property description "Moving Average Convergence/Divergence"
#include <MovingAverages.mqh>
//--- indicator settings
#property indicator_separate_window
#property indicator_buffers 4
#property indicator_plots   2
#property indicator_type1   DRAW_HISTOGRAM
#property indicator_type2   DRAW_LINE
#property indicator_color1  Silver
#property indicator_color2  Red
#property indicator_width1  2
#property indicator_width2  1
#property indicator_label1  "MACD"
#property indicator_label2  "Signal"
//--- input parameters
input int                InpFastEMA=12;               // Fast EMA period
input int                InpSlowEMA=26;               // Slow EMA period
input int                InpSignalSMA=9;              // Signal SMA period
input ENUM_APPLIED_PRICE InpAppliedPrice=PRICE_CLOSE; // Applied price
//--- indicator buffers
double                   ExtMacdBuffer[];
double                   ExtSignalBuffer[];
double                   ExtFastMaBuffer[];
double                   ExtSlowMaBuffer[];
//--- MA handles
int                      ExtFastMaHandle;
int                      ExtSlowMaHandle;
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
void OnInit()
  {
//--- indicator buffers mapping
   SetIndexBuffer(0,ExtMacdBuffer,INDICATOR_DATA);
   SetIndexBuffer(1,ExtSignalBuffer,INDICATOR_DATA);
   SetIndexBuffer(2,ExtFastMaBuffer,INDICATOR_CALCULATIONS);
   SetIndexBuffer(3,ExtSlowMaBuffer,INDICATOR_CALCULATIONS);
//--- sets first bar from what index will be drawn
   PlotIndexSetInteger(1,PLOT_DRAW_BEGIN,InpSignalSMA-1);
//--- name for Dindicator subwindow label
   IndicatorSetString(INDICATOR_SHORTNAME,"MACD("+string(InpFastEMA)+","+string(InpSlowEMA)+","+string(InpSignalSMA)+")");
//--- get MA handles
   ExtFastMaHandle=iMA(NULL,0,InpFastEMA,0,MODE_EMA,InpAppliedPrice);
   ExtSlowMaHandle=iMA(NULL,0,InpSlowEMA,0,MODE_EMA,InpAppliedPrice);
//--- initialization done
  }
//+------------------------------------------------------------------+
//| Moving Averages Convergence/Divergence                           |
//+------------------------------------------------------------------+
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[])
  {
//--- check for data
   if(rates_total<InpSignalSMA)
      return(0);
//--- not all data may be calculated
   int calculated=BarsCalculated(ExtFastMaHandle);
   if(calculated<rates_total)
     {
      Print("Not all data of ExtFastMaHandle is calculated (",calculated,"bars ). Error",GetLastError());
      return(0);
     }
   calculated=BarsCalculated(ExtSlowMaHandle);
   if(calculated<rates_total)
     {
      Print("Not all data of ExtSlowMaHandle is calculated (",calculated,"bars ). Error",GetLastError());
      return(0);
     }
//--- we can copy not all data
   int to_copy;
   if(prev_calculated>rates_total || prev_calculated<0) to_copy=rates_total;
   else
     {
      to_copy=rates_total-prev_calculated;
      if(prev_calculated>0) to_copy++;
     }
//--- get Fast EMA buffer
   if(IsStopped()) return(0); //Checking for stop flag
   if(CopyBuffer(ExtFastMaHandle,0,0,to_copy,ExtFastMaBuffer)<=0)
     {
      Print("Getting fast EMA is failed! Error",GetLastError());
      return(0);
     }
//--- get SlowSMA buffer
   if(IsStopped()) return(0); //Checking for stop flag
   if(CopyBuffer(ExtSlowMaHandle,0,0,to_copy,ExtSlowMaBuffer)<=0)
     {
      Print("Getting slow SMA is failed! Error",GetLastError());
      return(0);
     }
//---
   int limit;
   if(prev_calculated==0)
      limit=0;
   else limit=prev_calculated-1;
//--- calculate MACD
   for(int i=limit;i<rates_total && !IsStopped();i++)
      ExtMacdBuffer[i]=ExtFastMaBuffer[i]-ExtSlowMaBuffer[i];
//--- calculate Signal
   SimpleMAOnBuffer(rates_total,prev_calculated,0,InpSignalSMA,ExtMacdBuffer,ExtSignalBuffer);
//--- OnCalculate done. Return new prev_calculated.
   return(rates_total);
  }
//+------------------------------------------------------------------+
 
Dragon:

Dear just tell you the words of one here is not the arena for the show muscle.

Means,you are a person of your own rules in public and looks you are prepared for show muscle game with out understand and feel what boss dislike,carry on :)
 
Dragon:

Dear Mladen This is the code 

I ask you to forgive because I repeated more than once .

I need four colors on the MACD

That macd was already used by you for initial 4 color macd request. The 4 color macd was made then when you requested it. Please, do not flood the forum with same stuff over and over. It is of no use : no use for you, no use for anybody ... There are quite a few mt5 macd indicators (including the version you keep posting) Please use those.

 
mntiwana:
Means,you are a person of your own rules in public and looks you are prepared for show muscle game with out understand and feel what boss dislike,carry on :)

Only here we can show the flag.

If you love the challenge in science and I am ready.

In MetaTrader profit without loss is a science

 
Dragon:

Dear Mladen This is the code 

I ask you to forgive because I repeated more than once .

I need four colors on the MACD

Are you mean MACD like upper or lower in my pict?? FYI this are 1 indicator but have option "change color on signal cross true/false" and i have in MT4 not MT5 

Files:
EURJPYH4.png  56 kb
Reason: