Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

sendmail()

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

    sendmail()

    Hello

    I may be over complicating this code. What I am trying to do is for the script to send an email showing performance data every hour or so. Unfortunately, it only seems to send out emails occasionally but not all the time… any ideas on where I am going wrong?

    Thanks

    if (FirstTickOfBar)
    {
    if (ToTime(Time[0]) >= 101500 && ToTime(Time[0]) < 101600 || ToTime(Time[0]) >= 111500 && ToTime(Time[0]) < 111600 || ToTime(Time[0]) >= 121500 && ToTime(Time[0]) < 121600 etc

    SendMail("[email protected]", "[email protected]", "Trade Update", "Total RT = " + Performance.AllTrades.Count)

    Return;

    }

    #2
    John833,

    If you do not receive any errors and do receive some of the mails than it is outside of NinjaTrader. The mails could be backed up on your sending queue, hanging over on email server, any number of things. Unfortunately it would not be your code influencing this. Maybe firewall settings, spam settings, etc.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      thanks Josh, so my code looks ok and it should work?
      Last edited by John833; 01-12-2009, 08:32 AM.

      Comment


        #4
        Right. You stated you get some of the emails. If you get some it is likely not the code causing fault.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          ok thanks again

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          646 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          367 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          107 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          569 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          573 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X