I think 99% bets are not even allowed on most sites right?
I think you got it back to front... and they're wanting to wager 10% if there are 2 rolls in a row under 1 or above 99... then wager on the 1% chance bets... not on the 99% chance bets

ie.
Roll 1 = 0.74
Roll 2 = 0.87
Roll 3 = wager 10% of balance on chance = 1, bethigh = false (ie. bet low)
or
Roll 1 = 99.4
Roll 2 = 99.87
Roll 3 = wager 10% of balance on change = 1, bethigh = true (ie. bet high)
No No
So regular bet is for example martingale 1sat 49.5 and 100% increase on loose
i there will be 2 over 99% in the row i wish to bet 10% of the balance opposite direction on 99%chance as there is low chance of getting the third one.
So the script should monitor for >99 and <1 and act if there is 2 in the row.
than it should count how many of this hi or low strikes was and let say after 5 it should bet only if there is the row of 3