Pages:
Actions
  • #1 by asjames on 07 Oct 2013
  • Hey all I am very new to this trigger wriiting and coding and it all looks confusing to me!
    Is anyone able to help me out with a trigger for backing or laying a horse in the win market depending on its price

    thanks
  • #2 by MarkV on 07 Oct 2013
  • Hi
    Sure. You need to be a bit more specific about your requirement. For example:
    At 10 minutes before the off I want to back the favourite as long as the favourites price is below 6.00.
    At 5 minutes before the off if the price has come in 5 ticks or more from the price I backed it at, lay it to green-up.
    At 1 minute before the off close the trade whether in profit or loss.
    The above is just an example, but if you can similarly describe what you want to do, we can have a go at making a trigger for you.
  • #3 by asjames on 08 Oct 2013
  • Thanks for the help.

    I would like something like this:

    2 Minutes before the off check the price of the favorite, If odds are X and under then lay the horse. However if the odds are X and over then back the horse. No trade out required just let it run in play.
  • #4 by MarkV on 08 Oct 2013
  • Hi
    Please try the attached trigger in test mode.
    Set the Back or Lay triggering price in the Constant.
  • #5 by asjames on 08 Oct 2013
  • Hey thanks looks like its working as planned
    Could I add some more variables in if possible?

    adding in stake percentage of bank and higher odd lays

    for example

    lay 1% of bank if price is between x and x
    back 1.5% of bank if price is between x and x
    lay 0.6% of bank if price is between x and x
    lay 0.4% of bank if price is between x and x

    is this possible?

    thanks for all your help so far
  • #6 by MarkV on 08 Oct 2013
  • Hi
    Please try the modified trigger file which is attached in test mode.
    Set your price ranges and percentages for each range in the Constants
  • #7 by asjames on 09 Oct 2013
  • Ok thats getting there :)

    during testing though it seems that both trigger sometime fire.

    so basically the bets need to be placed exclusively in-play (not in running)
    and if one fires the other cannot
  • #8 by MarkV on 09 Oct 2013
  • Hi
    Please try the attached file in test mode.
Pages:
Actions