Poker-AI.org Poker AI and Botting Discussion Forum 2014-05-27T11:23:45+00:00 http://poker-ai.org/phpbb/feed.php?f=24&t=2599 2014-05-27T11:23:45+00:00 2014-05-27T11:23:45+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2599&p=6052#p6052 <![CDATA[Re: Should I get stats from PokerTracker or HolemManager?]]> http://wpc.0997.edgecastcdn.net/000997/ ... uideV3.pdf


HM2 API seems to be finally out.

Statistics: Posted by maikon — Tue May 27, 2014 11:23 am


]]>
2013-09-30T12:53:01+00:00 2013-09-30T12:53:01+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2599&p=5026#p5026 <![CDATA[Re: Should I get stats from PokerTracker or HolemManager?]]>
If interested, following SQL request to get VPIP and PFR on PT4 :

Code:
SELECT count(*)::float /
   ((SELECT count(*)
    FROM cash_hand_player_statistics denominator
    WHERE denominator.id_player = 49)::float - (SELECT SUM(cc.cnt_walks)
    FROM cash_cache cc WHERE cc.id_player = 49)::float)
   as vpip
FROM cash_hand_player_statistics numerator
WHERE numerator.id_player = 49
and flg_vpip is true


PFR
SELECT count(*)::float /
((SELECT count(*)
    FROM cash_hand_player_statistics denominator
    WHERE denominator.id_player = 49)::float - (SELECT SUM(cc.cnt_walks)
    FROM cash_cache cc WHERE cc.id_player = 49)::float)
   as pfr
FROM cash_hand_player_statistics numerator
WHERE numerator.id_player = 49
and cnt_p_raise =1

Statistics: Posted by MrNice — Mon Sep 30, 2013 12:53 pm


]]>
2013-09-29T09:57:37+00:00 2013-09-29T09:57:37+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2599&p=5021#p5021 <![CDATA[Re: Should I get stats from PokerTracker or HolemManager?]]> Statistics: Posted by Seikez — Sun Sep 29, 2013 9:57 am


]]>
2013-09-28T13:48:43+00:00 2013-09-28T13:48:43+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2599&p=5016#p5016 <![CDATA[Re: Should I get stats from PokerTracker or HolemManager?]]>
Code:
SELECT   
   DISTINCT(cash_hand_summary.id_hand) as handId
FROM    cash_hand_player_statistics
JOIN    cash_hand_summary ON cash_hand_summary.id_hand = cash_hand_player_statistics.id_hand
JOIN    player ON cash_hand_player_statistics.id_player = player.id_player
JOIN    lookup_positions ON cash_hand_player_statistics.position = lookup_positions.position AND cash_hand_player_statistics.cnt_players = lookup_positions.cnt_players
JOIN    cash_limit ON cash_hand_summary.id_limit = cash_limit.id_limit
JOIN   lookup_actions as actions_p ON actions_p.id_action = cash_hand_player_statistics.id_action_p
JOIN   lookup_actions as actions_f ON actions_f.id_action = cash_hand_player_statistics.id_action_f
JOIN   lookup_actions as actions_t ON actions_t.id_action = cash_hand_player_statistics.id_action_t
JOIN   lookup_actions as actions_r ON actions_r.id_action = cash_hand_player_statistics.id_action_r
WHERE   
   TRUE
 %FILTER%

Statistics: Posted by proud2bBot — Sat Sep 28, 2013 1:48 pm


]]>
2013-09-28T08:36:40+00:00 2013-09-28T08:36:40+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2599&p=5015#p5015 <![CDATA[Re: Should I get stats from PokerTracker or HolemManager?]]> proud2bBot wrote:

If you are starting over, I'd always use PT4 as you can get everything out, its quite easy and fast. Choosing PT3 just for the sake of the documentation is weird, as you can see the schema anyway and you'll have longer support for PT4 for sure...

Sounds like good advice, thanks.
It would be great if you wanted to share code for some PT4 querys so we have something to start with. :)

Statistics: Posted by Seikez — Sat Sep 28, 2013 8:36 am


]]>
2013-09-27T18:27:29+00:00 2013-09-27T18:27:29+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2599&p=5014#p5014 <![CDATA[Re: Should I get stats from PokerTracker or HolemManager?]]> shadehs wrote:

proud2bBot wrote:
It works with both, holdem manager 2 and poker tracker 4


The last thread that i read about SQL queries on HM2 was this:
http://forums.holdemmanager.com/general ... stats.html

I don't know if they implemented an API or something similar, do you have more recent news ?


Ahh, sorry, I forgot: I used PT3 and HM1 with SQL in the past and that was working. PT4 I'm using now and its working too (you can easily see the schema in the DB, so I don't get why people complain about not having the schema...). I also used HM2 but scraped the stats, which I skipped later in favor of PT4.
If you are starting over, I'd always use PT4 as you can get everything out, its quite easy and fast. Choosing PT3 just for the sake of the documentation is weird, as you can see the schema anyway and you'll have longer support for PT4 for sure...

Statistics: Posted by proud2bBot — Fri Sep 27, 2013 6:27 pm


]]>
2013-09-27T14:48:56+00:00 2013-09-27T14:48:56+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2599&p=5013#p5013 <![CDATA[Re: Should I get stats from PokerTracker or HolemManager?]]> shadehs wrote:

IBot, did you use PT3 in the past?
Are PT4 queries execution performance better than PT3 queries ?

The above query is for PT3, that's what I use.
I couldn't tell you if PT4 is faster, i'm sure someone will know - maybe ask/search on the PokerTracker forums.

Statistics: Posted by ibot — Fri Sep 27, 2013 2:48 pm


]]>
2013-09-27T14:36:51+00:00 2013-09-27T14:36:51+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2599&p=5012#p5012 <![CDATA[Re: Should I get stats from PokerTracker or HolemManager?]]> Are PT4 queries execution performance better than PT3 queries ?

Statistics: Posted by shadehs — Fri Sep 27, 2013 2:36 pm


]]>
2013-09-27T12:18:56+00:00 2013-09-27T12:18:56+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2599&p=5009#p5009 <![CDATA[Re: Should I get stats from PokerTracker or HolemManager?]]> Seikez wrote:

Can't you get info on the db-schema from PostgreSQL in some way? (I have never worked with PostgreSQL, but it would be strange if this wasn't possible either from PostgreSQL directly, or from some free tool)

It's possible to get the info on the db-schema, however it's a lot of abbreviations etc.. so not very easy to understand.
It's likely it'll be similar to the PT3 db and abbreviations but who knows.

This is an example for getting Preflop stats.
Code:
public static double[] getPreflopStats(String name, Connection con) {
         
        double[] stats = new double[6];
         
        int id_player = 1;
         
        PreparedStatement pst = null;
        ResultSet rs = null;
         
        try {
             
            // Get player ID
            String stm = "SELECT id_player FROM player WHERE player_name = ?;";
            pst = con.prepareStatement(stm);
            pst.setString(1, name);
            rs = pst.executeQuery();
 
            while (rs.next()) {
                id_player = rs.getInt(1);
            }
               
            stm = "SELECT "+
                       "( SUM(cnt_p_raise) / ( 1.0 + SUM(cnt_p_raise) + SUM(cnt_p_call) + SUM(cnt_p_fold) ) ), "+ //AFq
                       "( SUM(cnt_p_raise)*1.0 / SUM(cnt_hands) ), "+ //PFR
                       "( SUM(cnt_vpip)*1.0 / SUM(cnt_hands) ), "+ //VPIP
                       "( SUM(cnt_p_first_raise) / ( 1.0 + SUM(cnt_p_open_opp)) )  , "+//RAISEFIRST
                       "( SUM(cnt_p_3bet) / (1.0 + SUM(cnt_p_3bet_opp)) ), "+ //3BET
                       "SUM(cnt_hands) "+
                       "FROM holdem_cache WHERE id_player = ?;";
            pst = con.prepareStatement(stm);
            pst.setInt(1, id_player);
            rs = pst.executeQuery();
             
            while (rs.next()) {
                for (int i=0; i<stats.length; i++) {
                    stats[i] = rs.getDouble(i+1);   
                }
            }
             <more code here..>
        }
       
        return stats;
    }

Statistics: Posted by ibot — Fri Sep 27, 2013 12:18 pm


]]>
2013-09-27T07:42:13+00:00 2013-09-27T07:42:13+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2599&p=5008#p5008 <![CDATA[Re: Should I get stats from PokerTracker or HolemManager?]]> ibot wrote:

... and no longer provide any documentation about the DB, unlike PT3.

Can't you get info on the db-schema from PostgreSQL in some way? (I have never worked with PostgreSQL, but it would be strange if this wasn't possible either from PostgreSQL directly, or from some free tool)

Quote:

Also, I can provide some sample queries in Java if you'd be interested.

Of course we are interested. All information is a help.

Statistics: Posted by Seikez — Fri Sep 27, 2013 7:42 am


]]>
2013-09-26T12:47:46+00:00 2013-09-26T12:47:46+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2599&p=5005#p5005 <![CDATA[Re: Should I get stats from PokerTracker or HolemManager?]]> From this forum post, it sounds like they've made some changes to the layout from PT3!

[EDIT]... and no longer provide any documentation about the DB, unlike PT3.
Also, I can provide some sample queries in Java if you'd be interested.

Statistics: Posted by ibot — Thu Sep 26, 2013 12:47 pm


]]>
2013-09-26T07:06:01+00:00 2013-09-26T07:06:01+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2599&p=5004#p5004 <![CDATA[Re: Should I get stats from PokerTracker or HolemManager?]]> HontoNiBaka wrote:

An api was promised more tha a year ago, it will probably never come.


That's also my opinion, and that's why i think i trashed my money when buying HM2.
Shalako, if you are working on queries from PT4, maybe you want to share some of them and what are the performance on a large sample size ?

Statistics: Posted by shadehs — Thu Sep 26, 2013 7:06 am


]]>
2013-09-25T22:01:01+00:00 2013-09-25T22:01:01+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2599&p=5003#p5003 <![CDATA[Re: Should I get stats from PokerTracker or HolemManager?]]> iKNOWpoker wrote:

Some 3rd party programs like TableScan Turbo are able to use HM2- and PT4-stats. So it must be possible somehow. But I haven't looked into this and don't know how easy or complicated it is.


Its possible to get the stats, I got the VPIP at least, but its a waste of time.

The developers of big 3rd party programs either spend a lot of time with it, which makes sense, since it will increase sales a lot, or they get tutorials from the hm2 guys.

An api was promised more tha a year ago, it will probably never come.

Statistics: Posted by HontoNiBaka — Wed Sep 25, 2013 10:01 pm


]]>
2013-09-25T11:43:03+00:00 2013-09-25T11:43:03+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2599&p=5001#p5001 <![CDATA[Re: Should I get stats from PokerTracker or HolemManager?]]> Seikez wrote:

Another question on this subject:
How do you get up to date statistics for all opponents on a table your bot is sitting down at, even if you haven't played that particular opp before?
Do you have to pay for a hand history subscription with online updates (like hhmailer 5-min option), or is there some other way to do it without paying?

If you need the stats before actually playing with your opponent and don't want to pay, the only alternative is to use a datamining software.
Time ago i bought some HH from pokertableratings, and it was cool to have millions of hands in the database. However it was before the black friday. Didn't buy anithing else since that time.

Statistics: Posted by shadehs — Wed Sep 25, 2013 11:43 am


]]>
2013-09-25T08:31:13+00:00 2013-09-25T08:31:13+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2599&p=5000#p5000 <![CDATA[Re: Should I get stats from PokerTracker or HolemManager?]]>
A tip for everyone: I read somewhere that you can get the SQL for a query from HM1 and PT3 logs. This must obviously be a big help, because you don't need to understand SQL and the the db-schema in the same way as when you write the SQL yourself. I would guess you can do this also in the latest versions of the programs.


Another question on this subject:
How do you get up to date statistics for all opponents on a table your bot is sitting down at, even if you haven't played that particular opp before?
Do you have to pay for a hand history subscription with online updates (like hhmailer 5-min option), or is there some other way to do it without paying?

Statistics: Posted by Seikez — Wed Sep 25, 2013 8:31 am


]]>
2013-09-25T03:51:11+00:00 2013-09-25T03:51:11+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2599&p=4998#p4998 <![CDATA[Re: Should I get stats from PokerTracker or HolemManager?]]> Statistics: Posted by shalako — Wed Sep 25, 2013 3:51 am


]]>
2013-09-24T22:56:10+00:00 2013-09-24T22:56:10+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2599&p=4997#p4997 <![CDATA[Re: Should I get stats from PokerTracker or HolemManager?]]> proud2bBot wrote:

It works with both, holdem manager 2 and poker tracker 4


The last thread that i read about SQL queries on HM2 was this:
http://forums.holdemmanager.com/general ... stats.html

I don't know if they implemented an API or something similar, do you have more recent news ?

Statistics: Posted by shadehs — Tue Sep 24, 2013 10:56 pm


]]>
2013-09-24T20:22:53+00:00 2013-09-24T20:22:53+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2599&p=4996#p4996 <![CDATA[Re: Should I get stats from PokerTracker or HolemManager?]]> Statistics: Posted by proud2bBot — Tue Sep 24, 2013 8:22 pm


]]>
2013-09-24T13:42:37+00:00 2013-09-24T13:42:37+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2599&p=4995#p4995 <![CDATA[Re: Should I get stats from PokerTracker or HolemManager?]]> Database Management' guide, it's likely you'll be able to access the database.
There's also a free trial, so why not try and see?

Statistics: Posted by ibot — Tue Sep 24, 2013 1:42 pm


]]>
2013-09-24T12:02:59+00:00 2013-09-24T12:02:59+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2599&p=4994#p4994 <![CDATA[Re: Should I get stats from PokerTracker or HolemManager?]]> Statistics: Posted by iKNOWpoker — Tue Sep 24, 2013 12:02 pm


]]>
2013-09-24T07:25:46+00:00 2013-09-24T07:25:46+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2599&p=4992#p4992 <![CDATA[Re: Should I get stats from PokerTracker or HolemManager?]]> shadehs wrote:

With HM2 is impossible to extract stats, because they doesn't store them in the DB but in files, for "performance issues", they said.

I didn't know that HM2 had changed to a db-format that makes it impossible to extract statistics. If this is true, and I have no reason to doubt it, HM2 is out of the question. Thanks shadehs, for this very important information!

Can someone please confirm that it is possible to get statistics from PT4?

Statistics: Posted by Seikez — Tue Sep 24, 2013 7:25 am


]]>
2013-09-24T07:02:21+00:00 2013-09-24T07:02:21+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2599&p=4991#p4991 <![CDATA[Re: Should I get stats from PokerTracker or HolemManager?]]> The speed is ok, also because you need to retrieve stats once per hand, or once in a while and on player change.

Statistics: Posted by shadehs — Tue Sep 24, 2013 7:02 am


]]>
2013-09-24T03:10:50+00:00 2013-09-24T03:10:50+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2599&p=4990#p4990 <![CDATA[Re: Should I get stats from PokerTracker or HolemManager?]]> Statistics: Posted by shalako — Tue Sep 24, 2013 3:10 am


]]>
2013-09-23T20:04:51+00:00 2013-09-23T20:04:51+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2599&p=4989#p4989 <![CDATA[Re: Should I get stats from PokerTracker or HolemManager?]]> With HM1 the most of stats are easy to reconstruct but some aren't. However, they are optimized.
PT3 instead is old and as i heard, some queries need a lot of time to be done.
With HM2 is impossible to extract stats, because they doesn't store them in the DB but in files, for "performance issues", they said.
And PT4 i didn't try it, but if it could be possible to extract all stats as it was for PT3, i would try it.

Statistics: Posted by shadehs — Mon Sep 23, 2013 8:04 pm


]]>
2013-09-23T11:18:19+00:00 2013-09-23T11:18:19+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2599&p=4985#p4985 <![CDATA[Should I get stats from PokerTracker or HolemManager?]]>
There are some old threads about this on different sites, but I need some up to date advice.

Should I use PokerTracker or HoldemManager to get stats for players in my bot?

If I choose one of these apps, is there anything important in the other app that I will miss?

Statistics: Posted by Seikez — Mon Sep 23, 2013 11:18 am


]]>