Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Can't get email to work on strategy

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Can't get email to work on strategy

    This is a very simple strategy. Cameron helped me out by getting the diamond to print. My intent was to have an email sent each time SMA condition was met.
    I put this in the code, with my actual email address. Put strategy on 5 min bar chart. The diamond printed but I received no email.
    Suggestions?
    Regards,
    Duke


    if (SMA(50)[0] > SMA(50)[1])
    {
    DrawDiamond(
    "My diamond" + CurrentBar, false, 0, Low[0] + -2 * TickSize, Color.Blue);
    SendMail(
    "", "email addr here", "test alert", "success");

    #2
    Hello dukeb,
    You must mention a email address from where you are sending the email.

    Instead of using
    Code:
    SendMail("", "email addr here", "test alert", "success");
    please use the below code
    Code:
    SendMail("your email address", "email address where you want to send the alert", "test alert", "success");
    Also please make sure you have configured your email settings properly

    In Control Center menu bar goto Tools>Options>Menu tab and please set the correct email settings.

    You can refer to this post which lists some of the popular email clients
    Below is a list of known e-mail settings and information demonstrating configuring e-mail alerts within NinjaTrader. Included are settings which have been tested with basic accounts. Please ensure that your settings are configured identically to those included, as some only use the beginning of the e-mail address and do not
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      Thank you

      Originally posted by NinjaTrader_Joydeep View Post
      Hello dukeb,
      You must mention a email address from where you are sending the email.

      Instead of using
      Code:
      SendMail("", "email addr here", "test alert", "success");
      please use the below code
      Code:
      SendMail("your email address", "email address where you want to send the alert", "test alert", "success");
      Also please make sure you have configured your email settings properly

      In Control Center menu bar goto Tools>Options>Menu tab and please set the correct email settings.

      You can refer to this post which lists some of the popular email clients
      http://ninjatrader.com/support/forum...hlight=hotmail
      I followed your instructions and emails began magically appearing.
      NT has the best support. I don't know of any other product that is supported this well.
      Thanks with gratitude, again...
      Duke

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by argusthome, Yesterday, 10:06 AM
      0 responses
      17 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      16 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      14 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      9 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      36 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X