MACD with crossing

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

Moderator: admin

MACD with crossing

Postby Alexander.Gettinger » Tue Jun 18, 2013 12:25 pm

This indicator is a ported MQL5 indicator from http://www.mql5.com/en/code/1691

MACD_with_Crossing.PNG


Download:
MACD_with_Crossing.lua
(7.06 KiB) Downloaded 1908 times


For this indicator must be installed Averages indicator (viewtopic.php?f=17&t=2430).
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 3785
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

Re: MACD with crossing

Postby toxxum » Thu Sep 05, 2013 11:47 pm

Hi Alex,

Is there a chance to include an option that removes the histogram? It obscures the view quite a bit and it is redundant data anyway. I have tried to make the histogram the same colour as the chart background but then the zero line disappears too which I find is an important piece of information.

Thanks!
toxxum
 
Posts: 29
Joined: Sun Apr 28, 2013 8:47 am

Re: MACD with crossing

Postby Apprentice » Fri Sep 06, 2013 3:55 am

Histogram on/off option added.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: MACD with crossing

Postby udaysharma » Mon Sep 16, 2013 7:14 am

Hi Apprentice
This is my first post on fxcodebase.com
I need some help on MACD_WITH_CROSSING
1) The cross over given by MACD_WITH_CROSSING are bit different with crossover given by
default MACD indicator in marketscope (with 12,26,9 & EMA settings),This is because the
values of Mbuff are not matching with SIGNAL.(Which is why I am getting wrong
crossover,many times).
2) Second thing If you please add BUY & SELL Arrows with crossover ,than it will be a great help
for me.

Thanks
udaysharma
 
Posts: 25
Joined: Mon Sep 16, 2013 5:56 am

Re: MACD with crossing

Postby Apprentice » Mon Sep 16, 2013 8:10 am

Standard use MACD and EMA on First, MVA on second.
Furthermore MACD_with_crossing expresses values ​​in Pips, not in apsulutna value.
The numbers are the same, I checked.

As for Arrows, this is adequate substitute?
viewtopic.php?f=17&t=19034
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: MACD with crossing

Postby udaysharma » Mon Sep 16, 2013 12:24 pm

Hi Apprentice
Thanks for your reply,my concerns are
1)I am using EMA in both i.e. in "MACD_WITH_CROSSING" & in marketscope's "MACD" indicator,means I am using same parameters in both indicators,still the values of "Mbuff" and "Signal" are varying.I am sending herewith as an attachment to explain.In the image because of different values in "Mbuff" and "Signal" the crossover (-ve histogram) are on different candles.
Value of "Pbuff" and "MACD" are same but values of "Mbuff" and "Signal" are varying.
2)"MACD with ALERT" is not what I want,I want that MACD/Signal to be shown on the price chart as upward and downward arrows.

Thanks
Attachments
Untitled.jpg
udaysharma
 
Posts: 25
Joined: Mon Sep 16, 2013 5:56 am

Re: MACD with crossing

Postby Apprentice » Tue Sep 17, 2013 3:23 am

Untitled.png

Try with this parameter.
Once again, the standard MACD uses the MVA (SMA) for the signal.
The difference, in my example is due to rounding, and conversion to pips .
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: MACD with crossing

Postby udaysharma » Tue Sep 17, 2013 9:11 am

Hi Apprentice
Thank You Very much for your help
Now please help me in getting MACD with BUY & SELL Arrow in price chart.
1)MACD/signal crossover + current price close above a particular ema +BUY signal (up GREEN arrow)
2)MACD/signal crossover + current price close below a particular ema +SELL signal (up RED arrow).
Means MACD should alert BUY when close price is above (say 14 ema) and MACD should alert SELL when close price is below (say 14 ema).


Thanks
udaysharma
 
Posts: 25
Joined: Mon Sep 16, 2013 5:56 am

Re: MACD with crossing

Postby udaysharma » Wed Sep 18, 2013 8:34 am

Hi Apprentice
Please let me know if it is possible what I am looking for in a signal/alert.
Still Waiting for your reply
udaysharma
 
Posts: 25
Joined: Mon Sep 16, 2013 5:56 am

Re: MACD with crossing

Postby Apprentice » Wed Sep 18, 2013 12:14 pm

Your request is added to the development list.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Next

Return to Custom Indicators

Who is online

Users browsing this forum: No registered users and 50 guests