PureBytes Links
Trading Reference Links
|
{format TSI(Price,r,s,u)}
{true strength index by blau}
Inputs:Price(NumericSeries),r(NumericSimple),
s(NumericSimple),u(NumericSimple);
Value1=100 * TXAverage(Price - Price[1],r,s,u);
Value2=TXAverage(AbsValue(Price - Price[1]),r,s,u);
IF Value2 <> 0 then
TSI=Value1/Value2
Else
TSI=0;
But the bravest are surely those who have the greatest vision
of what is before them, glory and danger alike.
And yet notwithstanding go about and meet it.
"Thucydides" 404 BC.
----- Original Message -----
From: "Michael Harris" <hicap92fs@xxxxxxxxx>
To: "Omega List" <omega-list@xxxxxxxxxx>
Sent: Wednesday, December 12, 2001 8:58 AM
Subject: True Strength Index - September Active Trader Magazine
> Does anyone have TS2K code for the True Strength Index, as described in
> the September issue of Active Trader Magazine?
>
> The code as presented in the article is:
>
> TSI(close,r,s) = 100*EMA(EMA(mtm,r),s)/EMA(EMA(|mtm|,r),s)
>
> where mtm = closetoday - closeyesterday
>
> EMA(mtm,r) = exponential moving average of mtm with period length = r
>
> EMA(EMA(mtm,r),s) = exponential moving average of EMA(mtm,r)
> with period length = s
>
> |mtm| = absolute value of mtm
>
> r = 25, s = 13
>
> Thanks in advance.
> Mike
>
>
>
|