Custom MACD (based on Elder's impulse system)

Indicators coded by community members
Message
Author
___________
Posts: 10
Joined: Fri Jan 11, 2008 10:59 am

Custom MACD (based on Elder's impulse system)

#1 Postby ___________ » Sat Jan 12, 2008 2:34 pm

Ok I just finished this up, it's an indicator I did initially for mt4, but in fxt i used directly the macd histogram instead of a separated indicator with full bars hist. The indicator use the default macd from FXT but with 3 colors histogram, the colors are calculated based on Alexander Elder impulse system.
The concept is measuring inertia with the ema (it reacts faster to recent price changes than sma), and momentum with the macd histogram representing bulls and bear "fight". When MACD Histogram and EMA are both rising, the histogram bar is coloured green. When they are falling, the histogram bar is coloured red. When they diverge, the histogram bar is blue. When green, go long or stand aside. When red, go short or stand aside. When blue, go long or short, or better stay away.

Image

hope someone will find it useful
Attachments
MACD_PoweM.rar
MACD Custom indicator based on Alexander Elder's Impulse System
(44.59 KiB) Downloaded 2118 times

___________
Posts: 10
Joined: Fri Jan 11, 2008 10:59 am

#2 Postby ___________ » Sun Jan 13, 2008 9:19 am

This is the same as the first version of this indicator i did for mt4, full bars histogram. Works the same way and show the same values.

Image
Attachments
PowerM.rar
PowerM indicator based on Alexander Elder's Impulse System
(44.59 KiB) Downloaded 1652 times

User avatar
Tantalus
Posts: 302
Joined: Fri Mar 23, 2007 3:51 pm
Contact:

#3 Postby Tantalus » Sun Jan 13, 2008 5:07 pm

These lood interesting... can you post the source code so we can see what it's doing?

___________
Posts: 10
Joined: Fri Jan 11, 2008 10:59 am

#4 Postby ___________ » Sun Jan 13, 2008 6:00 pm

Sure... the code is quite simple
Attachments
test.rar
(1.35 KiB) Downloaded 1510 times

G.K.
Posts: 8
Joined: Fri Mar 13, 2009 8:27 pm

#5 Postby G.K. » Sat Mar 14, 2009 8:08 pm

This is the great indicator I had been using.
But, when I upgraded to the newer version of Forex Tester, it stopped working.
Mike told me to recompile the indicator with new API libraries.
I do not know much about the coding.
Someone please do this for me and others.

Thank you

dackjaniels
Posts: 151
Joined: Tue Feb 24, 2009 1:03 pm

#6 Postby dackjaniels » Sun Mar 15, 2009 9:35 am

G.K. wrote:This is the great indicator I had been using.
But, when I upgraded to the newer version of Forex Tester, it stopped working.
Mike told me to recompile the indicator with new API libraries.
I do not know much about the coding.
Someone please do this for me and others.

Thank you


I downloaded test.rar from above post and compiled it using the newest API libraries (FT2/Examples/Delphi) and it compiled with no errors.
However, once I attached it to a chart in FT2 the application produced an error.
Maybe Mike can help out as I see nothing else I can try.

Regards,
Steve

UPDATE: The idicator when added to the chart in FT2 is drawn correctly (at least it looks ok to me). The above error only occurs once the mouse is passed over the chart window containing the indicator. Perhaps this will help Mike track down the error if it is an issue with the FT2 code.

User avatar
Terranin
Site Admin
Posts: 833
Joined: Sat Oct 21, 2006 4:39 pm

#7 Postby Terranin » Sun Mar 15, 2009 1:14 pm

dackjaniels wrote:
G.K. wrote:This is the great indicator I had been using.
But, when I upgraded to the newer version of Forex Tester, it stopped working.
Mike told me to recompile the indicator with new API libraries.
I do not know much about the coding.
Someone please do this for me and others.

Thank you


I downloaded test.rar from above post and compiled it using the newest API libraries (FT2/Examples/Delphi) and it compiled with no errors.
However, once I attached it to a chart in FT2 the application produced an error.
Maybe Mike can help out as I see nothing else I can try.

Regards,
Steve

UPDATE: The idicator when added to the chart in FT2 is drawn correctly (at least it looks ok to me). The above error only occurs once the mouse is passed over the chart window containing the indicator. Perhaps this will help Mike track down the error if it is an issue with the FT2 code.


It means that you set number of visible lines more then you setup later. Look at IndicatorBuffers/SetIndexBuffer you should call SetIndexBuffer as many times as you specified in IndicatorBuffers. When you move your mouse over indicator it checks those buffers and if one of them is not set, you can get error.
Hasta la vista
Mike

dackjaniels
Posts: 151
Joined: Tue Feb 24, 2009 1:03 pm

#8 Postby dackjaniels » Sun Mar 15, 2009 1:48 pm

Terranin wrote:It means that you set number of visible lines more then you setup later. Look at IndicatorBuffers/SetIndexBuffer you should call SetIndexBuffer as many times as you specified in IndicatorBuffers. When you move your mouse over indicator it checks those buffers and if one of them is not set, you can get error.


Thanks Mike.

GK, I have altered the .dpr to reflect Mike's suggested changes and it now seems to work fine though I suggest checking this with the original poster as I did not program this indicator and do not use it myself (or you could of course compare it to the same working indicator running in FT1).

For the benefit of the indicators author, the exact change I made was to change IndicatorBuffers value of 6 to 5.

Source and compiled .dll attached.

Regards,
Steve
Attachments
MACD_PowerM.zip
Updated version for use in ForexTester 2. Checked and appears to be working fine.
(51.16 KiB) Downloaded 1372 times

G.K.
Posts: 8
Joined: Fri Mar 13, 2009 8:27 pm

#9 Postby G.K. » Sun Mar 15, 2009 7:34 pm

dackjaniels,

You are awesome!!
It is working fine now.

Thank you

dackjaniels
Posts: 151
Joined: Tue Feb 24, 2009 1:03 pm

#10 Postby dackjaniels » Sun Mar 15, 2009 10:56 pm

G.K. wrote:dackjaniels,

You are awesome!!
It is working fine now.

Thank you


Glad I could help GK

dackjaniels
Posts: 151
Joined: Tue Feb 24, 2009 1:03 pm

#11 Postby dackjaniels » Mon Aug 15, 2011 3:23 pm

Hi,

This PowerM indicator has since been updated by forum member Christoff and myself to include two tone colouring above and below MACD waterline and an extra EMA of the signal line.

Delphi source and dll attached.

Regards,
Steve
Attachments
MACD_BD_Color Two tone plus EMA.zip
Includes dll and Delphi source code
(54.85 KiB) Downloaded 1105 times

christoff
Posts: 46
Joined: Thu Nov 09, 2006 2:29 am

#12 Postby christoff » Mon Aug 15, 2011 11:59 pm

dackjaniels wrote:Hi,

This PowerM indicator has since been updated by forum member Christoff and myself to include two tone colouring above and below MACD waterline and an extra EMA of the signal line.

Delphi source and dll attached.

Regards,
Steve


Thank you very much Steve for you help in adding the EMA.

Regards,
Christoff

dackjaniels
Posts: 151
Joined: Tue Feb 24, 2009 1:03 pm

#13 Postby dackjaniels » Tue Aug 16, 2011 12:12 am

You're welcome Christoff.

Steven Smith
Posts: 7
Joined: Thu Jan 17, 2013 1:50 am
Location: USA

#14 Postby Steven Smith » Thu Jan 17, 2013 2:06 am

I had used this indicators.
This is the same as the first version of this indicator i did for mt4, full bars
histogram. Works the same way and show the same values.


Return to “Indicators”

Who is online

Users browsing this forum: No registered users and 19 guests