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

Re: [EquisMetaStock Group] Re: RSI Fractal coding question



PureBytes Links

Trading Reference Links

Hi,

res:= ValueWhen(1 ,RSI(C,9) > Ref(RSI(C,9),-1)  AND RSI(C,9) > Ref(RSI(C,9),-2) AND RSI(C,9) > Ref(RSI(C,9),1) AND RSI(C,9) > Ref(RSI(C,9),2),
RSI(C,9));
sup:= ValueWhen(1 ,RSI(C,9) < Ref(RSI(C,9),-1)  AND RSI(C,9) < Ref(RSI(C,9),-2) AND RSI(C,9) < Ref(RSI(C,9),1) AND RSI(C,9) < Ref(RSI(C,9),2),
RSI(C,9));
res;
sup;
for metastock ver < 8 replace RSI(c,9) with RSI(9)

Harish Chheda
t_r_a_d_e_r2001 wrote:
I should clarify that I was trying to code for the value of a high 
made by the RSI which had been preceded and followed by 2 lower 
highs of the RSI. I still can't see why the code I gave is not valid.

--- In equismetastock@xxxxxxxxxxxxxxx, pumrysh <no_reply@xxxx> wrote:
  
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/
 



  



Yahoo! Groups Links