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 SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    46 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    22 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    14 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    20 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    22 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X