Skip to content

Commit c37e7a9

Browse files
committed
BUG: Restore support for passing tuple of colors to Strategy.I
Broken since bae9340
1 parent 1715c91 commit c37e7a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backtesting/_plotting.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ def __eq__(self, other):
459459
figs_below_ohlc.append(fig)
460460
tooltips = []
461461
colors = value._opts['color']
462-
colors = colors and cycle([_as_list(colors)[0]]) or (
462+
colors = colors and cycle(_as_list(colors)) or (
463463
cycle([next(ohlc_colors)]) if is_overlay else colorgen())
464464
legend_label = LegendStr(value.name)
465465
for j, arr in enumerate(value, 1):

0 commit comments

Comments
 (0)