Author Topic: Make MF remember the SP also in markets that do not support SP  (Read 8471 times)

Tags:
  • All members
  • Posts: 12
  • Gender: Female
Hi MF team!  :D

For markets that support SP, the expression for the Home team's starting price would be:

football1_s_1_actual_sp (that's correct?)

However, it can only be used in-play if SP is supported but unfortunately, some markets do not support SP.

My question therefore is:

How do I make MF to remember the odds just before KO, 1 minute before KO to use them later during in-play?

I have several matches running simultaneously so MF needs to be able to distinguish between the markets.

Just a generic example what kind of condition I finally wish to achieve:

If there is 1 goal in the match then Lay O 1.5 goals in the 85th minute in case the home odds at the start were below 1.5

Thanks a lot!  :)

  • Moderator
  • Posts: 3686
*
Hi
last_backp
last_layp
last_last_traded
these are the last prices recorded before the event starts and the variable values are available to use in-play.
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: 12
  • Gender: Female
Thank you!! :D


Is it also possible to get the goal times?

Here a few examples for the use of this variable:

If the second goal was scored below the 35th minute and the match has 4 goals at the 85th minute, lay the O 4.5?

Write to the CSV file at the end of the match: goal1 time, goal2 time, goal 3 time, etc.


And another questions...

Write to the CSV file at the end of the match:

1. Odds of various markets and selections at the start of the match, e.g. match odds, HT match odds, OU odds, etc.

2. For all these in (1) captured markets and selections also their odds, e.g.  at 40 min and any other chosen times, e.g. 85th minute


I know how to record each match individually as well as by market code but this means that these files have to be opened one by one at the end of the matches and the data transferred manually into the monitoring file. What I would wish is to achieve is to capture the data of the matches I monitor all in one line at the end of the game, when the markets have been settled.


  • Moderator
  • Posts: 3686
*
Hi
I can give you some pointers:

For the goal times:
set user variable G1, value match_minute, condition: market_score1+market_score2 is equal to 1
set user variable G2, value match_minute, condition: market_score1+market_score2 is equal to 2
---etc

also see Item 4 here as it might be what you want
https://marketfeeder.co.uk/learn/articles/highlights/22-01-2019/
 
Regarding writing data to csv have a look at these two links which could be modified to your need
https://marketfeeder.co.uk/learn/triggers/writing-to-file/
https://community.welldonesoft.com/marketfeeder-triggered-betting/write-selected-data-to-excel-sheet-13720/

I would just mention to be aware ideally you should be placing some real bets in the markets you are collecting market data
https://marketfeeder.co.uk/learn/articles/delayed-betfair-account/   
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: 12
  • Gender: Female
Thanks a lot! I will get my head round user variables. :D

Also many thanks for the advise that Betfair may get somewhat funny with too much data collection. I will therefore place at least one real bet on the 1x2 markets to make it look legitime whilst I collect the goal and other data for my CSV file. No problem.

Another question...

I only need the Over/Under markets after a certain minute of the match and then, only the OU market that equals the current goal number to lay for one or more goals.

The OU markets can certainly be loaded via the 'Market Locator' at the beginning of the match but they should only get life to collect the odds before KO, then they can stay un-monitored until HT, switch on, get the prices, turn off, and so on.

In effect, what I wish to achieve is to switch them on and off at times when I wish to carry out some action.

However, the 1x2 market must stay active all the time as it's being monitored during the whole match.

What's the trick?

  • Moderator
  • Posts: 3686
*
Hi
The way to do this is to control the market refresh rate using a trigger. Slow down refresh rate when not needed and speed it up near when you want to do something.
For example:

SLOW DOWN REFRESH RATE TRIGGER
set market in-play refresh rate to Rate: 180
conditions:
selections trigger expression match_minute is between 2 and 5
AND
    markets betting code is over/under (soccer) 0.5
    or markets betting code is over/under (soccer) 1.5
    or markets betting code is over/under (soccer) 2.5 
    or etc....

SPEED UP REFRESH RATE TRIGGER FOR CURRENT SCORE OU AND ONE MORE OU
set market in-play refresh rate to Rate: 5
conditions:
selections trigger expression match_minute is between 40 and 45
AND
    markets betting code is over/under (soccer) market_score1 + market_score2 + 0.5
    or markets betting code is over/under (soccer) market_score1 + market_score2 + 1.5
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