Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OCO Unmanaged with FXCM Server Side

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

    OCO Unmanaged with FXCM Server Side

    Hello,

    Is it possible using OCO unmanaged server side with FXCM?

    If it is - can you please provide sample or guidance on how to submit OCO unmanaged bracket order for server side? Ex - buy if crosses above certain price and sell if crosses below certain price...

    And as a bonus - how to set OCO target/stop loss with unmanaged for the order that just got filled... (I assume same way as bracket)...

    Thanks

    #2
    Hello,

    Thank you for the question.

    The OCO being serverside would only depend if the broker supports serverside OCO, NinjaTrader will submit the OCO to the broker if it would apply, otherwise if not applicable NinjaTrader would use local OCO simulation. Regarding if your broker supports serverside OCO, you would need to speak with the broker directly to make sure that is supported, in general you could see this post as well but for updated and accurate information the broker is always the best resource: http://ninjatrader.com/support/forum...ead.php?t=5349

    As for a sample, we do not currently have a full unmanaged sample posted, but we do have various samples in the help guide posted to assist in your learning.

    as an example one way to make an entry bracket could be the following:

    longOrder = SubmitOrder(0, OrderAction.Buy, OrderType.Limit, 1, Low[0] - 3 * TickSize, 0, "SomeUniqueOcoId", "EnterLong");
    shortOrder = SubmitOrder(0, OrderAction.Sell, OrderType.Limit, 1, High[0] + 3 * TickSize, 0, "SomeUniqueOcoId", "EnterShort");

    This would essentially just place two limit orders and once one is filled the OCO will cancel the other.


    For stop and targets,You could check your Position to see if you are Long or Short from OnBarUpdate to delegate logic for the stops and submit orders as needed.

    Also you could identify the filled orders from OnExecution to determine if the SignalName used has been filled or if the longOrder or shortOrder == the filled execution. In the case you have filled your entry, you could submit a stop or target.

    because unmanaged gives you full control there is no automated way to set stops or targets you would need to account for this with your logic.


    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Thanks, it does help.

      One note though, the link you posted for brokers list supporting OCO is for nt7.
      Do you have another list for nt8? Ex it says FXCM OCO are not supported in this link but I read that they should be supported with NT8

      Thanks

      Comment


        #4
        Hello,

        Thank you for the reply.

        Yes this has been implemented in NT8 per the Major Enhancement guide here: https://ninjatrader.com/Downloads/Ma...njaTrader8.pdf

        The FXCM section lists: Added Native OCO support

        For any details on Serverside oco handling you would of course need to contact your broker for further information.

        Please let me know if I may be of additional assistance.
        JesseNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by xiinteractive, 04-09-2024, 08:08 AM
        7 responses
        27 views
        0 likes
        Last Post NinjaTrader_Erick  
        Started by Skifree, Today, 03:41 AM
        2 responses
        8 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by trimpy, Today, 04:38 AM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by dpolyakov, 03-29-2024, 11:30 AM
        4 responses
        150 views
        2 likes
        Last Post NinjaTrader_RyanS  
        Started by traderqz, Today, 12:06 AM
        1 response
        2 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Working...
        X