Could you explain in plain English on what conditions should a market be deleted? From what I can see, you are trying to delete a market when there are at least 20 events where the second team's score is equal to 3?
These are not the original conditions. I changed them because, at the late time i was checking it, there were almost no matches inplay and the original conditions were too demanding and not as frequent as required to "trigger it". So, to confirm the results, i had to change the conditions to something that could use the result of a match in progress. The match i used had the time displayed and the result was 0-3. I had, therefore, to change the conditions to match_minute >0 and market_score2 =3 to be able to fire the trigger.
The question here is that with both the original conditions, at a earlier time of the day, and with these, at a later time, the result i obtained was the same.
When the user variable assumed the demanded value (21 in this case) in just 1 event , all active markets were deleted, no matter the event they belonged to.Describing better the original trigger:Intention: to delete a market when the event is inplay at betfair, but both score and time are not being shown. I noticed this in several matches yesterday.
Implementation: 2 triggers: 1 to define the user variable (inactive markets) and the 2nd one to delete the market.
Conditions: inactive markets: "selection´s trigger expression match_minute is equal to zero" and "selection´s trigger expression ,market_score1 is less than 0". This set the user variable "inactive.market". Each time the user variable is set, it adds 1 to its previous value.
delete market: "selection´s trigger expression inactive.market is greater than 20". The conditions to set the user variable "inactive.market" force me to use the condition "inactive.market > 20". At inplay, in the 1st refreshes, after the market is imported by the market locator, both score and time are not displayed by the program (assume match_minute=0.00 and market_score1=-1). So, the user variable will always be fired several times, even in a normal active market. That´s why i had to use a greater value. To give a margin to avoid these situations.
I send you the original trigger in attachment.
I hope this time i could have been more explicited. Sorry about the big post, but i guess it was needed.
Thanks