Author Topic: [TR] discover fav, at start, then discover 2nd and 3rd place fav in play, at time...  (Read 1869 times)

Tags:
  • All members
  • Posts: 314
Hi,

I am looking to have a trigger made, which will do the following..
I require this procedure to be dynamically timed, meaning if it is a 1 mile race, then start parts of the sequence at say 50 seconds after the off, if it is a 3 mile race, then do it at say 2 minutes after the off.

Do the following...

1. Show and record the favourite at the off
2. Whilst in play, observe its price, and if it reaches a constants value (I choose - e.g. 12.00) in play, then do step 3
3. look at the new 1st and 2nd favourite AT THAT TIME, and if either of them drops in price, to imply they will win, AND the original favourites' price grows to a minimum value in constants (I choose)
4. if these conditions are satisfied LAY the original favourite based on a LIABILITY stake, which I choose.

OK, not sure if I have outlined this correct, but, to summarise, I am looking to lay the ORIGINAL (at the off)favourite, at a point in time in the race where this selection is losing, and has now moved to at least the 3rd place. There must be a gap of at least X ticks (I choose) between the original favourites price and the new 2nd place horse. I then want to place my LAY bet on the original favourite at a liability of X% of my bank, which I choose.

For example...

record favourite
Bank = £100,
liability risk = 10% of bank
price to use for LAY = 12
wait 1 minute after the off, then....
new favourite price = 1.8 - at which point we lay.

Hope that's clear?

Thanks

Mark.


  • Élite
  • Posts: 3698
  • Gender: Male
*
hi
here is your trigger,in the constants you can set.
The number of seconds left till the end of the race
Set bank amount
Percent of bank liability 
Minimum lay price of SP fav then place bet
Tick decrease of 1st or 2nd fav
Maximum back price for the current fav

a very interesting trigger/system.

please use test mode until you are happy with your settings

mcbee

download the trigger below
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: 314
WOW!
That was quick! I never expected that...

Thanks, will test it some point today.

  • All members
  • Posts: 314
Hi mcbee,

Thanks for coding that up for me. Its not totally what I asked for, but it is OK, and after trying it yesterday, it seems to be working. I have made some adjustments to it, in order to suit my needs.

I wanted to be able to choose the time before it does things, rather than using the market_name value as you have added in. No problem on that, just and observation.

I would like to adjust the trigger now, such that I ask that the place of the horse to be lay'd is in a position which I choose.

So, given the conditions are satisfied, the new favourite has reached 1.80 and the original favourite has now reached 12.00, I also want to add in that the position of the horse (based on its price), is now where I choose.

So, if I want the original favourite to be in 4th place, then I want a constants value to enter my choice as 4, or 3, or 5, or whatever value I think works best.

If this requires a new trigger request, then let me know.

Thanks

Mark.

  • Élite
  • Posts: 3698
  • Gender: Male
*
hi
sorry , yes you will have to request a new trigger for the added condition to choose the new position required.

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: 314
IF this is possible, I will request a trigger...
« Reply #5 on: 05 Feb 2017, 15:31 »

hi mcbee,

OK, this is a little more complicated....
 
I want to raise this here, to see if you can give me all I have asked for in requesting this trigger. It is purely for my education. Because I am not fully conversant in the MFP language construct, I can't figure out many things. If it was C#, then I could do it very easily, so I am stuck, and I actually develop many applications in C# to satisfy my needs, instead of getting MFP to do them.
 
 I would like to be able to log all of the runners, so if we have horse1 to horse9, then I would like to be able to look at them by using their name,
 
So, I want to see what horse3 Actual Starting Price was, and then look at its place in the race, is it 2nd, 3rd, 8th, etc
 
If I can then reference these values, I can set conditions for betting.
 
 I did pick up some nice tips from the last trigger you did for me, so I can use them in future triggers.
 
 
 
 As above, I want to be able to monitor each horse and make a decision on what I want to do with it, so, for example, I want to make sure that the current favourite, no matter what its name is, has a price of below 1.8, and the horse that has the minimum of the Actual Starting Price has drifted in price to at least 16, BUT, I also want to be able to check on how horse6 is doing, and if it is looking like it will lose, I will lay it.
 
I don't know how to reference the horses by name. I know that you can do r_1_sel_name to give the name of the horse in first place, this info is in the manual, but, how do I get a set of reference values for the horse by name, so, horse4 has SP of 7.4, it is now in first place, but, what position is horse7 in
 
how do I get the horses name that is in 1st place/2nd/3rd
 
how do I get to see what the lowest price of horse5 was, throughout the race up until the point of checking?
 
so, in summary...
 
 1. I want to be able to discover the name of every horse, and be able to reference each runner by name, and THEN, throughout the race, access its values, such as position (current rank), its BSP.
 
 I want to know how to be able to store any value as a variable, such as looking at horse2 price, 40 seconds after the race starts, then look how much its price has risen around 3 minutes after the off.
 
 OK, there is a lot to look at here (imho), so, let me know if you can look to put those things into a trigger - you may realise here that I have not actually set out a strategy here, and I am just asking you to show me how to get values. When you show me how to do these things, then I can develop strategies from this.
If you can show me how to do that for say 4 horses, then I can then work out how to add in more horses - or maybe you can suggest something different...?
 
If this is all possible, I will just copy this into a trigger request.
Thanks
 
Mark.

  • Élite
  • Posts: 3698
  • Gender: Male
*
hi
horse 4 = s_4_sel_name
s = selection   , so you can use the s_4_back_price to see the price of horse 4
now if you want to see every selections SP and other info
i will start you off with the first condition to add to the engineer mode then you can add whatever you want.
open settings at the top of mfp screen
general options
show markets in change to    engineer mode
select Edit Default Values
in the first box type    actual_sp
click ok
save
now reload the markets so that the new command will work
your now looking at the engineer mode in each box you can add whatever you want to get the info you require.
the condition for the lowest price is minbp_30 
minbp = back price
minlp = lay price
30 = 30 minutes 
set your history to 30 in the monitoring options

let me know what other info you require to learn

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.

 

Please note, BetFair is seems to be currently OFFLINE