You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* BUG: Allow multiple names for vector indicators (kernc#382)
Previously we only allowed one name per vector
indicator:
def _my_indicator(open, close):
return tuple(
_my_indicator_one(open, close),
_my_indicator_two(open, close),
)
self.I(
_my_indicator,
# One name is used to describe two values
name="My Indicator",
self.data.Open,
self.data.Close
)
Now, the user can supply two (or more) names to annotate
each value individually. The names will be shown in the
plot legend. The following is now valid:
self.I(
_my_indicator,
# Two names can now be passed
name=["My Indicator One", "My Indicator Two"],
self.data.Open,
self.data.Close
)
0 commit comments