Uncategorised

Traders Dynamic Index (TDI) for Multicharts

The Code below is for the Traders Dynamic Index (TDI) and is written in PowerLanguage.

Inputs: 
  Price( Close ),
  RSIPeriod(13),
  PriceLinePeriod(2),
  SignalLinePeriod(7),
  AverageLinePeriod(34),
  LevelH(68),
  LevelM(50),
  LevelL(32);


vars: 
  RSILine(0),
  PriceLine(0),
  SignalLine(0),
  AverageLine(0),
  BandsLineU(0),
  BandsLineL(0);
  
  
RSILine = RSI( Price, RSIPeriod);
PriceLine = Average (RSILine,PriceLinePeriod);
SignalLine = Average (RSILine, SignalLinePeriod);
AverageLine = Average (RSILine, AverageLinePeriod);
BandsLineU = BollingerBand (RSILine, 34, 1.62);
BandsLineL = BollingerBand (RSILine, 34, -1.62);

Plot1( PriceLine, "PriceLine", green);
Plot2( SignalLine, "SignalLine", red);
Plot3( AverageLine, "AverageLine", yellow);
Plot4( BandsLineU, "BandsUp", blue);
Plot5( BandsLineL, "BandsDown", blue);
Plot6( LevelH, "LevelHigh", white);
Plot7( LevelM, "LevelMedium", white);
Plot8( LevelL, "LevelLow", white);

 

The code presented above is from the futures.io forum.

The indicator can also be downloaded here:

 

Have fun with the indicator!

David

 

 

 

Disclaimer:

This content is purely informative in nature and does not constitute any offer, inducement, recommendation, or legal or financial advice by the author. In particular, the published information is not to be understood to be an offer of sale of any registered or unregistered securities or an investment proposal of any kind. It is general information provided purely for information purposes and is based on proprietary knowledge, information furnished by third parties, and publicly accessible sources considered reliable by the author.

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *