2026-04-09 15:58:19 +02:00
|
|
|
from data.loader import load_candles
|
2026-04-09 16:15:54 +02:00
|
|
|
from indicators.market_structure import find_swing_points, detect_structure
|
2026-04-09 15:58:19 +02:00
|
|
|
|
|
|
|
|
candles = load_candles("data/data.csv")
|
|
|
|
|
print(f"Loaded {len(candles)} candles")
|
|
|
|
|
|
2026-04-09 16:15:54 +02:00
|
|
|
swings = find_swing_points(candles)
|
|
|
|
|
structure = detect_structure(swings)
|
|
|
|
|
print(f"Structure points: {len(structure)}")
|
2026-04-09 15:58:19 +02:00
|
|
|
|
2026-04-09 16:15:54 +02:00
|
|
|
for s in structure[:10]:
|
|
|
|
|
print(s)
|