Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Getting bar close price with a limit order.

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

    Getting bar close price with a limit order.

    Hi,
    I would like to be able to enter a limit order at exactly bar close price on fast timeframes . I do not have time to enter the price manually or even click the middle mouse button,so I need NT to calculate the price and enter it for me.
    I have tried buy bid, sell ask but sometimes this is 1 tick off bar close price and I do not have time to adjust the order before the market starts moving away from my desired entry price and I do not want to use a chase.
    What is the fastest and most accurate way of entering a limit order at bar close price with Ninja Trader ?
    Thanks Phil

    #2
    Hello Phil,

    You can create custom automated strategies using NinjaScript. You can create your strategy to submit orders at the close of the bar. More information can be found at the following link.

    JasonNinjaTrader Customer Service

    Comment


      #3
      Since you are taking your buy signals directly from the chart I would recommend using the chart trader to eliminate the extra step in the SuperDOM. This way you can enter the trade right where and when you see it. Here is a link with more information about Chart Trader.


      http://www.ninjatrader-support.com/HelpGuideV6/ChartTraderDisplay.html
      JessicaNinjaTrader Customer Service

      Comment


        #4
        Hi and thanks for your responses,
        Well I'm not much of a programmer but I am willing to have a go, I tried this morning but I got stuck so a little push in the right direction would be greatly appreciated.

        How would I code the following:
        1 At bar close ,enter a limit order long at that bar close price, 2 contracts.

        As long as I get the actual bar close price not the bid or ask that's the main thing.

        If you can help me with that bit I think that will be able to figure out the stops and targets myself, and be on my way to being a super duper ninja trader coding specialist.
        regards Phil.

        Comment


          #5
          Originally posted by Phill.f View Post
          Hi and thanks for your responses,
          Well I'm not much of a programmer but I am willing to have a go, I tried this morning but I got stuck so a little push in the right direction would be greatly appreciated.

          How would I code the following:
          1 At bar close ,enter a limit order long at that bar close price, 2 contracts.

          As long as I get the actual bar close price not the bid or ask that's the main thing.

          If you can help me with that bit I think that will be able to figure out the stops and targets myself, and be on my way to being a super duper ninja trader coding specialist.
          regards Phil.


          Hello Phil,

          Thank you for your post. You will need to set a tangible entry condition. For example close of 1 bar ago > than open. After you have an entry condition you can set your entry conditions. I have built one for you and provided screenshots to assist.
          Attached Files

          Comment


            #6
            thanks Eamon,
            I think I am getting somewhere now.
            However I have entered my strategy into the strategy grid by right click and choosing new strategy.
            Then I have chosen my chart time frame the 133 tick and instrument er2 03-08.
            When I press start in the strategy window I get an immediate fill and the price is some 10 to 12 points below current market price.
            I have tried changing from a limit to a market order just to see what happens and it's the same.
            any clue as to where I may be going wrong ?
            Thanks Phil

            Comment


              #7
              Originally posted by Phill.f View Post
              Hi,
              I would like to be able to enter a limit order at exactly bar close price on fast timeframes . I do not have time to enter the price manually or even click the middle mouse button,so I need NT to calculate the price and enter it for me.
              I have tried buy bid, sell ask but sometimes this is 1 tick off bar close price and I do not have time to adjust the order before the market starts moving away from my desired entry price and I do not want to use a chase.
              What is the fastest and most accurate way of entering a limit order at bar close price with Ninja Trader ?
              Thanks Phil
              Hi Phil,

              You will want to set 'Wait until flat before executing live' as your default option on starting a real-time strategy. This will cause your strategy to wait until flat before executing any live orders. You can do this from the Control Center --> Tools --> Options --> Strategies tab --> NinjaScript tab.

              More information can be found within our help guide here: http://www.ninjatrader-support.com/H...tegiesTab.html

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by GwFutures1988, Today, 02:48 PM
              1 response
              5 views
              0 likes
              Last Post NinjaTrader_Clayton  
              Started by ScottWalsh, 04-16-2024, 04:29 PM
              6 responses
              32 views
              0 likes
              Last Post ScottWalsh  
              Started by frankthearm, Today, 09:08 AM
              10 responses
              36 views
              0 likes
              Last Post frankthearm  
              Started by mmenigma, Today, 02:22 PM
              1 response
              4 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Started by NRITV, Today, 01:15 PM
              2 responses
              10 views
              0 likes
              Last Post NRITV
              by NRITV
               
              Working...
              X