Pages:
Actions
  • #1 by Wez on 19 Sep 2014
  • Hi,

    is there a flag of some sort which can be tested to determine if a horse racing market supports silks data?  I know there is one for whether the market supports SP betting.

    I have been using Engineering mode lately and occassionally I get "Error in trigger expression" appearing in the parameter boxes.  Sometimes this disappears as soon as the market has been refreshed a couple of time and sometimes it stays there.  When it stays there it appears to be due to the market not having silk data available.  I'm not 100% sure whether a simple test along the lines of "trigger expression silk_form_length is greater than 0") will work under these conditions (assuming of course at least one horse has some form!).

    I basically want to stop bets being placed in a market that doesn't support silk data, specifically silk_weight.  I have seen one of my triggers place a bet on every selection in a market as a result of silk data not being available in the market!  I know silk_form can be tested to determine its length, but this isn't foolproof because not all horses have "previous"  ;D

    I guess a workaround might be to test how many selections meet the selection criteria (e.g. if the number of matching selections = number of runners, don't bet.)

    regards

    Wez
  • #2 by mcbee on 20 Sep 2014
  • hi
    you could add a new trigger to delete the market if any selection has no silk data.

    condition.
    at least one selection's trigger expression silk_age is equal to "Silk_Age"

    if silks are available in the market, there is always the age.


    mcbee
  • #3 by Wez on 20 Sep 2014
  • Hi mcbee,

    thanks for the steer.  Testing for silk_age is a much better idea.

    Just so I can track whether my trigger condition works, I set a user var m_silks_available to 1 by default (i.e. assume silks are available) and then clear it if silks aren't availabe as per your suggestion (at least one selection's trigger expression silk_age is equal to "Silk_Age").

    I then put m_silks_available in the View User Variable window to see if it gets cleared for a market without silks.  Interestingly by default the variable is set as m_1_available and m_0_available when not.  So the word "silks" in the variable name is changing!  So I added "silks" to the view user variable window, disabled the setting and clearing of my m_silks_available variable and lo and behold "silks" changes according to whether the market supports silks or not!

    So that suggests there is indeed a MFP flag already!  Can you confirm this please?

    thanks

    Wez

  • #4 by Wez on 20 Sep 2014
  • Sorry,

    I should have said that I had "No triggering till 1.00 mins before the event's start" set which is why the variable wasn't being set properly in the "watch window"  I have just unticked this setting and my user var now gets set to 1 or 0 as expected.  i.e. My variable is directly tracking what the (in-built?) "silks" variable does.  (Screen shots attached)

    Wez
  • #5 by Oxa (WellDoneSoft) on 05 Oct 2014
  • Hi Wez,

    Sorry, I've just come across your topic.

    I should have helped you before, because the variable silks is undocumented, and it does indeed return 1 if silks are available, and 0 if they are not! I will add it to the manual now, sorry you have wasted so much time without knowing about this variable!
  • #6 by Wez on 07 Oct 2014
  • Thanks for confirming Oxa.  I was fairly convinced that "silks" was an internal variable and I have been happily using it in my latest triggers.

    regards

    Wez
  • #7 by fosterdrew on 11 Oct 2014
  • Same here. Thank you! I was always confused about silks just until I got this confirmation.
Pages:
Actions