Page 1 of 1

RFI by stacksize

PostPosted: Wed Mar 15, 2017 7:45 pm
by nherrego
I build a custom stat for Raise first in for 75 to 1000 bb deep and only includes opens 2x to 4x but it is not working:
it shows values bigger then 100

(cnt_p_raise_first_in_75 / cnt_p_open_opp_75 ) * 100

cnt_p_raise_first_in_75 :
sum(if[(tourney_hand_player_statistics.flg_p_first_raise AND tourney_hand_player_statistics.flg_p_open_opp) and ((tourney_hand_player_statistics.amt_p_raise_made / tourney_blinds.amt_bb)between 2 and 4)) and ((((tourney_hand_player_statistics.amt_p_effective_stack / tourney_blinds.amt_bb) >= 75 AND (tourney_hand_player_statistics.amt_p_effective_stack / tourney_blinds.amt_bb) <= 1000 ) and true) , 1, 0])

cnt_p_open_opp_75 :
sum(if[(tourney_hand_player_statistics.flg_p_open_opp ) and ((((tourney_hand_player_statistics.amt_p_effective_stack / tourney_blinds.amt_bb) >= 75 AND (tourney_hand_player_statistics.amt_p_effective_stack / tourney_blinds.amt_bb) <= 1000) and true)), 1, 0])

Re: RFI by stacksize

PostPosted: Thu Mar 16, 2017 6:06 am
by Flag_Hippo
nherrego wrote:cnt_p_raise_first_in_75 :
sum(if[(tourney_hand_player_statistics.flg_p_first_raise AND tourney_hand_player_statistics.flg_p_open_opp) and ((tourney_hand_player_statistics.amt_p_raise_made / tourney_blinds.amt_bb)between 2 and 4)) and ((((tourney_hand_player_statistics.amt_p_effective_stack / tourney_blinds.amt_bb) >= 75 AND (tourney_hand_player_statistics.amt_p_effective_stack / tourney_blinds.amt_bb) <= 1000 ) and true) , 1, 0])

You have two mismatched brackets (highlighted in red) in the actions column so try removing those. FYI you can copy expressions into Notepad++ which highlights matching brackets automatically.

Re: RFI by stacksize

PostPosted: Thu Mar 16, 2017 5:33 pm
by nherrego
it still shows a value that is bigger then 100 after deleting those

Re: RFI by stacksize

PostPosted: Thu Mar 16, 2017 8:07 pm
by Flag_Hippo
Please attach your stat to a Support Ticket so we can take a look at that for you.

Re: RFI by stacksize

PostPosted: Fri Mar 17, 2017 4:50 pm
by potamito
...custom stat for Raise first in for 75 to 1000 bb deep and only includes opens 2x to 4x...

I made this, try it....

Action Column
Code: Select all
sum(if[tourney_hand_player_statistics.flg_p_open_opp and  tourney_hand_player_statistics.flg_p_first_raise and (tourney_hand_player_statistics.amt_p_raise_made / tourney_limit.amt_bb) BETWEEN 2 and 4  and (tourney_hand_player_statistics.amt_p_effective_stack / tourney_blinds.amt_bb) BETWEEN 75 and 1000 , 1, 0])


Opportunity Column
Code: Select all
sum(if[tourney_hand_player_statistics.flg_p_open_opp and (tourney_hand_player_statistics.amt_p_raise_made / tourney_limit.amt_bb) BETWEEN 2 and 4  and (tourney_hand_player_statistics.amt_p_effective_stack / tourney_blinds.amt_bb) BETWEEN 75 and 1000 , 1, 0])

Re: RFI by stacksize

PostPosted: Sat Mar 18, 2017 3:55 am
by WhiteRider
nherrego wrote:it still shows a value that is bigger then 100 after deleting those

Did you rebuild the custom cache after you made your change? If not, your cache will still have the old values.
To do that go to Database > Database Management and click Rebuild Cache > Custom Cache Rebuild.

Re: RFI by stacksize

PostPosted: Sat Mar 18, 2017 3:56 pm
by nherrego
I did rebuild the cache. I will try potamito hes stat after the weekend. thnx

Re: RFI by stacksize

PostPosted: Sat Mar 18, 2017 9:31 pm
by nherrego
The action stat from potamita shows invalid sql when i try to save it

Re: RFI by stacksize

PostPosted: Sun Mar 19, 2017 4:30 am
by WhiteRider
There's a typo there. This:
(tourney_hand_player_statistics.amt_p_raise_made / tourney_limit.amt_bb)
..should be this:
(tourney_hand_player_statistics.amt_p_raise_made / tourney_blinds.amt_bb)
..in both columns.

highfalutin