• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to Disable SendMail() in Strategy

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

    How to Disable SendMail() in Strategy

    Hey everyone,

    Been looking all day for a reference sample or code snippet showing how I can disable my SendMail() function in a strategy.

    Also if that code would contain a sample of how to calculate a trades realized profit/loss, that would be even more appreciated.

    Thanks

    Dave

    #2
    Dave, I would unfortunately not have a specific reference to point you to, when you would not want to trigger the sending of emails, then you condition that includes SendMail() call should not trigger / evaluate, this brings up the question then what specific condition would stop this action? You can for example limit via time or also any other technical condition / event in your code.

    For accessing the closed trade Pnl, you can check into this link - http://www.ninjatrader.com/support/h.../nt7/trade.htm
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Thanks Bertrand for the help!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by _Zero_, Today, 09:19 AM
      1 response
      5 views
      0 likes
      Last Post NinjaTrader_Jim  
      Started by GLFX005, Today, 09:05 AM
      2 responses
      17 views
      0 likes
      Last Post GLFX005
      by GLFX005
       
      Started by meandthetrio, Today, 09:03 AM
      1 response
      5 views
      0 likes
      Last Post NinjaTrader_PatrickG  
      Started by peakythomas, Today, 08:34 AM
      1 response
      6 views
      0 likes
      Last Post NinjaTrader_Tyler  
      Started by ttodua, Today, 09:06 AM
      1 response
      9 views
      1 like
      Last Post NinjaTrader_Melissa  
      Working...
      X