Author Topic: getting highest and lowest  (Read 2036 times)

Tags:
  • All members
  • Posts: 314
getting highest and lowest
« on: 16 Nov 2017, 15:31 »
Hi,

I suppose this is a continuation of my previous question https://community.welldonesoft.com/marketfeeder-troubleshooting/getting-the-result(s)-from-horse-races/new/#new

Not sure if I should have continued, or post a new one, so here goes...

I have so far, been successful in collecting the data into a CSV file, with the following text..
["market_name"],["sel_name"],[sel_place]

which gives me what I need.

Now, I was wondering if I could add to this such that I am able to retrieve the highest and lowest price during the race?

My trigger fires when the market status is settled.

It is not essential to have a further text inside this trigger as I can write another one to do things at an other time, but, if it is possible to perhaps add a postfix to sel, such as [sel_high],[sel_low]

Not sure thats available, but is there some other way I can do this to extract the IPMax/Min

I am asking this because I usually get my data from the data section in Betfair, which produces csv files. If I can get this whilst running MFP, this would make things simpler for me.

Thanks

Mark.

  • Administrator
  • Posts: 8821
  • Gender: Female
*
Re: getting highest and lowest
« Reply #1 on: 16 Nov 2017, 16:18 »
MarketFeeder Pro provides for the way to get the highest and lowest prices a selection had over a certain period of time:

For back prices:

minbp_{minutes}, e.g. minbp_5.0 to get the minimum back price the selection has had over the last 5 minutes.
maxbp_{minutes}

For lay prices:

minlp_{minutes}, e.g. minlp_5.0
maxlp_{minutes}

However, the number of minutes you can specify cannot exceed the depth of your market history (see the attached screenshot). But if you set this history too long, you can imagine what it can do to your RAM, so this is only a solution if you refresh the race within, say, 15-20 minutes.
Always try your triggers in Test Mode before switching to real money!

Follow us on Twitter.

Join our WhatsApp chat!

Присоединяйтесь к официальному Telegram-каналу!

  • All members
  • Posts: 314
Re: getting highest and lowest
« Reply #2 on: 16 Nov 2017, 16:31 »
OK, thanks for the help...

So, as far as I can understand, I think the longest distance of a race is 36 furlongs (4 mile 4 furlongs) - To be honest, I am not sure how long that would take to run, but, lets say it could take 6 minutes, can I set my trigger up as follows:

Market Status - Settled

in my text file generation, use...

["market_name"],["sel_name"],[sel_place],[minlp_6],[maxlp_6],[minbp_6],[maxbp_6]

Would that work, no matter what the distance of the race is, as long as it is at or below 36 furlongs?

Or, have I got that completely wrong?

Thanks

Mark.

  • Administrator
  • Posts: 8821
  • Gender: Female
*
Re: getting highest and lowest
« Reply #3 on: 16 Nov 2017, 19:58 »
To be precise, in the very trigger where you write the data into a file, add another action on top of all other ones (if you have more than one) -- use drag and drop to drag it upwards. In that action do the following:

set user variable Name:mkt_time   Value: (now_time - event_off)/mf_minute   Individually for each market

Then in the second action, use

["market_name"],["sel_name"],[sel_place],[minlp_mkt_time],[maxlp_mkt_time],[minbp_mkt_time],[maxbp_mkt_time]
Always try your triggers in Test Mode before switching to real money!

Follow us on Twitter.

Join our WhatsApp chat!

Присоединяйтесь к официальному Telegram-каналу!

  • All members
  • Posts: 314
Re: getting highest and lowest
« Reply #4 on: 16 Nov 2017, 20:04 »
Thank you so much for that, Oxa,

Reading through what you wrote, I can see the 'better' logic in this.

to be honest, I would NEVER have thought to do it like that.

so, thanks again.

Mark.

  • Administrator
  • Posts: 8821
  • Gender: Female
*
Re: getting highest and lowest
« Reply #5 on: 16 Nov 2017, 20:06 »
Sorry, long day at work!

Should have been:

set user variable Name:mkt_time   Value: (now_time - event_off)/mf_minute   Individually for each market
Always try your triggers in Test Mode before switching to real money!

Follow us on Twitter.

Join our WhatsApp chat!

Присоединяйтесь к официальному Telegram-каналу!

  • All members
  • Posts: 314
Re: getting highest and lowest
« Reply #6 on: 16 Nov 2017, 20:28 »
Hi Oxa, not sure that is correct... see image...

  • All members
  • Posts: 314
Re: getting highest and lowest
« Reply #7 on: 16 Nov 2017, 20:28 »
oh dear - I can be stupid at times - please ignore!!

  • All members
  • Posts: 314
Re: getting highest and lowest
« Reply #8 on: 16 Nov 2017, 20:45 »
OK, I am looking for a suggestion here...

I now have 4 triggers, 
1 for The time value for Win
1 for The time value for Place
1 for the win market, which generates the text file, values using the minutes on the Win time value
1 for the place market, which adds to the text file, using the minutes value on the Place time value

I have set them ALL to take place such that the market status is Settled.

I am currently watching the variable (now_time - event_off)/mf_minute

I have my History min set to 10.00, and the WIN one finished, within 10 minutes, BUT the place one went past 10 minutes

AND, nothing was written to the CSV file in terms of Min/Max values

Do I set the time triggers to fire when the race is suspended, such that a mkt_time value can be set before the settled state?

I think the only appropriate status, can be 'suspended' ?

  • All members
  • Posts: 314
Re: getting highest and lowest
« Reply #9 on: 16 Nov 2017, 21:15 »
hmmm, that didn't work, it didn't write to the CSV file.

Will have to revert back to old way.....

  • Administrator
  • Posts: 8821
  • Gender: Female
*
Re: getting highest and lowest
« Reply #10 on: 17 Nov 2017, 20:32 »
Well, to being with, just check the log of the trigger that did not write the CSV file.
Always try your triggers in Test Mode before switching to real money!

Follow us on Twitter.

Join our WhatsApp chat!

Присоединяйтесь к официальному Telegram-каналу!

 

Please note, BetFair is seems to be currently OFFLINE