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 argusthome, 03-08-2026, 10:06 AM
        0 responses
        85 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        47 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        29 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        32 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        67 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X