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
YAHOO! GROUPS LINKS
|