Email Alerts - NinjaTrader Programming | futures io social day trading
futures io futures trading


Email Alerts
Updated: Views / Replies:5,698 / 8
Created: by HarryThompson Attachments:0

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

Email Alerts

  #1 (permalink)
Just starting out...
nashville,TN
 
Futures Experience: None
Platform: ninja
 
Posts: 3 since Jan 2010
Thanks: 0 given, 0 received

Email Alerts

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

Reply With Quote
 
  #2 (permalink)
Elite Member
Neubrandenburg, Germany
 
Futures Experience: Advanced
Platform: R
Favorite Futures: Stocks
 
wh's Avatar
 
Posts: 538 since Jun 2009
Thanks: 297 given, 480 received

look at ninjatrader api

if you use dll, you bind correctly?

if condition
SendMail(string from, string to, string subject, string text);
else condition
SendMail(string from, string to, string subject, string text);

works well for me

best regards

ps

// Generates an email message
SendMail("support@ninjatrader.com", "customer@winners.com", "Trade Alert", "Buy ES");

Causality is the relationship between an event (the cause) and a second event (the effect), where the second event is a consequence of the first.
Reply With Quote
The following 2 users say Thank You to wh for this post:
 
  #3 (permalink)
Just starting out...
Charkov
 
Futures Experience: None
Platform: NinjaTrader
Broker/Data: Zen-fire
Favorite Futures: YM
 
Posts: 4 since Jan 2010
Thanks: 2 given, 0 received



wh View Post
look at ninjatrader api

if you use dll, you bind correctly?

if condition
SendMail(string from, string to, string subject, string text);
else condition
SendMail(string from, string to, string subject, string text);

works well for me

best regards

ps

// Generates an email message
SendMail("support@ninjatrader.com", "customer@winners.com", "Trade Alert", "Buy ES");

thanks
I try use it

Reply With Quote
 
  #4 (permalink)
 Vendor: www.probabletrades.com 
OC, California, USA
 
Futures Experience: Advanced
Platform: IB/TWS, NinjaTrader, thinkorswim
Favorite Futures: stocks, options, futures, VIX
 
shodson's Avatar
 
Posts: 1,860 since Jun 2009
Thanks: 480 given, 3,255 received

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

 
Code
using System.Net.Mail;
Then, anywhere else inside of your class...

 
Code
private void SendMailLocal(string to, string from, string subject, string body, string smtp)
{
    // Don't send emails on historical data      
    if (Historical)
        return;
    
    try
    {
        MailMessage mailMsg = new MailMessage();
        mailMsg.To.Add(to);

        MailAddress mailAddress = new MailAddress(from);
        mailMsg.From = mailAddress;

        mailMsg.Subject = subject;
        mailMsg.Body    = body;

        SmtpClient smtpClient = new SmtpClient(smtp);
        smtpClient.Send(mailMsg);
    }
    catch (Exception ex)
    {
        Print(ex.Message.ToString());
    }
}

Reply With Quote
The following 4 users say Thank You to shodson for this post:
 
  #5 (permalink)
Trading Apprentice
Manchester UK
 
Futures Experience: None
Platform: Ninjatrader
Favorite Futures: index
 
Posts: 1 since Aug 2013
Thanks: 3 given, 0 received

email problems

Hi

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



shodson View Post
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

 
Code
using System.Net.Mail;
Then, anywhere else inside of your class...

 
Code
private void SendMailLocal(string to, string from, string subject, string body, string smtp)
{
    // Don't send emails on historical data      
    if (Historical)
        return;
    
    try
    {
        MailMessage mailMsg = new MailMessage();
        mailMsg.To.Add(to);

        MailAddress mailAddress = new MailAddress(from);
        mailMsg.From = mailAddress;

        mailMsg.Subject = subject;
        mailMsg.Body    = body;

        SmtpClient smtpClient = new SmtpClient(smtp);
        smtpClient.Send(mailMsg);
    }
    catch (Exception ex)
    {
        Print(ex.Message.ToString());
    }
}


Reply With Quote
 
  #6 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,240 since Jun 2009
Thanks: 29,354 given, 83,237 received


Kruus View Post
Hi

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.

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
The following user says Thank You to Big Mike for this post:
 
  #7 (permalink)
 Vendor: www.probabletrades.com 
OC, California, USA
 
Futures Experience: Advanced
Platform: IB/TWS, NinjaTrader, thinkorswim
Favorite Futures: stocks, options, futures, VIX
 
shodson's Avatar
 
Posts: 1,860 since Jun 2009
Thanks: 480 given, 3,255 received


Kruus View Post
Hi

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.

I have since moved away from this approach and send all of my emails through a Gmail account which can work from any place on the internet.


Last edited by shodson; December 19th, 2013 at 09:06 PM.
Reply With Quote
The following 2 users say Thank You to shodson for this post:
 
  #8 (permalink)
Elite Member
Birmingham UK
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: IG/eSignal
Favorite Futures: Dax
 
ratfink's Avatar
 
Posts: 3,340 since Dec 2012
Thanks: 11,282 given, 7,092 received

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

Travel Well

Last edited by ratfink; December 20th, 2013 at 04:38 AM. Reason: tested ok, spam check
Reply With Quote
 
  #9 (permalink)
 Vendor: www.probabletrades.com 
OC, California, USA
 
Futures Experience: Advanced
Platform: IB/TWS, NinjaTrader, thinkorswim
Favorite Futures: stocks, options, futures, VIX
 
shodson's Avatar
 
Posts: 1,860 since Jun 2009
Thanks: 480 given, 3,255 received


ratfink View Post
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)

Reply With Quote
The following 2 users say Thank You to shodson for this post:

Reply



futures io > > > > > Email Alerts

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
email reply information tony2604 Beginners and Introductions 3 August 2nd, 2011 07:00 AM
War of Words Between US and China Over Google Email Hack Quick Summary News and Current Events 0 June 2nd, 2011 04:00 PM
Email Notification for Stock Prices Trader Y Stocks and ETFs Trading 4 January 2nd, 2011 09:45 AM
Using Alerts in ToS Jasonh0099 ThinkOrSwim Programming 0 December 11th, 2010 01:44 AM
Email notification gregid Feedback and Announcements 2 December 15th, 2009 08:33 AM


All times are GMT -4. The time now is 06:29 AM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts
Page generated 2017-12-17 in 0.12 seconds with 19 queries on phoenix via your IP 54.82.81.154