This is read-only version of AFL library entry. Ability to add user formulas
and comment is only available from members-only area.
Details:
Formula name:
MACD indicator display
Author/Uploader:
Paul Moore - (email hidden)
Date/Time added:
2006-05-21 19:36:21
Origin:
Keywords:
MACD
Level:
medium
Flags:
indicator
DISCLAIMER: Most formulas present in AFL on-line library are submitted
by the users and are provided here on an "as is" and "as available" basis.
AmiBroker.com
makes no representations or warranties of any kind to the contents or the operation
of material presented here. We do not maintain nor provide technical support
for 3rd party formulas. Description:
Sometimes, it can be difficult to view the MACD histogram bars when the MACD lines are very close together, causing the bars to be very short. This indicator automatically adjusts the scaling of the MACD histogram bars such that they occupy the maximum area in its indicator pane.
Paul Moore paul.moore [at] pandora.be 2006-05-26 08:38:10
Thanks Crash.
I had also initially tried that. It doesn't always work, especially with stock that don't have a long price history. What happens in this case is that the MACD-lines 0-level isn't synchronised with the MACD-H 0-level. Try it with GOOG.
This why I use either the number of bars displayed or the total number of bars in the price history when calculating the scaling factor.
Good stuff Paul, I've been using the histogram seperate to the macd so I could see it better. Now I can use it both to-gether again. You have also made it easy to change the time-span for I use the histogram in two different time-spans. Much appreciated.
Good stuff Paul, I've been using the histogram seperate to the macd so I could see it better. Now I can use it both to-gether again. You have also made it easy to change the time-span for I use the histogram in two different time-spans. Much appreciated.
Paul Bailey pmbailey4 [at] cox.net 2008-11-27 13:43:43
Paul, I have tried using your formula with no success. I get a syntax error at line Lin 13, Col. 1, Error 32 and have tried to solve per the suggestion with no results. I realize this has been around for a while, however I am a new user am am trying to learn the AFL language and am not haveing much suggest.