Announcement

Collapse
No announcement yet.

Bar History

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Bar History

    Hello,

    I have the following code. What am I doing wrong in trying to reference the previous bar?

    Var test=null;
    Var var1=null;
    var var2=null;


    var1 = middleDonchian(9);
    test = var1(-1);



    -Mike

  • #2
    Re: Bar History

    Mike
    You omitted to use the getValue() method of the series object to retrieve the value from the series eg
    var1.getValue(-1)
    Alex


    Originally posted by sunman4008
    Hello,

    I have the following code. What am I doing wrong in trying to reference the previous bar?

    Var test=null;
    Var var1=null;
    var var2=null;


    var1 = middleDonchian(9);
    test = var1(-1);



    -Mike

    Comment

    Working...
    X