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

Re: [amibroker] Backtest for Specific Stocks



PureBytes Links

Trading Reference Links

Hi,

Maybe you can try with designing variables.

E.g.

aaa = foreign ("aaa","c");
bbb = foreign ("bbb","c");

cond 1 = aaa> ma (aaa,200);
cond2 = bbb> ma (bbb,150);

Buy = cond1 or cond2;
etc.

I hope it helps,

Louis

2008/6/3 steve_almond <steve2@xxxxxxxxxxxxxxxxxxxx>:

I have a universe of just 5 stocks (AAA, BBB, CCC, DDD, EEE).
I want to do a portfolio backtest where each stock will be bought and
sold when it satisfies its own specific indicator.

For example:

Buy AAA when AAA closes above the 200 day MA. Sell AAA when it closes
below the 200 day MA.

Buy BBB when BBB closes above the 150 day EMA. Sell BBB when it
closes below the 150 day EMA.

Buy CCC when the RSI(14) of CCC closes below 30. Sell CCC when the RSI
(14) of CCC closes above 70.

Etc. Etc.

I'm unsure how to "select" the individual stocks in this way. Can
anyone help?

Steve


__._,_.___

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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___