Skip to content

Commit a08d0ee

Browse files
committed
adjust the width
1 parent d2f1147 commit a08d0ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mplfinance/_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ def _construct_pf_collections(dates, highs, lows, volumes, config_renko_params,
534534

535535
for i in range(len(x)): # x and y have the same length
536536
height = box_size * 0.9
537-
width = min(0.5 * (box_size * 0.2), 0.9)
537+
width = min(max(0.5 * (box_size * 0.2), 0.3), 0.9)
538538
if height < 0.5:
539539
width = height
540540
if sign == 1: # X

0 commit comments

Comments
 (0)