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 wzgy0920, 04-20-2024, 06:09 PM
      2 responses
      26 views
      0 likes
      Last Post wzgy0920  
      Started by wzgy0920, 02-22-2024, 01:11 AM
      5 responses
      32 views
      0 likes
      Last Post wzgy0920  
      Started by wzgy0920, Yesterday, 09:53 PM
      2 responses
      49 views
      0 likes
      Last Post wzgy0920  
      Started by Kensonprib, 04-28-2021, 10:11 AM
      5 responses
      192 views
      0 likes
      Last Post Hasadafa  
      Started by GussJ, 03-04-2020, 03:11 PM
      11 responses
      3,234 views
      0 likes
      Last Post xiinteractive  
      Working...
      X