Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

How to switch to unmanaged mode?

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

    How to switch to unmanaged mode?

    I'd like to place more than one trailing stop order at a time with OCO. I hear I can do this in unmanaged mode. How do I switch it?

    I've read this article (https://ninjatrader.com/support/help...d_approach.htm) but I don't know which script to edit or if I have to create a new one or what??

    #2
    Hello freedombridge,

    Thanks for your post.

    With reference to the link you provided you would set the strategy to unmanaged by the code:

    Code:
    protected override void Initialize()
    {
        Unmanaged = true;
    }
    In the unmanaged approach you are responsible for all coding, there is no trailing stop unless you create one. You can link two together with through the OCOid (One Cancels Other).

    In the unmanaged approach you would use:

    SubmitOrder: https://ninjatrader.com/support/helpGuides/nt7/?submitorder.htm

    ChangeOrder: https://ninjatrader.com/support/help...hangeorder.htm

    CancelOrder: https://ninjatrader.com/support/help...ancelorder.htm - Note this is the same in managed or unmanaged.

    You would want to create a new ninjascript for an unmanaged approach as many of the methods in managed are not applicable. Here is a link to a file upload that contains both a managed and unmanaged strategy that may serve as an example for you: http://ninjatrader.com/support/forum...hp?&linkid=571
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Thanks for your response NinjaTrader_Paul. It still seems a little complex for me to find time to learn. If you or anyone else reading this would like to get paypal'd some extra money while sharpening your programming skills then please give me a quote on what you would charge to just create the file for me.

      What I'd like to do is simple.

      1. I must be able to use chart trader to do the trade.

      2. I want to be able to make 2 ATM orders where one cancels the other when filled.

      3. I must be able to drag the orders up and down without breaking the functionality.

      If you are interested then please PM me. Thanks!

      Comment


        #4
        Hello freedombridge,

        Thanks for your reply.

        You may want to review and test the strategy SampleATMStrategy that came with your Ninjatrader. This working example strategy shows you a simple entry condition and then use an existing ATM strategy to manage the trade (You would need to create an ATM strategy called ATMStrategyTemplate). As you know, with an ATM you can adjust the orders as needed in the chart trader. With a coded strategy you can also add your own logic.
        Paul H.NinjaTrader Customer Service

        Comment


          #5
          Thanks Paul. I guess I will give it a try and see what happens.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by algospoke, 04-17-2024, 06:40 PM
          5 responses
          45 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by arvidvanstaey, Today, 02:19 PM
          1 response
          4 views
          0 likes
          Last Post NinjaTrader_Zachary  
          Started by mmckinnm, Today, 01:34 PM
          3 responses
          5 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by f.saeidi, Today, 01:32 PM
          2 responses
          8 views
          0 likes
          Last Post f.saeidi  
          Started by alifarahani, 04-19-2024, 09:40 AM
          9 responses
          55 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Working...
          X