2 custom stats

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

2 custom stats

Postby mager » Thu May 27, 2010 6:37 pm

Im looking for 2 custum stats:
1. Number of hands colored by the money i won/lost to this specific player. -40$= orange, -60$=red, +40$=light blue, +60$=green.
2. Preflop 3bet% based on EP+MP+LP(ie every position except blinds). This should give a more accurate preflop 3bet% as its not include blind defence.

I dont know if its common but if someone can built it to me it will be nice as i have no experience with building stats.

thanks.
mager
 
Posts: 180
Joined: Thu Sep 17, 2009 7:04 pm

Re: 2 custom stats

Postby kraada » Thu May 27, 2010 7:01 pm

I'm about to leave for the day, but these shouldn't be too hard to build for yourself if you're willing to give it a try.

Take a look at the bits on coloring in the first post of the How To: Advanced HUD Configuration - all of the stats you need already exist and just need to be colored as you want for that one.

For the positional statistic, please see the Tutorial: Using Custom Statistics and Reports - it has a detailed walkthrough on creating positional stats; to make it not a blind you want holdem_hand_player_statistics.position < 8
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: 2 custom stats

Postby mager » Thu May 27, 2010 7:59 pm

It shouldnt be hard to built for someone who has some experience in building custom stats, i dont :)
Its not that urgent and i can wait a day or two. If you can build it to me it will be VERY helpful.

Im waiting to hear from you ...
mager
 
Posts: 180
Joined: Thu Sep 17, 2009 7:04 pm

Re: 2 custom stats

Postby kraada » Fri May 28, 2010 8:50 am

These color conditions aren't exclusive. Do you want it to be red if you've lost $60 or more? Then orange is $40 to $60? Do you want anything between losing 0 and losing 40?
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: 2 custom stats

Postby mager » Fri May 28, 2010 10:11 am

0 to -40$ = no color
-40$ to -60$ = orange
-60$+ = red
0 to +40$ = no color
+40$ to +60$ = light blue
+60$+ = green

And just to be sure you understood what i ment about the preflop 3bet% - i ment preflop 3bet% of EP and MP and LP together in one state(ie every position but blinds).


thanks a lot !!!
mager
 
Posts: 180
Joined: Thu Sep 17, 2009 7:04 pm

Re: 2 custom stats

Postby kraada » Fri May 28, 2010 10:31 am

(1) Click Configure --> Configure Statistics. On the Sections area choose the Player Statistics section of the game you play (omaha/holdem, cash/tourney), then go to the Stats tab. Locate the Hands stat in the box on the left and click on it. Click on the Colors tab at the right. Click the blue Insert link. Choose the amt_won value that's right there and click OK, it'll show up in the Condition Expression box. Go into that box and add "< -60" so it looks like this: amt_won < -60. Check the Hud box. Double click the black box next to Color and the color chooser will come up. Choose the red you like. Click save. Then click New. Repeat the process but this time in the Condition Expression box you want: amt_won > -60 AND amt_won < -40, and you'll pick your orange color. Then do the blue and green. Save, update cache and this stat will work fine for you.

(2) For your 3-bet statistic you need to create new columns on the columns tab. Duplicate the cnt_p_3bet stat and rename it to cnt_p_3bet_not_blinds with the definition: sum(if[holdem_hand_player_statistics.flg_p_3bet and holdem_hand_player_statistics.position < 8, 1, 0]) (note: that's for hold'em cash games, if you do tournaments make it tourney_holdem, replace with Omaha if needed). Add the same bit ("and ... < 8") to cnt_p_3bet_opp making it cnt_p_3bet_not_blinds_opp and then create the statistic putting cnt_p_3bet_not_blinds over cnt_p_3bet_not_blinds_opp. I realize I'm going through this a bit fast but a much more detailed walkthrough with pictures is available here and will flesh out the other details.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: 2 custom stats

Postby mager » Fri May 28, 2010 1:13 pm

Ok i think i did it. I have few question:
1. The colored amount won/lost in the first stat is the amount won/lost ONLY against me(ie not overall money the player won/lost) ? Beause this is what i want.
2. The value expression for the second stat should look like this: "(cnt_p_3bet_not_blinds / cnt_p_3bet_not_blinds_opp) * 100", right ?
3. If i want to export the second stat, will i have to create the new columns in the other computer i want to install the stat or does the export stat export the columns too?

thank a lot for your help :)
mager
 
Posts: 180
Joined: Thu Sep 17, 2009 7:04 pm

Re: 2 custom stats

Postby kraada » Fri May 28, 2010 3:19 pm

(1) Stats against you personally are not able to be used, that will be their overall amount won. My apologies for not being clear on this point.

(2) Yes.
(3) When you export the stat any required columns are exported as well, so importing the stat elsewhere will bring in everything you need.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: 2 custom stats

Postby mager » Fri May 28, 2010 6:16 pm

There is no way i can make a stat that will be money won/lost against me only?
mager
 
Posts: 180
Joined: Thu Sep 17, 2009 7:04 pm

Re: 2 custom stats

Postby kraada » Sat May 29, 2010 8:37 am

No, that is not possible at this point in time.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY


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

Who is online

Users browsing this forum: No registered users and 1 guest