mirror of
https://github.com/kernc/backtesting.py.git
synced 2024-01-28 15:29:30 +03:00
BUG: Restore support for passing tuple of colors to Strategy.I
Broken since bae9340aae
This commit is contained in:
@@ -459,7 +459,7 @@ return this.labels[index] || "";
|
||||
figs_below_ohlc.append(fig)
|
||||
tooltips = []
|
||||
colors = value._opts['color']
|
||||
colors = colors and cycle([_as_list(colors)[0]]) or (
|
||||
colors = colors and cycle(_as_list(colors)) or (
|
||||
cycle([next(ohlc_colors)]) if is_overlay else colorgen())
|
||||
legend_label = LegendStr(value.name)
|
||||
for j, arr in enumerate(value, 1):
|
||||
|
||||
Reference in New Issue
Block a user