Hello, I am trying to debug a portfolio strategy, one of my securities is causing an exception to be thrown from my strategy.
How can I obtain the name of the security that is causing the error? I am trying to use Output.WriteLine but don't see where to get the name of the current security.
Thank you.
how to get name of security inside an indicator or strategy? [SOLVED]
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: how to get name of security inside an indicator or strat [SOLVED]
Hello novaleaf,
IInstrumentSettings.Name Property - returns name of the symbol.
IInstrumentSettings.Name Property - returns name of the symbol.
Re: how to get name of security inside an indicator or strat
thanks henry, that is
for anyone who need it.
Code: Select all
this.Bars.Info.Name