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