• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

limit email alerts

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

    limit email alerts

    Hi,
    I get lots of mails alerts Because I chose mails alerts for intraday bar signal and not in bar close.
    Is it possible to limit the email alert to have no more than 2 alerts per bar for example?
    Thank's.

    #2
    Hello gravdigaz6,

    Yes, this would be possible but you would need to create the logic for this.

    Declare an integer variable. Have this variable reset to 0 on the first tick of the bar. Where you have the alert / email, add a condition that checks the value of the integer variable being under how many alerts / emails you want. Increment the integer variable each time the alert / email is triggered.
    In your alert call, be sure to set the rearmSeconds to a value above 0, and to a comfortable level.

    http://ninjatrader.com/support/helpG...sic_syntax.htm

    http://ninjatrader.com/support/helpGuides/nt7/alert.htm

    http://ninjatrader.com/support/helpG...7/sendmail.htm
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by trader14, Today, 08:12 PM
    0 responses
    6 views
    0 likes
    Last Post trader14  
    Started by ypbtrainer, Today, 05:38 PM
    0 responses
    2 views
    0 likes
    Last Post ypbtrainer  
    Started by GARZONJ, Yesterday, 11:22 PM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by mike09, Yesterday, 07:37 PM
    1 response
    24 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by jilokasin31417, Today, 08:27 AM
    5 responses
    18 views
    0 likes
    Last Post NinjaTrader_ShawnB  
    Working...
    X