Author Topic: tdif or pdif?  (Read 804 times)

  • All members
  • Posts: 9
tdif or pdif?
« on: 02 Jun 2017, 05:03 »
Not sure which is better to use: tdif or pdif under the following scenario:

Trigger expression checks if in the last 20 minutes, the back price has remained the same. Say the back price is 2.02 and 20 minutes later it still needs to be 2.02 for the trigger to place a bet. I currently use: Selection's Trigger Expression pdif_20 is equal to 0.

  • Moderator
  • Posts: 3511
Re: tdif or pdif?
« Reply #1 on: 02 Jun 2017, 06:06 »
pdif_ and tdif_ are similar, the difference being one measures price difference over time, and the other tick difference over time, both are dependent on market history depth.

if you are monitoring a lot of markets, it may be better to remember the selection prices, and 20 mins later compare against the remembered values. This will save the market history depth eating memory.

second trigger block in this example shows the basics.
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