Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OCO - internet outage

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

    OCO - internet outage

    Hello,

    I want to ask if I understand right that OCO only works with Set-Statements but eg not with "exitshortstop" and on the other side with a profit-target with conditions? Or is there any idea how it works as OCO with conditions and not with Set-Statements?

    I want to share my thoughts about this: if one does an OCO and the connection to broker is working then everything is fine. But once the connection is interrupted then there are 2 non related orders on brokers-server as OCO is handled on the PC. Therefore I think it makes sense to send only a stoploss that resides on brokers server and the profit-target is handled on Ninja computer. If connection is working, everything is fine again but when connection is interrupted (one need a fire-insurance only for burning!) then there´s the stoploss on brokers server and the trade is safe (as there is no other non-related order then). But it might occur that there is an issue in NinjaTrader as there´s no OCO by definition in this case. When trading manually this is no problem but within automated strategy one order might not cancel other under certain conditions.

    I hope I could help fellows with this thoughts - as I have been already in an internet-outage with a trade - and I hope there´s some idea how to solve best.

    Happy trading!
    Tony

    #2
    Hello,

    Thanks for the note.

    This does not relate to what order method you use in NinjaScript. This actually related by who your broker is? Who is your broker?

    I look forward to assisting you further.

    Comment


      #3
      Hello,

      With the below said however, Would like to quickly mention that you cannot OCO link ExitLongStop and ExitLongLimit orders together. To do this would require the unmanaged approach to order entry.

      However its best to use the set statements. Would suggest using the follinwg to modify your set stops and profit targets in code:

      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