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

[amibroker] Re: Placing orders for only the highest scored tickers



PureBytes Links

Trading Reference Links

Hi Herman,

It is always interesting to read how others use the CBT, and like 
you, I've played around with using (Static)VarSet, etc. within CBT

Don't know if you saw my earlier e-mails of a few days ago re dynamic 
rebalancing. Basically, due to mandates, I need to assess my risks on 
both an absolute and a relative basis. The latter means I want to be 
long all constituents of my benchmark, but then take "active bets" by 
underweighting or overweighting my positions versus the official 
relative weights in the benchmark. So, I have my scores (which are 
not complicated) and want to enter all of them as trades, in the 
sense of rebalancing trades (i.e. scale-in/out) depending on the 
score. 

For that purpose I tried indeed to use VarSet, as well as 
StaticVarSet to define WITHIN the CBT my relative weights referring 
to "external" arrays for benchmark weights which I then tweak to 
STOCK-SPECIFIC arrays of active weights. The difference between the 
latter and the "current PosValue" then becomes the amount to 
ScaleIn/Out. It turns out, or at least that is my conclusion, that 
you cannot do this in CBT.

In summary, you can dynamically rebalance your portfolio by way of 
PositionScore, but not by PositionSize, because this only refers to 
the entry-date of a trade, not the intermediate sizes. 

If you (or anybody else dealing with these issues) have any thoughts, 
or even better a solution, on this, please let me know.

Sorry if this turns out to be too much OT, but I'm desperate for a 
solution to what seems to me an obvious trading strategy.

PS



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/