Skip to content

StandardIndicator.Symbol

property · StandardIndicator · cAlgo.API Since 5.2

DesktopCLICloud

Gets indicator Symbol.

Definition

Symbol Symbol {get;}
standardIndicator.Symbol: Symbol

Returns Symbol

Examples

var gbpBars = MarketData.GetBars(TimeFrame, "GBPUSD");
var rsi = Indicators.RelativeStrengthIndex(gbpBars.ClosePrices, 14);
Print("RSI symbol: {0}, value: {1}", rsi.Symbol.Name, rsi.Result.LastValue);
gbpBars = api.MarketData.GetBars(api.TimeFrame, "GBPUSD")
rsi = api.Indicators.RelativeStrengthIndex(gbpBars.ClosePrices, 14)
api.Print(f"RSI symbol: {rsi.Symbol.Name}, value: {rsi.Result.LastValue}")