IsInStrategyAnalyzer

View as Markdown

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

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