Author Topic: Need some help to build this trigger  (Read 3664 times)

Tags:
  • All members
  • Posts: 80
  • Gender: Male
Need some help to build this trigger
« on: 31 Jul 2021, 03:38 »
Hello everyone.

I need some help to make a trigger that make a bet if the odd remains x seconds below or above certain odd.

Example: 

- Inplay
- The trigger will fire if the odd remains more than 30 seconds below @3.0. (The odd and the seconds must be changeable)
- Only once per market


This is just an example. Thank you for any help you can give.


Best regards,
joaofrancisco

  • All members
  • Posts: 3652
Re: Need some help to build this trigger
« Reply #1 on: 31 Jul 2021, 11:08 »
Hi
This trigger shows how to set a delay for example to check a price over a period of time.

Also have a look in the help file to understand pdif_ tdif_ variables. These check price or tick changes over a time period and could be useful for you.
Please read the following disclaimer with regards to the information you may request and obtain on our forum. This specifically concerns trigger files and various instructions as to how to implement a strategy.

  • All members
  • Posts: 80
  • Gender: Male
Re: Need some help to build this trigger
« Reply #2 on: 04 Aug 2021, 00:16 »
Thanks MarkV... Sorry for the late response. I see the example trigger you linked and understand it.

But now I have a doubt. My trigger put some unmatched lay bets, but I can´t figure how to cancel the remain unmatched bets when one of them is matched.

Can you help/guide me on this one again?

Thank you for your help.

Best regards,
joaofrancisco

  • All members
  • Posts: 3652
Re: Need some help to build this trigger
« Reply #3 on: 05 Aug 2021, 11:00 »
Hi
It really depends on how your trigger is constructed, but you can try this:

new trigger:
action: cancel lay
condition: selections number of matched lay bets is greater than 0
Please read the following disclaimer with regards to the information you may request and obtain on our forum. This specifically concerns trigger files and various instructions as to how to implement a strategy.

  • All members
  • Posts: 80
  • Gender: Male
Re: Need some help to build this trigger
« Reply #4 on: 06 Aug 2021, 00:23 »
Thanks again MarkV.... I´ll try this trigger.....

I don´t know if I´m doing right to take the same topic to put my doubts. I only do this to not open new topics with only one question....

Now another issue that I can´t figure out to solve this....

In the image below I have the the "Perfoming Trigger" that checks if the horse´s odd is twice the start price (BSP). The bot works fine only with that condition.

Now the issue is that i want to add another condition.

If the BSP is less than @5.00, then when it gets @15.00 do something....
If the BSP is greater than @5.00, then when it gets @10.00 do something....

How and where do I put this conditions?


  • All members
  • Posts: 3652
Re: Need some help to build this trigger
« Reply #5 on: 06 Aug 2021, 06:46 »
Hi
You can use conditions blocks with AND OR logic:

action: do something
conditions:
your conditions..
AND
    OR
       selections actual starting price is less than 5.00
       and selections back price is equal or greater than 15.00
     OR
       selections actual starting price is greater than 5.00
       and selections back price is equal or greater than 10.00
Please read the following disclaimer with regards to the information you may request and obtain on our forum. This specifically concerns trigger files and various instructions as to how to implement a strategy.

 

Please note, BetFair is seems to be currently OFFLINE