Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

send email after trades

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

    send email after trades

    Dear support,

    I want the strategy to send me email after a trade is complete,Where should I put SendMail() if a trade is stop out or exit on close? Thanks.

    #2
    It is up to you where you want to place it. You can place it in if-statements that check for position changes, place it in OnOrderUpdate() when order is filled, place it in OnPositionUpdate() when you get the desired position change.
    Josh P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by ETFVoyageur, 05-07-2024, 07:05 PM
    10 responses
    71 views
    0 likes
    Last Post ETFVoyageur  
    Started by Zeezee, Today, 12:45 PM
    3 responses
    14 views
    0 likes
    Last Post NinjaTrader_ChristopherJ  
    Started by ldanenberg, Today, 03:19 PM
    0 responses
    2 views
    0 likes
    Last Post ldanenberg  
    Started by TheTradingMantis, 01-19-2023, 02:05 AM
    42 responses
    914 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by _Zero_, 04-10-2020, 03:21 PM
    144 responses
    7,896 views
    6 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X