Currently we create properties at compile time like:
[Description("Trade second contract")]
[GridCategory("Parameters")]
public bool TradeSecondContract
{
get { return useContract2; }
set { useContract2 = value; }
}
I would like to be able to modify which parameters are shown, depending on options the user selects. For instance, if they choose to trade 2 contracts instead of 1, I show exit options for the second contract.
I did find where the base strategy has a ParameterCollection that can be accessed through this.Parameters. It contains each of my parameters and their types... but not the description and grid category.
I have tried modifying this list and it does not affect the GridControl. I am guessing NinjaTrader is either using a GridControl or a custom grid type (NTGrid2?).
I'm sure there must be some way to get a reference to the GridControl, but I have yet to find it. I am also guessing your answer is going to be that this is not supported.
I'm fine with an unsupported answer... can someone just nudge me in the right direction?
If you need more of a description about my setup and why I need this I would be happy to respond with such.
Thanks

Comment