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

# Draw Objects

Being able to mark visually conditions of interest on the chart is useful for the discretionary trader. With NinjaScript you can draw various objects onto your chart to alert you of these points of interest.

## Key concepts in this example

* Drawing unique diamonds to mark the beginning and end of uptrends
* Drawing and updating a single rectangle that marks the current uptrend

## Important related documentation

* [Drawing](/developer/desktop-sdk/references/common/drawing)
* [Draw.Diamond()](/developer/desktop-sdk/references/common/drawing/draw-diamond)
* [Draw.Rectangle()](/developer/desktop-sdk/references/common/drawing/draw-rectangle)

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

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