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

# Beginner - Using price variables

## Using Price Variables Overview

In this beginner level tutorial we are going to build a custom indicator that searches for a candlestick formation in which the closing price of a specified bar is greater than the closing price of the bar before it. This indicator will show you how to access price variables and use a conditional operator.

* [Set Up](/developer/desktop-sdk/guides/educational-resources/developing-indicators/beginner-using-price-variables/set-up4)
* [Entering Calculation Logic](/developer/desktop-sdk/guides/educational-resources/developing-indicators/beginner-using-price-variables/entering-calculation-logic)
* [Compiling](/developer/desktop-sdk/guides/educational-resources/developing-indicators/beginner-using-price-variables/compiling)
* [Using](/developer/desktop-sdk/guides/educational-resources/developing-indicators/beginner-using-price-variables/using)