Announcement

Collapse
No announcement yet.

I need help to draw a line...

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

  • I need help to draw a line...

    Hello everyone!

    Is there way to draw a horizontal line on ONLY specified amount of bars (ex. 2 bars) ahead from O/H/L/C single price bar that meet specific criteria or condition?

    I would appreciate any tips...
    Thanks in advance!

  • #2
    Yes, use the drawLineRelative() function.

    Assuming, for example, that your script determines that the offset to the bar you are interested in is currently -10, then

    PHP Code:
    nOff  = -10;

    drawLineRelativenOffclose(nOff), nOff+2close(nOff), PS_SOLID2Color.blue ); 
    would draw a horizontal line with a length of 2 from that bar.

    Chris

    Comment


    • #3
      Hello Chris!

      It's working fine! Thank you, Thank you very much!!!

      Respectfully yours,

      Comment

      Working...
      X