Author Topic: 2nd matching selection  (Read 2982 times)

Tags:
  • All members
  • Posts: 22
  • Gender: Male
2nd matching selection
« on: 21 Apr 2017, 19:13 »
Hi all

In my trigger i have i back first matching selection at 1.01 and max back trigger_ price 1.99 how do i make that the 2nd or 3rd matching selection ie the first one hits trigger mark then drifts out and another horse come through? so if 1st horse continues on to win no bets will be placed at all im struggling to find the selection in block

any help greatly appreciated 

Jamie

  • All members
  • Posts: 14
  • Gender: Male
Re: 2nd matching selection
« Reply #1 on: 22 Apr 2017, 03:48 »
Maybe add condition "and - selection - back matched - is equal to - 0" into the back trigger?

  • All members
  • Posts: 22
  • Gender: Male
Re: 2nd matching selection
« Reply #2 on: 22 Apr 2017, 04:51 »
hi soylolo

Thanks for your reply could you explain to me what that condition actual means as I'm still trying to learn the programing side of things ?

Also what would I need to change the block to as at the moment its set on - first matching selection?

Thanks for your help

jamie

  • Moderator
  • Posts: 3597
*
Re: 2nd matching selection
« Reply #3 on: 22 Apr 2017, 12:19 »
Hi
soylolo's suggestion is good. it means to bet only on selections which have no matched back bets.

So your trigger should be:

back
price 1.01
selections: all matching selections
execute: once per selection
example conditions:
selections back price is less than 2.00
and selections back matched is equal to 0
and selections back unmatched is equal to 0

please use test mode when testing  
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
  • Gender: Male
Re: 2nd matching selection
« Reply #4 on: 22 Apr 2017, 17:46 »
Hi Mark

Thanks for you help

Im testing in time machine where 1st  horse hits 2.0 then loses the race to another selection
The trigger now has backed both selections that reached 2.0 how do i make it only the second selection to hit 2.0 only with no bet if only 1 horse gets to 2.0 ??

I have
selection back price between 1.01 and trigger_price 2.0
all matching selections
win markets
once per selection
back matched equals 0
back unmatched equals 0

Any help greatly appreciated

Thanks

Jamie

  • Moderator
  • Posts: 3597
*
Re: 2nd matching selection
« Reply #5 on: 22 Apr 2017, 19:51 »
Hi
2 triggers, one to remember the first selection to get to 2.00 and the second trigger backs the second selection to get to 2.00:

TRIGGER 1
remember, name: fav_market_id, create a new list every time, disregard selections bets
first matching selection
once per market
conditions:
selections rank is equal to 1
and selections back price is between 1.01 and 2.00

TRIGGER 2
back
first matching selection
once per market
conditions:
selections rank is equal to 1
and selections back price is between 1.01 and 2.00
and selections trigger expression sel_id is not equal to fav_market_id_sel_id

the last condition checks the id of the selection is different from the remembered selection
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
  • Gender: Male
Re: 2nd matching selection
« Reply #6 on: 23 Apr 2017, 06:03 »
Hi Mark

Thanks for you help trigger is working as planned thanks to yourself much appreciated

One slight issue i am having is i want to disregard any races  where the favorite is already at 2.0 or below in trigger 1 i have added and selections actual starting price is between sp1 and sp2 in constants  3.5-7.0 but does not seem to work any suggestions

Thanks

James

  • Moderator
  • Posts: 3597
*
Re: 2nd matching selection
« Reply #7 on: 23 Apr 2017, 06:19 »
Hi
Actual SP is not available until after the market is turned in-play.
and of course the market should support SP prices

This setting should be ticked: General Options > Market Settings > Load SP Prices
and you need to set the Market Status field for both triggers to: In-Play

add this condition as the first condition in the remember trigger:
markets SP is supported


 



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
  • Gender: Male
Re: 2nd matching selection
« Reply #8 on: 23 Apr 2017, 06:54 »
Hi Mark

Thanks i have changed al that but its still not leaving races alone where favorite is below sp1 - sp2 its still counting them as first trigger point i attach trigger for you to see if im missing something if possible

Thanks

james

  • Moderator
  • Posts: 3597
*
Re: 2nd matching selection
« Reply #9 on: 23 Apr 2017, 09:23 »
Hi
add this condition as the first condition in the backing trigger:
global user variables fav_market_id are set

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
  • Gender: Male
Re: 2nd matching selection
« Reply #10 on: 23 Apr 2017, 09:48 »
Thanks mark 

I will try this shortly when get home 

James 

  • All members
  • Posts: 22
  • Gender: Male
Re: 2nd matching selection
« Reply #11 on: 24 Apr 2017, 19:21 »
Thanks mark all working as requested 

 

Please note, BetFair is seems to be currently OFFLINE