How to get a symbol's name  [SOLVED]

Questions about MultiCharts .NET and user contributed studies.
EdL
Posts: 39
Joined: 18 Feb 2013
Has thanked: 22 times
Been thanked: 11 times

How to get a symbol's name

Postby EdL » 26 Feb 2013

Hi,

I'm trying to look up what the current symbol's name is. In the EasyLanguage/PowerLanguage reference there is a reserved keyword or method name - GetSymbolName

https://www.multicharts.com/trading-sof ... SymbolName

I've looked in the MC.NET C# library but can't seem to find an equivalent. Is there one?
If not, how can I go about accessing the current symbol?

Many thanks,

Ed

EdL
Posts: 39
Joined: 18 Feb 2013
Has thanked: 22 times
Been thanked: 11 times

Re: How to get a symbol's name  [SOLVED]

Postby EdL » 26 Feb 2013

Figured it out.

It's a property on IInstrumentSettings interface which Bars.Info implements.

e.g.

string symbolName = Bars.Info.Name;


Ed


Return to “MultiCharts .NET”