Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

limit order simulation vs. live trading

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

    limit order simulation vs. live trading

    My automated strategy uses limit orders for entry/exit.

    It is not realistic to assume that just because price hits a limit order that it is filled, typically you need price to go through the limit in real-time trading.

    Q1) does NT backtesting and real-time simulator fill a limit order when it is touched or prices trades one tick through the limit?

    Q2) is there any way to include market depth information to estimate where in the order book my limit order is queue'd up so I can get a realistic simulation?

    Q3) how do I keep a limit order active across 512-tick bars so that I have a better chance of being at the head of the order book queue?


    Thanks,

    Dave

    #2
    Maybe this article will provide some insight into the order fills: http://www.ninjatrader-support.com/v...ead.php?t=3271

    For market depth you definitely can program it. Please see this reference sample: http://www.ninjatrader-support.com/v...ead.php?t=3478

    You can keep an order alive via the liveUntilCancelled parameter on orders. The syntax is as follows: EnterLongLimit(int barsInProgressIndex, bool liveUntilCancelled, int quantity, double limitPrice, string signalName)
    Josh P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    648 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    369 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    109 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    573 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    575 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X