Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 carnitron, Today, 08:42 PM
      0 responses
      6 views
      0 likes
      Last Post carnitron  
      Started by strategist007, Today, 07:51 PM
      0 responses
      8 views
      0 likes
      Last Post strategist007  
      Started by StockTrader88, 03-06-2021, 08:58 AM
      44 responses
      3,974 views
      3 likes
      Last Post jhudas88  
      Started by rbeckmann05, Today, 06:48 PM
      0 responses
      9 views
      0 likes
      Last Post rbeckmann05  
      Started by rhyminkevin, Today, 04:58 PM
      4 responses
      58 views
      0 likes
      Last Post dp8282
      by dp8282
       
      Working...
      X