I am creating a BuildingBlock. One of its parameters is an indicator.
The BB GUI creates a ComboBox which enables me to select an indicator among all available indicators.
Now I wish to restrict this selection to just a handful of choices. How can I do this?
The BB GUI creates a ComboBox which enables me to select an indicator among all available indicators.
Now I wish to restrict this selection to just a handful of choices. How can I do this?
Rename
The only method of restriction available here is to restrict it to smoothers only using ParameterType.Smoother.
You could add strings to a Parameter's Choices list, but you don't get the Indicator integration for setting Parameters with that.
What about an additional optional parameter for AddIndicatorParameter() which specifies a user supplied callback which in turn allows to filter the Indicator List?
Could look like this:
And MyMagicFilter could be a user supplied routine like this:
I think this would make the BuildingBlocks even more user friendly and less error prone.
Could look like this:
CODE:
AddIndicatorParameter("MagicIndi", "XYZ", ParameterType.Callback, MyMagicFilter);
And MyMagicFilter could be a user supplied routine like this:
CODE:
bool MyMagicFilter(IndicatoerBase ib) { if(ib.Abbrev == "Magic") return true; return false; }
I think this would make the BuildingBlocks even more user friendly and less error prone.
ParameterType.Smoother does not work as expected. It produces code which expects another <indicator>
???
???
Yes, sorry about that.
Feel free to introduce a new #FeatureRequest for new functionality.
Feel free to introduce a new #FeatureRequest for new functionality.
Your Response
Post
Edit Post
Login is required