Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator Output Box in Main Chart Window

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

    Indicator Output Box in Main Chart Window

    Hi

    I have a few indicators on my charts but it is quite time-consuming to check all their outputs/values before taking a trade. What I'd like to do therefore is to create a little "Box" (a bit like the data box) in the main (price) panel of each chart with the current output values of all my indicators.

    It should look like this:

    MACD: current value here
    RSI: current value here
    CCI: current value here
    etc.

    The values should be updated on every bar close.
    Are there any examples available of how to do this?

    Thanks a lot.

    Regards
    Last edited by laocoon; 03-17-2011, 08:23 AM.

    #2
    Hi laocoon,

    Yes, DrawTextFixed() is good for this.

    It's pretty straightforward, and one helpful C# command is \n for a new line. You might want this so you can place each indicator on a new line.

    Example:
    DrawTextFixed("indicatorValues", "MACD: " + MACD(7, 21, 3)[0].ToString("N2") + "\n SMA: " + Instrument.MasterInstrument.Round2TickSize(SMA(14)[0]), TextPosition.BottomRight);

    These samples can help with string and number formatting:

    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Thanks a lot for that RyanM, I'll look into it.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      160 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      307 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      245 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      349 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      178 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Working...
      X