Make donk stat for HUD

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

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

Make donk stat for HUD

Postby caribbean93 » Fri Oct 03, 2025 6:21 am

Hi, I’m trying to create some statistics for my HUD. I’d like to know how to create a Heads-Up stat showing when the opponent donk bet and then continues betting on the next street — both cases: when they donk bet on the flop and bet again on the turn, and when they donk bet on the turn and bet again on the river. I’d also like to divide the cases into limped pots and raised pots. How could I do this? Thank you very much.
caribbean93
 
Posts: 19
Joined: Fri Feb 26, 2016 7:22 pm

Re: Make donk stat for HUD

Postby Flag_Hippo » Sun Oct 05, 2025 6:00 am

caribbean93 wrote:Hi, I’m trying to create some statistics for my HUD. I’d like to know how to create a Heads-Up stat showing when the opponent donk bet and then continues betting on the next street — both cases: when they donk bet on the flop and bet again on the turn, and when they donk bet on the turn and bet again on the river.

See this guide for the basics on custom statistics creation and this guide for a deeper walkthrough. While the latter was written for PokerTracker 3 and the user interface is different the techniques still apply to PokerTracker 4. If you have created some expressions already then post what you have and we can give guidance on how to proceed.
caribbean93 wrote:I’d also like to divide the cases into limped pots and raised pots.

That can be done by testing the length of the preflop aggressors string (=1 is for limped pots and >=2 is for raised pots):

Code: Select all
char_length(cash_hand_summary.str_aggressors_p) = 1

Code: Select all
char_length(cash_hand_summary.str_aggressors_p) >= 2

For more information on how these strings work see this post. Also please note that it is not possible to donk bet the flop in a limped pot.
Flag_Hippo
Moderator
 
Posts: 17044
Joined: Tue Jan 31, 2012 7:50 am

Re: Make donk stat for HUD

Postby caribbean93 » Mon Oct 06, 2025 7:13 am

Thanks for your help. I've built this for limped pot, heads-up, tournaments. Let me know if anything is incorrect please
Attachments
Screenshot 2025-10-06 131113.png
(37.93 KiB) Downloaded 1512 times
Screenshot 2025-10-06 131051.png
(32.94 KiB) Downloaded 1498 times
Screenshot 2025-10-06 131001.png
(36.2 KiB) Downloaded 1459 times
caribbean93
 
Posts: 19
Joined: Fri Feb 26, 2016 7:22 pm

Re: Make donk stat for HUD

Postby Flag_Hippo » Tue Oct 07, 2025 12:42 pm

caribbean93 wrote:Thanks for your help. I've built this for limped pot, heads-up, tournaments. Let me know if anything is incorrect please

1. You need to reference tourney_hand_player_statistics in your columns. For example:

Code: Select all
sum(if[tourney_hand_player_statistics.flg_f_open_opp AND tourney_hand_player_statistics.flg_f_bet AND char_length(tourney_hand_summary.str_aggressors_p) = 1, 1, 0])

2. There is nothing in your expressions that says this is heads up whether that is for preflop or on the flop.

3. As I mentioned earlier flop donk bets can't happen in limped pots. Flop donk bets can only be made by a player in a raised pot who is out of position relative to the preflop aggressor. Since this is a custom statistic you can call it what you want but it is not counting donks as they are defined in PokerTracker 4. This stat as it is now is going to count flop bets in limped pots from both in and out of position players.

4. In your original post you also said this:

caribbean93 wrote:I’d like to know how to create a Heads-Up stat showing when the opponent donk bet and then continues betting on the next street — both cases: when they donk bet on the flop and bet again on the turn

and there is nothing in your current expressions for what's happening on the turn.
Flag_Hippo
Moderator
 
Posts: 17044
Joined: Tue Jan 31, 2012 7:50 am

Re: Make donk stat for HUD

Postby caribbean93 » Thu Oct 09, 2025 6:53 am

Thanks for your answer,

It's my first time making a stat so I'm quite lost

I want to create all this stats. I guess it would be easier when I get the first ones. I want to difference Raised Pots and Limped Pots:
- Number of times villain donk Flop
- Number of times villain donk Flop and continue betting Turn
- Number of times villain donk Flop and Fold vs Raise
- Number of times villain donk Turn
- Number of times villain donk Turn and continue betting River
- Number of times villain donk Turn and Fold vs Raise
- Number of times villain donk River
- Number of times villain donk River and Fold vs Raise


I've made changes for the donk Flop LP column:

sum(if[ tourney_hand_player_statistics.flg_blind_b = TRUE AND tourney_hand_summary.cnt_players = 2 AND tourney_hand_player_statistics.flg_f_open_opp AND tourney_hand_player_statistics.flg_f_bet AND char_length(tourney_hand_summary.str_aggressors_p) = 1, 1, 0])

So the column of the donk opportunity wolud be:
sum(if[ tourney_hand_player_statistics.flg_blind_b = TRUE AND tourney_hand_summary.cnt_players = 2 AND tourney_hand_player_statistics.flg_f_open_opp AND char_length(tourney_hand_summary.str_aggressors_p) = 1, 1, 0])
caribbean93
 
Posts: 19
Joined: Fri Feb 26, 2016 7:22 pm

Re: Make donk stat for HUD

Postby Flag_Hippo » Sat Oct 11, 2025 7:09 am

caribbean93 wrote:- Number of times villain donk Flop
- Number of times villain donk Flop and continue betting Turn
- Number of times villain donk Flop and Fold vs Raise
- Number of times villain donk Turn
- Number of times villain donk Turn and continue betting River
- Number of times villain donk Turn and Fold vs Raise
- Number of times villain donk River
- Number of times villain donk River and Fold vs Raise

Statistics for these already exist in PokerTracker 4 (e.g. 'Donk Flop' and 'Fold to Raise After F Donk'). You would just need to edit them for the number of players and limped/raised pots. Please note as I have already said that it is not possible for a player to donk the flop in a limped pot so some of those columns would need to be defined differently.
caribbean93 wrote:I've made changes for the donk Flop LP column:

sum(if[ tourney_hand_player_statistics.flg_blind_b = TRUE AND tourney_hand_summary.cnt_players = 2 AND tourney_hand_player_statistics.flg_f_open_opp AND tourney_hand_player_statistics.flg_f_bet AND char_length(tourney_hand_summary.str_aggressors_p) = 1, 1, 0])

So the column of the donk opportunity wolud be:
sum(if[ tourney_hand_player_statistics.flg_blind_b = TRUE AND tourney_hand_summary.cnt_players = 2 AND tourney_hand_player_statistics.flg_f_open_opp AND char_length(tourney_hand_summary.str_aggressors_p) = 1, 1, 0])

That's fine but it is not a donk bet since there is no preflop aggressor in a limped pot.
Flag_Hippo
Moderator
 
Posts: 17044
Joined: Tue Jan 31, 2012 7:50 am

Re: Make donk stat for HUD

Postby caribbean93 » Sat Oct 11, 2025 8:11 am

It's true! Those stats appears on the HUD thanks!. They are not on Configure > Statistics. How Could I accede to them to make a copy and make my own stats?

I use "char_length(tourney_hand_summary.str_aggressors_p) = 1" because you said that was how to reference a limped pot.
How could I define it different then to indicate is a limped pot? I'm stuck, thanks
caribbean93
 
Posts: 19
Joined: Fri Feb 26, 2016 7:22 pm

Re: Make donk stat for HUD

Postby Flag_Hippo » Sun Oct 12, 2025 5:36 am

caribbean93 wrote:They are not on Configure > Statistics. How Could I accede to them to make a copy and make my own stats?

They are there:

donk.png
(35.2 KiB) Downloaded 1347 times

caribbean93 wrote:I use "char_length(tourney_hand_summary.str_aggressors_p) = 1" because you said that was how to reference a limped pot.

That is correct for limped pots.
caribbean93 wrote:How could I define it different then to indicate is a limped pot?

What I am referring to is that it is not possible for a player to make a flop donk bet in a limped pot. This is the definition of a flop donk bet in PokerTracker 4:
Donk Flop wrote:Percentage of the time that a player bet the flop out of position before the preflop raiser had a chance to act.

There is no preflop raiser in a limped pot. What your stat is doing is counting flop bets in a limped pot. It is NOT counting flop donk bets in a limped pot because that is not possible.
Flag_Hippo
Moderator
 
Posts: 17044
Joined: Tue Jan 31, 2012 7:50 am

Re: Make donk stat for HUD

Postby caribbean93 » Mon Oct 13, 2025 6:29 am

Ok, now I understand what you are trying to say. in "There is no preflop raiser in a limped pot. What your stat is doing is counting flop bets in a limped pot. It is NOT counting flop donk bets in a limped pot because that is not possible."
Even though it's not a "donk bet" would this stats count what I try to build? That a player bets Flop first in a limped pot being the big blind in HU?

I've made this stat. A player no check in Turn and Bet in Turn after donk in Flop RP divided by the times it saw Turn. Does it make sense with what I'm trying to build "Number of times villain donk Flop and continue betting Turn in Raised Pots"?


Thanks for your help and patience
Attachments
donk flop opp.png
(10.86 KiB) Downloaded 1397 times
donk flop RP.png
(10.58 KiB) Downloaded 1322 times
donk flop + continue.png
(16.36 KiB) Downloaded 1382 times
caribbean93
 
Posts: 19
Joined: Fri Feb 26, 2016 7:22 pm

Re: Make donk stat for HUD

Postby Flag_Hippo » Tue Oct 14, 2025 4:47 am

caribbean93 wrote:would this stats count what I try to build? That a player bets Flop first in a limped pot being the big blind in HU?

Yes.
caribbean93 wrote:I've made this stat. A player no check in Turn and Bet in Turn after donk in Flop RP divided by the times it saw Turn. Does it make sense with what I'm trying to build "Number of times villain donk Flop and continue betting Turn in Raised Pots"?

1. You shouldn't be using tourney_hand_player_statistics.flg_f_donk_opp since the player is always donking the flop in this case.

2. You need to do everything in the columns. For example:

cnt_t_bet_after_f_donk_HU_RP
Code: Select all
sum(if[tourney_hand_player_statistics.flg_f_donk and tourney_hand_player_statistics.flg_t_bet and tourney_hand_summary.cnt_players = 2, 1, 0])

cnt_t_bet_opp_after_f_donk_HU_RP
Code: Select all
sum(if[tourney_hand_player_statistics.flg_f_donk and tourney_hand_player_statistics.flg_t_open_opp and tourney_hand_summary.cnt_players = 2, 1, 0])

3. Note that if you start building statistics for other streets like 'Donk Turn and Bet River' then it is possible to donk the turn and/or river in both limped and raised pots so you will need to reference char_length(tourney_hand_summary.str_aggressors_p) in those cases to separate the limped and raised pots. A donk in PokerTracker 4 is a bet from the OOP player into the aggressor from the previous street:

Donk Turn wrote:Percentage of the time that a player bet the turn out of position before the flop aggressor had a chance to act.
Flag_Hippo
Moderator
 
Posts: 17044
Joined: Tue Jan 31, 2012 7:50 am

Next

Return to Custom Stats, Reports and HUD Profiles

Who is online

Users browsing this forum: No registered users and 12 guests