Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

in an automated strategy can you do a OCO order

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

    in an automated strategy can you do a OCO order

    In an automated stategy is it possible to do an OCO order?

    THanks

    #2
    Could you clarify....Automated from where? NinjaScript strategy? Easy Language Strategy?
    RayNinjaTrader Customer Service

    Comment


      #3
      easy language

      Comment


        #4
        Hello:

        If you have a strategy from Easy Language that uses OCO order function, it is possible to route this strategy to NT using the TS email interface or the TS Dll integration methods.

        Instructions on using the TS email interface can be found here:


        Instructions on using the TS Dll intergration can be found here:


        Best regards,
        RyanNinjaTrader Customer Service

        Comment


          #5
          Yes you can using our DLL interface. The NTCommand() function allows you to place orders with associated OCO id's used to link orders together.

          Additional information - http://www.ninjatrader-support.com/H...Functions.html
          RayNinjaTrader Customer Service

          Comment


            #6
            as always thank you very much for your help

            Comment


              #7
              OCO Orders from within a NinjaScript strategy?

              Is it possible to create a (pair of) OCO Order(s) from within a NinjaScript strategy?

              thx
              Nathamus

              Comment


                #8
                Not directly. However, stops and tagets themselves are internally tied via OCO.
                RayNinjaTrader Customer Service

                Comment


                  #9
                  I know. This can be found in the help file.
                  Let´s say I work on a t Tick Chart. I want to enter the market long above and below the current ask with a certain number of shares, but I do not want both orders ot be executed. How can this be realized?

                  e.g.

                  if (Bars.CurrentAsk >= Level1 && Bars.CurrentAsk < Level1+z*TickSize ) {
                  EnterLongStop (x, Level1, "buy_low");
                  EnterLongLimit (y, Level1+z*TickSize , "buy_high");
                  }

                  could cause a double execution on this single bar, right? (assumed that I use: calculate on bar close = true)

                  Comment


                    #10
                    Yes, this could cause a double execution. We will be providing a reference sample to accomplish this in the next few weeks at most.
                    RayNinjaTrader Customer Service

                    Comment


                      #11
                      Ray,

                      Has the Reference sample been completed?

                      Thanks

                      Comment


                        #12
                        Take a look at the following examples:



                        RayNinjaTrader Customer Service

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by Jimmyk, 01-26-2018, 05:19 AM
                        6 responses
                        835 views
                        0 likes
                        Last Post emuns
                        by emuns
                         
                        Started by jxs_xrj, 01-12-2020, 09:49 AM
                        6 responses
                        3,291 views
                        1 like
                        Last Post jgualdronc  
                        Started by Touch-Ups, Today, 10:36 AM
                        0 responses
                        10 views
                        0 likes
                        Last Post Touch-Ups  
                        Started by geddyisodin, 04-25-2024, 05:20 AM
                        11 responses
                        62 views
                        0 likes
                        Last Post halgo_boulder  
                        Started by Option Whisperer, Today, 09:55 AM
                        0 responses
                        9 views
                        0 likes
                        Last Post Option Whisperer  
                        Working...
                        X