PureBytes Links
Trading Reference Links
|
Try this:
SetOption("MaxOpenPositions", 5 );
PositionSize = -100/5;
--- In amibroker@xxxxxxxxxxxxxxx, "guhu0434" <g.h.h@xxx> wrote:
>
> Hello,
>
> I'm working with Amibroker since some months and I'm getting more and
> more familiar with it. I have a question regarding the backtester and
> hopefully somebody can help me and enlight me ...
>
> As I know, the backtester scans for all buy and sell signals. Wether a
> specific stock will be traded can be controlled via different
> parameters, for an example with positionscore and positionsize.
>
> But, what if the decision wether to buy or not depends on other stocks?
>
> For an example, I give the stocks a specific "weight" and every week I
> want to buy the 5 "strongest" values. I know, with positionscore i can
> sort the values. But what if I want to stop buying after 5 values
> wether i have cash or not? Is this possible to controll?
>
> Hints are very appreciated,
>
> GuHu
>
------------------------------------
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/
|