My users are creating NinjaScript strategies, and they are creating custom parameters for their strategies that look something like this in the C# code:
privateint ticksBetter = 1;
[Description("Ticks Better is used to do such-and-such.")]
[Category("Parameters")]
publicint TicksBetter
{
get { return ticksBetter; }
set { ticksBetter = Math.Max(0, value); }
}
I am looking for a way to iterate over all user-created custom parameters so that I can write this information out to a database. Using intellisense inside of a strategy, I can't find a collection like "this.Parameters". Is there a collection that holds these parameters that I can iterate over in C# code?
Thanks in advance!
ChiTrader2000
Comment