BuyTrigger = iif(BuySignal,-1)==1 and
High>Ref(Hgh,-1)1,0);
This must be processed at the close of day after
BuySignal. So you would have BuySignal True for yesterday and today's high is
greater than yesterday's high ... and you trade tomorrow.
Ara
----- Original Message -----
Sent: Thursday, October 27, 2005 10:14
PM
Subject: Re: [amibroker] delaying the
buy
A similar problem to Yuki - but not only
do I want to delay the buy by one day, but the trigger must be a higher
high for a trade to occur
I.E.
BuySig= buy condition
occurs
BuyTrig=next day's high is greater than BuySig
high
How would this be expressed in
AFL.
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
|