Author Topic: Determining if a market supports "silks" data  (Read 2988 times)

Tags:
  • All members
  • Posts: 154
  • Gender: Male
Determining if a market supports "silks" data
« on: 19 Sep 2014, 20:37 »
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

  • Élite
  • Posts: 3698
  • Gender: Male
*
Re: Determining if a market supports "silks" data
« Reply #1 on: 20 Sep 2014, 06:54 »
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
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: 154
  • Gender: Male
Re: Determining if a market supports "silks" data
« Reply #2 on: 20 Sep 2014, 09:37 »
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


  • All members
  • Posts: 154
  • Gender: Male
Re: Determining if a market supports "silks" data
« Reply #3 on: 20 Sep 2014, 09:51 »
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

  • Administrator
  • Posts: 8821
  • Gender: Female
*
Re: Determining if a market supports "silks" data
« Reply #4 on: 05 Oct 2014, 17:39 »
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!
Always try your triggers in Test Mode before switching to real money!

Follow us on Twitter.

Join our WhatsApp chat!

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

  • All members
  • Posts: 154
  • Gender: Male
Re: Determining if a market supports "silks" data
« Reply #5 on: 06 Oct 2014, 23:07 »
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

  • All members
  • Posts: 80
Re: Determining if a market supports "silks" data
« Reply #6 on: 11 Oct 2014, 18:25 »
Same here. Thank you! I was always confused about silks just until I got this confirmation.
Automatic isn't always everything.

 

Please note, BetFair is seems to be currently OFFLINE