The MACDBBLines indicator is built from a standard MACD indicator with Bollinger Bands added to the signal line. The MACD values are shown as dots. This indicator is typically used to generate with-trend entries when the upper or lower Bollinger Band is violated.
Minor trend: The minorlower timeframe trend is up when the MACD is rising. It is down when the MACD is falling.
Major trend: The higher timeframe trend may be taken from the MACD itself. An major uptrend is signaled when MACD > 0, while MACD < 0 stands for a major downtrend.
Public Properties: The indicator comes with a few public Series<double> that can be accessed via other indicators or automated strategies. These will also be shown in the strategy builder. The series "Trend" may be used to detect the minor trend. "Trend" will show the value +2 when the MACD is rising and above the upper Bollinger Band, +1 when it is rising and below the upper Bollinger Band, -1 when it is falling and above the lower Bollinger Band, -2 when it is falling and below the lower Bollinger Band. You will further find two Series<double> "LongSignal" and "ShortSignal". "LongSignal" will return +2 for an upper band violation in a major uptrend (strong signal), +1 for an upper band violation in a major downtrend (weak signal) and 0 for no signal. Accordingly, "ShortSignal" will return +2 for a lower band violation in a major downtrend (strong signal), +1 for an lower band violation in a major uptrend (weak signal) and 0 for no signal.
Market Analyzer Column: The indicator comes with two separate market analyzer columns. The first column will simply indicate the trend and return values based on rising and falling MACD above or below the Bollinger Bands as described above. The second column will return entry signals, where +2 stand for a strong long signal, + 1 for a weak long signal, 0, for no signal, -1 for a weak short signal and - 2 for a strong short signal. For the market analyzer I have squeezed long and short signals into a single column, as there is little space on a market analyzer. For the Series<double> objects, I have separated the LongSignal and ShortSignal series, as they are designed to return positive values or 0 for no signal only. Please pay attention to the difference.
Paint Bars: The indicator comes with paint bars that reflect the minor trend. The colors are similar to the colors for the MACDBB dots, but you may differentiate between upcloses and downcloses.
Sound Alerts: The indicator comes with sound alerts that will be triggered when the upper or lower band is violated, or when the major trend changes.
MACDcolors Version 1.1
Author: radi8
Trading Group Affiliation: TeamPIPPEdge
Yes, I know, there are an infinite number of variations on the MACD indicator.
That said, I wanted an MACD that I could define overbought and oversold conditions for. That is difficult to do given the different tick sizes of various instruments. So I created a normalized MACD. So this will plot with similar values whether you are trading the 6J or the YM. With this in mind, you can establish OB/OS levels in the indicator. The indicator will trigger alerts when there is a crossover in OB/OS territory. In general, I've found that values between 5 and 10 are good for the OB/OS levels. When a crossover happens in this region, a trend reversal is more likely. When the indicator is moving between the OB/OS levels, it is generally not a great time to enter the market.
Also, I like simple. So this indicator just shows one colored plot. It changes colors when the MACD and AVE plots cross, showing only one line. I still include all the normal data series you can access (Default, Ave, Diff). There are several DataSeries you can access for strategies as well as for market analyzers. You can also define time zones for the alerts. If there is a particular strategy you trade off the MACD that is time sensitive, this will allow you to define that time block when you would like to be alerted.
The screenshot shows this indicator with my CandleStickDoctor indicator.
Cheers!
radi8
UPDATE (1/31/17)
I found a small bug with the time logic that I corrected. If you want the indicator to generate signals at all times, set all the time bins to -1.
Also added the ability to select different MA's as the source for the MACD.
I was asked to updated the BloodHound MACD/Keltner 20.5 strategy to add a trend filter and a multiple time frame for the trend. The suggestion was for a 21 HMA. So I included a 5 minute chart for that and added it to the strategy. I backtested the strategy in Crude for January 2014 on a 233 tick chart, and it was profitable on that. I will post the performance report on the new BloodHound strategy post: https://nexusfi.com/elite-automated-ninjatrader-trading/29979-bloodhound-strategies-ninjatrader-trader-2.html
It uses a DM +/- and a MACD Crossover strategy. It works good on the ES_F 15min with 15 tick stop loss. Play around, have fun. Let me know what you think. It also gets you out of trades on exit positions if the conditions no longer warrent
This is a fast version of the MACD BB Lines indicator. The MACD settings and the band period, the multiplier for the standard deviation, the dotsize and all colors can be selected.
Different colors can be selected for a rising and falling MACD and for dots outside and inside the Bollinger Bands. The zeroline crosses are indicated by large dots. The zeroline itself can be used as a trend filter.
Paint Bars: The price bars can be painted in the same color as the dots. To allow for differentiating downcloses from upcloses, downcloses are filled while upcloses are hollow bars. The opacity for the upcloses can be selected.
Alerts: Breakouts from the Bollinger Band (violation dots) can be indicated with arrows or sound alerts. A sound alert for zeroline crosses has also been added.
This indicator can also be used on multiseries charts or charts with equidistant bar spacing set to "false".
The default colours are adapted to dark backgrounds. Please change them, if you use the MACDBBLines on a lighter background.
The sound files are included with the zip file. You have to unzip them manually and copy them to the NinjaTrader sounds directory.
Update April 5, 2011: You can now select different colors for
- rising MACD below upper Bollinger Band
- rising MACD above upper Bollinger Band (trending)
- falling MACD above lower Bollinger Band
- falling MACD below lower Bollinger Band (trending)
Update July 17, 2011: Indicator simplified.
Update September 6, 2011: Options for customizing plots added.
Update February 8, 2011: Paintbars added.
Update May 17, 2012: Arrows and sound alerts added. Opacity for upclose paint bars is selectable.
September 6th, 2015 05:10 AM Sezor Thz - haven't tried it yet
August 30th, 2013 03:57 PM sdp0024 I'm new to this forum and wanted to confirm that these are dropped in the same folders as they are in the download folde
r. And yes, inputs would be very helpful.
April 29th, 2013 08:54 PM SarahKrantz Would be really helpful if you showed the inputs that generated that Performance Report.
April 28th, 2013 09:50 AM Mumorex thank for sharing. Will play ;-)
July 15th, 2022 08:17 AM daviddube How do I get the Sound Alerts to work? I have placed .WAV files in the NT8 Sound Folder but they do not sound-off Love
the indie...Thanks
July 12th, 2020 09:34 PM rickr
June 18th, 2020 12:34 PM MARKETPLACE
April 29th, 2020 04:38 PM 4X77 thanks, I am grateful for your efforts and for sharing.
January 23rd, 2020 06:27 PM hobbys11 very nice, thank you Fat Tails
May 5th, 2020 11:46 PM podowitz Rated 5 stars for its promise and all the hard work...and also doing something for N7, which I still use. Would it be po
ssible to code an up arrow on the screen when MACD crosses above its signal line, and a down arrow when it crosses below
its signal line? (Not crosses above or below zero line, but actual crosses of the indicator parameters.) I don't like l
ooking at panel indicators; I prefer to watch price and indicator action right on the chart. Can this be done?
Thanks,
Steve.
March 19th, 2019 05:47 AM romus
March 10th, 2019 02:34 PM gringa thanks! looks very promising!
December 20th, 2023 01:07 PM ballhaj Excellent !!!!
December 4th, 2023 07:45 PM topdogtony Hello - you did a fantastic job on this indicator I use it on the 5 min chart, if I can make a suggestion or 2, 1st reg
arding the alert can you code the ability to use alert of choice. 2nd can you include as an extra confirmation signal a
n RSI and Divergence? Sorry if I'm asking too much you already have done a great job-------Thank you.
September 1st, 2023 05:30 PM sunshnpeg
June 25th, 2022 06:09 AM alesiosc
January 10th, 2022 01:33 PM daytrader2021 This is by far the best indicator I have downloaded from this site. Only ask would be a way to move the text out of the
way without going to properties. Outside of that love it.