Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Can you determine if indicator running from Market Analyzer

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

    Can you determine if indicator running from Market Analyzer

    Scenario:

    I have an indicator that I run in market analyzer and on a chart. It can draw objects but I don't need to draw chart objects if it is not on a chart adn running via Market Analyzer.

    Question:
    Can an indicator determine if it is running via Market Analyzer other than a user defined parameter?
    Last edited by ct; 02-24-2017, 08:31 AM.

    #2
    Hello ct,

    Thank you for your post,

    To confirm, are you asking if an indicator functions differently when plotted in the Market Analyzer vs. a chart? If not, could you please clarify?

    Are you needing assistance with a custom NinjaScript addon?

    We look forward to assisting further.
    Eric B.NinjaTrader Customer Service

    Comment


      #3
      Eric

      I just wanted to know if an indicator can determine if it's running via market analyzer or from a chart.

      i wanted to condition some indicator logic if it was running from Market Analyzer.

      Clear as mud?

      Comment


        #4
        Hello CT,

        To check if the indicator is applied to a market analyzer or a chart, you could use the following if statement,

        Code:
        	 
        if (Parent is MarketAnalyzerColumnBase)
        	Print("Running on a Market Analyzer");
        else
        	Print("Running on chart");
        Please let us know if you need further assistance.
        Alan P.NinjaTrader Customer Service

        Comment


          #5
          Alan

          Bulls-eye! Exactly what I was looking for.

          Cheers

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by briansaul, Today, 05:31 AM
          0 responses
          2 views
          0 likes
          Last Post briansaul  
          Started by fwendolynlpxz, Today, 05:19 AM
          0 responses
          4 views
          0 likes
          Last Post fwendolynlpxz  
          Started by traderqz, Yesterday, 12:06 AM
          11 responses
          28 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by PaulMohn, Today, 03:49 AM
          0 responses
          8 views
          0 likes
          Last Post PaulMohn  
          Started by inanazsocial, Today, 01:15 AM
          1 response
          10 views
          0 likes
          Last Post NinjaTrader_Jason  
          Working...
          X