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 rhyminkevin, Today, 04:58 PM
      4 responses
      52 views
      0 likes
      Last Post dp8282
      by dp8282
       
      Started by iceman2018, Today, 05:07 PM
      0 responses
      5 views
      0 likes
      Last Post iceman2018  
      Started by lightsun47, Today, 03:51 PM
      0 responses
      7 views
      0 likes
      Last Post lightsun47  
      Started by 00nevest, Today, 02:27 PM
      1 response
      14 views
      0 likes
      Last Post 00nevest  
      Started by futtrader, 04-21-2024, 01:50 AM
      4 responses
      50 views
      0 likes
      Last Post futtrader  
      Working...
      X