Post by Ipposnif on Aug 30, 2019 8:41:28 GMT
From version 3.0 you can easily implement a personal stakes progression using the function dbo.fn_CustomProgression.
The progression can be applied to a sequence of winning bets or a sequence of losing bets.
The function returns the size of the next bet in the progression, so it should be used in the Size criteria of the bet. The syntax is:
dbo.fn_CustomProgression(@id_strategy, '1.00,1.50,2.50,3.00', 'w')
The 1' param should not be changed, it contains a variable that is automatically resolved by Ipposnif. This variable returns the ID of the current strategy.
The 2' param is a string containing the comma-separated list of the bet sizes of the progression. The amounts can have two decimals, and the decimal separator is always a dot (.) whatever are the local settings of your PC. No spaces.
The 3' param can be 'w' for a progression that chases a row of winning results or 'l' for a progression that chases a row of losing results.
In the example above we have a progression of a maximum of 4 winning bets.
The function returns zero (no bet) in one of the following cases:
winning progression ('w')
a) The previous bet was a losing bet.
a) The number of winning bets in a row equals the count of amounts passed to the function (in this example 4 amounts).
c) the previous bet was winning, but it was partially matched. So the capital could not be enough to complete the progression.
losing progression ('l')
a) The previous bet was a winning bet.
b) The number of losing bets in a row equals the count of amounts passed to the function.
To automatically reset the strategy, insert the following expression into the strategy criteria: "Reset Condition (SQL Assertion)"
@bet_size = 0
@bet_size returns the next bet size of the strategy, in our case it is like writing:
dbo.fn_CustomProgression(@id_strategy, '1.00,1.50,2.50,3.00', 'w') = 0