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 nicthe, Today, 02:58 PM
          1 response
          6 views
          0 likes
          Last Post nicthe
          by nicthe
           
          Started by percy3687, Yesterday, 12:28 AM
          3 responses
          30 views
          0 likes
          Last Post percy3687  
          Started by SilverSurfer1, Today, 01:33 PM
          0 responses
          9 views
          0 likes
          Last Post SilverSurfer1  
          Started by ETFVoyageur, Today, 10:27 AM
          2 responses
          18 views
          0 likes
          Last Post ETFVoyageur  
          Started by CommonWhale, Today, 01:12 PM
          0 responses
          10 views
          0 likes
          Last Post CommonWhale  
          Working...
          X