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