CurrentText

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Market Analyzer Column >

CurrentText

Previous page Return to chapter overview Next page

Definition

Sets text to be displayed in the Market Analyzer column.

 

Note: CurrentText will overrule any value set for CurrentValue. If both CurrentValue and CurrentText have assigned values, the value of CurrentText will display in the column.

 

Property Value

A string representing text to display in the column

 

Syntax

CurrentText

 

Example

ns

protected override void OnMarketData(MarketDataEventArgs marketDataUpdate)
{
  // Print "Ask" in the column if an Ask price update is received
  if(marketDataUpdate.MarketDataType == MarketDataType.Ask)
      CurrentText = "Ask";
}