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 charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    66 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    149 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    162 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    99 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    286 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X