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.

    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 NullPointStrategies, Today, 05:17 AM
          0 responses
          50 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          126 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          69 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          42 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          46 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X