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

Re: Tick value,



PureBytes Links

Trading Reference Links

From: Nixon(MLS) <mbjp57@xxxxxxxxxxxxxx>
>Indicator to calculate the number of contracts I need to trade to have say
a
>risk of 1% of a given capital? or perhaps to incorporate it into a system?
----------------------
Lars Kestner suggested using this UserFunction:-
--------------------------------
{960910 Volatility adjustment idea of Lars Kestner  }

Input: Multi(numeric), PosCap(numeric);
Var: Cons(0);
Var: Value1(0);

If  (StdDev( Close - Close[1], 30)*
BigPointValue) > 0 then Value1= (StdDev( Close - Close[1], 30)*
BigPointValue)
else Value1 = 1;
If Value1 > 0 and
                          Multi = 1  THEN
    Cons = (PosCap)/ Value1
      ELSE
       Cons = 1 ;
 Value1 = 1;
IF Cons < 1 THEN Cons = 1;
XowCons_Orig=Cons
.................

cheers