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

[EquisMetaStock Group] Re: Need help in coding a reference to High/Low of previous bar



PureBytes Links

Trading Reference Links

Sorry, I inadvertently pressed the send button, before the script was 
finished...

--- In equismetastock@xxxxxxxxxxxxxxx, "bellamy_29m" 
<bellamy_29m@xxxx> wrote:
> Have a look throught the Users manual for the Ref() function.  This 
> will help you out with your query.
> 
> To answer your question for you, you can do what are trying to 
> achieve a number of ways:
> 
> This way will achieve you aim, bit is a little clumsy and doesn't 
> look that neat:
> ref(c,-1)>ref(mov(c,50,s),-1) and c>mov(c,50,s)
> 

whereas this is a little neater:
x:=c>mov(c,50,s);
{find the first bullish region bar}
y:=x and ref(x=0,-1);
{the high of the first bullish region bar}
h>valuewhen(1,y,h)

> 
> Have a good read, also, of the Equis Formula Primer...
> 
> Hope this helps.
> 
> wabbit
> 
> <snip>



------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/BefplB/TM
--------------------------------------------------------------------~-> 

 
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/