VLS Roulette Forum

Main => Money Management => Topic started by: Kon-Fu-Sed on August 08, 2008, 08:52:31 AM

Title: Lab-test Oscar's Grind in d'A Lab
Post by: Kon-Fu-Sed on August 08, 2008, 08:52:31 AM
Hi All,

It is possible to use d'A Lab to lab-test OSCAR'S GRIND!

By reading the variable bankRoll in a formula it is actually possible to calculate the Oscar's bet after a win.
The rules are:
- After a WIN, add 1u to the last bet EXCEPT if the total loss is less than the last bet bet + 1u, in which case the bet will be the total loss + 1u.
- After a LOSS, use the same bet-size as the last bet.


You calculate the bet (after a WIN) with this formula:

(lastBet+1)-((Math.abs(bankRoll)<lastBet+1&&bankRoll<1)*(lastBet+1))+((Math.abs(bankRoll)<lastBet+1&&bankRoll<1)*(Math.abs(bankRoll)+1))

:D Yes, it's true.

EXPLANATION of the formula:
(How to get it into d'A lab is explained at the bottom... ;))

1: (lastBet+1): This simply tells the program to add 1u to the last bet

2: Math.abs(bankRoll): This gives the absolute value (always a positive value) of the bankroll (if it's -123 the absolute value is +123, if it's 0 or positive the absolute value is the same).

3: Now (Math.abs(bankRoll) < lastBet+1 && bankRoll<1) is actually a question:
"Is the absolute value of the bankroll less than the last bet + 1 AND is the bankroll in fact 0 or negative?"
(The "&&" means AND)
The answer to that is either "true" (=1) or "false" (=0).
If "true", that result (1) is then multiplied by (lastBet+1) - note the "*"-sign between them!
Else the other result (0) is multiplied by lastBet+1 giving 0.
In other words: If the answer to the question is 1 ("true") we get a result = lastBet+1 (because we multiplied by 1), if it's 0 ("false") the result is 0 (because we multiplied by 0)

And this result (lastBet+1 or 0) is then subtracted from the initial lastBet+1 - note the "-"-sign!
This operation gives a result that either = 0 (we subtracted lastBet+1 from lastBet+1) or = lastBet+1 (we subtracted 0).

OK so far? (I guess not ;) but...) Now to the rest.

4: (Math.abs(bankRoll)<lastBet+1&&bankRoll<1) is exactly the same question as above and thus gives the exact same answer (1 or 0).
That answer (1 or 0) is then multiplied by Math.abs(bankRoll)+1 (We have to use the absolute value as the bankroll could in fact be negative)
In other words: If the answer to the question is 1 ("true") we get a result = bankRoll+1 (because we multiplied by 1), if it's 0 ("false") the result is 0 (because we multiplied by 0)

And this result (bankRoll+1 or 0) is then added to the previous result - note the "+"-sign!
This gives a final result that either = bankRoll+1 (we added bankRoll+1 to the previous result 0) or = lastBet+1 (we added 0 to the previous result lastBet+1).

As the results of the "questions" can only be 1 or 0, and both give the SAME answer, the formula can only be solved in two ways:
(lastBet + 1) - (0)              + (0)                 = lastBet + 1, or
(lastBet + 1) - (lastBet + 1) + (bankRoll + 1) = bankRoll + 1

Clear as mud, eh? :D
(I am not a teacher so if there is someone more pedagogic than me, and understands what I'm trying to say ;), pleeease feel free to explain!)


OK. How to use the formula in d'A Lab?
In the "WIN bet" formula section, click the left-most radio-button beside the input-field to make it active.
Copy-and-Paste the above formula into the input-field. Be careful - nothing except the formula!
Click ALL other Radio-buttons beside "..." (indicating no action).

In the "LOST bet" formula section, click the left-most Radio-button beside "Last bet"
Click ALL other Radio-buttons beside "..." (indicating no action).

Thats it!
Set everything else as you like it, load spins and off you go!


KFS
Title: Re: Lab-test Oscar's Grind in d'A Lab
Post by: rake922 on August 10, 2008, 03:42:19 AM
not sure this would work...
Title: Re: Lab-test Oscar's Grind in d'A Lab
Post by: Kon-Fu-Sed on August 10, 2008, 03:45:53 PM
Hi Rake,

Well, the formula works but the script doesn't  :-[
Please read the latest post in the "Lab"-thread.

Regards,
KFS