Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Tips using Alert()

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

    Tips using Alert()

    Hi, I want to use Alert() but how do i avoid receiving a series of emails rather than one email when the level is reached? Any other tips would be appreciated.

    Also, if i set Calculateatbarclose to false, then i can use any timeframe for my data ie. 1min, 30 min chart etc, and it won't make a difference, right? I want to be alerted just once (1 email and 1 sound) as soon as the price has traded.

    #2
    anothertoy, have you already tried working with a higher rearm setting for this? http://www.ninjatrader-support.com/H...eV6/Alert.html


    rearmSeconds:
    Sets the number of seconds an alert will rearm. If the same alert (identified by the id parameter) is called within a time window of the time of last alert + rearmSeconds, the alert will be ignored.

    Comment


      #3
      thanks but what about the sendmessage function? i get a string of emails sent.

      Comment


        #4
        You would need to code in a bool then that checks if the alert already triggered intrabar, as you run on update each tick. Thus just reset the bool to 'armed' state for alert and emails once a new bar is generated (FirstTickOfBar property).

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        66 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        36 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        59 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        62 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        52 views
        0 likes
        Last Post CarlTrading  
        Working...
        X