Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Indicator Panel Draw Objects Lost When Moved

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

    Indicator Panel Draw Objects Lost When Moved

    When I Use DrawOnPricePanel=false and DrawLine() to draw a line in an indicator panel, then drag that indicator on to the Price panel, the lines that were drawn are lost, and do not appear on the price panel.

    #2
    Hello,

    Thanks for the note.

    Curious, do the lines come back if you press f5 to refresh NinjaScript?

    Comment


      #3
      Originally posted by NinjaTrader_Brett View Post
      Hello,

      Thanks for the note.

      Curious, do the lines come back if you press f5 to refresh NinjaScript?
      The lines never get displayed while the indicator is overlaid on the price panel, even if F5 is pressed. If the indicator is dragged back to it's own panel, then the lines re-appear, but only after pressing F5.

      Comment


        #4
        Hello,

        Alright what is occurring is this is still at play in the indicator init as you suggested.

        DrawOnPricePanel=false

        So that indicator Plot output would be on panel one however the drawing objects are still on Panel two due to this in Initialize.

        I'm checking with my product manager later this morning to see if there is a way around this limitation.

        Thanks for your patience.

        Comment


          #5
          Hello,

          Unfortunately there is no way around this. To draw on the main price panel you would need to to set: DrawOnPricePanel=true in init.

          This means you may need 2 versions of your strategy/indicator. One that runs on the primary series and one that runs on the secondary series.

          Let me know if I can be of further assistance.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by ageeholdings, Today, 07:43 AM
          0 responses
          7 views
          0 likes
          Last Post ageeholdings  
          Started by pibrew, Today, 06:37 AM
          0 responses
          4 views
          0 likes
          Last Post pibrew
          by pibrew
           
          Started by rbeckmann05, Yesterday, 06:48 PM
          1 response
          14 views
          0 likes
          Last Post bltdavid  
          Started by llanqui, Today, 03:53 AM
          0 responses
          6 views
          0 likes
          Last Post llanqui
          by llanqui
           
          Started by burtoninlondon, Today, 12:38 AM
          0 responses
          12 views
          0 likes
          Last Post burtoninlondon  
          Working...
          X