I have created a simple indicator that "paints" regions on the chart based on ADX and EMA.
Very Simple algorithm:
Chart paints regions only when ADX is above a customizable level. Default is 15.
Region Color Green: ADX Rising; EMA Rising (Potentially Bullish Trending)
Region Color Blue: ADX Falling; EMA Rising (Potentially Reversal)
Region Color Red: ADX Rising; EMA Falling (Potentially Bearish Trending)
Region Color Yellow: ADX Falling; EMA Falling(Potentially Reversal)
You can use this indicator as a means of confluence with other strategies you may have.
I am new to this forum and my first attempt at publishing my program. Hence I am not aware of all caveats that I need to include here. But this is merely an indicator that portrays ADX Value and EMA Value movements. This is not by any means a suggestion to trade !!
Please provide your feedback and suggestions. Would appreciate that.
Description
This is an indicator NinjaTrader_Ray published for the September 07 issue of Stocks & Commodities magazine. Converted it to NT7 by fixing the DrawRay code break.
To Import
1. Download the attached file to your desktop
2. From the Control Center window select the menu File > Utilities > Import NinjaScript
3. Select the downloaded file
Automatically draws a line representing the current trend and generates an alert if the trend line is broken. 0 = no signal, 1 = buy signal on down trend break, 2 = sell signal on up trend break
The Directional Trend Index (DTI) was developed by William Blau and published in his book "Momentum, Direction and Divergence".
To determine the value of the DTI William Blau first calculates a composite momentum from both highs and lows of the last days. In a next step both the composite momentum and the absolute values of the composite momentum are smoothed. The smoothed momentum is then divided by the smoothed absolute momentum and the result is multiplied with 100.
Momentum smoothing: William Blau smoothed both momentum and absolute momentum by applying an EMA several times (double or triple smoothing). This indicator allows to use 16 different moving averages for the smoothing. The same moving average type is used for all three average calculations.
Parameters: The lookback period for the momentum the number of bars from which the momentum is calculated. Blau uses a lookback period, which is different from the standard momentum. To obtain a 1-period momentum (price change from the last to the current bar) the Directional Trend Index requires a setting of 2 for the lookback period (default setting).
Signal line: William Blau did not use a signal line for the double smoothed indicators. I have added the signal line, because the cross of the signal line can be used as a trend indication. Moving average type and period for the signal line can be selected.
Histogram: The indicator has an option to plot a histogram, which shows the difference between DTI and signal line.
Trend definition: The indicator exposes the current trend via an IntSeries. The trend can be determined based on the DTI (rising & not oversold, falling & not overbought, neutral), the signal line (rising & not oversold, falling & not overbought, neutral)) or the DTI / signal line crosses. All trend definitions are not straightforward, but require a higher close to switch to an uptrend, or a lower close to switch to a downtrend. Moreover the DTI / signal line cross will only show an uptrend, when not oversold and a downtrend when not overbought.
Paint bars: The paintbars can be used to plot the trend information. The trend states are uptrend, downtrend and neutral trend as explained above. It is possible to apply the indicator to the price panel and unselect the indicator plots. This allows to use the indicator as a "paintbar only" indicator.
Sound alerts: The indicator comes with sound alerts which are triggered when the trend changes. The sound files are included with the zip file and should be manually copied into the directory Documents -> program files (x86) -> NinajTrader 7 -> sounds.
Update March 17, 2014: Option added to select sound files
This Code was Ported from the code of DaveP711 from Futures io in Ninjatrader 8 public download section
For more info check his indicator
I didn't have time to add the signals, maybe at later date.
It is a pair of channels, fast (Trend1 and Trend2) and slow (Trend3 and Trend4)
//**************************************************************************
// Remember:
// Due to limitations of Multicharts instead of visual ordering the study to
// the back it is better to add a second data series after you insert the
// study so candles can be visible and to avoid confluence with other indicators
// you may have.
//**************************************************************************
V1
This is a fantastic Volume based Trend indicator that i have found to be amazing.
It is i think by far, the best tracking volume indicator, i have seen through the years i have been trading.
I am trying to make a system that is based on the Green and Orange signals of effective volume (not the cyan ones) but i am no programmer so i can't do it .
I added the Zeller shark below as it matches through another avenue the signals i try to attain. As you can see they come pretty close, again as i can;t program i can't even make the _Zeller Shark indicator to fire the proper signals.
Imagine that even with the spikes of Zeller indicator and Effective voume combined
i get a decent autotrading system that keeps loosing money on the "bllody" spikes but makes it back afterwards on the runs.
I always use renko bars in all trading and autosystems i make.
So if anyone can make a system or a plain indicator that we can use from effective volume (green and orange signals) i would be really obliged.
Take care all and all the best.
Thanks Big Mike for an astounding site and effort...
This is a collection of various filters by John Ehlers outlined in his books "Rocket Science for Traders" and "Cybernet Analysis for Stocks and Futures".
October 11th, 2015 12:43 PM gpokc thanks for ths indicator.
October 6th, 2011 12:08 AM Default User
May 20th, 2010 12:04 AM chrisflow Neat! But it crashes my NT7 every time I try to use an input other than standard minute or range bars etc. i.e. it crash
October 1st, 2022 04:05 PM Buscador Thanks for sharing
June 20th, 2021 07:53 AM bluedot thanks, appreciated!
November 9th, 2019 05:45 AM Phc1 I think it's better to use the DM indicator as basis , it has the advantage of having the ADX and the DM in combo , wher
e the DM shows momentum as Peter1 mentioned probably . took 2 screenshots :
-https://www.screencast.com/t/TkuRYjY96
-https://www.screencast.com/t/SrMkoaCB1XZK
https://www.investopedia.com/terms/a/adx.asp
November 9th, 2019 05:32 AM Phc1 I share Kcrawford's opinion :
Not bad, but a couple of things:
1) people should be able to change whatever colors to whatever they want
2) set the EMA so that it also can be adjusted, people are going to tinker with it, and want to.
3) set the ADX itself to the range they want there to,
THEN your indicator is complete and everyone can adjust it how they want.
November 8th, 2019 05:20 PM renvik Thanks for your effort.