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

# Using a Series or DataSeries object to store calculations

When creating Indicators or Strategies you may find that you need to store values in a way that is similar to the way price data is stored in NinjaTrader.

`Series\<T\>` objects are useful for storing various types of values.

Since they are linked to your historical bars object, you can store and link a value to each bar. This allows you the flexibility of accessing the values at any point in the future for further calculations or plotting.

## Key concepts in this example

* Creating objects that store data
* Storing and retrieving values from these objects

## Important related documentation

* [Series\<T>](/developer/desktop-sdk/references/common/iseriest/seriest)

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

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