Pages:
Actions
  • #1 by fumusic on 16 Aug 2020
  • Hi,
    I have set up a variable to place bets when the price is between two prices, let's say 5 & 10. However, I only want the trigger to place bets when the price is increasing to reach between 5 & 10. So if a selection started off with bigger price than 10 and decreased to reach below 10, I want the trigger to ignore it.
    What variable do I need to use and how?
    Thanks in advance.
  • #2 by MarkV on 16 Aug 2020
  • Hi
    you need to define your starting off price.
    let's say Betfair Starting Price
    condition will be:
    and selections actual starting price is between 1.01 and 4.9

    with this condition the price of the selection has to rise from BSP to get to your range of 5 to 10 
  • #3 by fumusic on 16 Aug 2020
  • Hi Mark, sometimes a selection who might have an sp greater than the upper limit may drop in price if they are winning but then their price might increase again if they start losing again. I want the trigger to be able to place a bet when they pass the price bands in the increasing direction. Is there not a variable to determine if the movement of the price is increasing or decreasing?
    Your method of using the sp will not place a bet in the above example because the sp was greater than the upper limit.
    Please advise.
  • #4 by MarkV on 17 Aug 2020
  • Hi
    OK, from your first post I understood you wanted to ignore selections with a starting price higher than your upper limit.

    a variable that shows if a price is increasing or decreasing is tdif_{minutes}, or pdif_{minutes}
    e.g. if tdif_0.25 returns 9 then price has drifted 9 ticks in last 15 seconds. If it returns a negative value then the price is coming in.
    in your betting trigger:
    selections back price is between 5 and 10
    and selections trigger expression tdif_0.25 is greater than 4
    the above means the current price is in your betting range, and the price has risen at least 5 ticks over the last 15 seconds 

    There are various example triggers which demonstrate trading rising prices here.
  • #5 by fumusic on 17 Aug 2020
  • yes mark, this is what i was asking for. i have seen this variable in some of my triggers but i didn't know what they were for and how to use them. thanks for the explanation.
  • #6 by fumusic on 21 Aug 2020
  • If I wanted to track the decreasing prices do i use negative value, ie. pdif_0.25 greater than -2 ?
  • #7 by MarkV on 22 Aug 2020
  • If I wanted to track the decreasing prices do i use negative value, ie. pdif_0.25 greater than -2 ?
    Hi
    yes a negative value returned by pdif_ is a falling price, it should be less than to measure a minimum decrease

Pages:
Actions