if shares is what you normally work out to be what you
buy
shares = .....
setpositionsize(min(shares, 500),
spsShares);
From: amibroker@xxxxxxxxxxxxxxx
[mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of
cstrader Sent: Wednesday, 10 September 2008 10:22
AM To: amibroker@xxxxxxxxxxxxxxx Subject: [amibroker]
Limit number of shares per symbol?
Dumb question I'm sure, but what's the best way to limit the maximum number
of shares per symbol in the backtester?
(for instance, only allow a
maximum of 500 shares even if there's cash for more)
Thanks
__._,_.___
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