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

# Import Type

## Import Type

Custom data Import Types can be developed to allow for the importing of historical data from any format. Two important event handler methods are documented in this section:

### Methods and Properties

| Name                                                                                 | Description                                                       |
| ------------------------------------------------------------------------------------ | ----------------------------------------------------------------- |
| [OnNextInstrument()](/developer/desktop-sdk/references/import-type/onnextinstrument) | Called at the beginning of the import process                     |
| [OnNextDataPoint()](/developer/desktop-sdk/references/import-type/onnextdatapoint)   | Called for each line of data contained in the file being imported |