[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: True Strength Index



PureBytes Links

Trading Reference Links

Here's the code for TSI (with -25 and 25 being oversold and 
overbought lines)

TSI = 100 * ( EMA( EMA( C - Ref( C, -1 ) ,25 ) ,13) 
/ EMA( EMA( abs( C - Ref( C, -1) ),25 ), 13 ) );


Plot(TSI,"TSI",43,1); //Plots TSI line

PlotGrid(25,55); // shows white grid line for black background
PlotGrid(-25,-55); // same

Plot(EMA(TSI,7),"TSI signal",32,1);
Plot (-25,"",colorBlue,styleNoLabel); // shows a blue line through -25
Plot (25,"",colorBlue,styleNoLabel); // shows a blue line through 25




--- In amibroker@xxxxxxxxxxxxxxx, "Jerry Gress" 
<pleasenospamplease@xxxx> wrote:
> Below is a formula for a "TCI" that I picked up somewhere but 
forgot to add
> where and who. Used it Intraday for a long time as a filter. 
Suggestion: you
> Programmers that are good enough to write this stuff please put 
your name
> and date in it.
> 
> 
> //_SECTION_BEGIN("TCI");
> 
> ChannelPeriods = Param("Channel Periods",10,1,50,1);
> AvgPeriods = Param("Average Periods",21,1,50,1);
> OverBought = Param("Over Bought Line",64,0,100,1);
> OverSold = Param("Over Sold Line",-64,-100,0,1);
> ColTCI = ParamColor("TCI Line Color",colorBrown);
> ColOB  = ParamColor("Over Bought Color",colorRed);
> ColOS  = ParamColor("Over Sold",colorGreen);
> XSpace = Param("GraphXSpace",7,0,20,0.5);
> 
> n1            = ChannelPeriods;                        // Channel 
periods
> Default is 10.
> n2            = AvgPeriods;                            // Average 
periods
> Default is 21.
> 
> AP            = Avg;                                   //Typical 
Price
> ESA           = EMA(AP, n1);
> D             = EMA(abs(AP - ESA), n1);
> CI            = (AP - ESA) / (0.015 * D);
> TCI           = EMA(CI, n2);
> 
> Plot(TCI,"TCI",ColTCI,1);
> Plot(OverBought,"OB Line",ColOB,8+16);//|styleNoLabel);//8+16
> Plot(OverSold,"OS Line",ColOS,8+16);//|styleNoLabel);
> Plot(n1,"Channel Periods",colorBlue,styleNoLabel |styleNoRescale |
> styleNoDraw);
> Plot(n2,"Avg Periods",colorBlue,styleNoLabel |styleNoRescale | 
styleNoDraw);
> Plot(0,"0",colorRed,styleNoLabel);
> //Plot(100,"",9 ,styleOwnScale | styleArea | styleNoLabel,-5,100);
> //Background pane coloring
> 
> GraphXSpace = XSpace;
> 
> //_SECTION_END();
> 
> 
> Jerry Gress
> Stockton, Ca.
> 
> 
> -----Original Message-----
> From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] 
On Behalf
> Of Lesmond V
> Sent: Sunday, July 17, 2005 12:36 AM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] True Strength Index
> 
> Does anyone have a formula (AFL or any other language) for True
> Strength Index. There is an article in June issue of TASC (p.26)
> where it's claimed that TSI(C,25,13) is more reliable than 
Stochastic.
> 
> TIA
> 
> 
> 
> 
> 
> 
> Please note that this group is for discussion between users only.
> 
> To get support from AmiBroker please send an e-mail directly to 
> SUPPORT {at} amibroker.com
> 
> For other support material please check also:
> http://www.amibroker.com/support.html
> 
>  
> Yahoo! Groups Links




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/DldnlA/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/