PureBytes Links
Trading Reference Links
|
Yup!
--- In amibroker@xxxxxxxxxxxxxxx, "bistrader" <bistrader@xxx> wrote:
>
> I had this as well, but was thinking that I could not do within Rotational trading. You seem to be saying that you: (1) call function to get count say 99, (2) set maxopenpositions to round(count). Yes?
>
> --- In amibroker@xxxxxxxxxxxxxxx, "droskill" <droskill@> wrote:
> >
> > Figured this out:
> >
> > function CountWatchList( listnum )
> > {
> > // retrive comma-separated list of symbols in watch list
> > list = CategoryGetSymbols( categoryWatchlist, listnum );
> >
> > Count = 0; // just in case there are no watch list members
> >
> > for( i = 0; ( sym = StrExtract( list, i ) ) != ""; i++ )
> > {
> > Count = Count + 1;
> > }
> > return Count;
> > }
> >
> > ListQty = CountWatchList(0)/10;//Counting Watchlist 0
> >
> > --- In amibroker@xxxxxxxxxxxxxxx, "re_rowland" <rowland@> wrote:
> > >
> > > psuedo code would be:
> > >
> > > ListQty = number of stocks in WL (not sure of easiest way to do this)
> > > SetOption("MaxOpenPositions",ListQty/10);
> > >
> > >
> > > --- In amibroker@xxxxxxxxxxxxxxx, "droskill" <droskill@> wrote:
> > > >
> > > > Question for the group - I know how to buy up to a specific number of positions, but how can I make the rotational trade the top 10% of positions without regard to a specific number of stocks?
> > > >
> > > > Any help greatly appreciated,
> > > >
> > > > Damian
> > > >
> > >
> >
>
------------------------------------
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
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:
amibroker-digest@xxxxxxxxxxxxxxx
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/
|