Pages:
Actions
  • #1 by BlueSky on 10 Mar 2016
  • Hi,

    I am trying to make a simple trigger that places 1 lay bet at back_price and 1 back bet at lay_price. when lay_price=1.01, as i would like to put the 2 bets on the same trigger,  the back bet is placed but as the back_price doesn´t exist, the lay bet isn´t put (Error in the trigger expression).

    Is there any way without separating the lay and back bets of avoid this error? I mean in the example: a back bet would be placed, the lay wouldn´t, but no error would be created.

    Thanks
  • #2 by pcal72 on 11 Mar 2016
  • Hi Blue

    If your lay_price = 1.01 what is the odd of your back_price??

  • #3 by Tim (WellDoneSoft) on 11 Mar 2016
  • Enter an exact value into the "price" field (instead of lay_price and back_price) if you need to send unmatched bet.
  • #4 by BlueSky on 11 Mar 2016
  • Hi,

    If your lay_price = 1.01 what is the odd of your back_price??

    Pcal72, i know the reason of the error. The trigger points out to a price that doesn´t exist, therefore it gives an error.

    But, is there is a way to avoid the program displaying this error (like with a condition in the price or other) without having to separate the trigger in 2 different ones: 1 to the lay and other to the back bet or, in alternative, 1 for when the lay_price=1.01 and the other for all the other prices?

    Enter an exact value into the "price" field (instead of lay_price and back_price) if you need to send unmatched bet.
    Tim, i am not sure if i understood what i mean. The trigger is to be used for a variety of different prices, not just for situations when the lay_price=1.01.

    Only when when lay_price=1.01, due to the way the back_price is established, it gives an error.

    Can you explain better what what do you mean?

    I know how to avoid this error: i just need to duplicate the trigger. My question is if there is a way to define the price (with an "IF" condition or other) or any other aspect of the trigger that can avoid this duplication.

    Thanks
  • #5 by Tim (WellDoneSoft) on 11 Mar 2016
  • MAXV(lay_price, 1.01)
  • #6 by LarpHager on 11 Mar 2016
  • I like these.

    See attached.

    Lay Price is  r_ticks(back_price,-0)

    Larp

    Oops Tim got in with an answer



    • LarpHager
  • #7 by BlueSky on 11 Mar 2016
  • Hi,

    MAXV(lay_price, 1.01)
    Tim, i guess you meant to say MAXV(back_price, 1.01). Anyway, i tried with this expression and it didn´t make what i wanted. When the lay_price is 1.01, as it comes from the definition of MAXV, it simply places a 2nd bet (a lay one) at 1.01: the same price of the back bet (MF6).

    Lay Price is  r_ticks(back_price,-0)
    LarpHager, i wasn´t exacly 100% sure of what u meant to say, so i tried both 2 ways:

    In the 1st, i changed the r_ticks(back_price, +1) by the r_ticks(back_price,-0) (MF5). In the 2nd, i simply defined the lay price as r_ticks(back_price,-0).

    In both situations the result was the same: the error remains (mf4 e mf8).

    I would like that when lay_price=1.01 a back bet was placed at 1.01 and no lay bet was placed. Also i would like to do it without any error or the need to duplicate the trigger.

    Thanks
  • #8 by pcal72 on 12 Mar 2016
  • Hi

    If you have in same trigger one back and one lay and if one on them fires, the second one will always try to fire.
    I dont know if i understand you correctly, because of languadge but if you wont you know where to find me.

    pcal72
Pages:
Actions