Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

IOrder vs AtmStrategyCreate vs OIF PLACE

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

    IOrder vs AtmStrategyCreate vs OIF PLACE

    IOrder uses OnOrderUpdate and OnPositionUpdate

    AtmStrategyCreate does not?

    OIF PLACE from documentation 'Order State Files - Orders that are assigned an order ID value in the "PLACE" command will generate an order state update file with each change in order state

    Please explain the difference.

    I need to use atm strategies so I can manually move the stops (so IOrder is out)..also would like OnPositionUpdate to work so I can update pnl

    #2
    OIF Is not something you want to use this is just for submitting ourder from an external application.

    ATMStrategies will allow you to have control over the stop and profit target however this is at the expense of not being able to access iOrder objects for the stop loss and profit target.

    Managed approach you cannot manually modify stops and targets.

    Unmanaged approach is what you would ultimately need to do to allow this.



    -Brett
    BrettNinjaTrader Product Management

    Comment


      #3
      thanks Brett
      actually I have been using atmstrategycreate for 6 years and prefer the flexiblity...however I would like to have the order and positions updates....can get via code rather than iorder objects I suppose

      a better question would have been why the PLACE commend via OIF does not work with
      GetAtmStrategyEntryOrderStatus even though the orderID existed for placing the atm and the atm order is filled

      also, if OIF is for external apps, what would you use to close positions and flatten ...i.e. not just close the strategy but cancel all orders, close the strat and flatten without flattening all broker connections

      Comment


        #4
        Baically you dont want to use OIF at all unless you are developing an external app that has access to its own market data and just wants to use NT to submit orders.



        Use the close position command with OIF to close the one account only.

        For your question here:

        a better question would have been why the PLACE commend via OIF does not work with
        GetAtmStrategyEntryOrderStatus even though the orderID existed for placing the atm and the atm order is filled
        OIF and GetAtmStrategyEntryOrderStatus are not related in the slightest therefor they wont work together and are not meant to do so. NinjaScript and OIF are not related either.

        -Brett
        BrettNinjaTrader Product Management

        Comment


          #5
          Thanks

          As discussed before, OIF FATTENEVERYTHING worked well in the past however closes all connections...I will down grade to OIF CLOSEPOSTION

          and skip using the PLACE command altogether

          Comment


            #6
            actually I was using PLACE before because you can specify quantity

            no way to do that with AtmStrategyCreate right?

            Comment


              #7
              Its defined in the ATM strategy template when you save it. If you needed to control that you could save multiple AATM strategies for different QTY's and setup your platform to call different ATM strategies if needed.

              -Brett
              BrettNinjaTrader Product Management

              Comment


                #8
                Hello, I am creating a new strategy and would like to know how I would set up a trailing stop. What value do i use in parameters section of the strategy action section under stops and targets in order to set up a 4 tick trailing stop after a 10 tick profit for example? Do i enter something in the value field of this menu? Can i have a profit target and a trailing stop on the same strategy? if so how would i go about doing this?

                Comment


                  #9
                  Originally posted by NinjaTrader_Brett View Post
                  Its defined in the ATM strategy template when you save it. If you needed to control that you could save multiple AATM strategies for different QTY's and setup your platform to call different ATM strategies if needed.

                  -Brett
                  yes thanks...I meant from the code without changing atms...that works fine...was thinking more of just changing the quantity directly like in PLACE....does not matter, same result

                  Comment


                    #10
                    Camron,

                    Please email me at support at ninjatrader dot com and reference this forum post and include your contact information.

                    We can give you a quick call to look into your questions on ATM and explain a bit how this works.

                    -Brett
                    BrettNinjaTrader Product Management

                    Comment


                      #11
                      Originally posted by NinjaTrader_Brett View Post
                      Managed approach you cannot manually modify stops and targets.

                      Unmanaged approach is what you would ultimately need to do to allow this.


                      That documentation says nothing about manual control of orders submitted by the unmanaged approach.
                      I've never tried the unmanaged approach but I have been frustrated by the lack of any orders appearing in the DOM window with the managed approach, and the lack of backtesting ability in the ATM strategy approach. Does the unmanaged approach cause orders to appear in the DOM window? That would solve a problem for me.

                      Conversely, it would be nice to be able to access ATM strategy parameters from my script so that I can emulate them in backtesting (Replay mode is too slow). I tried browsing the NinjaTrader.sdf database in Visual Studio, and found many historical references to my ATM strategies, but not the strategies themselves. Where are they?

                      -Alex
                      Last edited by anachronist; 04-24-2012, 12:42 PM.

                      Comment


                        #12
                        I've never tried the unmanaged approach but I have been frustrated by the lack of any orders appearing in the DOM window with the managed approach
                        All orders active will show up in the DOM no matter the method submitted. Are you saying that you are seeing otherwise if so I would want to focus on this before continuing forward.

                        Specifically the limitation with the DOM and Managed orders is that you cannot move them manually via the user as they will be set back to original location on next OnBarUpdate().

                        Unmanaged would not have this limitation.
                        BrettNinjaTrader Product Management

                        Comment


                          #13
                          Huh. I'm running one right now in real time. You're right, I can see the managed orders in the DOM. At least the exits once a limit entry fills. I haven't seen an entry order yet. When I change them, though, they don't revert back to their original position.

                          -Alex

                          Comment


                            #14
                            It would only revert when OnBarUpdate() hits.

                            -Brett
                            BrettNinjaTrader Product Management

                            Comment

                            Latest Posts

                            Collapse

                            Topics Statistics Last Post
                            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                            0 responses
                            666 views
                            0 likes
                            Last Post Geovanny Suaza  
                            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                            0 responses
                            377 views
                            1 like
                            Last Post Geovanny Suaza  
                            Started by Mindset, 02-09-2026, 11:44 AM
                            0 responses
                            110 views
                            0 likes
                            Last Post Mindset
                            by Mindset
                             
                            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                            0 responses
                            575 views
                            1 like
                            Last Post Geovanny Suaza  
                            Started by RFrosty, 01-28-2026, 06:49 PM
                            0 responses
                            580 views
                            1 like
                            Last Post RFrosty
                            by RFrosty
                             
                            Working...
                            X