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

Re: [EquisMetaStock Group] Calculate 52-week range



PureBytes Links

Trading Reference Links

Hi John


Try this as an exploration column. Make sure you include at least 275 bars of data. Minimum Records will not produce a useful result and neither will securities with less than a full year of data   Always test the various stages (variables) of an exercise like this in the Indicator Builder before attempting to run it in the Explorer. It's much easier to troubleshoot an indicator than an exploration.

A full explanation of the timing mechanism (Signal) will appear in the September issue of MetaStock Tips & Tools.

D:=DayOfMonth();
A:=LastValue(D);
M:=Month();
B:=LastValue(M);
Y:=M*31+D-(M>B OR (M=B AND D>A))*372;
Signal:=Y<Ref(Y,-1);
YearHigh:=LastValue(HighestSince(1,Signal,H));
YearLow:=LastValue(LowestSince(1,Signal,L));
Range:=YearHigh-YearLow;
100*Range/YearLow;


Regards

Roy
www.metastocktips.co.nz

 
----- Original Message ----- 
From: johng9999 
To: equismetastock@xxxxxxxxxxxxxxx 
Sent: Wednesday, September 06, 2006 9:10 AM
Subject: [EquisMetaStock Group] Calculate 52-week range


Since no one replied to my recent post, I may not have explained my 
problem clearly. I am new to this,but all of my attempts have met with 
syntax errors.

All I am trying to do is calculate in Explorer the most recent 52-week 
range expressed as a percent of the 52-week Low price.

Thank you for any help you can provide.......John



 

[Non-text portions of this message have been removed]



 
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/