Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Disable position manager

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

    Disable position manager

    I am trying to make a strategy to only execute my entries and set a target. After the entry is submitted, I would like to manage my own exit by adjusting the location of the target. I am having two problems:
    1.) I can not move the target from where the strategy originally puts it
    2.) When I manually close a position which the strategy enters, it doesn't know it's closed and if a reversal signal comes, it thinks it has to still close the other order and essentially then places an order for double contracts.

    Basically, I just want a strategy to enter the orders using my ATM and then think it's flat. Any help is appreciated.

    #2
    Hello Tdschulz,

    For this you need to connect an ATM strategy to a NinjaScript strategy. There is a sample built into the platform. You should work from this as it has all the necessary structure. SampleAtmStrategy in Tools > Edit NinjaScript > Strategy

    Documentation for this is here:


    There is a section there on manually closing using the close button.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      This is my first strategy so excuse the basic questions please. I see the example strategy but I don't see where it calls for a long or short. Can you point me to some completed examples using an ATM?

      Comment


        #4
        That's a complete example. The trade direction is determined by this line:

        Code:
        AtmStrategyCreate(Cbi.[COLOR="RoyalBlue"]OrderAction.Buy[/COLOR], OrderType.Limit, Low[0], 0, TimeInForce.Day, orderId, "AtmStrategyTemplate", atmStrategyId);
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          is there an alternate to EnterLong command? It seems the EnterLong then tries to manage the position so if I manually exit, it doesn't know. For example, if long and I exit and then the signal fires a short, it's entering 2 short to close the previous long it thought it had. I just want a dumb version of entering and forgetting. I'm not liking the ATM method.

          Comment


            #6
            If you're looking for manual manipulation of orders after an automated entry, then ATM is designed for this and there isn't an alternative.

            If you just want to submit orders without any internal management, then you can look into the unmanaged approach. Unmanaged strategies have only three methods for order submission: SubmitOrder(), CancelOrder(), and ChangeOrder(), and all position management must be custom coded.
            Last edited by NinjaTrader_RyanM1; 05-13-2011, 03:41 PM.
            Ryan M.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            671 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            379 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            111 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
            582 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X