Closed tikidave closed 5 years ago
the histogram and dots plotters do not support "fields" parameter in the current version. It will be available in the future one. The currently supported plotters and parameters are listed here: https://tradovate.github.io/custom-indicators/plotter.html
Hey Victor, is there an ETA on multiple plotter support for histograms? If not, do you have suggestions on creating a single indicator with multiple histogram plots using a custom plotter?
I'm following up on an important issue for custom indicators: https://tradovate.zendesk.com/hc/en-us/community/posts/115007810327-Ability-to-code-custom-indicator-with-any-plot-types
I have been experimenting with multiple plot lines and have bumped into a few issues. Take the following example indicator:
It is built with two indicators, added to a single chart area. I attempted to build it as a single indicator using the following code:
However, this did not work as it seems
histogram
requires thevalue
field to be returned as the plot name, and does not acceptfields
.Switching the plotter code to
plotter: { type: 'multiline', fields: ['bid', 'ask'] }
works as expected (except with lines):However, I noticed that converting the plotter to array format with other plot types (i.e.
plotter: [{ type: 'multiline', fields: ['bid', 'ask'] }],
) causes all the multiline plots to render a single color:Changing the plot type to dots (
plotter: { type: 'dots', fields: ['bid', 'ask'] },
) crashes the app:However, changing the dots plotter to
plotter: [{ type: 'dots', field: 'bid' }, { type: 'dots', field: 'ask' }],
renders correctly:Hopefully we can resolve these inconsistencies and have all basic plot types working. Thanks!