whitmark
06-13-2007, 05:52 AM
I have a custom indicator that drives out only one value but uses two plots to implement differential coloring based on certain conditions. For example, If the indicator value is moving up or flat, the green plot1 is set, else the red plot2 is set. Now, if I want to use that value from the indicator in a strategy, I would need to merge the values from both plots 1 and 2 into a single dataseries to get a single value for each bar. Alternatively, I could push a 3rd plot from the indicator where the value is set at the close of each bar, but the plot color would need to be set to transparent. Hopefully this shows that plotting techniques for visual presentation may differ from those used to pass a data series to a strategy.
Can you offer any best practices, over and above what I have shared here, for how best to address these two objectives simultaneously? I assume it is better to have fewer plots and fewer dataseries for processing efficiency. For example, is overriding a single Plot to manage plot color and push out a single dataseries more efficient than bifurcating several plots to do the same, when ultimately strategy processing and optimization will be involved. Thanks.
Regards,
Whitmark
Can you offer any best practices, over and above what I have shared here, for how best to address these two objectives simultaneously? I assume it is better to have fewer plots and fewer dataseries for processing efficiency. For example, is overriding a single Plot to manage plot color and push out a single dataseries more efficient than bifurcating several plots to do the same, when ultimately strategy processing and optimization will be involved. Thanks.
Regards,
Whitmark