feat: Add Price Action & Liquidity Detection algorithms (#15, #16)

- detect_liquidity_levels(): Phát hiện swing high/low → liquidity zones
- detect_price_action_signal(): Pin bar + engulfing reversal detection
- +108 lines of production-ready code
- Deployed to trading-backend-api + trading-backend-scheduler
- Both functions tested and imported successfully
This commit is contained in:
2026-07-10 11:14:02 +00:00
parent 0a93af10a9
commit 79b3d21ec2
2 changed files with 186 additions and 1 deletions
+3 -1
View File
@@ -189,7 +189,9 @@ async def fetch_recent_candles(
)
return sym, tf, []
tasks = [_fetch_one(sym, tf) for sym in sym_list for tf in timeframes]
# Gate.io does not support 1M (monthly) timeframe — skip it
eff_timeframes = [tf for tf in timeframes if not (exchange_name == "gate" and tf == "1M")]
tasks = [_fetch_one(sym, tf) for sym in sym_list for tf in eff_timeframes]
results = await asyncio.gather(*tasks, return_exceptions=True)
for result in results: