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 charlesugo_1, 05-26-2026, 05:03 PM
            0 responses
            70 views
            0 likes
            Last Post charlesugo_1  
            Started by DannyP96, 05-18-2026, 02:38 PM
            1 response
            152 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 05-11-2026, 05:56 AM
            0 responses
            162 views
            0 likes
            Last Post CarlTrading  
            Started by CarlTrading, 05-10-2026, 08:12 PM
            0 responses
            100 views
            0 likes
            Last Post CarlTrading  
            Started by Hwop38, 05-04-2026, 07:02 PM
            0 responses
            288 views
            0 likes
            Last Post Hwop38
            by Hwop38
             
            Working...
            X