Currently SetBarColor resides in StrategyBase. It would be nice to create indicators that color the bars based on the indicator (kinda like a PaintBar study in Tradestation).
Are you looking for this?
How would that work if you drop two opposing such indicators?
It would conflict, but I can't see anytime you would want more than one indicator of that type running at once.
Thought process would to be able to do something like this for visualizing trend or visualizing an oscillator on price.
Yes Tradestation does this differently with a paint bar study. In WL this is handled by the strategy. I’m hesitant to add more complexity and possibly unexpected results by also adding this functionality to an indicator.
possibly unexpected results
Yes,... and not everyone would want all the indicators to work this way.
However, anyone could create a MyIndicatorBase that inherits from IndicatorBase, then create their own indicators from this new base class with this functionality. Let us know how this works out for you.
Another option would be to create a BarColorize derived (interface?) class to act as a "toolbox" for performing this task on any indicator. Then one could create new indicators by inheriting from existing indicators employing this BarColorize toolbox interface. This behavior might be useful for some indicators. (I'm just wondering what should be included in the BarColorize toolbox? Did you have several numerical criteria in mind?)
Your Answer Post
Login is required