Announcement

Collapse
No announcement yet.

How to draw a horizontal line at the close of yesterday on todays prices?

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

  • How to draw a horizontal line at the close of yesterday on todays prices?

    I want to draw a horizontal line at the close of yesterday that will show up on today's bars to indicate change in price for today. What parameter should I use for x1, y1, x2, y2 in the following

    drawLineAbsolute( x1, y1, x2, y2, style, thickness, color, tagID )

    I will appreciate a quick response.

    Baljit

  • #2
    Baljit
    FWIW you do not necessarily need to use EFS to accomplish that and can just use the Previous Close in built-in OHLC study
    Alex


    Originally posted by bsoberoi View Post
    I want to draw a horizontal line at the close of yesterday that will show up on today's bars to indicate change in price for today. What parameter should I use for x1, y1, x2, y2 in the following

    drawLineAbsolute( x1, y1, x2, y2, style, thickness, color, tagID )

    I will appreciate a quick response.

    Baljit

    Comment


    • #3
      Thanks. That was helpful and works for me. The only thing is it draws several lines for every day on the chart. Could you provide a code for drawing line only for last day close price?

      Comment


      • #4
        Baljit
        Just select which values you want and also the option to draw only the current period
        Alex


        Originally posted by bsoberoi View Post
        Thanks. That was helpful and works for me. The only thing is it draws several lines for every day on the chart. Could you provide a code for drawing line only for last day close price?

        Comment


        • #5
          Thanks a lot. That worked.

          Comment


          • #6
            Baljit
            You are welcome
            Alex


            Originally posted by bsoberoi View Post
            Thanks a lot. That worked.

            Comment

            Working...
            X