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

[EquisMetaStock Group] Re: RSI Fractal coding question



PureBytes Links

Trading Reference Links

Bill,

When you code, set it up like this:

{ValueWhen(Nth, Expression, Data Array)}
ValueWhen(1 ,
RSI(9)>Ref(RSI(9),-1) AND 
RSI(9)>Ref(RSI(9),-2),
RSI(9))

Dusant has already explained the forward reference.
The code above works. It says this is the value of the RSI(9) 
when it is above yesterday and the day before.

Preston


--- In equismetastock@xxxxxxxxxxxxxxx, "t_r_a_d_e_r2001" 
<priest_bill@xxxx> wrote:
> Hi,
> 
> Can anyone see a problem with this code ? Metastock states that "this 
> variable or expression must contain only constant data". Thanks in 
> advance.
> 
> 
> ValueWhen(1 ,(RSI(9)>Ref(RSI(9),1) AND RSI(9)>Ref(RSI(9,2) AND RSI(9)
> >Ref(RSI(9),-1) AND RSI(9)>Ref(RSI(9),-2),RSI(9))




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/cosFAA/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/