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

RE: Kelly Formula



PureBytes Links

Trading Reference Links

From: 	Andy[SMTP:ronin@xxxxxxxxxxx]

>>
Here's my attempt in implementing the Kelly formula in ELA (it's untested):

Inputs: NTrades(Numeric);
Var: WinP(0),AvgW(0),AvgL(0);
If TotalTrades > Ntrades then begin
  WinP=NumWinTrades/TotalTrades;
  AvgW=NetProfit/NumWinTrades;
  AvgL=GrossLoss/NumLosTrades;
  Kelly_Form=WinP - (1-Winp)*AvgL/AvgW;
  end;
<<

Should one of the lines read ...

         AvgW = GrossProfit / NumWinTrades ;


- mark jurik