|
Hello,
That's why - your porftolio cash is apparently larger than
0.1% of trading volume so it is not entered.
Note that Limit trade size setting is for protecting against
opening too large positions, it is NOT for actually controlling position
size.
To control position size use PositionSize variable or
SetPositionSize function.
Also you should use PREVIOUS bar volume to avoid referencing
future.
For example:
PositionSize = Ref( Close * Volume, -1 ) * 0.001; //
use 0.1% of previous bar volume
Best regards, Tomasz Janeczko amibroker.com __._,_.___ 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 other support material please check also: http://www.amibroker.com/support.html
SPONSORED LINKS
YAHOO! GROUPS LINKS
|
- Re: [amibroker] Limit trade size as % of entry bar volume Graham
- Re: [amibroker] Limit trade size as % of entry bar vo... lapilia
- Re: [amibroker] Limit trade size as % of entry ba... Tomasz Janeczko
