I have implmented SendMail in one of the scripts and it works fine but some time it generates too many e-mail messages in a short period of time. I want to limit the number of e-mails that i can get. So i am thinking of a way where after the first email is sent, system would not send an email for next 30 minutes, just like rearm function of 'Alert' command.
I'd appreciate If anyother user of NinjaTrader or support staff has any tips about what commands can I use to code such a functionality. Following is my sample script:
{
// Condition set 1
if (EMA(25)[0] > EMA(72)[0])
{
// SendMail([email protected], "[email protected]", "Go Long GBP/CHF", "Buy GBP/CHF");
Log("Buy Alert GBP/CHF", LogLevel.Information);
}
Any cues will be helpful.
Thanks.
Comment