Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Send e-mail on StopOut

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

    Send e-mail on StopOut

    Is it possible to send an e-mail message out if a position is stopped out? If so, do you have some reference code that shows it, or perhaps you could point me to it somewhere in the forum?
    Thanks
    DaveN

    #2
    Hello daven,

    You could setup an SendMail() method based upon an OrderState using the OnExecution() method. For example if it is OrderState is Accepted, Cancelled, Filled, etc... you could have your strategy SendMail().

    Here are a few links that go over OnExecution(), and SendMail() that you may view.
    OnExecution: http://www.ninjatrader.com/support/h...nexecution.htm
    SendMail: http://www.ninjatrader.com/support/h...l?sendmail.htm

    Here is a beta indicator that you can download and view the code that will send an email whenever a trade get filled or partfilled in the selected account.

    http://www.ninjatrader.com/support/f...d=6&linkid=533


    Let us know if we can be of further assistance.
    JCNinjaTrader Customer Service

    Comment


      #3
      Thanks for the guidance. I will study the links and the material and see if I can figure it out.
      DaveN

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by judysamnt7, 03-13-2023, 09:11 AM
      4 responses
      57 views
      0 likes
      Last Post DynamicTest  
      Started by ScottWalsh, Today, 06:52 PM
      4 responses
      36 views
      0 likes
      Last Post ScottWalsh  
      Started by olisav57, Today, 07:39 PM
      0 responses
      7 views
      0 likes
      Last Post olisav57  
      Started by trilliantrader, Today, 03:01 PM
      2 responses
      19 views
      0 likes
      Last Post helpwanted  
      Started by cre8able, Today, 07:24 PM
      0 responses
      9 views
      0 likes
      Last Post cre8able  
      Working...
      X