Cbet F vs Hero

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

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

Cbet F vs Hero

Postby Huttydr » Sat Feb 27, 2021 5:14 pm

HI! I have created this stat but it fails since it always gives me 100 where can the error be?
stat:(cnt_f_cbet_vs_hero / cnt_f_cbet_opp_vs_hero) * 100
cnt_f_cbet_vs_hero : sum(if[cash_hand_player_statistics.flg_f_cbet and exists
(select 1
from cash_hand_player_statistics hero
where hero.id_hand = cash_hand_player_statistics.id_hand
and hero.flg_hero
and hero.flg_f_cbet_def_opp), 1, 0])
cnt_f_cbet_opp_vs_hero : sum(if[cash_hand_player_statistics.flg_f_cbet_opp and exists
(select 1
from cash_hand_player_statistics hero
where hero.id_hand = cash_hand_player_statistics.id_hand
and hero.flg_hero
and hero.flg_f_cbet_def_opp), 1, 0])
Huttydr
 
Posts: 15
Joined: Tue Jan 12, 2021 3:35 pm

Re: Cbet F vs Hero

Postby Flag_Hippo » Sun Feb 28, 2021 6:43 am

You cannot use hero.flg_f_cbet_def_opp in the opportunities column as it will only be true when the CBet has been made.
Flag_Hippo
Moderator
 
Posts: 14503
Joined: Tue Jan 31, 2012 7:50 am

Re: Cbet F vs Hero

Postby mish » Sun Feb 28, 2021 9:23 am

I am currently working on the same topic. I tried the "saw flop" Flag instead:

cnt_f_cbet_vs_hero
sum(if[cash_hand_player_statistics.flg_f_cbet and exists (select 1
from cash_hand_player_statistics hero
where hero.id_hand = cash_hand_player_statistics.id_hand
and hero.flg_hero and hero.flg_f_saw), 1, 0])

cnt_f_cbet_def_opp_vs_hero
sum(if[cash_hand_player_statistics.flg_f_cbet_def_opp and exists (select 1
from cash_hand_player_statistics hero
where hero.id_hand = cash_hand_player_statistics.id_hand
and hero.flg_hero and hero.flg_f_saw), 1, 0])

unfortunately the output is not plausible. Which one to use?
mish
 
Posts: 4
Joined: Sun Feb 28, 2021 9:18 am

Re: Cbet F vs Hero

Postby Huttydr » Sun Feb 28, 2021 12:21 pm

mish wrote:I am currently working on the same topic. I tried the "saw flop" Flag instead:

cnt_f_cbet_vs_hero
sum(if[cash_hand_player_statistics.flg_f_cbet and exists (select 1
from cash_hand_player_statistics hero
where hero.id_hand = cash_hand_player_statistics.id_hand
and hero.flg_hero and hero.flg_f_saw), 1, 0])

cnt_f_cbet_def_opp_vs_hero
sum(if[cash_hand_player_statistics.flg_f_cbet_def_opp and exists (select 1
from cash_hand_player_statistics hero
where hero.id_hand = cash_hand_player_statistics.id_hand
and hero.flg_hero and hero.flg_f_saw), 1, 0])

unfortunately the output is not plausible. Which one to use?



try to use my expression for the column of times that cbet does and in the one of opportunities use yours changing cash_hand_player_statistics.flg_f_cbet_def_opp by cash_hand_player_statistics.flg_f_cbet_opp
Huttydr
 
Posts: 15
Joined: Tue Jan 12, 2021 3:35 pm

Re: Cbet F vs Hero

Postby Huttydr » Sun Feb 28, 2021 1:27 pm

Huttydr wrote:
mish wrote:I am currently working on the same topic. I tried the "saw flop" Flag instead:

cnt_f_cbet_vs_hero
sum(if[cash_hand_player_statistics.flg_f_cbet and exists (select 1
from cash_hand_player_statistics hero
where hero.id_hand = cash_hand_player_statistics.id_hand
and hero.flg_hero and hero.flg_f_saw), 1, 0])

cnt_f_cbet_def_opp_vs_hero
sum(if[cash_hand_player_statistics.flg_f_cbet_def_opp and exists (select 1
from cash_hand_player_statistics hero
where hero.id_hand = cash_hand_player_statistics.id_hand
and hero.flg_hero and hero.flg_f_saw), 1, 0])

unfortunately the output is not plausible. Which one to use?



try to use my expression for the column of times that cbet does and in the one of opportunities use yours changing cash_hand_player_statistics.flg_f_cbet_def_opp by cash_hand_player_statistics.flg_f_cbet_opp
I try this but unfortunately the results are not real there are too many opp
Any idea?
Huttydr
 
Posts: 15
Joined: Tue Jan 12, 2021 3:35 pm

Re: Cbet F vs Hero

Postby Flag_Hippo » Sun Feb 28, 2021 2:39 pm

I said that the hero.flg_f_cbet_def_opp edit was required for the opportunities column only. hero.flg_f_cbet_def_opp is still required in the actions column.

cnt_f_cbet_vs_hero
Code: Select all
sum(if[cash_hand_player_statistics.flg_f_cbet and exists
(select 1
from cash_hand_player_statistics hero
where hero.id_hand = cash_hand_player_statistics.id_hand
and hero.flg_hero
and hero.flg_f_cbet_def_opp), 1, 0])

cnt_f_cbet_opp_vs_hero
Code: Select all
sum(if[cash_hand_player_statistics.flg_f_cbet_opp and exists
(select 1
from cash_hand_player_statistics hero
where hero.id_hand = cash_hand_player_statistics.id_hand
and hero.flg_hero
and hero.flg_f_saw), 1, 0])
Flag_Hippo
Moderator
 
Posts: 14503
Joined: Tue Jan 31, 2012 7:50 am

Re: Cbet F vs Hero

Postby mish » Sun Feb 28, 2021 7:52 pm

Great! ty
mish
 
Posts: 4
Joined: Sun Feb 28, 2021 9:18 am


Return to Custom Stats, Reports and HUD Profiles

Who is online

Users browsing this forum: No registered users and 18 guests

cron