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 f.saeidi, Today, 12:14 PM
      7 responses
      16 views
      0 likes
      Last Post f.saeidi  
      Started by Russ Moreland, Today, 12:54 PM
      1 response
      6 views
      0 likes
      Last Post NinjaTrader_Erick  
      Started by philmg, Today, 12:55 PM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_ChristopherJ  
      Started by TradeForge, 04-19-2024, 02:09 AM
      2 responses
      32 views
      0 likes
      Last Post TradeForge  
      Started by aprilfool, 12-03-2022, 03:01 PM
      3 responses
      329 views
      0 likes
      Last Post NinjaTrader_Adrian  
      Working...
      X