Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Market Replay Slippage

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

    Market Replay Slippage

    When back-testing a strategy on market replay, how do i configure slippage?

    #2
    Hello reynoldsn,

    The playback connection plays back market replay data (or historical tick data) as real-time not as backtest. Historical data does load on the chart before the real-time data begins playing back, but the playback itself is real-time not backtest.

    Unfortunately, the Sim101 and Playback101 accounts cannot have slippage applied the way that backtest (historical) can have slippage applied.

    You can enforce partial fills if this helps.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hmm...can you clarify --

      I'm using this in OnStateChange()

      Slippage = 1.5;

      Then I open a chart and select my strategy and I see this in Properties:

      Click image for larger version

Name:	image.png
Views:	169
Size:	37.6 KB
ID:	1336581

      i.e. slippage applied to playback.

      Are we talking about the same thing?

      Comment


        #4
        Hello reynoldsn,

        This is the Historical fill processing.

        "Sets the amount of slippage in ticks per execution used in performance calculations during backtests."
        Join the official NinjaScript Developer Community for comprehensive resources, documentation, and community support. Build custom indicators and automated strategies for the NinjaTrader platforms with our extensive guides and APIs.


        Playback plays back in real-time.


        In State.Historical, when the strategy is enabled, the historical data will process first. Once the historical data is processed then the State becomes State.Realtime and the playback begins playing back in real-time, as if you were magically sent back in time to watch a play out in in real-time. This is not historical or backtest.

        Print the State property in OnBarUpdate() with the time of the bar, and allow this to start playing back data and observe the output.

        Unfortunately no, the Historical Slippage property does not apply to playback.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        111 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        59 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        38 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        43 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        78 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X