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 Shansen, 08-30-2019, 10:18 PM
          24 responses
          938 views
          0 likes
          Last Post spwizard  
          Started by Max238, Today, 01:28 AM
          0 responses
          3 views
          0 likes
          Last Post Max238
          by Max238
           
          Started by rocketman7, Today, 01:00 AM
          0 responses
          2 views
          0 likes
          Last Post rocketman7  
          Started by wzgy0920, 04-20-2024, 06:09 PM
          2 responses
          27 views
          0 likes
          Last Post wzgy0920  
          Started by wzgy0920, 02-22-2024, 01:11 AM
          5 responses
          32 views
          0 likes
          Last Post wzgy0920  
          Working...
          X