Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Hi,
Has anyone gotten the email alert to work correctly in ninja trader. I have tried a couple DLL's posted but never seemed to get it to send emails when a condition happened. Any thoughts would be appreciated
Thanks
Can you help answer these questions from other members on NexusFi?
This doesn't work for me because my ISP (Cox) requires all email be sent through their own local SMTP server and when I try to configure the SMTP settings in NinjaTrader it still doesn't work. So I implemented my own email method that seems to work for me. First, add this to the top of your strategy/indicator
Shodson, tried to use your method to send emails since I also experience problems when setting up through my ISP. When calling the method you describe, what do you use for describing the SMTP client?
And appologies for any daft questions, I am new to both NT and programming.
Shodson, tried to use your method to send emails since I also experience problems when setting up through my ISP. When calling the method you describe, what do you use for describing the SMTP client?
And appologies for any daft questions, I am new to both NT and programming.
Reg
Kruus
Just a note that some ISP's will block port 25.
You can use port 587 usually with popular services like Gmail and Yahoo I think.
Shodson, tried to use your method to send emails since I also experience problems when setting up through my ISP. When calling the method you describe, what do you use for describing the SMTP client?
And appologies for any daft questions, I am new to both NT and programming.
Reg
Kruus
The method I posted over three years ago only works if you have access to an open SMTP server you are allowed to send through, which may vary depending on which local area network your Ninjascript is running on.
Hi @Kruus, I thought Ninja used to send emails through it's own SMTP server if you just left the fields blank, or have they stopped doing that?
edit: Just did a test off the laptop free licence Ninja using the Options->Misc 'Test..' button and it still works fine with all server fields left blank.
Hi @Kruus, I thought Ninja used to send emails through it's own SMTP server if you just left the fields blank, or have they stopped doing that?
edit: Just did a test off the laptop free licence Ninja using the Options->Misc 'Test..' button and it still works fine with all server fields left blank.
edit2: and do check your spam settings/folders
The problem for me was that my ISP (Cox) blocks accessing SMTP servers outside of their network via blocking port 25 in order to prevent spam being originated from their network. This meant that I could never use the built-in way. With a Gmail acct and the aforementioned method it works for me anywhere since I don't know of any ISPs that block Gmail's SMTP port (587)