Announcement

Collapse
No announcement yet.

high(-i, sym )

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

  • high(-i, sym )

    Is there a reason this does not return the correct values for me?

    function main() {
    if(getCurrentBarIndex()==0 && run0==null){run0=1
    for (i = 0; i < 20; i++){
    sym="AB H5, 5"
    x= high(-i, sym )
    //debugPrintln("P")
    hAB.unshift(x);

    debugPrintln(i, " ",hAB[0], " ", sym, " ", x)
    }
    }
    return;
    }

  • #2
    David
    FWIW I am getting 639.2 AB H5 5 19 which is the high at bar index -19 on the 5 min chart for AB H5
    Alex

    Comment


    • #3
      Should that code work even if the symbol on the chart is IBM?

      Comment


      • #4
        David
        It is working here even when using other symbols (IBM, $INDU) in the price window
        Alex

        Comment


        • #5
          hmmm, rebooted and it's working here. Thanks for the double checks.

          I must say I have seen some very weird stuff here recently.

          Wonder what it is.... must be me.

          Comment

          Working...
          X