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 Mindset, 04-21-2026, 06:46 AM
            0 responses
            44 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by M4ndoo, 04-20-2026, 05:21 PM
            0 responses
            54 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by M4ndoo, 04-19-2026, 05:54 PM
            0 responses
            34 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by cmoran13, 04-16-2026, 01:02 PM
            0 responses
            95 views
            0 likes
            Last Post cmoran13  
            Started by PaulMohn, 04-10-2026, 11:11 AM
            0 responses
            57 views
            0 likes
            Last Post PaulMohn  
            Working...
            X