Announcement

Collapse
No announcement yet.

EFS to draw line to indicate Market Opening Time

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • EFS to draw line to indicate Market Opening Time

    Hello

    Is there any way to use an efs function to draw a vertical line at either 9.25 or 9.30 on a 24 hour chart in order to indicate visually at a glance when the market opens?

    I have looked at drawLineRelative etc but these studies seem to rely on an offset not an absolute value.

    Thanks in anticipation

  • #2
    Patch227
    The code snippet enclosed below shows you how to draw a line at 9:30
    Alex

    PHP Code:
    if((hour(0) * 100) + minute(0) == 930){
        
    drawLineRelative(000Infinity*1PS_SOLID1Color.lightgrey"Line"+getCurrentBarCount());

    Comment


    • #3
      Thanks very much Alex, much appreciated

      Comment


      • #4
        Patch227
        You are most welcome
        Alex

        Comment

        Working...
        X