doc(bug): Added doc for 'no tick has been produced' consideration during regime calculation.

This commit is contained in:
2025-09-01 22:11:05 +02:00
parent af0bfbe100
commit 2902dd0791
2 changed files with 27 additions and 3 deletions

View File

@@ -1067,17 +1067,17 @@ class DOLPHINRegimeActor(Actor):
# Check if prices are effectively equal within tick size tolerance
if price_diff <= equality_threshold:
# Prices are effectively equal (within tick size tolerance)
symbol_pattern.append(f"S{close_price:.2f}={open_price:.2f}")
symbol_pattern.append(f"S{close_price:.8f}={open_price:.8f}")
elif close_price > open_price:
# Bullish: close > open
bullish += 1
# Arrow points to close (larger price)
symbol_pattern.append(f"B{open_price:.2f}->{close_price:.2f}")
symbol_pattern.append(f"B{open_price:.8f}->{close_price:.8f}")
else:
# Bearish: close < open
bearish += 1
# Arrow points to open (larger price)
symbol_pattern.append(f"X{close_price:.2f}<-{open_price:.2f}")
symbol_pattern.append(f"X{close_price:.8f}<-{open_price:.8f}")
if analyzed == 0:
return