Author Topic: Delete market if previous market not settled  (Read 871 times)

Tags:
  • All members
  • Posts: 28
  • Gender: Male
Delete market if previous market not settled
« on: 28 Oct 2021, 12:53 »
Hi,

I don't understand why this doesn't work, and wondered if anyone knows where I am going wrong.

I am working with horse racing and start to monitor each market 0.1 minutes before the scheduled start time.

What I want to do is delete markets that start monitoring before the previous market is settled.

I set up a trigger at the start of my sequence and set it to delete the market. I added two conditions

Markets minutes before the off is equal or less than 0.1

and Previous triggered event's status is not settled


However the trigger does not delete the market and it continues to place a bet.

How do I configure the trigger to delete the market

Thanks for any help

  • Moderator
  • Posts: 3605
*
Re: Delete market if previous market not settled
« Reply #1 on: 28 Oct 2021, 17:53 »
Hi
On the first market you bet in, the condition:
and Previous triggered event's status is not settled
will always be false because there was no previous triggered event for the delete trigger, if that makes sense
this is usually sorted by having a condition block like:
AND
trigger {name of delete trigger} number of runs in the market is equal to 0
or previous triggered events status is not settled

It is difficult to say without seeing the context of your trigger, but I think you will need a user variable, something like Point 3. in this article
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: 28
  • Gender: Male
Re: Delete market if previous market not settled
« Reply #2 on: 28 Oct 2021, 20:54 »
Hi Mark,

Thanks for replying.

I will look at what I can do in that respect.

Just going on to another problem that I have encountered. I am using the function "previous triggered events status is not settled", but also I am using a loss recovery system and want to carry any loss to the next day.

I have a trigger set up to not bet if the previous market is not settled

AND
trigger {name of backing trigger} number of runs in the market is equal to 0
or previous triggered events status is not settled

I also have managed to set up a user variable to monitor losses and adjust the current bet figure accordingly.

The problem I have is going on to the next day with a loss.

If I refresh the trigger I lose the current bet amount, it reverts back to the initial bet.
However, if I don't refresh the trigger the value for the backing trigger number of runs in the market remains above zero, from the previous day.

I have tried various ways to get the backing trigger number of runs in the market to go back to 0 at the start of each days racing, without refreshing the trigger, but so far nothing has been successful. Have you any ideas?

  • Moderator
  • Posts: 3605
*
Re: Delete market if previous market not settled
« Reply #3 on: 29 Oct 2021, 06:42 »
Hi
Add a Constant with the same name as your current bet variable and change: Start with initial value to: Remember last value. It will retain the last value on reloading the trigger or restarting MFP.
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