ClearOutputWindow()

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Common > Alert, Debug, Share >

ClearOutputWindow()

Previous page Return to chapter overview Next page

Definition

Clears all data from the NinjaTrader Output Window.

 

Note:  The ClearOutputWindow() method only targets the Output tab most recently determined by set PrintTo property.

 

 

Method Return Value

This method does not return a value.

 

Syntax

ClearOutputWindow()

 

Examples

ns


protected override void OnStateChange()
{    
  if (State == State.SetDefaults)
  {
    Name = "Examples Indicator";  
    Description = @"An indicator used to demonstrate various NinjaScript methods and properties";          
  }
  else if (State == State.Configure)
  {          
    AddDataSeries(BarsPeriodType.Minute, 5);          
  }  
 
  else if(State == State.DataLoaded)
  {
    //clear the output window as soon as the bars data is loaded
    ClearOutputWindow();        
  }
}