Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Send an email every time a trade is taken

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

    Send an email every time a trade is taken

    Hello,
    I have an automated trading strategy and I was wondering if there is a way for me to incorporate some kind of code in my Ninja Script code so that every time every time is trade is entered or exited I get an email to my gmail account.

    Is this possible? If yes, can someone please guide me to the appropriate code?

    Thanks!

    #2
    Originally posted by pandyav View Post
    Hello,
    I have an automated trading strategy and I was wondering if there is a way for me to incorporate some kind of code in my Ninja Script code so that every time every time is trade is entered or exited I get an email to my gmail account.

    Is this possible? If yes, can someone please guide me to the appropriate code?

    Thanks!
    Hello,

    In the ninja trader help guide, search for "SendMail". You will also need set up e-mail in the control center tools> options> Misc tab.

    Comment


      #3
      pandyav, tasker-182 is correct here the SendMail command in our NinjaScript would be ideal to work that on. For any fills you want to monitor the OnExecution(), while for any full trade just the OnBarUpdate() conditions of your script should suffice.
      BertrandNinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by idude, 11-09-2024, 09:12 AM
      3 responses
      16 views
      0 likes
      Last Post NinjaTrader_Erick  
      Started by Falke07, 11-03-2024, 07:43 AM
      8 responses
      42 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by noabai, Today, 03:32 AM
      2 responses
      13 views
      0 likes
      Last Post noabai
      by noabai
       
      Started by ToNovy, 11-08-2024, 10:36 AM
      15 responses
      64 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by steinberg123, Today, 04:33 AM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Working...
      X