Registered User 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!
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
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
|
Registered User Joined: 5/11/2013 Posts: 17
|
E-mailed shared chart...Hope it helps
|
Registered User 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
|
Registered User Joined: 5/11/2013 Posts: 17
|
Works in all timeframes.
|