Pages:
Actions
  • #1 by alexbetmaster on 03 Jul 2015
  • Hi,

    Need some advise on trigger.

    So basically, I have set price ranges for Back and for Lay price, however I need trigger to know that these price ranges needs to hold to 2 refreshed in a row.

    This is to exclude trigger to fire on first price jump for one refresh, like 3.00 -> refresh -> 10.00 -> refresh -> 3.5.

    Is there a way to do it?
    Or maybe some adive where to look.

    Best Regards,
    Alex
  • #2 by Oxa (WellDoneSoft) on 03 Jul 2015
  • There is no direct way to check that, but you can do this indirectly.

    You can access the change of selection's price over X minutes ago through a variable pdif_X.

    Therefore you could check something like:

    Selection's Back Price is between min_price and max_price
    and Selection's Trigger Expression back_price - pdif_X is between min_price and max_price
    and Selection's Trigger Expression back_price - pdif_Y is between min_price and max_price


    where X is the number of minutes that correspond with your refresh rate, and Y is that number doubled.

    For instance, if your refresh rate is 2 sec, then this will be:

    Selection's Back Price is between min_price and max_price
    and Selection's Trigger Expression back_price - pdif_0.033 is between min_price and max_price
    and Selection's Trigger Expression back_price - pdif_0.066 is between min_price and max_price

  • #3 by alexbetmaster on 03 Jul 2015
  • Thank you, will try.
Pages:
Actions