Pages:
Actions
  • #1 by BlueSky on 18 Dec 2019
  • Hi,

    I would like to compare data from under/over markets with other markets in a trigger expression. More exactly the under/over market of the current result. Explaining better: if the result is 0-0 the under/over market will be 0.5, if 1-0 or 0-1, will be 1.5.

    What´s the simple way to do it? Is there any way of doing it without a sequence of "IF" conditions? Like "IF(market_score1+market_score2=0),football6_s_1_back_price,IF(market_score1+market_score2=1),football7_s_1_back_price,IF(......."

    Thanks
  • #2 by MarkV on 19 Dec 2019
  • Hi
    this trigger will back at back price, selection under (s_1) in current OU market

    TRIGGER
    action: back
    price: back_price
    conditions:
    markets betting code is over/under (soccer) market_score1+market_score2+0.5
    and selections index is equal to 1

    is this something like you were looking to do in the formula?
  • #3 by BlueSky on 19 Dec 2019
  • Hi MarkV

    is this something like you were looking to do in the formula?
    No, Unfortunately it´s not. 

    I would like to compare data like prices or amounts between the under/over market for the current score with other markets. And for that you need (as far as i know) to create a trigger expression where it stands that....e.g. "the price on that market is lower than the price on the under/over market of the current price". How do you refer to the under/over market of the current price in a trigger expression. That´s my question.

    I know how to do it with sucessive IF´s conditions as i explaining in my previous post. But it gives you extenses expressions with several lines (1 "IF" condition for each under/over market) and it demands that all the markets referred in the expression are load at the moment (or else it will give an error).

    So i wonder if there are a better and easier way to do it

    Thanks
  • #4 by Oxa (WellDoneSoft) on 19 Dec 2019
  • Hello!

    I can suggest a workaround by means of a dedicated trigger that would repeatedly update a variable, setting it to the current price of the required selection (e.g. Under x.5) in the market with the current number of goals (i.e. Over/Under x.5 goals where X is the current number of goals scored).

    This way you will not have to use the nested IFs, and as long as you have added all the markets covering possible score, you will have the accurate price of the current Under selection (s_1_back_price).

    Please see the trigger example attached.
  • #5 by BlueSky on 19 Dec 2019
  • Hi Oxa,

    To set an user variable and use that value in a trigger expression seems to fullfill exactly what i wanted.

    But, now i´ve a doubt: what's the objective  of the 2nd trigger "using the price of the current Under in an expression"? I mean, the 1st trigger "updating the current price of Under in the current O_U market seems perfect, but you added the 2nd trigger with the action "write to action log" that i´ve never used, and honestly apart of writing in the program log i really don´t know what´s the porpuse or even if it´s really needed. 

    Sorry about the question, but i am still a beginner and i was assuming that in a situation like this you would "set the user variable" and that was it. After it the value was set and you could use it in any trigger expression without any other action needed to be made.


    Thanks
  • #6 by pcal72 on 20 Dec 2019
  • Hello BlueSky

    The action "write to action log" is to keep a record of that datain your logs, if you dont use itin your project you can deactivate it or delete.

    It is also an example of the application of the variable created in the trigger above and how it can be applied in thousands of occasions.

    pcal
  • #7 by Oxa (WellDoneSoft) on 21 Dec 2019
  • Pcal72 has explained it spot on!
Pages:
Actions