Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Draw objects on panel 2

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

    Draw objects on panel 2

    Hi, I'm wanting to draw lines on the panel 2 on the ADX indicator lines. Is this possible?

    #2
    Hello shildebrand324,

    Thanks for your post.

    You could set DrawOnPricePanel to false inside the OnStateChange method when the State == State.SetDefaults.

    See this help guide page for more information: https://ninjatrader.com/support/help...pricepanel.htm

    Let us know if we may assist further.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      I’m hoping for a sample of drawing lines between to points on the macd, based on pivots on the main price panel

      Comment


        #4
        Hello shildebrand324,

        Thanks for your note.

        We do not have a reference sample available that demonstrates drawing lines between two points of the MACD indicator and basing the calculation of those lines on the Pivots indicator.

        Unfortunately, in the support department at NinjaTrader it is against our policy to create, debug, or modify, code or logic for our clients. Further, we do not provide C# programming education services in our support. This is so that we can maintain a high level of service for all of our clients as well as our partners.

        The Draw.Line method could be used to draw lines on a chart. You could use the Pivots indicator to calculate where the line is drawn. If you would like those lines to be drawn in panel 2 with the MACD indicator, you would need to set DrawOnPricePanel to false.

        See the following help guide documentation which you may find helpful.
        Draw.Line: https://ninjatrader.com/support/help.../draw_line.htm
        DrawOnPricePanel: https://ninjatrader.com/support/help...pricepanel.htm
        MACD: https://ninjatrader.com/support/help...gence_macd.htm
        Pivots: https://ninjatrader.com/support/help...nt8/pivots.htm

        This forum thread will be open for other community members to share their insight.

        You can also contact a professional NinjaScript Consultant who would be eager to create or modify this script at your request or assist you with your script. The NinjaTrader Ecosystem has affiliate contacts who provide educational as well as consulting services. If you would like our NinjaTrader Ecosystem team follow up with you with a list of affiliate consultants who would be happy to create this script or any others at your request, please reach out to vendorsupport[AT]ninjatrader.com.

        Let us know if we may assist further.
        <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        648 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        369 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        109 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        573 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        575 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X