IsInStrategyAnalyzer

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Strategy >

IsInStrategyAnalyzer

Previous page Return to chapter overview Next page

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

 

ns


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);
}