Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Find alerts in alert window

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

    Find alerts in alert window

    Hi, how can I find an alarm from the alert window?

    Before I add an alarm to the list with ....
    Code:
    Alert("myAlert", Priority.High, "Reached threshold", NinjaTrader.Core.Globals.InstallDir+@"\sounds\Alert1.wav", 10, Brushes.Black, Brushes.Yellow);
    ...I would like to check if an alarm is already in the list, if not add it to the list. So that there are no duplicate alarms in the list.

    Click image for larger version

Name:	Screenshot_3.jpg
Views:	282
Size:	40.2 KB
ID:	1162730

    What would be a good solution for that? How can I delete alarms from the list?
    sidlercom80
    NinjaTrader Ecosystem Vendor - Sidi Trading

    #2
    Hello sidlercom80,

    Thank you for your reply.

    To clarify, you're wanting to see if a matching alert has already been manually placed from the Alerts window before triggering the alert from an indicator? Or checking whether that alert itself has previously been triggered?

    Thanks in advance; I look forward to assisting you further.

    Comment


      #3
      Hi _Kate, the alarm is set by my indicator. For example, I would like to use the alarm name to check whether one already exists or not. Something like Alert.Find("alertName").
      sidlercom80
      NinjaTrader Ecosystem Vendor - Sidi Trading

      Comment


        #4
        Hello sidlercom80,

        Thank you for your reply.

        The Alert() function in NinjaScript would not create a list of alerts similar to the Alerts window in the platform - the alert is simply triggered by conditions you set. So there wouldn't be anything for you to check, since the alert only goes off when the conditions you've set to trigger it are true.

        Please let us know if we may be of further assistance to you.

        Comment


          #5
          Hi _Kate, I just want to know if and how I can find an alarm via script from the alarm window? How can I access the alarms from the alarm window via script?
          sidlercom80
          NinjaTrader Ecosystem Vendor - Sidi Trading

          Comment


            #6
            Hello sidlercom80,

            Thank you for your reply.

            There is not a supported way to retrieve alert information from the Alerts window, and I'm not aware of any unsupported workaround for that.

            Please let us know if we may be of further assistance to you.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            576 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            334 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            101 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            553 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            551 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X