Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Simple Indicator that alerts with every new bar
Collapse
X
-
Originally posted by Aithin View Post
-
Can you otherwise send email from a proper pop3 client (not webmail)? If so, maybe your ISP is blocking the ability to relay email from your machine? If you have a dial-up backup connection through another provider, you may want to see if you can send email through that connection, as a test.
Comment
-
Ok I'm back ... with a little good news. I got my test emails sending every time without fail. I had to use yahoo mails smtp as they do not require SSL. I then had to add my gmail account to my yahoo mail account in order for the alert emails to be sent to my gmail address. (through yahoo's smtp)
Now however I am back trying to get the indicator to send the email ... it doesnt seem to be sending it at all right now. I have my print() command inside the IF statement which also houses the sendmail command. When checking my output window I see that the indicator is entering the if statement ... I just never get any emails. (even in my spam folder) Below is the sendmail code I am using ...
if (FirstTickOfBar)
{
Print("Code has entered if statement of EURUSD");
SendMail("[email protected]", "[email protected]", "EURUSD - New Bar Alert", "New bar just opened");
}
Lastly, I am using NinjaTrader 6.5 (not sure if it makes a difference with the sendmail command)
Thanks
Comment
-
When I say that it works every once and a while I should have been more specific. One time I start ninjatrader I get email alerts every time. However the next time I start up ninjatrader I get zero email alerts. This morning I was receiving emails as I should ... however as of this writing I am no longer getting any alerts, and I have not changed any settings.
Comment
-
Aithin,
Is your code still running on real-time data? Emails will only be sent on real-time events. You say you are not receiving any emails now. Does sending a test email work right now? Do you know if your ISP provides a SMTP server? Perhaps you could try that one instead of Google's? I know some ISPs don't like emails routed through other SMTP servers.Josh P.NinjaTrader Customer Service
Comment
-
The code is running on real time data, and i've gotten it to work with yahoo's SMTP, as well as the default (blank) ninjatrader settings. I've tested using the" test email" when I have stopped getting email alerts, and the test email never stops working.
I'm not sure what my ISP's SMTP settings are... i'll give them a try as soon as I get them.
Comment
-
Originally posted by Aithin View PostThe code is running on real time data, and i've gotten it to work with yahoo's SMTP, as well as the default (blank) ninjatrader settings. I've tested using the" test email" when I have stopped getting email alerts, and the test email never stops working.
I'm not sure what my ISP's SMTP settings are... i'll give them a try as soon as I get them.BertrandNinjaTrader Customer Service
Comment
-
Well, I entered in my ISPs info last night and am still not getting email alerts. Is there anyone out there kind enough to code this for me? It really shouldn't be taking me this long, and frankly I'm soured by all of it
All I'm after is an indicator that will send me an email at the beginning of every new range bar. (seems very simple) If you can help I would REALLY appreciate it.
Thanks
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by AaronKoRn, Today, 09:49 PM
|
0 responses
11 views
0 likes
|
Last Post
by AaronKoRn
Today, 09:49 PM
|
||
Started by carnitron, Today, 08:42 PM
|
0 responses
10 views
0 likes
|
Last Post
by carnitron
Today, 08:42 PM
|
||
Started by strategist007, Today, 07:51 PM
|
0 responses
11 views
0 likes
|
Last Post Today, 07:51 PM | ||
Started by StockTrader88, 03-06-2021, 08:58 AM
|
44 responses
3,980 views
3 likes
|
Last Post
by jhudas88
Today, 06:59 PM
|
||
Started by rbeckmann05, Today, 06:48 PM
|
0 responses
9 views
0 likes
|
Last Post
by rbeckmann05
Today, 06:48 PM
|
Comment