Skip to content

Commit c93c97c

Browse files
committed
fix: tick_size_over_time must not use scientific notion
closes 12054
1 parent 271ba46 commit c93c97c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

freqtrade/data/btanalysis/historic_precision.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def get_tick_size_over_time(candles: DataFrame) -> Series:
1111
# count the number of significant digits for the open and close prices
1212
for col in ["open", "high", "low", "close"]:
1313
candles[f"{col}_count"] = (
14-
candles[col].round(14).astype(str).str.extract(r"\.(\d*[1-9])")[0].str.len()
14+
candles[col].round(14).apply("{:.15f}".format).str.extract(r"\.(\d*[1-9])")[0].str.len()
1515
)
1616
candles["max_count"] = candles[["open_count", "close_count", "high_count", "low_count"]].max(
1717
axis=1

0 commit comments

Comments
 (0)