Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > PL/NL Texas Hold'em > Small Stakes
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 09-29-2006, 09:00 AM
kross kross is offline
Senior Member
 
Join Date: Nov 2004
Location: Seattle, WA
Posts: 715
Default Re: Continuation Bets - Pokertracker Analysis

[ QUOTE ]
Is there any way you could set this up for PostGres?

[/ QUOTE ]

I messed with the script a bit, and here it is working for PostgreSQL:

<font class="small">Code:</font><hr /><pre>
///// change settings here /////
var screen_name = 'YourScreenName';
var ptdb = 'PTPGSQL1';
var ptusername = 'postgres';
var ptpassword = 'password';

////////////////////////////////
///// Globals /////////
var db = new ActiveXObject("ADODB.Recordset");
var cstring = "Provider=MSDASQL;DSN=" + ptdb + ";UID=" + ptusername + ";PWD=" + ptpassword;
var totalhands = 0;
var sql = '';
var echoout = '';
var cold_callers = 1;
//////////////////////
echoout += "Screen Name:\t\t" + screen_name + "\n\n"
while ( cold_callers &lt;=5)
{
cold_callers++;
sql = "SELECT Max(players.screen_name) AS Screen_name,"+
" SUM(game_players.pre_flop_raise_n) AS Hands_when_PFR,"+
" SUM(game_players.fbet) AS C_BET, (SELECT Count(game.turn) AS Went_to_turn"+
" FROM players, game, game_players"+
" WHERE players.screen_name='"+screen_name+"'"+
" AND game_players.pre_flop_raise_n=1"+
" AND game_players.fbet = 1"+
" AND game.players_saw_flop = "+cold_callers+
" AND game.game_id = game_players.game_id"+
" AND players.player_id = game_players.player_id) AS Went_to_turn,"+
" SUM(game_players.tbet) AS Second_barrel,"+
" (SELECT Count(game.river) AS Went_to_river"+
" FROM players, game, game_players WHERE players.screen_name='"+screen_name+"'"+
" AND game_players.pre_flop_raise_n=1 AND game_players.fbet = 1"+
" AND game_players.tbet = 1 AND game.players_saw_flop = "+cold_callers+
" AND game.game_id = game_players.game_id"+
" AND players.player_id = game_players.player_id) AS Went_to_river,"+
" AVG(game.players_saw_flop)"+
" FROM players INNER JOIN (game INNER JOIN game_players"+
" ON game.game_id = game_players.game_id)"+
" ON players.player_id = game_players.player_id"+
" WHERE (((players.screen_name)='"+screen_name+"')"+
" AND ((game_players.pre_flop_raise_n)=1)"+
" AND ((game.flop_1) Is Not Null)) AND game.players_saw_flop = "+cold_callers+";";
db.Open(sql, cstring, 0, 1);
echoout += "\nHands Raised PF:\t\t";
echoout += db("Hands_when_PFR")+
"\nPlayers Called\t\t" + (cold_callers-1)+
"\nContinuation Bet Flop:\t" + db("C_BET") +
"\t\tSuccess:\t" + Math.round(((db("C_BET")-db("Went_to_turn"))/db("C_BET"))*10000)/100+
"\nContinuation Bet Turn:\t" + db("Second_barrel") +
"\t\tSuccess:\t" + Math.round(((db("Second_barrel")-db("Went_to_river"))/db("Second_barrel"))*10000)/100+"\n\n";
db.Close();
}
WScript.Echo(echoout);
</pre><hr />
Reply With Quote
  #12  
Old 09-29-2006, 10:28 AM
gosquad gosquad is offline
Junior Member
 
Join Date: Mar 2005
Posts: 13
Default Re: Continuation Bets - Pokertracker Analysis

very nice kross. thanks. Gonna give this a try.
Reply With Quote
  #13  
Old 09-29-2006, 11:01 AM
jbird jbird is offline
Senior Member
 
Join Date: Jun 2005
Location: Boston
Posts: 1,370
Default Re: Continuation Bets - Pokertracker Analysis

Doesn't work for me when I double click it tries to open with dreamweaver....anybody know how I can run it without this happening I'd like to see my stats....
Reply With Quote
  #14  
Old 09-29-2006, 11:32 AM
oyvindgee oyvindgee is offline
Senior Member
 
Join Date: Aug 2005
Location: Bluffing calling stations
Posts: 2,665
Default Re: Continuation Bets - Pokertracker Analysis

1 opponent:
Flop - 59% success
Turn - 65.01% success

2 opponents:
Flop - 47.15%
Turn - 74.21%

3 opponents:
Flop - 50%
Turn - 73.68%

Pretty cool script. Not sure what to make of this though.
Reply With Quote
  #15  
Old 09-29-2006, 08:48 PM
kross kross is offline
Senior Member
 
Join Date: Nov 2004
Location: Seattle, WA
Posts: 715
Default Re: Continuation Bets - Pokertracker Analysis

[ QUOTE ]
Doesn't work for me when I double click it tries to open with dreamweaver....anybody know how I can run it without this happening I'd like to see my stats....

[/ QUOTE ]

Instead of double-clicking, try right-click, then Open With-&gt;Windows Script Host

Or, try running from a command prompt:

cd &lt;directory with continuation_bets.js file&gt;
wscript continuation_bets.js
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:05 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.