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.
    DierkNinjaTrader Customer Service

    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 jc.am, Today, 07:59 PM
        1 response
        5 views
        0 likes
        Last Post NinjaTrader_EricB  
        Started by ybhx0315, Today, 09:06 PM
        0 responses
        2 views
        0 likes
        Last Post ybhx0315  
        Started by parkinsonbr, Today, 08:23 PM
        0 responses
        3 views
        0 likes
        Last Post parkinsonbr  
        Started by i2w8am9ii2, Today, 04:36 PM
        2 responses
        13 views
        0 likes
        Last Post i2w8am9ii2  
        Started by WeyldFalcon, Today, 02:07 PM
        2 responses
        15 views
        0 likes
        Last Post WeyldFalcon  
        Working...
        X