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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    152 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    87 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    131 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    127 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    106 views
    0 likes
    Last Post CarlTrading  
    Working...
    X