Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Market Analyzer Condition: compare 2 indicators instead of 1 indicator to 'value'?

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

    Market Analyzer Condition: compare 2 indicators instead of 1 indicator to 'value'?

    I would like to create a condition for a market analyzer column background to be red when SMA 10 > SMA 50.

    from Jim Cagnina's training, it looks like a condition is the only way to dynamically change column colors. but, it seems like you can only compare an indicator to a 'value' (not another indicator).

    I can create an alert for this condition, but that only gives me a one-time message or sound for each instrument i have an alert setup on. It doesn't change column color.

    i would like to see all of the instruments on my market analyzer showing either red or green column, based on SMA 10 crossed above or below SMA 50.

    #2
    Hello PLeary,

    Thank you for posting.

    What you have described is not currently available with the default condition settings within the Market Analyzer window and would require custom programming to achieve.

    Let me know if I may be of further assistance.
    Christopher J.NinjaTrader Customer Service

    Comment


      #3
      Thanks Christopher. I will work with alerts for now. I understand a little about NinjaScript from playing with the Strategy Analyzer. But, I'm no expert.

      I understand that not all of the delivered indicators are available in Market Analyzer columns,

      Is there a way to add to the list of 'available columns' in Market Analyzer?

      For example, let's say I created a NinjaScript that returns 1 if SMA 10 > 50; and returns zero if SMA 10 < 50.

      If I put that in my Indicators folder, could Market Analyzer use it as a column?

      Comment


        #4
        Hello PLeary,

        Yes if you create an indicator like that it would be available to the market analyzer. For the indicator to work with the analyzer it needs to have at least 1 plot and that plot needs to be able to be set for every bar for alerts or coloring to work. Using a value of 1 or 0 would be an easy way to allow alerts or conditions in the analyzer.

        Comment


          #5
          Originally posted by PLeary View Post
          I would like to create a condition for a market analyzer column background to be red when SMA 10 > SMA 50.

          from Jim Cagnina's training, it looks like a condition is the only way to dynamically change column colors. but, it seems like you can only compare an indicator to a 'value' (not another indicator).

          I can create an alert for this condition, but that only gives me a one-time message or sound for each instrument i have an alert setup on. It doesn't change column color.

          i would like to see all of the instruments on my market analyzer showing either red or green column, based on SMA 10 crossed above or below SMA 50.
          You could get round this by creating an indicator that does the MA comparison and plots -1 (if less than), 0 (if equal) or 1 (if greater). Then test in market analyzer for these values.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          111 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          60 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          38 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          43 views
          0 likes
          Last Post TheRealMorford  
          Started by Mindset, 02-28-2026, 06:16 AM
          0 responses
          79 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Working...
          X