TraditionalMACD

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

TraditionalMACD

Postby Apprentice » Mon Sep 07, 2020 3:09 am

AUDJPY D1 (09-07-2020 1008).png

Based on request.
viewtopic.php?f=27&t=70378
TraditionalMACD.lua
(24.27 KiB) Downloaded 36 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 27560
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: TraditionalMACD

Postby jorgelg93 » Mon Sep 07, 2020 4:36 pm

Hello, thanks for the help, but the MACD doesn't show the signal Line, and it doesn't react to changes in the settings of the Signal EMA period MACD; also the "display MACD histogram" and "display MACD and signal lines settings don't do anything
jorgelg93
 
Posts: 10
Joined: Tue Mar 31, 2020 8:51 pm


Re: TraditionalMACD

Postby jorgelg93 » Tue Sep 08, 2020 9:00 am

Sir, something is still wrong with the MACD settings, changing the Signal EMA period doesn't do anything, also the histogram indicator looks quite different to another MACD histograms
jorgelg93
 
Posts: 10
Joined: Tue Mar 31, 2020 8:51 pm

Re: TraditionalMACD

Postby Apprentice » Wed Sep 09, 2020 2:02 am

Signal line fixed.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 27560
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: TraditionalMACD

Postby jorgelg93 » Wed Sep 09, 2020 9:02 am

Sir, thanks for your help but I noticed something else, the histogram looks a little behind, exactly one bar behind compared to the original in MT4 and to other macds! please take a look and compare
jorgelg93
 
Posts: 10
Joined: Tue Mar 31, 2020 8:51 pm

Re: TraditionalMACD

Postby Apprentice » Thu Sep 10, 2020 1:26 am

The histogram looks ok to me.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 27560
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: TraditionalMACD

Postby jorgelg93 » Thu Sep 10, 2020 7:48 am

Please check the attached images, my bad, I should have sent them before. Both MACD indicators, same instruments, same settings 12 26 9 ; but still they look very different. The last file attached is the MACD indicator that I'm using as comparison
Attachments
SPX500 H1.png
EUSTX50 H1.png
spx500  h1.png
spx h1_.png
GBPUSD 1H.png
MACD.lua
Comparison indicator
(9.18 KiB) Downloaded 24 times
jorgelg93
 
Posts: 10
Joined: Tue Mar 31, 2020 8:51 pm

Re: TraditionalMACD

Postby jorgelg93 » Thu Sep 10, 2020 6:02 pm

The attached images show 2 examples, the difference between the original MACD traditional in Tradingstation and MT4; there is a desphase/gap between both. Instrument: SPX500, 1h timeframe, macd settings 12 26 9
Attachments
Sin título.png
Example 1
Sin título2.png
Example 2
jorgelg93
 
Posts: 10
Joined: Tue Mar 31, 2020 8:51 pm

Re: TraditionalMACD

Postby Apprentice » Fri Sep 11, 2020 2:44 am

TraditionalMACD.lua
(24.41 KiB) Downloaded 29 times

Try this version.
"Close" price is used.
Are you using the same price sever?
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 27560
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Next

Return to Custom Indicators

Who is online

Users browsing this forum: Google [Bot] and 10 guests