Announcement

Collapse
No announcement yet.

It works, but it always needs a RELOAD

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

  • It works, but it always needs a RELOAD

    It works, but it always need RELOAD
    Need mod to auto reload as the chart moves on
    Attached Files
    Larry Dudash
    HAL at
    http://share.esignal.com/groupconten...r=&groupid=549

  • #2
    Larry
    That is happening because your condition is looking into the bars following the one being processed ie low(1), low(2) and low(3).
    While the efs loads in the chart and processes historical data these bars exist (up to a certain point) however they do not exist in real time ie on bar index 0. To correct this you need to modify your condition to look back at historical bars eg
    PHP Code:
    if(low(-4) <= low(-3) &&  low(-4)  <= low(-5
    && 
    low(-4) <= low(-2) &&  low(-4)  <= low(-6
    && 
    low(-4) <= low(-1) &&  low(-4)  <= low(-7) ) { 
    You also need to change the references for the starting point of the line and for the placement of the text.
    PHP Code:
    drawTextRelative(-4low(-4)-VDISTrnd2(low(-4)), Color.redColor.whiteText.ONTOP|Text.CENTER|Text.TOPnull12900);
    drawLineRelative(-4,low(-4) , 26low(-4), PS_SOLID1Color.red901); 
    Once you make these changes the script should work in real time without the need to reload it
    Alex


    Originally posted by larrydudash
    It works, but it always need RELOAD
    Need mod to auto reload as the chart moves on

    Comment


    • #3
      Alexis
      Thanks again.
      It worked fine
      Larry Dudash
      HAL at
      http://share.esignal.com/groupconten...r=&groupid=549

      Comment


      • #4
        Larry
        You are most welcome
        Alex


        Originally posted by larrydudash
        Alexis
        Thanks again.
        It worked fine

        Comment

        Working...
        X