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 judysamnt7, 03-13-2023, 09:11 AM
      4 responses
      59 views
      0 likes
      Last Post DynamicTest  
      Started by ScottWalsh, Today, 06:52 PM
      4 responses
      36 views
      0 likes
      Last Post ScottWalsh  
      Started by olisav57, Today, 07:39 PM
      0 responses
      7 views
      0 likes
      Last Post olisav57  
      Started by trilliantrader, Today, 03:01 PM
      2 responses
      21 views
      0 likes
      Last Post helpwanted  
      Started by cre8able, Today, 07:24 PM
      0 responses
      10 views
      0 likes
      Last Post cre8able  
      Working...
      X