Announcement

Collapse
No announcement yet.

Vertical Line Study not working in eSignal 12?

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

  • Vertical Line Study not working in eSignal 12?

    Hi,
    The study below works fine in eSignal 10.6; but the Vertical Line is not displayed when I load the study in eSignal 12. Any ideas?
    Thanks,
    Paul



    function preMain(){

    setPriceStudy(true);
    setStudyTitle("US Futures Day Open - Vertical Line");
    setCursorLabelName("Time");


    setComputeOnClose();

    }

    var Cntr = 0;
    var h;
    var m;
    var s;
    var z;


    function main() {

    if(getBarState()==BARSTATE_NEWBAR) {
    Cntr += 1;
    }


    h = (getHour()*10000);
    m = (getMinute()*100);
    s = (getSecond()*1);

    z = h+m+s;


    if(z==230000) {
    // drawTextRelative(0, 0, " D ", Color.cyan, Color.white, Text.FRAME | Text.BOLD | Text.RELATIVETOBOTTOM | Text.CENTER, "Arial", 10, "Time"+Cntr);
    drawLineRelative(0, 0, 0, (1*Infinity), PS_SOLID, 2, Color.cyan, "Time"+Cntr);
    }


    return;

    }

  • #2
    Paul
    See this thread on the very same topic (FYI I found it by searching this forum for vertical line* and it was the first thread returned)
    Alex


    Originally posted by TURLIES View Post
    Hi,
    The study below works fine in eSignal 10.6; but the Vertical Line is not displayed when I load the study in eSignal 12. Any ideas?
    Thanks,
    Paul



    function preMain(){

    setPriceStudy(true);
    setStudyTitle("US Futures Day Open - Vertical Line");
    setCursorLabelName("Time");


    setComputeOnClose();

    }

    var Cntr = 0;
    var h;
    var m;
    var s;
    var z;


    function main() {

    if(getBarState()==BARSTATE_NEWBAR) {
    Cntr += 1;
    }


    h = (getHour()*10000);
    m = (getMinute()*100);
    s = (getSecond()*1);

    z = h+m+s;


    if(z==230000) {
    // drawTextRelative(0, 0, " D ", Color.cyan, Color.white, Text.FRAME | Text.BOLD | Text.RELATIVETOBOTTOM | Text.CENTER, "Arial", 10, "Time"+Cntr);
    drawLineRelative(0, 0, 0, (1*Infinity), PS_SOLID, 2, Color.cyan, "Time"+Cntr);
    }


    return;

    }

    Comment


    • #3
      Hi Alex,
      That's great.
      Thanks.
      Paul

      Comment


      • #4
        Paul
        You are welcome
        Alex


        Originally posted by TURLIES View Post
        Hi Alex,
        That's great.
        Thanks.
        Paul

        Comment

        Working...
        X