Announcement

Collapse
No announcement yet.

setComputeOnClose

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

  • setComputeOnClose

    Hi,
    I'm working with version 10.2 from 8/29/08.
    The function setComputeOnClose does not work!
    In the following example variable "a" is constantly updated on the same bar.

    function preMain() {
    setStudyTitle("test");
    setPriceStudy(true);
    setComputeOnClose;
    }
    var a=0;
    function main() {
    a++;
    return("A:"+a);
    }

    Is it a BUG?

    Regards,
    Baruch

  • #2
    Re: setComputeOnClose

    Baruch
    You omitted to add the parenthesis after setComputeOnClose ie setComputeOnClose()
    Alex


    Originally posted by baruchs
    Hi,
    I'm working with version 10.2 from 8/29/08.
    The function setComputeOnClose does not work!
    In the following example variable "a" is constantly updated on the same bar.

    function preMain() {
    setStudyTitle("test");
    setPriceStudy(true);
    setComputeOnClose;
    }
    var a=0;
    function main() {
    a++;
    return("A:"+a);
    }

    Is it a BUG?

    Regards,
    Baruch

    Comment

    Working...
    X