public partial class DOM : NinjaTrader.NinjaScript.AddOnBase { ... public Dictionary<MarketDataType, List<Row>> Get(int barsAgo) { List<Row> _Ask = new List<Row>(); List<Row> _Bid = new List<Row>(); return new Dictionary<MarketDataType, List<Row>>() { { MarketDataType.Ask, _Ask }, { MarketDataType.Bid, _Bid } }; } ... }
... protected class Row { ...
But you can't return the object of a protected class... and internal does not work (mentioned in old posts)...
So any ideas? Besides changing the access modifier of Row to public..
My regards.
Comment