I am converting my NT7 script to NT8 and have faced with the issue which I have no idea how to resolve. In my public class CustomColumn : MarketAnalyzerColumn I declare my object NinjaTrader.NinjaScript.Indicators.myIndicator m_ind; where "myIndicator" is indicator which I use successfully on the chart.
When I try to intialize my m_ind in the OnBarUpdate() like
m_ind = myIndicator(required_parameters_are_here);
I get the error "Market analyzer column 'CustomColumn': Error on calling 'OnBarUpdate' method on bar 0: The calling thread must be STA, because many UI components require this."
Any ideas what is the reason of that and how to avoid it will be greatly appreciated
Comment