Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Colors

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

    Colors

    Hi guys,
    I have an indicator that involves multiple indicators inside and depending on values, they change colors. When one or some of them turn a particular color, I would like an indicator to sound an alarm. Instead of setting sounding an alarm on a basis of changing values, can I set it in such a way that if any one of indicators change to, say, color blue, an alarm would sound? I can't figure out how to program it. Can you help?

    Thanks.

    #2
    Frantz, it is not possible to set an alert based upon colors meaning, there is no event raised when a plot changes color. You'll have to code in each alert with the color changing condition.
    AustinNinjaTrader Customer Service

    Comment


      #3
      Try:

      if(PlotColors[0][1] == Color.Green && PlotColors[0][0] == Color.Red)
      Alert(blah blah);

      This would have to reside in the indicator you are testing though.

      Dan
      eDanny
      NinjaTrader Ecosystem Vendor - Integrity Traders

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      579 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      334 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      554 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      551 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X