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 mattdowns1234, Yesterday, 06:57 PM
    0 responses
    14 views
    0 likes
    Last Post mattdowns1234  
    Started by dgee949, Yesterday, 06:26 PM
    0 responses
    24 views
    0 likes
    Last Post dgee949
    by dgee949
     
    Started by dgee949, Yesterday, 05:58 PM
    0 responses
    30 views
    0 likes
    Last Post dgee949
    by dgee949
     
    Started by thepcmd, Yesterday, 05:14 PM
    0 responses
    34 views
    0 likes
    Last Post thepcmd
    by thepcmd
     
    Started by xmess777, Yesterday, 04:58 PM
    0 responses
    23 views
    0 likes
    Last Post xmess777  
    Working...
    X