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

[Metastockusers] Re: Decreasing Range: Best way to code for



PureBytes Links

Trading Reference Links


I have used this trick countless times, with many variations... I got 
it from Support, years ago.

Trader Joe...

--- In Metastockusers@xxxxxxxxxxxxxxx, "Roy Larsen" <rlarsen@xxxx> 
wrote:
> Hi Jim
> 
> Jose Silva gave me that tip for reducing code, it wasn't my own 
bright idea.
> 
> Regards
> 
> Roy
> 
> 
> > 
> > Roy,
> > 
> > Oh, okay. That's pretty neat. I had to wrap my head around
> > Ref(H-L,-1)>=(H-L) being something other than an integer and all 
is well.
> > 
> > Thanks,
> > 
> > Jim
> > 
> > 
> > ----- Original Message ----- 
> > From: "Roy Larsen" <rlarsen@xxxx>
> > To: <Metastockusers@xxxxxxxxxxxxxxx>
> > Sent: Tuesday, December 07, 2004 9:06 PM
> > Subject: Re: [Metastockusers] Decreasing Range: Best way to code 
for
> > 
> > 
> >>
> >> Hi Jim
> >>
> >> > Can you help me understand how this works?
> >> >
> >> > Sum(Ref(H-L,-1)
> >> >
> >> > [the sum of yesterday's HI - LOW]
> >> >
> >> >    >=
> >> >
> >> > [Is greater than or equal to]
> >> >
> >> >    (H-L),3) =3
> >> >
> >> > [This part I can't parse...]
> >>
> >> Look at it in a different way.
> >>
> >> Ref(H-L,-1)>=(H-L)  evaluates the current bars range against the 
previous
> > bars range, OK?
> >>
> >> Now what you want to do is check whether the same expression was 
was true
> > on the on the previous
> >> bar, and the bar before that?
> >> The expression being TRUE for three contiguous bars in fact.
> >>
> >> Sum the result of the expression for three bars and check that 
the answer
> > is three.
> >>
> >> Sum(  Ref(H-L,-1)>=(H-L)  , 3 {sum expression result for 3 
bars }  ) =3
> > {if expression is true for
> >> 3 bars in a row the sum result must be 3}
> >>
> >> > BTW, your help with the IF function in the Improved OBV worked 
fine.
> >>
> >> Was that me?
> >>
> >> > My skills will get better with a little practice. I'd love to 
say it's
> > all
> >> > coming back to me now, but I'd be lying.
> >>
> >> I know the feeling.
> >>
> >> Kind regards
> >>
> >> Roy Larsen
> >> www.metastocktips.co.nz
> >> Free formulas and MS links
> > 
> > 
> > 
> > 
> > 
> > 
> > Yahoo! Groups Links
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >





------------------------ Yahoo! Groups Sponsor --------------------~--> 
$4.98 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/Q7_YsB/neXJAA/yQLSAA/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/