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

# Intermediate - Your own SMA

## Your Own SMA Overview

In this intermediate level tutorial we are going to build a simple moving average indicator. This indicator will show you how to use the **for** loop and a single case **if** statement.

* [Set Up](/developer/desktop-sdk/guides/educational-resources/developing-indicators/intermediate-your-own-sma/set-up6)
* [Entering Calculation Logic](/developer/desktop-sdk/guides/educational-resources/developing-indicators/intermediate-your-own-sma/entering-calculation-logic3)
* [Compiling](/developer/desktop-sdk/guides/educational-resources/developing-indicators/intermediate-your-own-sma/compiling3)
* [Using](/developer/desktop-sdk/guides/educational-resources/developing-indicators/intermediate-your-own-sma/using3)