Announcement

Collapse
No announcement yet.

Help: draw line off the open bar Open to close

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

  • Help: draw line off the open bar Open to close

    How do you write code to draw a line at 50% or half the distance of the open to close of the 9:30 bar.
    Example: 9:30-9:40 bar
    open $20.00
    close $21.00

    A line is then draw across chart at 20.50 half the distance of the open to close of 9:30 bar

  • #2
    Re: Help: draw line off the open bar Open to close

    sjsr
    Set up a condition similar to the one I showed you in this thread eg if((hour(0)*100)+minute(0)==930) and then use the drawLineRelative() function to draw a line at (open(0)+close(0))/2
    For the description and syntax of the functions used in the examples see the linked articles in the EFS KnowledgeBase
    Alex


    Originally posted by sjsr
    How do you write code to draw a line at 50% or half the distance of the open to close of the 9:30 bar.
    Example: 9:30-9:40 bar
    open $20.00
    close $21.00

    A line is then draw across chart at 20.50 half the distance of the open to close of 9:30 bar

    Comment

    Working...
    X