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

Limit on Open Orders

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

    Limit on Open Orders

    Limit-on-Open is a limit order submitted at market open and that will execute at the specified limit price or better


    Interactive brokers has the functionality to send Limit on open opens.

    Is it possible to do the same orders via Ninjatrader platform ?


    How would this need to be coded to achieve this outcome in a strategy?

    #2
    Hello fiddy,

    Thank you for your post.

    There is no feature for this in NinjaTrader. However, this function could be programmed in a NinjaScript strategy that would automate the placement of the order on the open. If you would like details on NinjaScript please refer to our Educational Resources in our Help Guide at the following link: http://ninjatrader.com/support/helpG..._resources.htm

    Please let me know if you have any questions.

    Comment


      #3
      are you able to provide example of how this is done for the market open rather than after the opening the tick?

      Comment


        #4
        Hello,
        If your strategy is running as CalculateOnBarClose = false or with a secondary series, for intra bar orders you could use the following items to assist in creating logic that happens on each new bar or on each new session.





        I have provided an example of how you could check the time of the open and if it is the first tick of the bar.
        Code:
        protected override void Initialize()
        {
            CalculateOnBarClose = false;
        }
        if(Time[0] == ToTime(8, 0, 0))
        	if(FirstTickOfBar)
        		EnterLongLimit(limitPrice);
        Cody B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by cls71, Today, 04:45 AM
        0 responses
        1 view
        0 likes
        Last Post cls71
        by cls71
         
        Started by mjairg, 07-20-2023, 11:57 PM
        3 responses
        213 views
        1 like
        Last Post PaulMohn  
        Started by TheWhiteDragon, 01-21-2019, 12:44 PM
        4 responses
        544 views
        0 likes
        Last Post PaulMohn  
        Started by GLFX005, Today, 03:23 AM
        0 responses
        3 views
        0 likes
        Last Post GLFX005
        by GLFX005
         
        Started by XXtrader, Yesterday, 11:30 PM
        2 responses
        12 views
        0 likes
        Last Post XXtrader  
        Working...
        X