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

Unable to display custom value in the Market Analyzer Column

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

    Unable to display custom value in the Market Analyzer Column

    I am trying to display a value in the Market Analyzer Column
    I am trying this code (according to this page https://ninjatrader.com/support/help...zer_column.htm)

    protected override void OnMarketData(MarketDataEventArgs marketDataUpdate)
    {
    CurrentValue = marketDataUpdate.Price;
    }

    During compilation I am getting the error

    The name 'CurrentValue' does not exist in the current context.

    Please advise

    #2
    Hello Zextra,
    Thanks for your post.

    Are you creating this as an indicator or is this code being used inside the "MarketAnalyzerColumns" namespace?
    Last edited by NinjaTrader_JoshG; 10-16-2018, 12:00 PM.
    Josh G.NinjaTrader Customer Service

    Comment


      #3
      Ah ok, I got it now.

      Can you please tell me how to check if the indicator is an instance of MarketAnalyzerColumns?

      Comment


        #4
        You would see it near the top of your code. A MarketAnalzyer Column also will display under the appropriate "MarketAnalzyerColumns" folder in the NinjaScript Editor.
        namespace NinjaTrader.NinjaScript.MarketAnalyzerColumns
        Josh G.NinjaTrader Customer Service

        Comment


          #5
          The issue I have is that the indicator draws graphical lines on the chart, and hence the drawing part needs to be disabled when loading the indicator in the market analyzer. How can I check in the indicator code, I need something like this

          if (Not loaded in market analyzer)
          {
          // Draw the ilne
          }

          Comment


            #6
            The indicator already will not be able to draw drawing objects when used in the Market Analyzer, so there will be no special considerations you need to make there. Are you seeing that when you attach an indicator to your Market Analyzer that it is drawing on your chart?
            Josh G.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by AttiM, 02-14-2024, 05:20 PM
            12 responses
            213 views
            0 likes
            Last Post DrakeiJosh  
            Started by cre8able, 02-11-2023, 05:43 PM
            3 responses
            237 views
            0 likes
            Last Post rhubear
            by rhubear
             
            Started by frslvr, 04-11-2024, 07:26 AM
            8 responses
            117 views
            1 like
            Last Post NinjaTrader_BrandonH  
            Started by stafe, 04-15-2024, 08:34 PM
            10 responses
            47 views
            0 likes
            Last Post stafe
            by stafe
             
            Started by rocketman7, Today, 09:41 AM
            3 responses
            12 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Working...
            X