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 alifarahani, Today, 09:40 AM
      6 responses
      31 views
      0 likes
      Last Post alifarahani  
      Started by Waxavi, Today, 02:10 AM
      1 response
      17 views
      0 likes
      Last Post NinjaTrader_LuisH  
      Started by Kaledus, Today, 01:29 PM
      5 responses
      13 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by Waxavi, Today, 02:00 AM
      1 response
      12 views
      0 likes
      Last Post NinjaTrader_LuisH  
      Started by gentlebenthebear, Today, 01:30 AM
      3 responses
      17 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Working...
      X