Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NinjaScript Alert rearm not working

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

    NinjaScript Alert rearm not working

    I'm using the Alert method from a NinjaScript indicator. I set the rearm seconds to 3600. Should be one hour between alerts, correct?
    The indicator is running calculate on price change. An alert is posted to the Alerts window on every price change. I expected it to be one hour in between.
    See attached screen shot of Alerts Log.
    The code:

    Code:
                if (rsiFast[0] < rsiSlow[0])
                {
                    Values[0][0] = -1;
                    Alert("ATS.RD3.Long.Stage1", Priority.High, "oversold", NinjaTrader.Core.Globals.InstallDir + @"\sounds\" + "Alert2.wav", 3600, Brushes.Green, Brushes.White);
                }
                else
                if (rsiFast[0] > rsiSlow[0])
                {
                    Values[0][0] = 1;
                    Alert("ATS.RD3.Long.Stage1", Priority.High, "overbought", NinjaTrader.Core.Globals.InstallDir + @"\sounds\" + "Alert2.wav", 3600, Brushes.Green, Brushes.White);
                }
    I attached full indicator. Run in on price change on a chart.
    I apologize if this has been asked and answered. I searched the forum but could not find this problem.
    Attached Files

    #2
    Hello Brillo,

    I am not able to reproduce. I've left the script running for a few minutes but I am only experiencing one alert.

    Below is a link to a video of the test.


    May I confirm you are using 8.0.20.1?

    If you follow the exact steps shown in this video are you experiencing different behavior?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      I'm running it on MarketReplay with 1x speed. here's my video:

      Comment


        #4
        Hello Brillo,

        I was not able to confirm, what version of NinjaTrader 8 are you using?
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          NT version 8.0.20.1 64-bit
          was also happening on 8.0.19.xxx but I upgraded and retested. Yes, still a problem.

          Comment


            #6
            Hello Brillo,

            Thank you for confirming this.

            Please send an email to platformsupport [at] ninjatrader [dot] com so that we may schedule a call were I may test the steps shown in the video on your end.
            In the email, please include a link to this forum thread.
            Chelsea B.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by CarlTrading, 03-31-2026, 09:41 PM
            1 response
            81 views
            1 like
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            42 views
            0 likes
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            64 views
            2 likes
            Last Post CaptainJack  
            Started by CarlTrading, 03-30-2026, 11:51 AM
            0 responses
            68 views
            0 likes
            Last Post CarlTrading  
            Started by CarlTrading, 03-30-2026, 11:48 AM
            0 responses
            55 views
            0 likes
            Last Post CarlTrading  
            Working...
            X