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: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of bchris888au
Sent: Monday, 13 March 2006 11:10 AM
To: [email protected]
Subject: [amibroker] AFL Question
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
- Visit your group "amibroker" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
