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.
    BertrandNinjaTrader Customer Service

    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).
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by pechtri, 06-22-2023, 02:31 AM
        10 responses
        124 views
        0 likes
        Last Post Leeroy_Jenkins  
        Started by judysamnt7, 03-13-2023, 09:11 AM
        4 responses
        59 views
        0 likes
        Last Post DynamicTest  
        Started by ScottWalsh, Yesterday, 06:52 PM
        4 responses
        36 views
        0 likes
        Last Post ScottWalsh  
        Started by olisav57, Yesterday, 07:39 PM
        0 responses
        7 views
        0 likes
        Last Post olisav57  
        Started by trilliantrader, Yesterday, 03:01 PM
        2 responses
        22 views
        0 likes
        Last Post helpwanted  
        Working...
        X