Pages:
Actions
  • #1 by markoone11 on 16 Nov 2017
  • 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.
  • #2 by Oxa (WellDoneSoft) on 16 Nov 2017
  • 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.
  • #3 by markoone11 on 16 Nov 2017
  • 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.
  • #4 by Oxa (WellDoneSoft) on 16 Nov 2017
  • 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]
  • #5 by markoone11 on 16 Nov 2017
  • 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.
  • #6 by Oxa (WellDoneSoft) on 16 Nov 2017
  • 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
  • #7 by markoone11 on 16 Nov 2017
  • Hi Oxa, not sure that is correct... see image...
  • #8 by markoone11 on 16 Nov 2017
  • oh dear - I can be stupid at times - please ignore!!
  • #9 by markoone11 on 16 Nov 2017
  • 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' ?
  • #10 by markoone11 on 16 Nov 2017
  • hmmm, that didn't work, it didn't write to the CSV file.

    Will have to revert back to old way.....
  • #11 by Oxa (WellDoneSoft) on 17 Nov 2017
  • Well, to being with, just check the log of the trigger that did not write the CSV file.
Pages:
Actions