| 
 Sorry, my mistake ... did it in aa hurry... it 
should be: 
  
BuyTrigger=IIf(Ref(BuySignal,-1)==1 AND 
High>Ref(High,-1)1,0); 
SellTrigger=IIf(Ref(SellSignal,-1)==1 AND 
Low<Ref(Low,-1)1,0); 
  ----- Original Message -----  
  
  
  Sent: Thursday, October 27, 2005 11:52 
  PM 
  Subject: Re: [amibroker] delaying the 
  buy 
  
  
  Thanks Ara, but I am getting a syntax error 
  message at the Buy Trigger line. 
    
    
    
  /* Close above the 10 day MA with 1 day delayed 
  buy*/ 
    
    
    
  BuySignal = Close > MA ( Close, 10 
  ); SellSignal = Close < MA ( Close, 10 ); 
    
  BuyTrigger=IIf(BuySignal,-1)==1 AND 
  High>Ref(High,-1)1,0); SellTrigger=IIf(SellSignal,-1)==1 AND 
  Low<Ref(Low,-1)1,0); 
    
  Buy=BuyTrigger; Sell=SellTrigger; 
    
  Ian 
  
Please note that this group is for discussion between users only. 
 
To get support from AmiBroker please send an e-mail directly to  
SUPPORT {at} amibroker.com 
 
For other support material please check also: 
http://www.amibroker.com/support.html 
 
  
    
  
  
  
    SPONSORED LINKS
   
       
  
 
  
    
  YAHOO! GROUPS LINKS
 
 
    
  |