Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

add an output to an existing indicator

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

    add an output to an existing indicator

    Hello
    I'd like to know how to add readable output in the data box to an existing indicator that already displays information in the data box.
    Before posting, I searched and found this https://forum.ninjatrader.com/forum/...e-display-only but it doesn't answer my question or I didn't understand.
    Thank you for your help and patience​

    #2
    Hello bicou,

    Thanks for your post.

    The databox specifically would be able to display the Plots of your indicator. For other items such as strings or bools, you would likely need to instead create your own display instead of using the databox specifically.

    Please review this forum thread which details more information about this topic: ​https://forum.ninjatrader.com/forum/...les-to-databox
    <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
      Obviously I didn't make myself clear and that's certainly because I want to use my bad English.
      I'm using a translator here, so it should be OK.
      I'm trying to add a new plot to a graph indicator that already has several plots displayed so that it can also be displayed in the data box.
      I'm trying to find out how to declare this new plot in the code.​

      Comment


        #4
        Hello bicou,

        Thanks for your clarification.

        The AddPlot() method could be used in OnStateChange() when the State == State.Configure to add a plot to a NinjaScript indicator.

        You could then assign a value to that added plot within the OnBarUpdate() section of the indicator's code.

        See this help guide page for more information about AddPlot() and sample code: https://ninjatrader.com/support/help...t8/addplot.htm

        <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
        636 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        366 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        107 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        568 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        571 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X