Quote from cunparis:
Perhaps you are correct. Would you mind telling me how I could implement this "simple" system? It is very simple to do manually but to automate it, it seems to be quite complicated and require custom programming. Maybe Amibroker is better adapted for this?
1. scan a watchlist for the x stocks that best fit a custom criteria
You could implement this as a pre-scan or during the system. I'll do it during the scan. Let's make it that the stocks have to be above their 200ma
BuySignal1 = C > MA(C,200);
2. figure out how much of each to buy based on standard position sizing rules
You could size off of ATR if you like, or you simply say "max five positions" - that would look something like:
PosQty = 5;
SetOption("MaxOpenPositions", PosQty );
PositionSize = -100/PosQty;
3. figure out the stop loss to put
I'll just apply a simple stop as an example:
ApplyStop(stopTypeLoss,stopModePercent,10,exitatstop=1);
4. place the order
Buy = BuySignal1 AND (other criteria);
5. when a position is exited, go back to #1 keeping in mind a max of X positions can be open.
Happens automatically.
Hope this helps....
It seems that most software is set up to run a scan on one instrument or watchlist and execute it. The problem appears to be the first step which is to have a max X positions and to rank the stocks in the watchlist so that the best ones are traded.
If this is easily done with Amibroker I would like to re-install it and spend more time with it.
Thanks for your help.