I have created a strategy using ninjascript.
I need to use queue in c#, to deal with a collection of objects.
Using System.Collections.Generic.Queue ;
I am getting no error compiling the code,
but when applying strategy to instrument, i am getting a message ,
"Failed to execute DB job 'StrategyUpdateJob' There was an error reflecting type NinjaTrader.Strategy.abc': You must implement a default accessor on 'System.Collections.Generic.Queue' some so sand so ,, because it inherits from ICollection."
Also, i am getting some crap output when i try to access the queue and print the elements in it.
Could you please tell how to resolve this, and why i am gettnig this error.
No error @ compiler
Comment