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

[amibroker] Re: AFL Question



PureBytes Links

Trading Reference Links

You may use the Valuewhen function
valuewhen(EXPRESSION, ARRAY, n = 1)
as EXPRESSION, you may use a simple condition as Buy or a more 
complicated as (Buy AND Datenum()==990320), for the ARRAY you want to 
learn 
DT
--- In amibroker@xxxxxxxxxxxxxxx, "Steve_Almond <steve_almond@xxxx>" 
<steve_almond@xxxx> wrote:
> I asked a question in message no. 34650 which may have been badly 
> explained.
> Let me ask a simpler question:
> 
> I get a series of trade dates from a backtest of a simple system 
> (say, DJI crosses above/below its 100 day SMA). Can I now take 
these 
> trade dates and use them in a further backtest/exploration, such as:
> 
> on 20/03/1999 what were the ten stocks with the highest ROC(c,20) 
> from Watchlist no.7?
> Can AFL use an actual date in this way, rather than Ref(XX,-5)?
> 
> Steve


Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/