How to creat Won SD when donk Flop?

Forum for users that want to write their own custom queries against the PT database either via the Structured Query Language (SQL) or using the PT3 custom stats/reports interface.

Moderator: Moderators

How to creat Won SD when donk Flop?

Postby TrentFM » Wed Aug 17, 2011 12:22 am

Hi, I would like to include the statisitcs Won SD when donk Flop and Won SD when donk Turn into my HUD.

As I could not find the appropriate column I tried to create using the following value expression:

(cnt_f_donk_wtsd_won / cnt_f_donk_wtsd) * 100

I created these colums with existing value expressions and just added them up into a formula:

cnt_f_donk_wts_won:
sum(if[holdem_hand_player_statistics.flg_showdown AND holdem_hand_player_statistics.flg_won_hand AND (holdem_hand_player_statistics.flg_p_face_raise AND NOT(holdem_hand_player_statistics.flg_p_3bet OR holdem_hand_player_statistics.flg_p_4bet) AND holdem_hand_player_statistics.flg_f_bet AND NOT(holdem_hand_player_statistics.flg_f_cbet_opp) AND
((holdem_hand_summary.cnt_players > 2 and holdem_hand_player_detail.val_p_raise_aggressor_pos < holdem_hand_player_statistics.position) or (holdem_hand_summary.cnt_players = 2 and holdem_hand_player_statistics.flg_blind_b))),1,0])

cnt_f_donk_wts:
sum(if[holdem_hand_player_statistics.flg_showdown AND (holdem_hand_player_statistics.flg_p_face_raise AND NOT(holdem_hand_player_statistics.flg_p_3bet OR holdem_hand_player_statistics.flg_p_4bet) AND holdem_hand_player_statistics.flg_f_bet AND NOT(holdem_hand_player_statistics.flg_f_cbet_opp) AND
((holdem_hand_summary.cnt_players > 2 and holdem_hand_player_detail.val_p_raise_aggressor_pos < holdem_hand_player_statistics.position) or (holdem_hand_summary.cnt_players = 2 and holdem_hand_player_statistics.flg_blind_b))),1,0])


It's not working so I would appreciate if someone could have a quick look.

Thanks very much in advance
TrentFM
 
Posts: 3
Joined: Fri May 30, 2008 7:21 am

Re: How to creat Won SD when donk Flop?

Postby WhiteRider » Wed Aug 17, 2011 3:18 am

In what way is it not working? Can you explain exactly what the problem is, please?
If you don't see the stat to add to the HUD you will need to stop the HUD before you see new stats.
If the value isn't appearing try updating the cache using Database > Housekeeping.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: How to creat Won SD when donk Flop?

Postby TrentFM » Wed Aug 17, 2011 4:20 pm

thanks for the advice of updating the cache.

the stat is now working and I get a "number" on my HUD.

Do you think the formula is correct, because I am not quite sure of what I did and that the number shown on my HUD is the number I want :lol:
TrentFM
 
Posts: 3
Joined: Fri May 30, 2008 7:21 am

Re: How to creat Won SD when donk Flop?

Postby kraada » Wed Aug 17, 2011 6:22 pm

The number, from the formulas you've pasted above, represents how often, given that a player donks the flop and gets to showdown, that player wins the hand. So if a player donked 10 times and got to showdown 5 times and won 2 of those showdowns, you would see 40% (2/5) for this stat.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: How to creat Won SD when donk Flop?

Postby TrentFM » Thu Aug 18, 2011 1:03 am

Thats all I wanted :D

Thank you very much for your help
TrentFM
 
Posts: 3
Joined: Fri May 30, 2008 7:21 am


Return to Custom Stats, Reports, and SQL [Read Only]

Who is online

Users browsing this forum: No registered users and 0 guests