I think we should have plot indicators details defined directly in Strategy file. That way the user can define more specific plot configuration for each strategy.
Features:
Below the variable proposition:
# Optional plot informations
plot_rows = [
'main_plot':[
{'name': 'ema10', 'color': 'red'}
],
'sub_plots':[
[
{'name': 'macd', 'color': 'blue'},
{'name': 'macdsignal', 'color': 'red'}
],
[
{'name': 'rsi', 'color': 'orange'}
],
]
]
as long as it's kept optional (so strategies not defining this will still work also for the UI) I guess that's fine, even though it'll clutter the strategy quite a bit for huge strategies.
I would keep color optional since the color is not that important.
maybe consider a "type" section - defaulting to Line but allowing to specify histograms or so ... ? (not sure if that makes sense, but i'm thinking about MACD histogram ...)
you could also use dataframe.columns coming out of populate_indicators to create a list of possible indicators users can select in the UI if this is not defined?
And once selected it generates this list ... so users can copy/paste it to the Strategy? (i know, i'm lazy) ...
I'm agree with you about:
However for the automatic generation of those parameter from the UI, I don't see a suffisent gain versus time allowed to develop that feature.
The added value of being able to choose indicators in the UI is to make a quick visual observation.
I see two limitations factor here:
i said "you could" - this makes it a "would be nice to have ..."
one can dream ... no? :smile: