PureBytes Links
Trading Reference Links
|
Neat! Thanks for the clear explanation and great product. I've
decided to register and will do so over the weekend. Thanks again.
--- In amibroker@xxxx, "Tomasz Janeczko" <tj@xxxx> wrote:
> 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
|