I wish to:
1. Tell an indicator if it is in a chart or a market analyzer.
2. Find the properties of the analyzer.
1. I am currently using:
if (ChartControl == null)
{
//then it is not in a chart
}
if MarketAnalyzerColumn is the parent of the indicator then it is in a market analyzer
SimpleFont font = new SimpleFont();
NinjaTrader.Gui.MarketAnalyzer.MarketAnalyzerProperties prop = new NinjaTrader.Gui.MarketAnalyzer.MarketAnalyzerProperties();
font = prop.FontInfo;
How would I find the user selected font of the market analyzer that the indicator is currently active in? eg. If I am using 'Tahoma' then it should return 'Tahoma'.
Thank you in advance,
Simon.
Comment