Australian (ASX) Stock Market Forum

Metastock Code - 52 Week Highs

Joined
4 October 2012
Posts
871
Reactions
3
2 months ago the hard-drive in my computer died. Unfortunately piggy here forgot (or just being plain lazy) hadn't backed up his data for a while. Consequently, some of the codes I had used before have been lost. I did try yesterday (via google) try to find one for 52 week highs but all 5 of them didn't work.

So does anyone have an easy MS formula made up that I could use please?

Cheers
PB
 
Hi PB

High of current bar is the highest in the last year.

H>Ref(HHV(H,260),-1) {Daily}
H>Ref(HHV(H,52),-1) {Weekly}

If this doesn't provide the answer then it may be worthwhile posting the code for the other 5 that didn't make the grade.

Cheers
rnr
 
Hi PB

High of current bar is the highest in the last year.

H>Ref(HHV(H,260),-1) {Daily}
H>Ref(HHV(H,52),-1) {Weekly}

If this doesn't provide the answer then it may be worthwhile posting the code for the other 5 that didn't make the grade.

Cheers
rnr

Hi rnr,

I sincerely apologize for not having thanked you sooner but it appears it was an oversight on my part:(.

It certainly worked ok (like a dream) but given that there are more 52 week lows nowadays, could I be cheeky in asking what I have to change in the formula to get the unloved stocks into the report?

H>Ref(HHV(H,260),-1) {Daily}

Thanking you in advance of your reply.

Regards
PB
 
Hi PB

All good and apology accepted.

This should help you report on those "unloved stocks".

L<Ref(LLV(L,260),-1) {Daily}

Cheers

rnr
 
Hi PB

All good and apology accepted.

This should help you report on those "unloved stocks".

L<Ref(LLV(L,260),-1) {Daily}

Cheers

rnr

Thanks once again rnr - it worked first time (every-time);).

Here are the stocks that came up on my 52 week lows & highs.

140930 H&L ORIGINAL (PAINT)s.gif
 
is there an easy way to find 52 week highs? maybe its own thread?

(I suspect the tally of 52 week lows would be overrun at present)
 
292 of them, most are rubbish as even the hopeless ones would have lifted with the market in the last few days
Ha yes. a place not worth going

(incidentally... "2020 - celebrating 37 yrs"; still got any pre CGC holdings? <I've got some BHP>
 
I search for a 21 day HHV, sometimes the 10day HHV. Have the lookback setup as an adjustable parameter.
AmiBroker code:
LookBackPeriod = Param("Look back period (days)",21,1,260,1);
NewHigh = High > Ref(HHV(High,LookBackPeriod),-1);
 
Top