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

Buy higher than high

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

    Buy higher than high

    Dear Ninjas,
    I am running strategy on demo account. I am calculating on bar close, so I enter on new bar at open. However I found the case when Ninja bought lot for price higher than was bar high! Even more, My position was closed on the stopLoss, where price did not reached the level (see picture 2)! Please let me know, what is wrong.
    Screenshot is attached.
    Thank you!
    Vladimir
    Attached Files
    Last edited by vlsachta; 10-31-2008, 02:36 AM.

    #2
    Hi vlsachta,

    One of our NinjaScript trainees will respond at a later time today. Thank you for your patience.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Hello,

      This is expected if you are using limit orders. For example if you place a Buy limit above the last traded price you will get filled. The algorithm for the backtester takes this into account and fills the order. The difference is that when you do this live the order is posted then filled and you are then within the bar. NT doesn't change the data so we cannot model this exactly as it would be in the live market.

      Your choices are to modify the different fill types from Default or Liberal, or create your own fill type. This link has more information on this:


      If you are not using limit orders please let us know and maybe post your code so we can assist.
      DenNinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by AttiM, 02-14-2024, 05:20 PM
      12 responses
      213 views
      0 likes
      Last Post DrakeiJosh  
      Started by cre8able, 02-11-2023, 05:43 PM
      3 responses
      238 views
      0 likes
      Last Post rhubear
      by rhubear
       
      Started by frslvr, 04-11-2024, 07:26 AM
      8 responses
      117 views
      1 like
      Last Post NinjaTrader_BrandonH  
      Started by stafe, 04-15-2024, 08:34 PM
      10 responses
      47 views
      0 likes
      Last Post stafe
      by stafe
       
      Started by rocketman7, Today, 09:41 AM
      3 responses
      12 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Working...
      X