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

# IsInStrategyAnalyzer

## Definition

Determines if the current **NinjaScript** Strategy is run from a Strategy Analyzer chart.

## Property Value

A bool value when true the strategy is being run from the Strategy Analyzer chart; otherwise will return false.

## Syntax

`IsInStrategyAnalyzer`

## Examples

```csharp
protected override void OnBarUpdate()
{
    // Only draw the ArrowUp on our condition if we're not in the Strategy Analyzer chart
    if (Close[0] > SMA(High, 14)[0] && !IsInStrategyAnalyzer)
        Draw.ArrowUp(this, CurrentBar.ToString(), true, 0, High[0] + TickSize, Brushes.Blue);
}
```