Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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
    Paul H.NinjaTrader Customer Service

    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.
        Paul H.NinjaTrader Customer Service

        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
          Paul H.NinjaTrader Customer Service

          Comment


            #6
            Perfect, thank you!

            Rollo

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by XXtrader, Yesterday, 11:30 PM
            2 responses
            10 views
            0 likes
            Last Post XXtrader  
            Started by Waxavi, Today, 02:10 AM
            0 responses
            6 views
            0 likes
            Last Post Waxavi
            by Waxavi
             
            Started by TradeForge, Today, 02:09 AM
            0 responses
            11 views
            0 likes
            Last Post TradeForge  
            Started by Waxavi, Today, 02:00 AM
            0 responses
            2 views
            0 likes
            Last Post Waxavi
            by Waxavi
             
            Started by elirion, Today, 01:36 AM
            0 responses
            4 views
            0 likes
            Last Post elirion
            by elirion
             
            Working...
            X