backtesting.py icon indicating copy to clipboard operation
backtesting.py copied to clipboard

Allow setting legend names when multiple series values are used in an Indicator

Open zlpatel opened this issue 4 years ago • 2 comments

Expected Behavior

There should be a way to specify meaningful legend names when multiple series values are used in a single Indicator

Actual Behavior

Currently, you can only specify single name for Indicator. But there are cases where you need to plot multiple data series in a single Indicator and it's important to label them for easy identification.

Currently, There's an option to specify list of colors (one for each data series). I think if we allow passing list of legend names (as a separate parameter) that would be great.

Additional info

image

zlpatel avatar Jun 15 '21 22:06 zlpatel

After my code fix it looks like this: image

zlpatel avatar Jun 15 '21 23:06 zlpatel

@kernc could you mark this as an enhancement?

zlpatel avatar Jun 16 '21 19:06 zlpatel