Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Why cannot see the line under Initialize()

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

    Why cannot see the line under Initialize()

    Hello all,
    when I use
    DrawHorizontalLine("tag1", 1270, Color.Black);
    under
    protected
    overridevoid Initialize() I cannot see the line , but when use the same statment under
    protectedoverridevoid OnBarUpdate()
    I can see the line, any idea?
    Thanks

    #2
    Calling Draw... methods in Initialize() is not supported.

    Comment


      #3
      so what to do or what to use ? I just want to draw the line one time only not with every bar update .
      Thanks

      Comment


        #4
        I think I found it , i should use
        if (CurrentBar == 0)
        under
        OnBarUpdate()

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        574 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        332 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        553 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        551 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X