cryuff
04-30-2009, 11:17 PM
Trying to write a stat for return on my investments.
The total in the pot at showdown is $9.
My share in the pot is $4.
For $4 my return is $5
If I won, my ROI should be $5/$4 = 1.25
(Thats my thought process, an argument can be made that the money in the pot is not yours so: For $4 my return is actually $9.)
For my calculations I want to use the first ROI.
I think I made a misstep somewhere.
Stat GroupName="Default" ColumnName="ROI" ValueExpressions="Sum(PHMISC.BetAmountPreflop+PHMISC.CallAmountPrefl op+PHMISC.PostAmountPreflop) as PutInPreflop;
Sum(FLOP.BetAmount+FLOP.CallAmount) as PutInFlop;
sum(TURN.BetAmount+TURN.CallAmount) as PutInTurn;
+sum(RIVER.BetAmount+RIVER.CallAmount) as PutInRiver;
Sum(ph.NetAmountWon)/100 as NetWon"
Evaluate="NetWon/((PutInPreflop+PutInFlop+PutInTurn+PutInRiver)/100)" ColumnHeader="ROI" ColumnFormat="0.000" ColumnWidth="*" Tooltip="Total Return of Investment" /
The total in the pot at showdown is $9.
My share in the pot is $4.
For $4 my return is $5
If I won, my ROI should be $5/$4 = 1.25
(Thats my thought process, an argument can be made that the money in the pot is not yours so: For $4 my return is actually $9.)
For my calculations I want to use the first ROI.
I think I made a misstep somewhere.
Stat GroupName="Default" ColumnName="ROI" ValueExpressions="Sum(PHMISC.BetAmountPreflop+PHMISC.CallAmountPrefl op+PHMISC.PostAmountPreflop) as PutInPreflop;
Sum(FLOP.BetAmount+FLOP.CallAmount) as PutInFlop;
sum(TURN.BetAmount+TURN.CallAmount) as PutInTurn;
+sum(RIVER.BetAmount+RIVER.CallAmount) as PutInRiver;
Sum(ph.NetAmountWon)/100 as NetWon"
Evaluate="NetWon/((PutInPreflop+PutInFlop+PutInTurn+PutInRiver)/100)" ColumnHeader="ROI" ColumnFormat="0.000" ColumnWidth="*" Tooltip="Total Return of Investment" /