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

[amibroker] Re: Pick top 5 stocks based on PositionScore



PureBytes Links

Trading Reference Links

Of course, as soon as I posted this, I got the idea to search
"rotation" and found EnableRotationalTrading() !

Does anyone know if there's a way to not let this mode buy more of the
same stocks one already owns ?

Thanks,
HB

--- In amibroker@xxxxxxxxxxxxxxx, "hmab1" <hmab@xxx> wrote:
>
> Hello,
> 
> It's been a while since I've done some AFL and I'm just getting back
> into system building again. So I'm a bit rusty ;)
> 
> I'm trying to build a system that ranks all stocks based on a certain
> position score.  At the first trading day of every month, I want to
> rebalance the portfolio by making sure that I'm holding the top 5
> stocks based on this score.
> 
> How would I accomplish such a thing ? 
> 
> I know how to calculate the score and how to determine the beginning
> of the month but how do I:
> - determine the top 5 for that day
> - determine if the stocks I'm currently holding are in these top 5
> - if what I'm holding is not in these top 5 then sell whatever is not
> in the top 5 and buy the highest ranking stock(s) from these top 5 to
> bring my portfolio size back up to 5 stocks
> 
> I'm drowning in valuewhen, cum, and sum so any tips would be much
> appreciated.
> 
> Thanks,
> HB
>




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
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/