Pages:
Actions
  • #1 by Oxa (WellDoneSoft) on 06 Feb 2014
  • Copied from the support:

    Quote
    I am using a trigger to back horses or dogs at back_price. I want to add a condition to my trigger that will stop the bet being placed if the lay price is more than a certain number of ticks greater than the back price.
    for example" AND lay price = or less than 5 ticks greater than back price"
    If this is not possible to use some sort of % condition to achieve the same result.
     
    I do not know what the back price of my selection will be, it could it any price as it is chosen by trigger, but i don't want to back it if the lay price is not in the same region as the back price.
     
    can you please assist. Many thanks in anticipation.

    Please note that the triggers for version 6 are no longer created as a part of free technical support.
  • #2 by MarkV on 06 Feb 2014
  • Hi
    The condition to add to your backing trigger is:
    and selections trigger expression g_ticks(back_price,lay_price) is equal or less than 5

    if you are using version 6, if I remember correctly the syntax is:
    AND Trigger Expression g_ticks(back_price,lay_price) is equal or less than 5

    Explanation from manual:
    g_ticks(price1, price2)
    Returns the difference between price1 and price2 in ticks. If price1 is less than price2, the result will be positive, otherwise - negative. Examples:
    g_ticks(2, 3) = 50
    g_ticks(4, 3.5) = -10
    g_ticks(6, 6) = 0
  • #3 by mcbee on 07 Feb 2014
  • hi
    wow, that looks complicated.
    for v6 and v7 just use
    and selections back price is equal or greater than r_ticks(lay_price,-5)


    mcbee
  • #4 by MarkV on 08 Feb 2014
  • Hi
    Attached is a trigger file demonstrating both conditions. It will back the favourite, but you can modify it to your own requirement. Only one trigger should be enabled:
    In the constants set:
    amount to back
    maximum ticks between best back and best lay prices
    minutes before the off to bet

    Please try it in test mode.
Pages:
Actions