> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ninjatrader.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.ninjatrader.com/_mcp/server.

# IsTickReplay

## Definition

Indicates if the bar series is using the **Tick Replay** data series property.

## Property Value

This property returns true if the bar series is using tick replay; otherwise, false. This property is read-only.

## Syntax

`Bars.IsTickReplay`

Warning: A Tick Replay indicator or strategy CANNOT use a **MarketDataType.Ask** or **MarketDataType.Bid** series. Please see [Developing for Tick Replay](/developer/desktop-sdk/guides/educational-resources/developing-for-tick-replay) for more information.

## Examples

```csharp
private double askPrice;
protected override void OnMarketData(MarketDataEventArgs marketDataUpdate)
{
    if(Bars.IsTickReplay)
    {
        // if using tick replay, get the current ask price associated with the tick
        askPrice = marketDataUpdate.Ask;
    }
    else // otherwise, get the real-time market data price during MarketDataType.Ask event
        askPrice = marketDataUpdate.MarketDataType == MarketDataType.Ask ? marketDataUpdate.Price : double.MinValue;

    // only print if a value is set
    if(askPrice != double.MinValue)
    {
        Print("ask price: " + askPrice);
    }
}
```