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 xulu13, Today, 05:01 PM
        0 responses
        3 views
        0 likes
        Last Post xulu13
        by xulu13
         
        Started by Pbarrionuevo, Today, 04:30 PM
        0 responses
        4 views
        0 likes
        Last Post Pbarrionuevo  
        Started by vantojo, Today, 01:39 PM
        0 responses
        19 views
        0 likes
        Last Post vantojo
        by vantojo
         
        Started by Rubens_2020, Today, 01:48 PM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_Kate  
        Started by kempotrader, Today, 01:34 PM
        1 response
        25 views
        0 likes
        Last Post NinjaTrader_ChrisL  
        Working...
        X