Quote from kut2k2:
Apparently not. I ask how TradeStudio does adaptive Kelly and you respond with glittering generalities. I expected as much, but it's still a little disappointing.
I was correcting the post rdencpa made about tradeplans. It was not 100% correct. I don't have kelly but do have a example of adaptive optimal f. F_WindowSize is the number of trades used to calculate f. I normally use 30. This algorithm calculate f, on a market by market basis. This is why we divide the money and use a different sub account for each market by dividing by the number of markets in the trade plan.
Sub AdaptiveFManagement(steps,F_WindowSize)
Dim S As Integer
Dim M As Integer
Dim DollarPerTrade
Dim StartAccount
Dim objMark As TSProcessor.IMarket
If tradeplan.MarketType=0 Then
If Tradeplan.SummEquity<tradeplan.MarginForOneLot Then
MsgBox "not enough money"
StopRun
End If
If Tradeplan.SummEquity< Tradeplan.TotalMarginForPlan Then
MsgBox "Margin Call Account below minimum margin required"
StopRun
End If
End If
DollarPerTrade= tradeplan.SummEquity/MarketsInPlan()
For S = 0 To TradePlan.SessionCount - 1
TradePlan.Session(S).UnitSize = 1
For M = 0 To TradePlan.Session(S).MarketCount - 1
objMark = TradePlan.Session(S).Market(M)
objMark.EntryNumUnits =Min(Floor(DollarPerTrade/CalcOptimalF_TP(steps,FWindowSize, TradePlan.Session(S).Market(M))),Ceiling))
objMark.ExitNumUnits = objMark.NumContractsHeld
Next
Next
End Sub