11
Triggered betting / Re: Selections p/l after event is settled
« Last post by djmotion on 18 May 2024, 02:24 »HiHi, I'll keep this in mind for future strategies. just another question. If I have multiple instances running different strategies on the same event. Would each instance show the p/l for each selection on every instance or only on the instance with that specific strategy? I've just back tested the strategy I'm currently using and it only seems effective on the favourite so I won't be using this strategy on the 2nd, 3rd, 4th faves as planned so I can use market profit/loss for the strategy but I may run other strategies alongside it on the same event so would these instances interfere with each other by showing the selection p/l from all strategies?
Not tested this but if you are backing in win markets, the selection who's lay price is 1.01 is the potential winner, all other selections with back bets are potential losers.
so 2 triggers:
1st trigger as above, first matching selection, condition: selections lay price is equal to 1.01
2nd trigger sets a user variable individually per selection value: -back_matched
all matching selections
conditions:
trigger 1st trigger number of runs in the market is greater than 0
and selections back matched is greater than 0
and selections back price is equal or greater than greater than 1.01
this records the winners profit and assumes the liability for the others as a loss
I don't think this is watertight because a lay price of 1.01 can still be overturned, or the market could be reopened after suspension etc. and also it does not take into account commission on the winning bets.