NexusFi: Find Your Edge


Home Menu

 





Limit Order Fills on Strategy Analyzer


Discussion in NinjaTrader

Updated
    1. trending_up 1,928 views
    2. thumb_up 4 thanks given
    3. group 13 followers
    1. forum 1 posts
    2. attach_file 0 attachments




 
Search this Thread

Limit Order Fills on Strategy Analyzer

  #1 (permalink)
VenturaBob
Los Angeles, CA
 
Posts: 2 since Feb 2015
Thanks Given: 0
Thanks Received: 5

Know that the Strategy Analyzer (when backtesting/ optimizing) produces fills that are one tick better than the limit order price. This is not consistent with the real world trading, which fills the limit orders (pretty much always) at their limit order price. As such, any optimization you do is pointless.

I'm guessing they did this in attempt at being conservative, but didn't quite get it right. Yes, you can select "Fill limit orders on touch", but that's not how the exchange fills them. The better way to simulate the filling of limit orders is to require the market price to go to the next price past the limit order price ("tick-through"), then fill at that limit order price. No, this isn't how the real world works, but it's closer to the actual market mechanics. (Indeed, I don't know of a better way to simulate the filling of limit orders, unless you have updates of the order book each time it changes, which is unlikely, and would consume a massive amount of memory, so isn't practical anyway.)

Where they got it wrong was filling the order at that next better price.

So, know that all of the limit orders methods are affected (EnterLongLimit, EnterLongStopLimit, etc). So, if you're wondering why your backtesting / optimization doesn't produce trades similar to what it does in real time, it's likely because of this.

I pointed this out to them over two months ago. At first they denied this problem existed. After proving it to them what was going on, they finally said to change this would be a "feature enhancement", so would require a vote from the users as to whether to fix it. Well, how is fixing a known coding defect a "feature enhancement" ? So, I then had to explain to them why they were wrong. (Looks like they got it right in NT 7.) They finally realized this really is a problem, and said they would fix it -- sometime.

I asked them about this again last week; I got a reply yesterday that this will be fixed in their next version. Of course, they don't make announcements as to when their next release might be, so it could be some weeks (months ?) before this gets fixed. In the meantime, I suggest that you do not use any of the limit order methods in your code.

In sum, I am encouraging (imploring ?) everyone to ask NT's Help Desk about this problem (action ticket NTEIGHT-13582, "historical limit order fills").

Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Exit Strategy
NinjaTrader
Better Renko Gaps
The Elite Circle
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
Online prop firm The Funded Trader (TFT) going under?
Traders Hideout
Build trailing stop for micro index(s)
Psychology and Money Management
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
59 thanks
Funded Trader platforms
37 thanks
NexusFi site changelog and issues/problem reporting
23 thanks
GFIs1 1 DAX trade per day journal
22 thanks
The Program
19 thanks




Last Updated on January 28, 2020


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts