PureBytes Links
Trading Reference Links
|
Ooops!
I think I may have missed something in that thread that I posted
before.
Might be able to do what I'm after with a few IIF's (no "mid-level
approach"!):
PositionSize = -2 * BuyPrice/(2*ATR(10));
Hey Graham, what do you think! ;-)
http://finance.groups.yahoo.com/group/amibroker/message/85606
Rangar.
--- In amibroker@xxxxxxxxxxxxxxx, "rangaroopa2000"
<rangaroopa2000@xxxx> wrote:
> Hi,
>
> Hmmm looks like I'm going over old ground after reading this thread:
>
> http://finance.groups.yahoo.com/group/amibroker/message/78342
>
> http://www.amibroker.com/guide/a_custombacktest.html
> I take it from looking at the above document, the "mid-level
approach"
> may be able to do it ie: allows to modify signals, query open
> positions (good for advanced position sizing).
>
> MY QUESTION -> has anyone come up with this "mid-level approach"
where
> a percentage of capital is used for positionsizing pleeeeease? Can
you
> share it?
>
> Thanks, Rangar.
>
>
> --- In amibroker@xxxxxxxxxxxxxxx, "rangaroopa2000"
> <rangaroopa2000@xxxx> wrote:
> > Hi,
> >
> > Graham helped me with this the other day and I have been testing
it
> > and I expected that the position size would increase as the
equity()
> > increases but it isn't!
> >
> > Here is my latest position sizing:
> > --------------------------------------
> > Risk = 0.02; //2% of capital
> > MinPer = 0.07; //7% of capital
> > MaxPer = 0.10; //10% of capital
> >
> > Capital = Ref(Equity(),-1)
> > MinTrade = Capital * MinPer;
> > MaxTrade = Capital * MaxPer;
> > RiskPS = (Capital * Risk) / (BuyPrice - InitialStop);
> >
> > PositionSize = Min(MaxTrade, RiskPS);
> >
> > Buy = Signal AND PositionSize > MinTrade;
> > --------------------------------------
> >
> > It uses % risk, a minimum trade size and a maximum trade size.
> Problem
> > is the position size does not increase as equity increases. The
> > maximum trade size is 10% of the "initial" equity as shown in the
> > Report.
> >
> > Is this the way to increase (or decrease) position size based on
> your
> > capital please?
> >
> > Thanks, Rangar
------------------------ Yahoo! Groups Sponsor --------------------~-->
<font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12h70uap4/M=362343.6886682.7839641.1493532/D=groups/S=1705632198:TM/Y=YAHOO/EXP=1124184798/A=2894352/R=0/SIG=11fdoufgv/*http://www.globalgiving.com/cb/cidi/tsun.html">Help tsunami villages rebuild at GlobalGiving. The real work starts now</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/
|