Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Displaying items in marketAnalyzer from Indicator

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

    Displaying items in marketAnalyzer from Indicator

    Hello, brand new to NinjaTrader as well as C# and enjoying the learning curve.

    I am working on an indicator that does not implement any plots or lines, rather all output, which consists of various lines and shapes, is done via OnRender() and SharpDX. However there are 4 or 5 data items that I would like to display in marketAnalyzer columns if the indicator is loaded into the Market Analyzer. Is this doable from within the indicator (i.e., completely hide these plots, if that is what I would need to use, if the indicator is loaded in a chart, but make these same plots available in the Market Analyzer). Any advice would be appreciated.

    Thanks,

    Rollo

    #2
    Hello RolloHarper,

    Thanks for your post and welcome to the NinjaTrader forums.

    Yes, you can add transparent plots to your indicator that can be read into the Market Analyzer. You can also make the plots not configurable meaning they would not display in the indicator UI, thereby making them effectively hidden and not showing on the charts but providing selectable data in the market analyzer.

    The indicator CandleStickPattern is an example of an indicator that uses a transparent plot to indicate to the Market analyzer when a pattern is found.

    Here is a forum thread where adding a transparent plot to an existing indicator for the market analyzer is discussed and includes a short video: https://ninjatrader.com/support/foru...762#post453762

    Here is a link to the helpguide on configurable plots: https://ninjatrader.com/support/help...nfigurable.htm

    Comment


      #3
      Paul, thanks! That works a treat. One question...one of the plots I'm displaying in the MA should be an int but obviously it is currently displaying as a double. Is there any way to set the # decimals for an individual plot?

      Comment


        #4
        Hello RolloHarper,

        Thanks for your reply.

        You can use FormatPriceMarker(): https://ninjatrader.com/support/help...ricemarker.htm using "N0", however, this will cause all plots in the indicator to have the same output format.

        Comment


          #5
          Hello RolloHarper,

          I clicked "post quick reply" before finishing my reply!

          You can use Convert.ToInt32(); when assigning the value to the plot.

          For example: Test2[0] = Convert.ToInt32(High[0] * 1.7776);

          Reference: https://msdn.microsoft.com/en-us/lib...v=vs.110).aspx

          Comment


            #6
            Perfect, thank you!

            Rollo

            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