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

Re: [amibroker] Newbie Automatic Analysis Question



PureBytes Links

Trading Reference Links

Hi,

Thank you for your e-mail and trying AmiBroker!

As for AFL formulas:
There are 3 kinds of them:
a) custom indicators (they contain graph0, graph1... variable assignenents)
b) commentaries (they contain WriteVal, WriteIf function calls)
c) trading systems (the contain buy/sell variable assignments).

I use also the following naming convention:
Name_i.afl - indicator ( _i suffix )
Name_c.afl - commentary ( _c suffix )
Name_s.afl - trading system ( _s suffix )

For an example of the trading system you can
take a look at KST_s.afl file supplied with AmiBroker installation.

Just go to the Analysis->Automatic Analysis window
Click "Load" button, browse to "C:\Program Files\AmiBroker\AFL" folder
and choose "KST_s.afl" file and click "Open".

The following code will be loaded:
/*MARTIN PRING'S KST MOMENTUM SYSTEM FOR 
SHORT TERM TRADING USING DAILY DATA.
PROGRAMMED BY CARLTON McEACHERN
carlton.mceachern@xxxx 
MAY 19, 2000*/

KST = (MA(ROC(CLOSE,10),10) * 1) +
(MA(ROC(CLOSE,15),10) * 2) +
(MA(ROC(CLOSE,20),10) * 3) +
(MA(ROC(CLOSE,30),15) * 4);

BUY = CROSS(KST , MA(KST, 109));
SELL = CROSS(MA(KST , 120) , KST);

The last two lines define required BUY/SELL variables.

Simply said AmiBroker needs to know when a buy and sell
signals are generated by your system in order to
perform a back-test.

Hope it helps,

Best regards,
Tomasz Janeczko
===============
AmiBroker - the comprehensive share manager.
http://www.amibroker.com

----- Original Message ----- 
From: <jhlaufer@xxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Thursday, March 15, 2001 8:47 PM
Subject: [amibroker] Newbie Automatic Analysis Question


> I've just downloaded Amibroker and was taking a look its Automatic 
> Analysis feature. It looks like this is fairly powerful--along the 
> lines of AIQ, etc., but I am unable to test any scans. Any attempt to 
> scan either all stocks or the current stock using any of the sample 
> AFL files results in the error message: "Missing buy/sell variable 
> assignments".
> 
> Where/how do I enter buy/sell variable assignments or otherwise solve 
> this error? 
> 
> Thanks. 
> 
> 
> 
> 
> 
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
> 
>