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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      152 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      89 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      133 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      127 views
      1 like
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      107 views
      0 likes
      Last Post CarlTrading  
      Working...
      X