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 rhyminkevin, Today, 04:58 PM
        3 responses
        47 views
        0 likes
        Last Post Anfedport  
        Started by iceman2018, Today, 05:07 PM
        0 responses
        5 views
        0 likes
        Last Post iceman2018  
        Started by lightsun47, Today, 03:51 PM
        0 responses
        7 views
        0 likes
        Last Post lightsun47  
        Started by 00nevest, Today, 02:27 PM
        1 response
        14 views
        0 likes
        Last Post 00nevest  
        Started by futtrader, 04-21-2024, 01:50 AM
        4 responses
        50 views
        0 likes
        Last Post futtrader  
        Working...
        X