refactor: clean up

This commit is contained in:
moen0
2026-04-13 20:37:21 +02:00
parent 7d53f8589a
commit cd80a947a9
6 changed files with 27 additions and 92 deletions
-9
View File
@@ -1,12 +1,4 @@
def find_fvgs(candles, min_gap_size=0.0, impulse_multiplier=0.0):
"""
Find Fair Value Gaps in candle data.
Args:
candles: list of Candle objects
min_gap_size: minimum gap size in price units to filter noise (0 = no filter)
impulse_multiplier: minimum body-to-avg ratio for the middle candle (0 = no filter)
"""
fvgs = []
avg_body = 0
@@ -50,7 +42,6 @@ def find_fvgs(candles, min_gap_size=0.0, impulse_multiplier=0.0):
"bottom": c3.high,
"mitigated": False,
})
# Mark mitigated FVGs
for fvg in fvgs:
if fvg["mitigated"]: