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

[Metastockusers] latches



PureBytes Links

Trading Reference Links




Hi Roy,  this is a common question i'm 
sure.   I'd like to make a sequential  formula  where  
say , if A is correct, wait( implying to check every subsequent bar) until B is 
correct then give a signal,
I thought of IF statements first then your 
latches--  read up on your latch.doc but not much wiser though. i 
thought i'd make a binary  of the Latch 2, seemed to be suitable, a simple 
one as under. 
 
 
  {Example 2}N:=Stoch(10,3)<20 
;X:=Stoch(20,3)>80;I:=Cum(N+X>-1)=1;Tr:=BarsSince(I OR 
N)<BarsSince(I OR X);Tr;
  
  {Example 2  revised  
}N:=Stoch(10,3)<20 
;X:=Stoch(10,3)>80;I:=Cum(N+X>-1)=1;Tr:=BarsSince(I OR 
N)<BarsSince(I OR X);
 
Y:=C>Mov(C,50,S);  {new variable with 
existing X as exit }I:=Cum(N+Y>-1)=1;Tr2:=BarsSince(I OR 
Y)<BarsSince(I OR X);Tr2;     {  this plots 
}
 
am I on the right track here ?  or should I 
look at IF statements instead 
 
thanks  keith






Yahoo! Groups Sponsor


  ADVERTISEMENT  









To unsubscribe from this group, send an email to:
Metastockusers-unsubscribe@xxxxxxxxxxx





Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.