I have a rule that places a back bet at best market price, i want to store the odds at which it made the bet to use it for next stage.
also i have this stored value in the same rule that places the back bet is this ok?
i think this is the option but i am not 100% sure can anyone confirm?
Matched Bet Information of a Selection - Can Store the Price of a Matched Bet, Amount Matched or Bet Reference of the most recent bet, most recent back bet or most recent lay bet on a selection
Stored Values question
-
- Posts: 23
- Joined: Sun Jul 05, 2020 10:56 pm
You do not have the required permissions to view the files attached to this post.
The problem you have with that approach is that the bet isn't yet matched as the rule runs. Therefore your SV will save the matched bet prior to that rule, if there is one.
I would set a signal in your first rule instead i.e BetPlaced. Then save the last matched price as an SV in a further rule a set period of time later, testing that BetPlaced is set, Matched Bets > 0 and possibly BetPlaced signal changed between x and y seconds ago. You'll need to do some resetting if you'll be placing bets multiple times though.
Also helps when you don't get matched immediately, if you are asking for a better price
There's an example in the Servants I uploaded here (4th and 5th rules down from the top)
viewtopic.php?f=58&t=20737
I would set a signal in your first rule instead i.e BetPlaced. Then save the last matched price as an SV in a further rule a set period of time later, testing that BetPlaced is set, Matched Bets > 0 and possibly BetPlaced signal changed between x and y seconds ago. You'll need to do some resetting if you'll be placing bets multiple times though.
Also helps when you don't get matched immediately, if you are asking for a better price
There's an example in the Servants I uploaded here (4th and 5th rules down from the top)
viewtopic.php?f=58&t=20737
-
- Posts: 23
- Joined: Sun Jul 05, 2020 10:56 pm
i understand, well for this case its just one bet.
but from what you say i understand the logic is correct but just have to place it after the rule that places the bet, is that right?
anyways i will have a look at the rules you suggested and thanks for taking your time answering.
but from what you say i understand the logic is correct but just have to place it after the rule that places the bet, is that right?
anyways i will have a look at the rules you suggested and thanks for taking your time answering.
Correct, for just one bet then place another rule to activate after, when matched bets are > 01point5wizard wrote: ↑Tue Jul 07, 2020 7:55 ami understand, well for this case its just one bet.
but from what you say i understand the logic is correct but just have to place it after the rule that places the bet, is that right?
anyways i will have a look at the rules you suggested and thanks for taking your time answering.
I just like to use signals to ensure everything stays tight and only runs when it should
