CurrentText

View as Markdown

Definition

Sets text to be displayed in the Market Analyzer column.

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

Examples

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