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

Strategy OCO Stop Loss on Chart

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

    Strategy OCO Stop Loss on Chart

    I'm working with a programmer to develop a custom NT8 strategy. Our custom code places either a Buy or Sell STP (Stop-Market) Order. It's simple "all-in-all-out" order management that does not scale in or scale out. All trades exit when either the Stop Loss or Trailing Stop Loss price is hit.

    In manual trading with the Chart Trader ATM, I'm used to both the entry and exit appearing on the chart in OCO form. However, with our current code, on the entry displays. I'm concerned that if in live trading NT8 freezes or the Internet connection drops or another similar failure occurs, the stop order will not be residing at the broker. The strategy is designed to trade unattended during most ETH hours and I'm concerned about potential large losses.

    Running in standard Managed Orders mode, can an NT8 strategy place both sides of an OCO order on the chart to enter and exit trades where both reside at the broker in the same or similar as the Charter ATM?

    #2
    Hello kirkvan,

    Thank you for your note.

    No. The Managed Approach will use OCO for Set methods (SetStopLoss(), SetProfitTarget(), etc) but not for Enter/Exit methods.

    To use OCO entry orders, the Unmanaged Approach must be used.

    Here's a link to another forum topic with an example of OCO entry:

    Hello. Unmanaged approach. Say, I have working order, let it have the name "Tp". When "Tp" was submitted, it had OCO paired order with "Sl" name. And then something strange and frighten happened, and now we have one only working "Tp" order. "Sl" is in a terminal state, or


    Please let us know if we may be of further assistance to you.
    Kate W.NinjaTrader Customer Service

    Comment


      #3
      Disappointing but understood and appreciated.

      From what I've studied, the Unmanaged approach is complicated and time-consuming, thus expensive when working with a contracted programmer.

      I know my strategy could call an ATM strategy but I don't want to lose Strategy Analyzer's optimization benefits.

      Perhaps I can meet my safety goals by running on my Chicago webserver third-party trade monitoring and auto-recovery tools.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      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
      1 view
      0 likes
      Last Post Jon17
      by Jon17
       
      Started by Javierw.ok, Today, 04:12 PM
      0 responses
      6 views
      0 likes
      Last Post Javierw.ok  
      Started by timmbbo, Today, 08:59 AM
      2 responses
      10 views
      0 likes
      Last Post bltdavid  
      Started by alifarahani, Today, 09:40 AM
      6 responses
      41 views
      0 likes
      Last Post alifarahani  
      Working...
      X