Forum Article

Bots

Can you please tell me how can a bot detect if there are no Back (or Lay) bets on a selection ? I want it to place bets only on selections with Back or Lay Bets on the market.

Thank you

Corneliu

  • Add Your Comment

    +

    Please login to your bfexplorer account, if you want to add a comment to this article.

Comments ( 42 )


  • Corneliu
    11.7.2018 6:10:28

    I'm having an hard time figuring out how to use "ScoreDifference" criteria correct parameters. i.e. Is "=1";">=2" and "<=3" etc. accepted or only "True" and "False" ? Can I use it with "MatchTime=" or "MatchTime>" in the same line ? i.e. "MatchTime>45 And ScoreDifference>1" ? Thanks for all your precious help, Stefan. 

  • Stefan
    11.7.2018 11:39:53

    It is Boolean algebra, and you can use any combination of parameters you like.

    From your example: MatchTime>45 And ScoreDifference>1

    Let’s say that the match time is 30 and score is 0 – 0, then from Boolean algebra you have got False and False what is equal to False, that means your trigger will not be fired.

    Let’s say that the match time is 46 and score is 0 – 0, the result is True and False, what equals in Boolean algebra to False, the trigger is not fired.

    Let’s say that the match time is 50 and score is 2 – 0, then from Boolean algebra you have got True and True (score difference is 2, what is > 1), this Boolean formula is equal to True, that means your trigger will be fired.

    When you combine with And operator then all partial results must be True, to give you full results as True.

    Using Or operator gives you True result when at least one partial result is True.

    https://en.wikipedia.org/wiki/Boolean_algebra

    You can replace True to 1, and False to 0, then And Boolean operator is in algebra like * (multiplication), so 1 * 0 = 0 (False), 1 * 1 = 1 (True), 0 * 0 = 0 (False)