Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Alert in Indicator or Market Analyzer?

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

    Alert in Indicator or Market Analyzer?

    I am trying to write some Alert for my Indicators. For example, RSI cross over overbought or oversold. Such basic alert are easily configurable in TradeStation or Multicharts. But I cannot find it in NinjaTrader.

    The first instinct is for me to program it in Indicator. Expose it to properties for some configuration such as alert sound, etc.

    However, I saw in forum many replies point to write the alert using another indicator, expose it to Market Analyzer for it to alert.

    Before I start programming, I would like to ask for advice which route should I take? I am new to NinjaTrader.

    #2
    Hello Kalim,
    Welcome to the forum and I am happy to assist you.

    You can easily code it as an indicator or you can also use the MA to do it.

    Please refer here to know how to create an alert via the Market Analyzer



    If you want to code an indicator then the below code demonstrates how to sound an alert if RSI crosses above 70.
    Code:
    if (CrossAbove(this.RSI(14,3), 70,1))
    {
    	Alert("Alert", Priority.High, "Rsi crossed above 70", "Alert1.wav", 10, Color.Blue, Color.White);
    }

    To learn NinjaScript please go through these help guide references first to get some basic knowledge.
    http://www.ninjatrader.com/support/h...g_concepts.htm
    http://www.ninjatrader.com/support/h...indicators.htm
    http://www.ninjatrader.com/support/h...strategies.htm

    Please let me know if I can assist you any further.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      Thanks for your quick response.

      MA can do simple alert for indicator greater/less than, cross over/below. For more complex conditions, I think I will have to code it in indicator.

      I am looking for the alert of an indicator Turning Up or Turning Down. For example, ADX/DM turning up or turning down, MA turning up or turning down. Can this be done in MA? If not, is there a function/method I can call in coding, something like crossover/crossbelow?

      Comment


        #4
        Hello kalim,
        Yes, MA can only trigger simple conditions. For more advanced conditions you have to code your custom NinjaScript code.

        Unfortunately there are no native Turn up or Turn down functions. You have to custom code any such functions.

        Please let me know if I can assist you any further.
        JoydeepNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        608 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        355 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        105 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        560 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        561 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X