Pages:
Actions
  • #1 by foxmor on 24 Sep 2014
  • 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
  • #2 by londolozi on 24 Sep 2014
  • 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.
       
  • #3 by foxmor on 24 Sep 2014
  • thank you... think I've got it!
    Regards
  • #4 by foxmor on 25 Sep 2014
  • 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
  • #5 by foxmor on 25 Sep 2014
  • its working now, variables are changing, apologies
Pages:
Actions