I am trying to better understand the NinjaScript auto generated code as it is getting in the way of me doing a few things.
I have an indicator which has about 250 user definable parameters in the property section (I know its alot!) Many of the vars are for visual settings but there are quite a few which need to be changed to effect the operation of the indicator.
Now, I want to acces one of the data-series from the above mentioned indicator from a strategy. This is where it gets a little complicated.
Firstly, when add the indicator to the strategy e.g. add((TheIndicator(..... the parameters are displayed but there are only about 45 of them there.. There are 200 missing in other words. Now I can successfully fill out those 45 and the indicator is added no problem so accessing the data series wouldnt be an issue.
The issue for me is that I need be able to define some of the variables that arnt in the list.
My solutoin was to just change [GridCategory] under all the parameters to [Category] as I have read that this will cause the parameters not to need to be defined in the strategy code and this would be fine as I would just modify the default values in the indicator code and everything would be fine. BUT..... when i do this, the NinjaScript auto generated code doesnt update itself and still has the 45 vars which need to be read.....
All that info above basically comes down to a few questions,
1. Is there a way to make the NinaScript auto generated code re-generate? when does it generate in the first place? (got me stumped)
2. Why is it that only 45 of my 250 parameters are coming up in the parameter section when calling the indi in the strategy code?
3. Anyone have a solution for how I can just make all my existing parameters no longer public so that I can just change them all in my code? (ninjascript auto generated code would need to be updated for this I imagine)
I would like to be able to do all this without effecting the usablity of the indicator as I still need to have the parameters available for the user to define in the properties sections... hmmmmm.......
Any suggestions would be greatly appreciated..
Cheers.
Comment