February 27th, 2012
Size: 3.10 KB
Downloaded: 1517 times
1140
devdas
Exported using NT Version 7.0.1000.22
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
Don't know if this will work to just post the text of the file in the description box here. Copy all code below here for indicator or text file attached. Pictures should explain. Indicator works fine.
////////////////////////////////
if Displace <= 0 then
begin
condition1 = avg_st crosses over avg_Lt ;
if condition1 then
Alert( "Bullish alert" )
else
begin
condition1 = avg_st crosses under avg_Lt ;
if condition1 then
Alert( "Bearish alert" ) ;
end ;
end;
end ;
The filter follows the EasyLanguage code, which you will find under Figure 6 in the paper cited above. However, it uses a 4-period triangular moving average as input series, where the code example relies on the bar center.
The Distance Coefficient Ehlers Filter is already included with the Bollinger Bands Universal, Keltner Channel Universal, SuperTrend U11 and Heikin Ashi indicators, but I had not made it available so far as a separate download.
Update October 1, 2012: Small bug removed. Indicator will now correctly display when a period of 1 is selected.
Update 7/22/20: added CD volume filter to the CumDelta Divergence indies and reduced calculations to only displayed candles.
Hello Traders, there are 3 indies in this Zip. Two of them (CDDivergence) require Ninjas Order Flow Cum Delta. One uses BA Cum Delta and the other is UpDownTick Cum Delta and paint the candle body if price is going the opposite direction of the Cum Delta.
The other indie will paint the candle body if price is going the opposite direction of the calculated HeikenAshi bar.
They alert you to when something is going on.... is it churn or a reversal? In the pic, the HADivergence is Yellow....Try them with various candle types and see what 'speaks" to you...
Note to users... I have started cutting down the system resource requirements on many of my indicators that do not need a lot of historical data. On these indies, they calculate only what is on the screen. If you want to scroll back, just hit f5 to re-populate the indicator. It's not a huge savings, but every tick counts
Trade Well...
Bob
R1 2/11/2021: I don't use Bloodhound or other automated tools, but one user found that the calculations limited to what is on screen may not work with Bloodhound... I found the issue and it is an easy fix. In the zip are multiple indicators. The original files are still in the Zip and I have added files with "Full" appended to the name that calculates the entire history and should work with Bloodhound. I will add a new version of all of the indicators that I have posted that have the calculation limiter in a similar manner.
February 12th, 2011
Size: 9.25 KB
Downloaded: 262 times
828
pfsmedical
I want to change the ID code to change color when there is current bar cross between DM + DM uphill (blue) and down (red). The other bars are still black. View Source (not working)
using System.Drawing;
using PowerLanguage.Function;
namespace PowerLanguage.Indicator
{
public class DMI_joa : IndicatorObject
{
private DirMovement m_dirmovement1;
November 16th, 2015
Size: 14.72 KB
Downloaded: 104 times
1681
jonxab
Noticed when writing my trading journal (so glad I found this forum, thanks Mike, and all those I've learned from) I was constantly noting the DOM. So, decided to have an indicator that visualized it.
This is ladder based on jtRealStats code (NT downloads) and looks at the ending cumulative volume of bids and asks for each bar. In the code I limited the idx to the 5 levels above and below. Previous postings have noted that a equally-weighted and heavy DOM is one sign of Barb Wire (AL Brooks). Thus, a vaccum for your trading $$$.
COMPATIBILITY:
NinjaTrader 6.5: YES
NinjaTrader 7.0: NO (sam028)
April 8th, 2010 04:18 PM anniebee321 i cannot see any data associated with this indicator?
January 10th, 2010 12:55 PM GoldStandard Thanks again for this tool. It's interesting to be able to view how the buyers/sellers order relationship changes at cer
tain points.
I ran across a site you might find interesting that is doing some work with order book analysis: tradingphysics.net. The
y have some interesting oscillators based on level 2 data & claim to have achieved quite a high success rate with them.
(i have no association with them)
I have a small request if its not too much trouble. For me it's a little bit counter-intuitive that the Total Buy line g
January 9th, 2010 09:18 PM GoldStandard Nice work and thank you! I'm trying this out now on replay mode.
January 7th, 2010 12:44 PM cclsys Thxs alot. I like indicators that give straight info that is otherwise hard to see (like Vwap and POC etc.). I also look
at the DOM alot and suspect this visual translation will prove helpful in learning to read various situations better.
December 9th, 2018 08:33 PM gringa I only recently discovered your indicator, and now can't live without it! It is an excellent tool to use in conjunction
with the ideas taught by David Frost (My Strategic Forecast on YouTube). Trading is much easier because of it.
Thanks!
June 6th, 2016 04:23 PM dilbert618
October 16th, 2014 08:45 AM ShaunG Thank you!
March 23rd, 2012 04:14 PM Southsea Devdas - Thanks so much for the indicator. It's fabulous. Any way you could add a audio alert that sounds with the arr