Traders Dynamic Index TDI

Category: Indicators By: Nicolas Created: October 11, 2015, 9:49 PM
October 11, 2015, 9:49 PM
Indicators
12 Comments

Here is the code for the famous Traders Dynamic Index aka the “TDI”.

//parameters
// lengthRSI = 13
// lengthband = 34
// lengthrsipl = 2
// lengthtradesl = 7

r = rsi[lengthrsi](close)
ma = average[lengthband](r)
offs = (1.6185 * std[lengthband](r))
up = ma+offs
dn = ma-offs
mid = (up+dn)/2
mab = average[lengthrsipl](r)
mbb = average[lengthtradesl](r)

lineup = 68
linemid = 50
linedown = 32

RETURN lineup as "line up", linemid as "line mid", linedown as "line down", up coloured(0,238,238) as "up", dn coloured(0,238,238) as "dn", mid coloured(255,165,0) as "mid", mab coloured(0,255,0), mbb coloured(255,0,0)

 

Download
Filename: Trader-Dynamic-Index-TDI.itf
Downloads: 1262
Nicolas Master
I created ProRealCode because I believe in the power of shared knowledge. I spend my time coding new tools and helping members solve complex problems. If you are stuck on a code or need a fresh perspective on a strategy, I am always willing to help. Welcome to the community!
Author’s Profile

Comments

Logo Logo
Loading...