PureBytes Links
Trading Reference Links
|
--- In Metastockusers@xxxxxxxxxxxxxxx, Ron <ronber@xxxx> wrote:
>
> Hi all -
>
> I'm trying to write the code that returns the value of the highest
high
> of the highs since the lowest low of the last 10 days exclusive of
> yesterday's low (defined elsewhere as a bottom).
> The following works for getting the highest high since the second
most
> recent bottom:
> Bottom:=Ref(L,-1)<L
> AND
> Ref(L,-1)<Ref(L,-2);
>
> HighestSince(2,Bottom,H)
>
> It gives me results that are close to what I want.
> It fails at least under the following conditions:
> there is a bottom that is the second most recent bottom and
> the low of that bottom is higher than the lowest low and
> there is a higher high before that bottom.
>
> I'd like some help to get the highest high I'm looking for directly.
>
> TIA
> Ron
If I am understanding this correctly:
First find the day with the lowest low in the eight days previous to
yesterday? Then find the highest high since that day?
HighestSince(1,L<=Ref(LLV(L,8),-2),H)
Does this answer your problem? If not then call.
To unsubscribe from this group, send an email to:
Metastockusers-unsubscribe@xxxxxxxxxxx
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/zMEolB/TM
---------------------------------------------------------------------~->
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/Metastockusers/
To unsubscribe from this group, send an email to:
Metastockusers-unsubscribe@xxxxxxxxxxxxxxx
Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|