cbet and fold to raise / position

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

cbet and fold to raise / position

Postby preparac » Sun Sep 13, 2009 6:44 pm

I hav e a problem with my cbet_fold_to_raise stat:

100 * (cnt_f_cbet_raise_def_action_fold / cnt_f_cbet_raise_def_opp)

when

cnt_f_cbet_raise_def_action_fold
sum(if[tourney_holdem_hand_player_statistics.flg_f_cbet AND tourney_holdem_hand_player_statistics.flg_f_face_raise AND substring(lookup_actions_f.action from 1 for 2) = 'BF', 1, 0])

cnt_f_cbet_raise_def_opp =
sum(if[tourney_holdem_hand_player_statistics.flg_f_cbet AND tourney_holdem_hand_player_statistics.flg_f_face_raise, 1, 0])

In the Hud this stat doesn't show me the times/opportunities when I put the chechbox on "true". It only shows me the percentage and ().

When I put
format( '{1}% ({2}/{3})', format_number((cnt_f_cbet_raise_def_action_fold / cnt_f_cbet_raise_def_opp) * 100 ,0,false,false), cnt_f_cbet_raise_def_action_fold , cnt_f_cbet_raise_def_opp )

in the format expression box, i have another problem: now it shows me times/opportunities, but it doesn't react on the "position" box (allways hows me the values for "All position" even when I anable LP, MP, EP or Blinds)

Any idea where the problem could be with this stat???
thanx alot
preparac
 
Posts: 323
Joined: Thu May 15, 2008 6:23 am

Re: cbet and fold to raise / position

Postby WhiteRider » Mon Sep 14, 2009 4:22 am

Try changing 100 * (cnt_f_cbet_raise_def_action_fold / cnt_f_cbet_raise_def_opp) to :
(cnt_f_cbet_raise_def_action_fold / cnt_f_cbet_raise_def_opp) * 100
The Value Expression field must be formatted in a particular way for the opportunities thing in the HUD to work.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK


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

Who is online

Users browsing this forum: No registered users and 0 guests