Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Trying new Unmanaged Orders feature

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

    Trying new Unmanaged Orders feature

    I am trying to explore the new Unmanaged orders feature

    Managed method:
    Orefs.oe1=EnterLongLimit(0,true,20000,Orefs.op,"Shortf" + Scon);

    Unanaged method: Orefs.oe1=SubmitOrder(0, OrderAction.Buy, OrderType.Limit,20000,Orefs.op,double stopprice, "ocoID"+ Scon,"Shortf" + Scon);

    1. What is the difference between “double LimitPrice” and “double StopPrice”When I go Long/Short I use “LimitPrice” only and if I want to exit I have to use “StopPrice” only with unused item should be given 0 value. Am I right?
    2. What does the “string Name” does? Is it the “fromEntrySignal name”?
    3. Can I link more than two orders with one "OCOID"?

    4. Can we submit ProfitLimit and StopLimits before market execution (OnExecution)?

    Regards,
    Last edited by malmaa; 01-22-2010, 12:46 PM.

    #2
    1. You would use a Limit price any time you submit a limit order. Stop price, when you submit a stop order. Consider the old methods like EnterLongLimit() and EnterLongStop(). Those used limit prices and stop prices dependingly, but both are for longs. The unused item would be set to 0, correct.

    2. When you are using unmanaged there is no signal tracking. The name is just something for yourself if you need it for your own identification purposes.

    3. Yes, just provide the same OCO ID.

    4. No, you should only place those protective orders after you receive an execution for your entry order.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Unmanaged orders

      I am using code in this sample http://www.ninjatrader-support2.com/...ead.php?t=7499 recommended by Ninja Trader, however I want to be able to reverse position at limit prices, so I figured I would need to use Unmanaged=true; and SubmitOrder(); code on latest beta. I just changed :
      entryOrder= SubmitOrder(0,OrderAction.SellShort,OrderType.Limi t,1,sell,0,"1","MyEntry");
      stopOrder = SubmitOrder(0,OrderAction.BuyToCover,OrderType.Sto pLimit,execution.Order.Filled, sl,0,"1","MyEntry");
      targetOrder = SubmitOrder(0,OrderAction.BuyToCover,OrderType.Lim it,execution.Order.Filled, pt,0,"1", "MyEntry");
      but it doesn't work. In log I get "More than 100 subsequent user events". What am I doing wrong?
      Last edited by fafura; 02-12-2010, 08:46 AM.

      Comment


        #4
        fafura,

        With Unmanaged code you really need to keep track of everything yourself. If your code enters a block a hundred times, you are submitting a hundred orders. There is no signal tracking that only allows for one entry and things like that. You really need to keep track of literally everything on your own and the conveniences and methods used by that reference sample may not necessarily be advisable for Unmanaged strategies.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Is there another way to reverse at limit by using the referenced sample and not using the Unmanaged option?

          Comment


            #6
            fafura,

            To clarify, could you not just put in an EnterLimit order in the direction you want?
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              If I do I get "Internal order handling rules" error.

              Comment


                #8
                Are you talking about having two orders in opposite directions at the same time? If so, there is no way around besides using Unmanaged.

                What some people have done in the past is to just submit one order live. If price moves closer to the other order, cancel the first, wait for order cancel confirmation, then submit the new limit in the other direction.
                Josh P.NinjaTrader Customer Service

                Comment


                  #9
                  In playing short I want to reverse at target(go long limit), and submit the next sell short limit order (when reached to close long position and go short again) and so on and so on..

                  Comment


                    #10
                    When you are holding a short, just submit an EnterLongLimit() and nothing else. When you are long submit an EnterShortLimit() and nothing else. If you try to submit EnterLongLimit() at same time as EnterShortLimit() it will not work.
                    Josh P.NinjaTrader Customer Service

                    Comment


                      #11
                      What about stop orders? If I change targetOrder = ExitLongLimit to EnterShortLimit I still get "Internal order handling" error. I guess it is because on execution of the first order EnterLongLimit, I submit ExitLongStopLimit and it is working order when I try to submit (also on execution of the first order) EnterShortLimit as you suggested.

                      Comment


                        #12
                        You will run into the same issues as you have experienced.
                        RayNinjaTrader Customer Service

                        Comment


                          #13
                          So once again my question is: "Is there a way to reverse at target with a limit order and submit stoplimit and targetlimit orders at execution as provided in referenced sample without using the Unmanaged option?

                          Comment


                            #14
                            Originally posted by fafura View Post
                            So once again my question is: "Is there a way to reverse at target with a limit order and submit stoplimit and targetlimit orders at execution as provided in referenced sample without using the Unmanaged option?
                            Sorry, I only read the last post thus did not realize there was an open question. The answer then is no, you must use unmanaged.
                            RayNinjaTrader Customer Service

                            Comment


                              #15
                              I noticed a possible bug:

                              After using my strategies with Unmanaged option, I then restore previous versions (which use regular trading rules) from NT backup, when try to run I get an error EnterShortLimit cannot be called on Unmanaged strategies, although Unmanaged is nowhere in the code.
                              Last edited by fafura; 02-17-2010, 11:19 PM.

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                              0 responses
                              605 views
                              0 likes
                              Last Post Geovanny Suaza  
                              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                              0 responses
                              351 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by Mindset, 02-09-2026, 11:44 AM
                              0 responses
                              105 views
                              0 likes
                              Last Post Mindset
                              by Mindset
                               
                              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                              0 responses
                              560 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by RFrosty, 01-28-2026, 06:49 PM
                              0 responses
                              561 views
                              1 like
                              Last Post RFrosty
                              by RFrosty
                               
                              Working...
                              X