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

Looking for sample code to track order status & strategy framework

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

    Looking for sample code to track order status & strategy framework

    Hi Folks,

    I went through the 4 sample strategies coming with the NT8 installation package. All are using market order to get in a position when signal flags.

    However, in my case, when a signal come, I place the order according to a predefined risk to control the loss. If the order cannot be filled within 3 bars from the triggering bar, the order is cancelled. On the other hand, when the order is filled, a stop loss and profit target order is in place automatically with the fill of either one to cancel the other.

    I am looking for a flexible framework which already handles this such that I can focus on the market condition analyzer, trade condition analyzer and trade setup. I am looking for something which is similar to the attached package. (This package is with a purchase of an ebook on NT8. The author allows it to be shared under GPL license which is specified in the package). I need to look into several similar examples before making decision which way to go.

    Thank you very much for your support.


    Best Regards
    David WANG


    LaunchpadTradeSetupIndicatorFramework.zip

    #2
    Take a look here,
    NinjaTrader is easy to use to build awesome Trading Strategies - also known as automated trading systems or algorithmic trading systems- generally suitable for day traders or swing trading sunday to friday close. This is where a beginner needs to start and can even use the "Strategy Builder" and use no code at all.

    Comment


      #3
      Hello David,

      Thanks for your post.

      You may also wish to view our SampleOnOrderUpdate strategy which demonstrates using OnOrderUpdate, OnExecutionUpdate, and Order objects. This example uses Exit methods of the Managed Approach, and Exit methods are not OCO tied.

      If you would like to have full control over OCO, you could consider using the Unmanaged Approach, and the example I attached here follows the same practices that are done in SampleOnOrderUpdate, but with the Unmanaged Approach. I recommend viewing SampleOnOrderUpdate to get a complete understanding on how Order object handling is performed and how to use OnOrderUpdate/OnExecutionUpdate before trying this with Unmanaged.

      SampleOnOrderUpdate - https://ninjatrader.com/support/help...and_onexec.htm

      We look forward to assisting.
      Attached Files
      JimNinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Jonafare, 12-06-2012, 03:48 PM
      5 responses
      3,984 views
      0 likes
      Last Post rene69851  
      Started by Fitspressorest, Today, 01:38 PM
      0 responses
      2 views
      0 likes
      Last Post Fitspressorest  
      Started by Jonker, Today, 01:19 PM
      0 responses
      2 views
      0 likes
      Last Post Jonker
      by Jonker
       
      Started by futtrader, Today, 01:16 PM
      0 responses
      7 views
      0 likes
      Last Post futtrader  
      Started by Segwin, 05-07-2018, 02:15 PM
      14 responses
      1,792 views
      0 likes
      Last Post aligator  
      Working...
      X