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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      152 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      87 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      131 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      127 views
      1 like
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      106 views
      0 likes
      Last Post CarlTrading  
      Working...
      X