Author Topic: Remember last 5 back prices each refresh?  (Read 2091 times)

Tags:
  • All members
  • Posts: 149
Remember last 5 back prices each refresh?
« on: 24 Sep 2014, 10:52 »
Hi,
Could anyone help me please...

I want to record the last 5 back prices each refresh in separate remember variables and as a new price is recorded each previous price moves along and the last one drops off the end, so they're continuously updated with latest 5 back prices?

Or would someone have a better way of keeping track of the last 5 back prices per refresh!

Any ideas?
foxmor

  • All members
  • Posts: 490
  • Gender: Male
Re: Remember last 5 back prices each refresh?
« Reply #1 on: 24 Sep 2014, 11:20 »
I think you mean the back price in the last five refreshes.
I would use 5 user variables
bp_1 <=> back_price + pdif_{idle_rate}
bp_2 <=> back_price + pdif_{idle_rate*2}
bp_3 <=> back_price + pdif_{idle_rate*3}
bp_4 <=> back_price + pdif_{idle_rate*4}
bp_5 <=> back_price + pdif_{idle_rate*5}

You may have to set up 5 constants as the idle_rate values. Remember they are in seconds not minutes.

Anyway you should get the idea.

Test it first.
   
Improvise Adapt Overcome

  • All members
  • Posts: 149
Re: Remember last 5 back prices each refresh?
« Reply #2 on: 24 Sep 2014, 11:38 »
thank you... think I've got it!
Regards

  • All members
  • Posts: 149
Re: Remember last 5 back prices each refresh?
« Reply #3 on: 25 Sep 2014, 13:07 »
Hello,
I've set this up as you said but when I view user variables, each of them are just displaying 1000, no change within the 7 minutes before the off, monitoring markets?

Am I doing something wrong?
foxmor

  • All members
  • Posts: 149
Re: Remember last 5 back prices each refresh?
« Reply #4 on: 25 Sep 2014, 13:20 »
its working now, variables are changing, apologies

 

Please note, BetFair is seems to be currently OFFLINE