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 Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            648 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            369 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            108 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            572 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            573 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X