This is the Macd I have been using , I am comparing to yours
This is the code, does it look right to you
//| MACD with crossing.mq4 |
//| Copyright © 2004, MetaQuotes Software Corp. |
//| MetaTrader 5 Trading Platform / MetaQuotes Software Corp. |
#property copyright ""
#property link ""
//---- indicator settings
#property indicator_buffers 3
#property indicator_color1 Gold
#property indicator_color2 Red
#property indicator_color3 Gray
#property indicator_width1 2
//---- indicator parameters
extern int FastEMA=12;
extern int SlowEMA=26;
extern int SignalSMA=9;
//---- indicator buffers
//| Custom indicator initialization function |
//| Moving Averages Convergence/Divergence |
for(i=0; i<limit; i++) MacdBuffer=iMA(NULL,0,FastEMA,0,MODE_EMA,PRICE_CLOSE,i)-iMA(NULL,0,SlowEMA,0,MODE_EMA,PRICE_CLOSE,i);
for(i=0; i<limit; i++)
HistogramBuffer=MacdBuffer - SignalBuffer;
for(i=WindowBarsPerChart(); i>0 ;i--)
if (crossing < 0)
for(int i=1;i<=maxLines;i++) ObjectDelete("MacdCross"+i); maxLines=0;
can you tell me how to add MTF to this one just for knowledge
That one is using SMA for signal line - it is the same as the built in metatrader one
is it possible to make it two colored?
Studbiol, added a multi colored option.
My next question to the generous programmers:
The attached indicator seems to be a good indicator. Is it a kind of Solarwind or ZigZag? Does it repaint?
If it is not a repainting one could someone please have look why it doesn't show up on TF > 240 min. and perhaps make it work.
Thanks in advance.
Gan high low activator does not repaint.
As of why it does not show : better to use some other version (since this one is coded to work only intraday, and some errors in it also)
Hi Mladen and Mrtools,
Would you be as kind and would it be possible to make this amazing beauty MTF ?
does anybody have version of the Accelerator Oscillator with period setting?
its realy necessary.
Here you go : accelerator_periods.mq4
Testing some stuff, try it.
Thank you Airquest, I didn't know you could code too.
I will test it right away.
You should test it too, it's an incredible indicator with a lot of potential.
At least, that's what I think ...