[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Position Sizing



PureBytes Links

Trading Reference Links

try this, it may even work
PositionSize = Min( Max( equity()*0.07,
(Risk/TrailStopAmount)*BuyPrice ), equity()*01 );

Using the above, I would also like to have a maximum trade size of 10%
of capital AND a minimum trade size of 7% of capital.

On 8/8/05, rangaroopa2000 <rangaroopa2000@xxxxxxxxxxxx> wrote:
> Hi,
> 
> Could someone help me out with position sizing please?
> 
> I'm using ATR-based position sizing:
> 
> Risk = 0.01*Capital;
> PositionSize = (Risk/TrailStopAmount)*BuyPrice;
> 
> Using the above, I would also like to have a maximum trade size of 10%
> of capital AND a minimum trade size of 7% of capital.
> 
> For example:
> 
> a) if the risk based PS is > 10% then use a trade size of 10%.
> b) if the risk based PS is < 7% then exclude the trade.
> 
> Thanks, Rangar
> 
> 
> 
> 
> 
> 
> 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
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
> 
> 


-- 
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://e-wire.net.au/~eb_kavan/ab_write.htm


------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12htgscec/M=362131.6882500.7825259.1493532/D=groups/S=1705632198:TM/Y=YAHOO/EXP=1123497327/A=2889190/R=0/SIG=10r90krvo/*http://www.thebeehive.org
">Put more honey in your pocket. (money matters made easy) Welcome to the Sweet Life - brought to you by One Economy</a>.</font>
--------------------------------------------------------------------~-> 

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

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> 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/