49ers wrote: ↑Sun Jan 19, 2020 3:45 pmHello,
I'm not sure if this is me or not but there might be a potential bug in the software so just wanted to check?
I'm trying to set a shared stored value with the price of the most recent matched bet but it doesn't seem to be working, nothing is recorded in the Log file and the SV value remains at 0. I have the rule set to trigger just once as I want to record the opened bet odds on the runner (Set/Modify Stored Value Only) hence there are no conditions.
Stored_Values.png
Does anybody else experience the same thing?
Thanks
I've set up a similar servant and done a test and it works exactly as I expected and there is no bug.49ers wrote: ↑Mon Jan 20, 2020 9:31 amThanks for your reply. What I'm trying to do is record the opening odds of the first bet on a selection not the market so I don't think this would work?
I have several servants running on different runners and when a position is opened I want to record the odds of the first matched bet. I thought that this condition would work for this but it just isn't storing a value hence my checking to see if this is potentially a bug? I could do this in Excel but it seems more simple to use BA if possible?
If I run the servant on a selection where I have already had a matched bet it sets my previously unset SV with the odds of MY last matched bet on the selection.
If I run the servant on a selection where I have not had a a matched bet it sets my previously unset SV with 0 .
Your first post said that you have set up a rule to execute once with no conditions. Your second post mentions that your rule is in a manually started servant.
So immediately you start your servant your rule will trigger and it will assign THE PRICE OF YOUR MOST RECENT MATCHED BET or ZERO (if you havent already had a matched bet) into the SV. Then the rule will never run again as it runs once only. If you only want to run the rule after your first bet is matched then you need to set a "Number of Matched Bets" > 0 condition. If you wanted to capture the price of the first trade for the selection (regardless of if it is one your own trades) then you need to assign Last Traded Price into your SV and add a condition that Volume of the Selection > 0.