Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Short horizontal line

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

    #16
    Hello ldanenberg,

    You can choose to put the indicator in a different panel, and use DrawOnPricePanel false.
    The drawing objects would then appear on the same panel the indicator is set to.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #17
      Hi Chelsea, this will not work since I have 2 price panels.... a 1-min chart, and a 15-min chart. I would like to draw the 15-min indicator, on the 1-min chart.

      Comment


        #18
        Hello ldanenberg,

        A script will only have one price panel, and that will be the panel of the input series for the script. No other panels (which may or may not have other data series) will be the price panel.

        Drawing objects will only appear in the price panel (the input series panel) or the indicator panel. There are no other options.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #19
          Hello ldanenberg,

          It sounds like you are adding the indicator to the panel it will be drawing objects in.
          This is still the same as I was suggesting. An indicator can only draw objects in the panel it is added to, or the price panel. One or the other.

          If you have a multi-series script, the drawing objects are going to be drawn to the primary series, which will be the chart bars used for it's input series. This associates the drawing object with a specific bar on the chart. You can choose to call drawing objects during other BarsInProgress to decide when to draw these, but once drawn they will be drawn on the chart bars.

          Note, I am the lead of the Engineering Support team, and have the most extensive experience with NinjaScript. That said, as you are being uncooperative and demanding another technician, I will have one of my employees follow up with you.
          Chelsea B.NinjaTrader Customer Service

          Comment


            #20
            Hello ldanenberg,

            I've reviewed your last few posts detailing what you are looking for, and I agree with the information Chelsea is providing. From the Help Guide on Drawing:

            "Custom graphics for custom indicators can be painted on either the price panel or indicator panel. You could for example have a custom indicator displayed in an indicator panel yet have associated custom graphics painted on the price panel. The "DrawOnPricePanel" property is set to true by default, which means that custom graphics will always be painted on the price panel, even if the indicator is plotted in a separate panel. If you want your custom graphics to be plotted on the indicator panel, set this property to false in the OnStateChange() method of your custom indicator.​



            In regards to a multi-series script, I have no further information to provide as what Chelsea stated is correct.

            Comment


              #21
              All I would like help with, is how to draw the HorizonalSMA with a 15-min time frame, in the main price panel (which is a 1-min timeframe). You can see the code in the previous post, if you can show me how to add the "multi-time frame" code that would be much appreciated. Thanks Gaby.

              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
              333 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