New version 18 available now


Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Traders Dynamic Index - Formula conversion from Ninjatraders Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
SweetAndSour
Posted : Tuesday, October 31, 2017 1:13:29 PM
Gold Customer Gold Customer

Joined: 5/26/2017
Posts: 25

I wanted to ask whether someone can translate this TDI from Ninjatrader into an Indicator in TC2000?

double stdDevNumber = 1.62;
 
DYNRSI = RSI(Input, 20, 1); // Input = Dataseries, 20 = Period, 1 = Smoothing
DYNPrice = SMA(DYNRSI, 7);
DYNSignal = SMA(DYNRSI, 25);
DYNAverage = SMA(DYNRSI, 34);
SDBB = StdDev(DYNRSI, 34);
 
avg = DYNAverage;
stdDevValue = SDBB;
 
Upper = (avg + stdDevNumber * stdDevValue);
Lower = (avg - stdDevNumber * stdDevValue);
 
AddLine(Brushes.Gray, 50, "Baseline");
AddLine(Brushes.Gray, 68, "Upper");
AddLine(Brushes.Gray, 32, "Lower");
 
The 3 lines at the bottom define the lower, middle and upper boundary.
 
The follow conditions can considered:
 
- go long, if Priceline > 50
- go short if Priceline < 50
- consider an exit, if Priceline is above 68-5 or below 32+5
- go long if Priceline > Signalline
- go short if Priceline < Signalline
- exit if Priceline crosses Signalline
- trendfilter long, when Priceline > Midband
- trendfilter short, when Priceline < Midband
- add to long, when Priceline > BollingerBand.Upper
- add to short, when Priceline < BollingerBand.Lower
 
Thanks for your help!

 

Bruce_L
Posted : Tuesday, October 31, 2017 1:25:35 PM


Worden Trainer

Joined: 10/7/2004
Posts: 64,136

As far as I can tell, it is just a 20 period Wilder's Relative Strength Index (RSI - Wilder's) with 7, 25, and 34 period simple moving averages and 34 period Bollinger Bands added to the RSI.

There would be gray horizontal lines added to the chart at 32, 50, and 68.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
raynd
Posted : Tuesday, October 31, 2017 2:33:46 PM
Gold Customer Gold Customer

Joined: 5/11/2013
Posts: 15

E-mailed shared chart...Hope it helps

SweetAndSour
Posted : Wednesday, November 01, 2017 7:19:15 AM
Gold Customer Gold Customer

Joined: 5/26/2017
Posts: 25

QUOTE (raynd)

E-mailed shared chart...Hope it helps

 

Hi raynd,

Thanks for your Charts.

Is the TDI configuration in your TDI chart for a daily chart? Can it be used also in a weekly chart?

Krgds

raynd
Posted : Wednesday, November 01, 2017 1:07:46 PM
Gold Customer Gold Customer

Joined: 5/11/2013
Posts: 15

Works in all timeframes.

Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.