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

Re: [amibroker] True Strength Index - AFL Code Needed



PureBytes Links

Trading Reference Links


Dickie Paria wrote:

>TSI = 100 * ( EMA( EMA( C - Ref( C, -1 ) ,25 ) ,13) 
>/ EMA( EMA( abs( C - Ref( C, -1) ),25 ), 13 ) );
>  
>
Add this line:

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

>When I save the above as an indicator and insert it - I get blank 
>space!!  What am I doing wrong?  Did I miss a plot or graph line code?
>
>Second qts - how do I incorporate a 'signal' line and the following 
>(read below from Thom Hartle's article in Active Trader)
>
>"Most TSI values fall between +25 and -25, and Blau suggested using 
>these values as overbought and oversold levels, respectively. 
>  
>
Plotgrid(25,55); // shows white grid line for black background
Plotgrid(-25,55); // same

>Blau also advised adding a signal line — in this case, a seven-period 
>EMA of the TSI line — to better indicate trend changes (similar to the 
>role of the signal line in the MACD)."
>  
>
Plot(EMA(TSI,7),"TSI signal",32,1);

Hope this helps,

Wayne

>
>
>
>
>
>
>
>
>
>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 --------------------~--> 
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/cosFAA/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/