doc(bug): Added doc for 'no tick has been produced' consideration during regime calculation.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user