Announcement

Collapse
No announcement yet.

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 Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      574 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      332 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      553 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      551 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X