Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How do I clear the alert window in code?

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

    How do I clear the alert window in code?

    Hi,

    When I load my indicator, I want to clear the alert window of all its contents, how do I do that?

    Thank you in advance.

    #2
    Hello KhaosTrader,

    Thank you for your post.

    There is no function in NinjaScript that is exposed to clear the alerts window in code. I will look into whether there is an undocumented means to perform this action from a NinjaScript object.

    Comment


      #3
      Thank you, looking forward to your findings.

      Comment


        #4
        Actually a better thing for me would be the ability to iterate through the entries of the AlertWindow, the goal would be to also be able to delete alerts that were older than 1 hour....

        Comment


          #5
          Hello KhaosTrader,

          Thank you for your response.

          Unfortunately, there would not be a means to clear the displayed alerts in the Alerts Log. I will forward this as a suggestion to development.

          Comment


            #6
            Hello KhaosTrader,

            Thank you for your patience.

            The request to remove alerts from the Alert Log in NinjaScript has been given the ID SFT-1643.

            Comment


              #7
              Hi,

              It would be better to be able to access the collection also.. This is because it might be handy to have your code delete the last X alerts or delete alerts older than X minutes, or delete all low priority alerts that are y minutes old.. etc...

              Comment


                #8
                Hello KhaosTrader,

                Access by time was added to the suggestion.

                Comment


                  #9
                  Actually, what I am saying, is also it would be good to be able to retrieve and iterate through the alerts such that you can delete particular alerts according to program logic, that would be most flexible..

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by nduckste, Today, 02:00 AM
                  1 response
                  7 views
                  0 likes
                  Last Post NinjaTrader_PaulH  
                  Started by John Bogui, Today, 06:07 AM
                  0 responses
                  2 views
                  0 likes
                  Last Post John Bogui  
                  Started by watchinggoodman, Today, 05:45 AM
                  1 response
                  5 views
                  0 likes
                  Last Post NinjaTrader_ChrisSch  
                  Started by cummish, Today, 03:40 AM
                  1 response
                  5 views
                  0 likes
                  Last Post NinjaTrader_Jason  
                  Started by wjadevries, Today, 03:29 AM
                  0 responses
                  9 views
                  0 likes
                  Last Post wjadevries  
                  Working...
                  X