MCPcopy Create free account
hub / github.com/kernc/backtesting.py / _too_many_dims

Function _too_many_dims

backtesting/_plotting.py:530–536  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

528 """Strategy indicators"""
529
530 def _too_many_dims(value):
531 assert value.ndim >= 2
532 if value.ndim > 2:
533 warnings.warn(f"Can't plot indicators with >2D ('{value.name}')",
534 stacklevel=5)
535 return True
536 return False
537
538 class LegendStr(str):
539 # The legend string is such a string that only matches

Callers 1

_plot_indicatorsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected