Author Topic: last traded price - user variable.  (Read 2651 times)

Tags:
  • All members
  • Posts: 49
last traded price - user variable.
« on: 20 Jun 2012, 14:33 »
Hi all.

i am attempting to work out the difference in the last traded price for the horses every so often in play.


i have setup user variables to monitor the last traded price of a given selection every so often and this works fine.

i also setup the same user variable but changed the monitoring time to longer than the 1st variable to give me two reference points to base further calculations on.
this runs into problems however because both variables are continuously monitoring the same selection and eventually they will return the same price. e.g variable 1 runs every 20 secs and variable 2 runs every 30 secs. After 1 min they will return exactly the same price...

the only other way i can think of involves setting up loads of variables to only monitor the price one time each then further calculations could be based on the difference between each of them.

does anyone know of a more efficient way to to this ? as i fear that my copy of mfpro 7 would take one look at all those variables and pass out..



  • Élite
  • Posts: 166
*
Re: last traded price - user variable.
« Reply #1 on: 20 Jun 2012, 15:12 »
Hi redarme,

I am not sure about your goal. Do you want to compare the last traded price 20 seconds ago with a last traded price 30 seconds ago?

Maybe 2 simple moving average calculations with different windows sizes are a solution, too.

Martin



  • All members
  • Posts: 49
Re: last traded price - user variable.
« Reply #2 on: 20 Jun 2012, 17:56 »
Hi martin.

the goal would be to monitor the difference between the two last traded prices and if this difference is greater than say 0.5. e.g price falling from 2.00 to 1.49 then back.

In my mind it is the same as the 'back price dif over' expression, but the last traded price would be used instead of the back price. The back price for me is an unrealiable indicator of price movement.

the monitoring of the last traded price would be in the region of say each one every 5 secs.

Do you think monitoring the variables once would be the better option or to find a way to get them to repeat independently every 5 secs (thats what im struggling with at present - when the variables reach the same time elapsed, 5secs, 10secs whatever, the same price is returned) for both variables.

hope that makes sense..

  • Moderator
  • Posts: 3597
*
Re: last traded price - user variable.
« Reply #3 on: 20 Jun 2012, 20:05 »
Hi
Perhaps you could do this using remember:
Remember qualifying selection(s) repeated every 5 secs, new list every time
Back if remember_1_last_traded – last_traded >0.50
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: 49
Re: last traded price - user variable.
« Reply #4 on: 21 Jun 2012, 05:47 »
Thanks Martin.

i'll give it a go

  • All members
  • Posts: 49
Re: last traded price - user variable.
« Reply #5 on: 21 Jun 2012, 05:52 »
Thanks Mark !!!!

its too early for my sleep deprived brain .....

 

Please note, BetFair is seems to be currently OFFLINE