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

RE: [amibroker] AFL Question



PureBytes Links

Trading Reference Links

xao= Foreign("xao","Close");

xaobuy = cross(xao, MA(xao, 20));

xaosell = cross(MA(xao, 20), xao);

intrade = flip(xaobuy, xaosell);

buy1 = ...... your buy condition

Buy = buy1 AND intrade;

sell1 = .......your condition here

Sell = sell1 or !intrade



From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of bchris888au
Sent: Monday, 13 March 2006 11:10 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] AFL Question

Hello,

I want to back test a system that only enters if the index XAO has a
moving average cross over.

For example, if the XAO's close is greater than it's twenty day moving
average and company XYZ's close is greater than it's own 24 day moving
average, then buy.

However, I'm not shaw how to write the XAO filter part into the
backtest...

Help.






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





SPONSORED LINKS
Investment management software Real estate investment software Investment property software
Software support Real estate investment analysis software Investment software


YAHOO! GROUPS LINKS