Author Topic: Remembering lowest in play back price  (Read 1788 times)

Tags:
  • All members
  • Posts: 9
  • Karma: +0/-0
Remembering lowest in play back price
« on: Sun, 17 July, 2011, 17:17 »
Can someone help me please. I need a trigger to remember the lowest price traded during in play for each runner. Can someone show me how this is done?
Thanks Ben

  • Tim Vetrov
  • Administrator
  • Posts: 4569
  • Karma: +18/-0
  • Gender: Male
*
Re: Remembering lowest in play back price
« Reply #1 on: Mon, 18 July, 2011, 10:45 »
Action: set user variable
Name: min_lt_sel_id
Value: IF(last_traded<min_lt_sel_id,last_traded,min_lt_sel_id)
Repeat: no more often than [N] seconds
Selections: All selections
Status: in-play

Don't forget to create a trigger to initialize the min_lt_sel_id variables to prevent dead lock.

Don't know how can you use these variables...
I'm happy to help Monday - Friday, 08:00-18:00 GMT
Буду рад помочь с понедельника по пятницу, 08:00-18:00 GMT

  • All members
  • Posts: 9
  • Karma: +0/-0
Re: Remembering lowest in play back price
« Reply #2 on: Mon, 18 July, 2011, 13:49 »
This seems to be only recording the lowest value over the whole market and not per horse, any ideas? thanks