PureBytes Links
Trading Reference Links
|
So that would buy the top least worst stocks in a falling
market...Hmmm... How can I formulate the rotational method to avoid
this situation and preface it with IF any in the selection is worth
buying then take the top 5..thanks
--- In amibroker@xxxxxxxxxxxxxxx, "Ron Rowland" <rowland@xxx> wrote:
>
> In the Rotational Mode it would be:
>
> SetOption("MaxOpenPositions", 5); // 5 positions
> SetPositionSize(20, spsPercentOfEquity); // at 20% each
> PositionScore = RSI(14); // Always be in top 5 based on RSI
>
>
> Note: this is not a complete stand-alone AFL routine.
>
> --- In amibroker@xxxxxxxxxxxxxxx, "googool123123" <bfallahi@> wrote:
> >
> > Hi,
> > can anyone please guide me to hgow I can write a backtest to
purchase
> > the top 5 of a list based on a certain criteria.
> >
> > For example if we sort a group based on RSI(14), how can we
purchase
> > the first 5?
> >
> > any help is appreciated.
> >
> > if someone knows code that already does this, it would be great.
> >
>
------------------------------------
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/
|