Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to call indicator values to be printed on chart?

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

    How to call indicator values to be printed on chart?

    For example I want RSI to print its value at a corner of a chart. So I just want to code a basic indicator to do this and have it calculated per bar close.


    Do I use a form of chartControl

    or
    Draw.Text()
    ?

    I want it to print something like: "Current RSI = (RSI Value here)"

    Any guidance would be appreciated.

    #2
    Hello TradingLoss,

    Thanks for your post.

    You could use Draw.Text() or Draw.TextFixed() to draw text to a chart window.

    Something you could do is save the RSI value to a double variable and then use that double variable when calling the Draw.TextFixed() method in your script.

    See the attached example script that demonstrates this.

    And, see the help guide documentation below for more information.

    Draw.TextFixed: https://ninjatrader.com/support/help..._textfixed.htm
    RSI: https://ninjatrader.com/support/help..._index_rsi.htm

    Let me know if I may assist further.
    Attached Files
    <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
      Thanks will give it a shot.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      673 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      379 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      111 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      577 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      582 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X