Stat for BB/100 won withOUT blinds (for a positional report)

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

Stat for BB/100 won withOUT blinds (for a positional report)

Postby rowhousepd » Tue May 26, 2009 5:04 pm

I'm looking at a straightforward custom report I made to see my results on each position. The Amount Won column shows a $ loss (not surprisingly) for the BB & SB, but in the amount won Without Blind column, it happily is a differently story since, I believe, it's not really taking into account the $ one essentially has to throw away to the blinds on hands that don't wind up getting played ... i think. :?:

Anyhow, this "Without Blind" is a nice little stat, but I'd like a similar stat for BB/100. Basically I'd like to have a column where I'd see the BB/100 won without blinds in order to assess how I'm performing in those positions when I'm actually putting $ into the pot and playing out the hand.

I tried to just duplicate and tweak the Without Blind stats, but it's not working. This built-in PT3 stat's uses var_amt_won_wob which is expressed as if(amt_blind=0, 0, amt_won + amt_blind).

I created a stat I'm calling "BB/100 Won Without Blind" that uses a variable I made called var_bb_won_wob where the expression is: if(amt_blind=0, 0, amt_bb_won / (cnt_hands / 100) + amt_blind). It doesn't seem to do the trick. What is this novice missing here? :oops: (Btw, in the format tab I entered: format_money(var_amt_won_wob, true). I think it would make it display it properly ... that is, if i could figure out how to make the stat function.)

Any suggestions, anyone?
rowhousepd
 
Posts: 329
Joined: Sun Mar 22, 2009 4:00 am
Location: Philadelphia, PA

Re: Stat for BB/100 won withOUT blinds (for a positional report)

Postby WhiteRider » Wed May 27, 2009 5:26 am

In your new variable:
if(amt_blind=0, 0, amt_bb_won / (cnt_hands / 100) + amt_blind)
..the second 'amt_blind' is still a money value.
You will need to create a new column for "amt_blind_bb" (or whatever you want to call it).
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Stat for BB/100 won withOUT blinds (for a positional report)

Postby rowhousepd » Tue Aug 18, 2009 4:40 pm

WhiteRider wrote:In your new variable:You will need to create a new column for "amt_blind_bb" (or whatever you want to call it).

Follow up after a long time, but I'm just revisiting this stat that I realized I never got to work correctly.

You said I would need to create a new column.... I guess I'm confused; I created a new stat (under the Statistic tab) with the expression "if(amt_blind=0, 0, amt_bb_won / (cnt_hands / 100) + amt_blind)". Do I need to create a new one under the Column tab (and/or Variable tab) as well? If so, what? Thanks.
rowhousepd
 
Posts: 329
Joined: Sun Mar 22, 2009 4:00 am
Location: Philadelphia, PA

Re: Stat for BB/100 won withOUT blinds (for a positional report)

Postby kraada » Tue Aug 18, 2009 5:30 pm

I believe what WhiteRider meant is that amt_blind is in dollars, not big blinds, so you'd need to have a column that converts that value to big blinds before you do anything further.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Stat for BB/100 won withOUT blinds (for a positional report)

Postby rowhousepd » Tue Aug 18, 2009 7:27 pm

But what would the expression be in a new column stat? Right now I'm referencing amt_blind --- which is sum(holdem_hand_player_detail.amt_blind).
rowhousepd
 
Posts: 329
Joined: Sun Mar 22, 2009 4:00 am
Location: Philadelphia, PA

Re: Stat for BB/100 won withOUT blinds (for a positional report)

Postby WhiteRider » Wed Aug 19, 2009 5:30 am

Exactly - I think you'll need a new column like "amt_blind_bb"
sum(holdem_hand_player_detail.amt_blind / holdem_limit.amt_bb)
..would give you the number of big blinds paid in blinds.

To make it "safe" for use with limit as well as no limit (i.e. to use big bets for limit) you might want to use the following expression instead.
sum(holdem_hand_player_detail.amt_blind / (holdem_limit.amt_bb *holdem_limit.val_nlpl_mult))
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