Author Topic: Selections p/l after event is settled  (Read 234 times)

Tags:
  • All members
  • Posts: 25
  • Gender: Male
Selections p/l after event is settled
« on: 13 May 2024, 12:45 »
Hey,

So I'm trying to use the selections settled p/l in calculations but can't seem to get it working. I have different bets on the 1st 4 faves so I can't use the market settled p/l for these calculations. It has to be specific to the runner so I'm trying to calculate a running total pl for each selection so it should start at 0 and then plus whatever the settled pl is for that runner. I've tried using selections profit/loss conditions and selections trigger expression profit/loss but these don't work so I'm assuming you can't use these for settled markets. Any idea how I can calculate the settled p/l for each selection? Cheers.

  • Moderator
  • Posts: 3618
*
Re: Selections p/l after event is settled
« Reply #1 on: 16 May 2024, 11:10 »
Hi
selection p/l is not available in settled markets, but here is something you can play with which will capture p/l just before market is settled:

in the settings make sure show p/l net of exchange commission is unticked

set a user variable with value: tradeout_pl individually per selection
once per market
market status: in-play or suspended
conditions:
at least one selections lay price is equal to 1.01
and markets race status is finished

you can change or add conditions as to when you best want to record the p/l's but the user variable should show each selections p/l after the market has been settled  
Please read the following disclaimer with regards to the information you may request and obtain on our forum. This specifically concerns trigger files and various instructions as to how to implement a strategy.

  • All members
  • Posts: 25
  • Gender: Male
Re: Selections p/l after event is settled
« Reply #2 on: 16 May 2024, 14:01 »
Hi
selection p/l is not available in settled markets, but here is something you can play with which will capture p/l just before market is settled:

in the settings make sure show p/l net of exchange commission is unticked

set a user variable with value: tradeout_pl individually per selection
once per market
market status: in-play or suspended
conditions:
at least one selections lay price is equal to 1.01
and markets race status is finished

you can change or add conditions as to when you best want to record the p/l's but the user variable should show each selections p/l after the market has been settled  
Hey, thanks for the reply. So if I set this up on the first 4 runners. Effectively, it would take the current p/l for the runner if the lay odds are 1.01 when the market is finished meaning the runner has secured victory so then I can use this to calculate my running total p/l for each selection? So I can do that for calculations after a win. For losses, would I set up the same trigger but have conditions for market is finished and tradeout_pl for selection is < 0??

  • Moderator
  • Posts: 3618
*
Re: Selections p/l after event is settled
« Reply #3 on: 16 May 2024, 18:20 »
Hi
I thought it would be a good idea but looking closer it wont work because a selection's p/l can be affected by other selections with bets. I will give this some more thought and post here if I come up with something.
Please read the following disclaimer with regards to the information you may request and obtain on our forum. This specifically concerns trigger files and various instructions as to how to implement a strategy.

 

Please note, BetFair is seems to be currently OFFLINE