Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Email and logs
Collapse
X
-
Email and logs
I have a problem where I use the email interface for my strategy to send out alerts via email. This works just great, the problem is that NT has certain log events that it has decided should go out the email interface, now that I have one configured. So it sends annoying messages if the broker data goes down and I can't load some historical data for a few minutes. I don't want these messages. I only want messages that I send via "SendMail". How do I fix this?Tags: None
-
I am not sure what has broken, but I am not getting my strategy emails now. I speculate it may be because the strategy is in a workspace that is not the "main" workspace? Is that possible? I closed the another workspace and now I get emails. Or is this a bug?
Comment
-
First thing I would do is adding prints to check if the condition to sent the email hits everytime that you expect it to hit - next : what kind of email account do you use? Is this a free one that would have for example a block to only login / out with Pop3 access every x minutes or so?BertrandNinjaTrader Customer Service
Comment
-
Good questions, but I already pursued them. For one, I have a paid email provider and my own domain, so no issue with frequency of connections. For two, I do print out when I am sending an email and I've seen it print to the strategy output window but not result in an email. Three, I've tried sending test emails from the NT GUI for configuration, and I always get them. Four, I do not see errors that relate to email in the logs. It would be nice to be a able to get logs for successful as well as failed email sends.
Comment
-
Can you please try creating yourself a very very basic test strategy and see what happens in real-time with real data?
Code:if (Historical) return; else if (sentMail == false) { SendMail("[email protected]", "[email protected]", "Test", "TestEmail"); sendMail = true; }
Josh P.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by inanazsocial, Today, 01:15 AM
|
1 response
5 views
0 likes
|
Last Post Today, 02:18 AM | ||
Started by rocketman7, Today, 02:12 AM
|
0 responses
6 views
0 likes
|
Last Post
by rocketman7
Today, 02:12 AM
|
||
Started by dustydbayer, Today, 01:59 AM
|
0 responses
1 view
0 likes
|
Last Post
by dustydbayer
Today, 01:59 AM
|
||
Started by trilliantrader, 04-18-2024, 08:16 AM
|
5 responses
23 views
0 likes
|
Last Post Today, 12:32 AM | ||
Started by Davidtowleii, Today, 12:15 AM
|
0 responses
3 views
0 likes
|
Last Post
by Davidtowleii
Today, 12:15 AM
|
Comment