Page 1 of 1

Can help me on this code ?

PostPosted: Sat Sep 24, 2022 6:50 pm
by dojirun
Code: Select all
if (tourney_blinds.amt_bb > 20,if ((3.77481 + cnt_vpip) / (7.01037 + 3.77481 + (cnt_hands - cnt_walks)) > 0.35 + 0.5 * 0.125,"loose",if ((3.77481 + cnt_vpip) / (7.01037 + 3.77481 + (cnt_hands - cnt_walks)) < 0.35 - 0.5 * 0.125,"tight","equilibrium")),if (tourney_blinds.amt_bb > 7,if ((4.91586 + cnt_vpip) / (6.008275 + 4.91586 + (cnt_hands - cnt_walks)) > 0.45 + 0.5 * 0.125,"loose",if ((4.91586 + cnt_vpip) / (6.008275 + 4.91586 + (cnt_hands - cnt_walks)) < 0.45 - 0.5 * 0.125,"tight","equilibrium")),if ((5.73575 + cnt_vpip) / (3.08848 + 5.73575 + (cnt_hands - cnt_walks)) > 0.65 + 0.5 * 0.125,"loose",if ((5.73575 + cnt_vpip) / (3.08848 +5.73575 + (cnt_hands - cnt_walks)) < 0.65 - 0.5 * 0.125,"tight","equilibrium"))


I don't see what go wrong, I got invalid format expression can anybody help me please ?

Re: Can help me on this code ?

PostPosted: Sat Sep 24, 2022 7:15 pm
by dojirun
Code: Select all
if (tourney_blinds.amt_bb > 20,if ((3.77481 + cnt_vpip) / (7.01037 + 3.77481 + (cnt_hands - cnt_walks)) > 0.35 + 0.5 * 0.125,format("loose"),if ((3.77481 + cnt_vpip) / (7.01037 + 3.77481 + (cnt_hands - cnt_walks)) < 0.35 - 0.5 * 0.125,format("tight"),format("equilibrium"))),if (tourney_blinds.amt_bb > 7,if ((4.91586 + cnt_vpip) / (6.008275 + 4.91586 + (cnt_hands - cnt_walks)) > 0.45 + 0.5 * 0.125,format("loose"),if ((4.91586 + cnt_vpip) / (6.008275 + 4.91586 + (cnt_hands - cnt_walks)) < 0.45 - 0.5 * 0.125,format("tight"),format("equilibrium"))),if ((5.73575 + cnt_vpip) / (3.08848 + 5.73575 + (cnt_hands - cnt_walks)) > 0.65 + 0.5 * 0.125,format("loose"),if ((5.73575 + cnt_vpip) / (3.08848 +5.73575 + (cnt_hands - cnt_walks)) < 0.65 - 0.5 * 0.125,format("tight"),format("equilibrium")))

update, but don't work too, I have use format for the string output

Re: Can help me on this code ?

PostPosted: Sun Sep 25, 2022 5:48 am
by dojirun
Code: Select all
if (tourney_blinds.amt_bb > 20,if ((3.77481 + cnt_vpip) / (7.01037 + 3.77481 + (cnt_hands - cnt_walks)) > 0.35 + 0.5 * 0.125,"loose",if ((3.77481 + cnt_vpip) / (7.01037 + 3.77481 + (cnt_hands - cnt_walks)) < 0.35 - 0.5 * 0.125,"tight","equilibrium")),if (tourney_blinds.amt_bb > 7,if ((4.91586 + cnt_vpip) / (6.008275 + 4.91586 + (cnt_hands - cnt_walks)) > 0.45 + 0.5 * 0.125,"loose",if ((4.91586 + cnt_vpip) / (6.008275 + 4.91586 + (cnt_hands - cnt_walks)) < 0.45 - 0.5 * 0.125,"tight","equilibrium")),if ((5.73575 + cnt_vpip) / (3.08848 + 5.73575 + (cnt_hands - cnt_walks)) > 0.65 + 0.5 * 0.125,"loose",if ((5.73575 + cnt_vpip) / (3.08848 +5.73575 + (cnt_hands - cnt_walks)) < 0.65 - 0.5 * 0.125,"tight","equilibrium"))))

update, correction number of parenthesis. Doesn't work.

Re: Can help me on this code ?

PostPosted: Sun Sep 25, 2022 5:52 am
by dojirun
Solved, it's tourney.amt_bb need to be amt_bb.

Re: Can help me on this code ?

PostPosted: Sun Sep 25, 2022 7:10 am
by dojirun
Code: Select all
if (amt_bb > 20,if ((3.77481 + cnt_vpip) / (7.01037 + 3.77481 + (cnt_hands - cnt_walks)) > 0.35 + 0.5 * 0.125,1.0,if ((3.77481 + cnt_vpip) / (7.01037 + 3.77481 + (cnt_hands - cnt_walks)) < 0.35 - 0.5 * 0.125,0.0,0.5)),if (amt_bb > 7,if ((4.91586 + cnt_vpip) / (6.008275 + 4.91586 + (cnt_hands - cnt_walks)) > 0.45 + 0.5 * 0.125,1.0,if ((4.91586 + cnt_vpip) / (6.008275 + 4.91586 + (cnt_hands - cnt_walks)) < 0.45 - 0.5 * 0.125,0.0,0.5)),if ((5.73575 + cnt_vpip) / (3.08848 + 5.73575 + (cnt_hands - cnt_walks)) > 0.65 + 0.5 * 0.125,1.0,if ((5.73575 + cnt_vpip) / (3.08848 +5.73575 + (cnt_hands - cnt_walks)) < 0.65 - 0.5 * 0.125,0.0,0.5))))

Now I have this code, is valide, is work in report, but can't import in hud, anyone know why ? I have try, with decimal, number, and string expression (actually in decimal)

Re: Can help me on this code ?

PostPosted: Sun Sep 25, 2022 7:18 am
by dojirun
Solved, need to use live_amt_bb

highfalutin