> 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.

# Backtesting NinjaScript Strategies with an intrabar granularity

You can submit orders to different Bars objects. This allows you the flexibility of submitting orders to different timeframes. Like in live trading, taking entry conditions from a 5min chart means executing your order as soon as possible instead of waiting until the next 5min bar starts building. You can achieve this by submitting your orders to a more granular secondary bar series to achieve an "intrabar" fill.

## Key concepts in this example

* Finding entry conditions on the primary bar object
* Submitting orders to the secondary bar object for an intrabar fill

## Important related documentation

* [AddDataSeries()](/developer/desktop-sdk/references/common/adddataseries)
* [BarsInProgress](/developer/desktop-sdk/references/common/adddataseries/barsinprogress)
* [EnterLong()](/developer/desktop-sdk/references/strategy/order-methods/managed-approach/enterlong)
* [BarsArray](/developer/desktop-sdk/references/common/adddataseries/barsarray)
* [EnterLongLimit()](/developer/desktop-sdk/references/strategy/order-methods/managed-approach/enterlonglimit)

## Import instructions

1. Download the file contained in this Help Guide topic to your PC desktop
2. From the Control Center window, select the menu Tools > Import > NinjaScript
3. Select the downloaded file

[SampleIntrabarBacktest\_NT8.zip](https://ninjatrader.com/support/helpGuides/nt8/samples/SampleIntrabarBacktest_NT8.zip)