rdavydov / Twitch-Channel-Points-Miner-v2

A simple script that will watch a stream for you and earn the channel points.
GNU General Public License v3.0
1.1k stars 326 forks source link

SMART strategy placed wrong bet #513

Open AdamSaketume26 opened 2 months ago

AdamSaketume26 commented 2 months ago

Describe the bug

i saw logs that miner put bet on win with 88.5% when it should have put bet to lose because of smart strategy. INFO - TwitchChannelPointsMiner.classes.Twitch - [make_predictions]: Place 10k channel points on: Win (BLUE), Points: 47k, Users: 6 (85.71%), Odds: 1.13 (88.5%)

bet=BetSettings( strategy=Strategy.SMART, # Choose you strategy! percentage=25, # Place the x% of your channel points percentage_gap=35, # Gap difference between outcomesA and outcomesB (for SMART strategy) max_points=10000, # If the x percentage of your channel points is gt bet_max_points set this value stealth_mode=True, # If the calculated amount of channel points is GT the highest bet, place the highest value minus 1-2 points Issue #33 delay_mode=DelayMode.FROM_END, # When placing a bet, we will wait until delay seconds before the end of the timer delay=10, minimum_points=10000, # Place the bet only if we have at least 20k points. Issue #113 filter_condition=FilterCondition( by=OutcomeKeys.TOTAL_USERS, # Where apply the filter. Allowed [PERCENTAGE_USERS, ODDS_PERCENTAGE, ODDS, TOP_POINTS, TOTAL_USERS, TOTAL_POINTS] where=Condition.GTE, # 'by' must be [GT, LT, GTE, LTE] than value value=10 ) )

88.5 - 11.5 = 77 < 35 percentage gap so it should bet on the 11.5% lose but it didnt . is this because TOTAL_USERS was < 10 FOR THE 11.5% LOSE OPTION ?? but isnt total users total users making ANY bet? what went wrong here?

Steps to reproduce

bet=BetSettings( strategy=Strategy.SMART, # Choose you strategy! percentage=25, # Place the x% of your channel points percentage_gap=35, # Gap difference between outcomesA and outcomesB (for SMART strategy) max_points=10000, # If the x percentage of your channel points is gt bet_max_points set this value stealth_mode=True, # If the calculated amount of channel points is GT the highest bet, place the highest value minus 1-2 points Issue #33 delay_mode=DelayMode.FROM_END, # When placing a bet, we will wait until delay seconds before the end of the timer delay=10, minimum_points=10000, # Place the bet only if we have at least 20k points. Issue #113 filter_condition=FilterCondition( by=OutcomeKeys.TOTAL_USERS, # Where apply the filter. Allowed [PERCENTAGE_USERS, ODDS_PERCENTAGE, ODDS, TOP_POINTS, TOTAL_USERS, TOTAL_POINTS] where=Condition.GTE, # 'by' must be [GT, LT, GTE, LTE] than value value=10 ) )

and make channel prediction 88.5 win with some users and 11.5 lose with only 2 users

Expected behavior

88.5 - 11.5 = 77 < 35 percentage gap so it should bet on the 11.5% lose but it didnt

Operating system

Windows 11

Python version

3.12

Miner version

1.9.5

Other relevant software versions

No response

Logs

INFO - TwitchChannelPointsMiner.classes.Twitch - [make_predictions]: Going to complete bet for EventPrediction(event_id=, streamer=Streamer(username=streamer, channel_id=id, channel_points=points), title=WIN MATCH?) INFO - TwitchChannelPointsMiner.classes.Twitch - [make_predictions]: Place 10k channel points on: Win (BLUE), Points: 47k, Users: 6 (85.71%), Odds: 1.13 (88.5%)

Additional context

No response

Diekion commented 1 week ago

EventPrediction: Streamer1 (119,845 points) - Radahn - Decision: 1: Se lo pasa despues (PINK) - Result: WIN, Gained: +0

Bet when you can't win anything. It's also strange, isn't it?