My second indicator, still quite a hassle to create this one but I managed.
If someone finds joy in removing the calculations from the source and directly using the MACD native indicator function call. Please do and repost. I couldn't figure out how to handle the MACD native indicator call so I used the source of the MACD indicator as a starting point for this Impulse System.
The indicator is described in Dr. Alexander elder his books:
- Trading for a living
- Come into my trading room
It is based on an EMA and the MACD histogram. If both are ticking up the bar is green.
If both are ticking down, the bar is red. If they tick in opposite direction the bar is blue.
I might tweak and clean up the source code the coming days and I'll post my update here
Here is a picture with a help EMA and a MACD histogram so you can see what it does. The indicator only draws the colored bars of the stock
Enjoy!
Wessel
Comment