Author Topic: Delete pair of markets not meeting criteria  (Read 1157 times)

Tags:
  • All members
  • Posts: 22
Delete pair of markets not meeting criteria
« on: 15 Mar 2017, 13:05 »
Dear Team,
 
I was hoping you can assist me on a hopefully not too difficult trigger I am looking.
In the football market,  I have a selection of matches based on match odd and over 1.5 Goals.
 
I need the home team back price in match odds to be less than Y AND back price in over 1.5 to be less than Y.
I need both markets to meet the criteria otherwise delete both sets of markets.
 
I am having trouble on this (beginning) part of the trigger as only one market is being deleted and not the other, any ideas would be much appreciated so I can continue with the rest of the trigger.
 
Thanks a million,

  • Élite
  • Posts: 3698
  • Gender: Male
*
Re: Delete pair of markets not meeting criteria
« Reply #1 on: 15 Mar 2017, 14:53 »
hi
you would use the market prefixes to delete the second market.
so if you delete the match odds first you would use the football1_market_parent_id is not greater than 0
because if the match odds has been deleted there will be no market_parent_id

mcbee
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: 22
Re: Delete pair of markets not meeting criteria
« Reply #2 on: 15 Mar 2017, 17:46 »
Hi mcbee,

Thank you so much, it worked exactly as I wanted.
Fantastic support in this forum as always, much appreciated.

MM

 

Please note, BetFair is seems to be currently OFFLINE