MCPcopy Index your code
hub / github.com/kernc/backtesting.py / LegendStr

Class LegendStr

backtesting/_plotting.py:538–545  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

536 return False
537
538 class LegendStr(str):
539 # The legend string is such a string that only matches
540 # itself if it's the exact same object. This ensures
541 # legend items are listed separately even when they have the
542 # same string contents. Otherwise, Bokeh would always consider
543 # equal strings as one and the same legend item.
544 def __eq__(self, other):
545 return self is other
546
547 ohlc_colors = colorgen()
548 indicator_figs = []

Callers 1

_plot_indicatorsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected