Stacksize on specific position

Discuss how to create custom stats, reports and HUD profiles and share your creations.

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

Stacksize on specific position

Postby expiat » Wed Feb 09, 2022 8:55 am

Hello, how i can create on filter expressions something that will define the stack size of a specific position! Lets say its 4handed game and i want that Hero is on the BTN and i want that SB has 20-25bb and BB as well!

Cause if i filter and use the effective stack option it doesnt work correctly and the stacksizes can be asymmetric!

Thanks in advance!
expiat
 
Posts: 13
Joined: Sun Aug 25, 2013 11:06 am

Re: Stacksize on specific position

Postby Flag_Hippo » Wed Feb 09, 2022 1:38 pm

If you want to filter based on the data of other players then you will need to build an expression filter that uses a subquery like this:

Code: Select all
tourney_hand_player_statistics.id_hand in (select thps.id_hand from tourney_hand_player_statistics thps, player p, tourney_blinds tb where thps.id_player = p.id_player and thps.id_blinds = tb.id_blinds and thps.position = 8 and (thps.amt_before / tb.amt_bb ) between 20 and 25)

This expression will filter hands where the BB had a stack between 20bb and 25bb and you can edit that accordingly for other positions and stack sizes. You can use this expression filter by clicking on the 'Filters' link and selecting 'Add New Expression Filters'. For more on how SELECT works see here.
Flag_Hippo
Moderator
 
Posts: 17039
Joined: Tue Jan 31, 2012 7:50 am

Re: Stacksize on specific position

Postby expiat » Wed Feb 16, 2022 10:20 am

Thanks a lot :)
expiat
 
Posts: 13
Joined: Sun Aug 25, 2013 11:06 am

Re: Stacksize on specific position

Postby hdegou » Sun Sep 01, 2024 3:59 am

Flag_Hippo wrote:If you want to filter based on the data of other players then you will need to build an expression filter that uses a subquery like this:

Code: Select all
tourney_hand_player_statistics.id_hand in (select thps.id_hand from tourney_hand_player_statistics thps, player p, tourney_blinds tb where thps.id_player = p.id_player and thps.id_blinds = tb.id_blinds and thps.position = 8 and (thps.amt_before / tb.amt_bb ) between 20 and 25)

This expression will filter hands where the BB had a stack between 20bb and 25bb and you can edit that accordingly for other positions and stack sizes. You can use this expression filter by clicking on the 'Filters' link and selecting 'Add New Expression Filters'. For more on how SELECT works see here.


is there a way to adjust this filter so instead of selecting one specific position, let’s say at least one stack between BB and CO has 20-25bb and doesn’t matter which one?
hdegou
 
Posts: 17
Joined: Tue Aug 19, 2014 7:11 am

Re: Stacksize on specific position

Postby Flag_Hippo » Sun Sep 01, 2024 7:19 am

hdegou wrote:is there a way to adjust this filter so instead of selecting one specific position, let’s say at least one stack between BB and CO has 20-25bb and doesn’t matter which one?

Code: Select all
tourney_hand_player_statistics.id_hand in (select thps.id_hand from tourney_hand_player_statistics thps, player p, tourney_blinds tb where thps.id_player = p.id_player and thps.id_blinds = tb.id_blinds and thps.position = 8 and (thps.amt_before / tb.amt_bb ) between 20 and 25) or tourney_hand_player_statistics.id_hand in (select thps.id_hand from tourney_hand_player_statistics thps, player p, tourney_blinds tb where thps.id_player = p.id_player and thps.id_blinds = tb.id_blinds and thps.position = 9 and (thps.amt_before / tb.amt_bb ) between 20 and 25) or tourney_hand_player_statistics.id_hand in (select thps.id_hand from tourney_hand_player_statistics thps, player p, tourney_blinds tb where thps.id_player = p.id_player and thps.id_blinds = tb.id_blinds and thps.position = 0 and (thps.amt_before / tb.amt_bb ) between 20 and 25) or tourney_hand_player_statistics.id_hand in (select thps.id_hand from tourney_hand_player_statistics thps, player p, tourney_blinds tb where thps.id_player = p.id_player and thps.id_blinds = tb.id_blinds and thps.position = 1 and (thps.amt_before / tb.amt_bb ) between 20 and 25)
Flag_Hippo
Moderator
 
Posts: 17039
Joined: Tue Jan 31, 2012 7:50 am


Return to Custom Stats, Reports and HUD Profiles

Who is online

Users browsing this forum: No registered users and 18 guests