The same script converted to an strategy has a problem.
The Opacity property has no effect on the rendering.
The opacity of the filled rectangle seems to be fixed at a preset value.
The bar data is on top of the drop shadow AND it's on top of the text items.
Attached are an indicator (awxEconomicNews) and strategy (awxEconomicNewsStrat). They are identical except for how the color properties are coded but that's irrelevant as I have another script (not shared) that is a strategy that also can not make use of the Opacity property.
See here for screen shot example. The chart on the left is running the strategy, the right the indicator. You can see that in the indicator version the news items have a drop shadow that partially occludes the bars. But not the strategy version on the left.
And here's another view with blue background:
It seems that there are at least 2 problems with the strategy version: Opacity is not changing and the bar data is on top of the rendering.
I have some strategies that need to paint their info. Their hosted indicators do not have all the data to paint because some of the info is strategy oriented like position info.
I wrote a strategy that HOSTS the awxEconomicNews indicator. This is also attached in the zip file. The strategy is called HostNewsIndy. This strategy is able to set the data that the awxEconomicNews is painting and the strategy hosted awxEconomicNews indicator is painting correctly.
So while there is a work around for this problem for the use cases that I foresee, there's something going on with the rendering from the Strategy side that might be a problem for someone (or me in the future).
Comment