StockFetcher Forums · Filter Exchange · Trend Intensity Index<< >>Post Follow-up
tomm1111
198 posts
msg #69734
Ignore tomm1111
12/10/2008 12:52:40 AM

Taken from a S&C article (June2002) by M.H Pee and modified (of course!). The Trend Intensity Index (TII) is used to indicate the strength of a current trend in the market. I modified the TII to indicate long or short positions. Going from 0 to 100 is long and 100 to 0 is short. This is works in progress. Working on other criteria to reduce hit rate and improve quality.

(Chetron, I think this works in the nose bleed section, but I'm not 100% sure.)

Fetcher[
/* Trend Intensity Index */
set{calc_ma,cma(close,10)}

set{sdp1,close - calc_ma}
set{varp,0}
set{sdp2,max(sdp1,varp)}
set{sdp,sum(sdp2,1)}

set{sdn1,calc_ma - close}
set{varn,0}
set{sdn2,max(sdn1,varn)}
set{sdn,sum(sdn2,1)}

set{sdc,sdn + sdp}
set{sdc1,sdp / sdc}
set{TII,sdc1 * 100}

draw TII

show stocks where close is above 1
and volume is above 100000

add column TII
]



chetron
2,817 posts
msg #69739
Ignore chetron
modified
12/10/2008 6:40:35 AM

THANX TOMM!

MAYBE...

Fetcher[

/* GOING LONG */

/* Trend Intensity Index */
set{calc_ma,cma(close,10)}

set{sdp1,close - calc_ma}
set{varp,0}
set{sdp2,max(sdp1,varp)}
set{sdp,sum(sdp2,1)}

set{sdn1,calc_ma - close}
set{varn,0}
set{sdn2,max(sdn1,varn)}
set{sdn,sum(sdn2,1)}

set{sdc,sdn + sdp}
set{sdc1,sdp / sdc}
set{TII,sdc1 * 100}

draw TII
DRAW SDP1
DRAW SDP
DRAW SDN1
DRAW SDN

show stocks where close is above 1
and volume is above 100000

add column TII


]



StockFetcher Forums · Filter Exchange · Trend Intensity Index<< >>Post Follow-up

*** Disclaimer *** StockFetcher.com does not endorse or suggest any of the securities which are returned in any of the searches or filters. They are provided purely for informational and research purposes. StockFetcher.com does not recommend particular securities. StockFetcher.com, Vestyl Software, L.L.C. and involved content providers shall not be liable for any errors or delays in the content, or for any actions taken based on the content.


Copyright 2016 - Vestyl Software L.L.C.Terms of Service | License | Questions or comments? Contact Us
EOD Data sources: DDFPlus & CSI Data Quotes delayed during active market hours. Delay times are at least 15 mins for NASDAQ, 20 mins for NYSE and Amex. Delayed intraday data provided by DDFPlus