River stat depending on Bet Sizing (Code not working)

Discuss how to create custom stats, reports and HUD profiles and share your creations.

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

River stat depending on Bet Sizing (Code not working)

Postby hayapaz » Tue Nov 17, 2020 11:21 am

Hi!,

I programmed a stat where it sums when the Villain Bets on the River a size between 90% and 110% of the Pot:
Code: Select all
(fp_cnt_r_bet_pot_wtsd_won / fp_cnt_r_bet_pot_wtsd) * 100



fp_cnt_r_bet_pot_wtsd (going to showdown after betting):
Code: Select all
sum(if[

tourney_hand_player_statistics.flg_r_bet
AND (tourney_hand_player_statistics.amt_bet_r BETWEEN (0.90 * tourney_hand_summary.amt_pot) AND (1.1 * tourney_hand_summary.amt_pot) )
AND tourney_hand_player_statistics.flg_showdown

, 1, 0])


fp_cnt_r_bet_pot_wtsd_won (going to Showdown and winning the hand after betting):
Code: Select all
sum(if[

tourney_hand_player_statistics.flg_r_bet
AND (tourney_hand_player_statistics.amt_bet_r BETWEEN (0.90 * tourney_hand_summary.amt_pot) AND (1.1 * tourney_hand_summary.amt_pot) )
AND tourney_hand_player_statistics.flg_showdown
AND tourney_hand_player_statistics.flg_won_hand

, 1, 0])


I put it here because IS NOT WORKING.

Per example, this hand should sum the stat:
Code: Select all
GAME #5115494254 Version:20.3.6.5 Uncalled:Y Texas Hold'em NL  Tournament 2020-11-14 18:17:49/GMT
Table Sit’n’Go Twister 20€ EU, 616676542, 616676541 (Tournament: Sit’n’Go Twister 20€ EU Buy-In: €18.60 + €1.40)
Seat 3: DESP0o (€910.00 in chips)
Seat 10: ILovePiwo (€590.00 in chips) DEALER
ILovePiwo: Post Ante €5.00
DESP0o: Post Ante €5.00
ILovePiwo: Post SB €15.00
DESP0o: Post BB €30.00
*** HOLE CARDS ***
Dealt to ILovePiwo [SK D4]
ILovePiwo: Call €15.00
DESP0o: Check
*** FLOP *** [D9 DK C3]
DESP0o: Check
ILovePiwo: Bet €35.00
DESP0o: Call €35.00
*** TURN *** [D7]
DESP0o: Check
ILovePiwo: Check
*** RIVER *** [D5]
DESP0o: Bet €120.00
ILovePiwo: Call €120.00
*** SUMMARY ***
Total pot €380.00 Rake €0.00
ILovePiwo: Shows [SK D4] Flush, King High
DESP0o: Shows [S3 S8] One Pair, Threes
ILovePiwo: wins €380.00


I guess i´m doing something wrong, can you help me finding the error?

Thanks!
hayapaz
 
Posts: 53
Joined: Thu Jun 25, 2015 2:11 pm

Re: River stat depending on Bet Sizing (Code not working)

Postby Flag_Hippo » Tue Nov 17, 2020 1:39 pm

tourney_hand_summary.amt_pot is the total size of the pot at the end of the hand and not the size of the pot when the bet was made. If you want to specify the players bet size as a percentage of the pot (at the time the bet was made) then you should use this instead:

Code: Select all
tourney_hand_player_statistics.val_r_bet_made_pct BETWEEN 90 AND 110
Flag_Hippo
Moderator
 
Posts: 17131
Joined: Tue Jan 31, 2012 7:50 am

Re: River stat depending on Bet Sizing (Code not working)

Postby hayapaz » Wed Nov 18, 2020 2:42 pm

Flag_Hippo wrote:tourney_hand_summary.amt_pot is the total size of the pot at the end of the hand and not the size of the pot when the bet was made. If you want to specify the players bet size as a percentage of the pot (at the time the bet was made) then you should use this instead:

Code: Select all
tourney_hand_player_statistics.val_r_bet_made_pct BETWEEN 90 AND 110


ty!
hayapaz
 
Posts: 53
Joined: Thu Jun 25, 2015 2:11 pm


Return to Custom Stats, Reports and HUD Profiles

Who is online

Users browsing this forum: No registered users and 1 guest