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

[EquisMetaStock Group] Re: Trend Strength Indicator



PureBytes Links

Trading Reference Links

Preston,

I wasn't having a go at you or your code.  If you got the wrong
impression - sorry.

I was just posting a slight variation of the code you created to make
it a little easier for the simpletons like me to understand.  Your
code is excellent, and as you righly pointed out can be modified in
many, many ways.  I just had to simplify it a bit so I could get the
full appreciation of what the indicator was trying to show.  I thought
this might have been useful for the others here too.

Here is another slight modification that your reply prompted, that
some people also might like to try, its just an extension of the
simplified version to take into account different price data and MA types:

{Trend Strength Indicator}
{for metastock, coded by P Umrysh}
{from the August 2005 issue of Active Trader Magazine}
{modified by wabbit 09Jul05}

x:=Input("Data: 1-O 2-H 3-L 4-C 5-MP 6-Typ",1,6,4);
x:=If(x=1,O,If(x=2,H,If(x=3,L,If(x=4,C,If(x=5,MP(),Typical())))));

MA:=Input("MA Type: 1-S 2-E",1,2,1);

PRD:=Input("MA Periods",1,100,10);
STEP:=Input("MA Steps",1,50,10);

(x>If(MA=1,Mov(x,PRD+(STEP*0),S),Mov(x,PRD+(STEP*0),E)))+
(x>If(MA=1,Mov(x,PRD+(STEP*1),S),Mov(x,PRD+(STEP*1),E)))+
(x>If(MA=1,Mov(x,PRD+(STEP*2),S),Mov(x,PRD+(STEP*2),E)))+
(x>If(MA=1,Mov(x,PRD+(STEP*3),S),Mov(x,PRD+(STEP*3),E)))+
(x>If(MA=1,Mov(x,PRD+(STEP*4),S),Mov(x,PRD+(STEP*4),E)))+
(x>If(MA=1,Mov(x,PRD+(STEP*5),S),Mov(x,PRD+(STEP*5),E)))+
(x>If(MA=1,Mov(x,PRD+(STEP*6),S),Mov(x,PRD+(STEP*6),E)))+
(x>If(MA=1,Mov(x,PRD+(STEP*7),S),Mov(x,PRD+(STEP*7),E)))+
(x>If(MA=1,Mov(x,PRD+(STEP*8),S),Mov(x,PRD+(STEP*8),E)))+
(x>If(MA=1,Mov(x,PRD+(STEP*9),S),Mov(x,PRD+(STEP*9),E)))

wabbit :D






------------------------ 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/BefplB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

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

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

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