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

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



PureBytes Links

Trading Reference Links

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 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/