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

When taking profit and cutting loss orders are sent?

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

    When taking profit and cutting loss orders are sent?

    Hi, want to know when taking profit and cutting loss orders are sent? Are they sent to the broker at the same time when the entry order is sent? Or execution of entry order triggers taking profit and cutting loss orders to be sent?

    If taking profit and cutting loss orders are sent after execution of entry order, what will happen if my computer freezes or lost network connection after entry order is executed and before taking profit and cutting loss orders are sent?

    Thanks.

    #2
    Welcome to the forums CougarMountain!

    Profit Target and Stop Loss orders from SetProfitTarget and SetStopLoss are sent when an Entry order comes back as filled. Profit Target and Stop Loss orders sent with Exit methods will be sent when your logic allows those order methods to be reached. (See Managed Approach documentation for full information on how these order methods work and can be used.)

    If NinjaTrader is not able to see the execution of your Entry order, it will not be signalled to send your profit target and stop loss until the connection is re-established and then the execution is seen. (See Connection Loss Handling for further information on how a strategy can be left to "KeepRunning" in the event of a connection loss.)

    If there is a freeze and the software trading platform cannot react, it will not be able to send the protective orders. This would be a case where you should contact your broker's Orders Desk to ensure you are not left in an unwanted position. This would be good practice using any trading software.

    However, to note that if you need to restart the platform or ultimately re-enable the strategy, you could use the ImmediatelySubmit Start Behavior can be used so that the strategy immediately submits any active strategy orders it calculated when it processes historical data. (See Syncing Account Positions for full detail on Start Behaviors)

    Managed Approach - https://ninjatrader.com/support/help...d_approach.htm

    Connection Loss Handling - https://ninjatrader.com/support/help...riptProperties

    Start Behaviors (Please also see Strategy Vs. Account Position linked within.) - https://ninjatrader.com/support/help..._positions.htm

    If you do not have a stable environment to run the strategy on your home PC, a VPS could be considered to run NinjaTrader and your NinjaScript strategies.

    Please let us know if you have any additional questions.
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by bortz, 11-06-2023, 08:04 AM
    47 responses
    1,603 views
    0 likes
    Last Post aligator  
    Started by jaybedreamin, Today, 05:56 PM
    0 responses
    8 views
    0 likes
    Last Post jaybedreamin  
    Started by DJ888, 04-16-2024, 06:09 PM
    6 responses
    18 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by Jon17, Today, 04:33 PM
    0 responses
    4 views
    0 likes
    Last Post Jon17
    by Jon17
     
    Started by Javierw.ok, Today, 04:12 PM
    0 responses
    12 views
    0 likes
    Last Post Javierw.ok  
    Working...
    X