Commit Graph

12 Commits

Author SHA1 Message Date
rufinomec-afk b35fd2eb5a merge: integra fase5 do Thiago (DOM, VWAP, big trades, trading, historical browser) mantendo fixes de ontem
- Combina on_history_ready_callback (replay reset) com on_big_trade_callback (Thiago)
- DOM subscription + visualização no canvas
- VWAP e delta profile no volume profile
- Big trades com alerta visual no canvas
- Endpoints /trade/buy, /trade/sell para execução via MQL5
- Historical Browser: date picker no header, /history/load e /history/live
- Trading panel no sidebar com botões BUY/SELL
- config/settings.py: mantém USTEC como padrão, adiciona BIG_TRADE_THRESHOLD
- Todos os fixes de ontem preservados: broadcast live, history_ready, replay reset

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-08 11:22:13 -03:00
rufinomec-afk cc0e1bc3de feat: replay reset ao mudar config — gráfico regenera com novo delta 2026-06-07 23:38:28 -03:00
rufinomec-afk 6f8e64048a revert: remover natural overshoot, manter split exato em 800 2026-06-07 23:33:59 -03:00
Thiago Moura 764822da46 feat: Implementa Fase 5 - DOM, VWAP, Audio Alerts e Historical Browser 2026-06-07 23:17:08 -03:00
rufinomec-afk c74b411404 fix: history_ready event — frontend refetch apos replay completo 2026-06-07 23:09:29 -03:00
rufinomec-afk 310c1f52bd fix: broadcast active cluster em todo tick live, heartbeat WS
Remove guard closed_json que bloqueava updates do cluster ativo.
Frontend recebe estado a cada tick sem precisar de F5.
Heartbeat ping a cada 20s para manter conexao WS viva.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-07 23:06:57 -03:00
rufinomec-afk 6fe8920412 fix: desativar calculo de imbalance no frontend
Frontend recalculava imbalance independente do backend.
Desativado ate implementacao correta ser encontrada.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-07 16:06:57 -03:00
rufinomec-afk a2488eaab2 feat: frontend, collector e settings updates
- mt5_collector: session start detection via gap M1, bar volume annotation, imbalance events tracking
- settings: HISTORY_FROM_DATE, HISTORY_SESSION_START flags
- FootprintCanvas: imbalance dots (centralizados, desativados por ora), stacked imbalance removido

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-07 16:05:59 -03:00
rufinomec-afk 3f48ef27ed feat: tick split, imbalance dots (desativado), session start detection
- Tick split via while-loop no process_tick: clusters fecham em +-800 delta sem overshoot
- Session start detection: busca maior gap em 3000 bars M1 para detectar abertura de sessao
- Imbalance dots: codigo presente mas desativado (6 abordagens testadas, todas geraram dots em todos os levels com dados CFD polling)
- ask_events/bid_events tracking por level (para futura implementacao de imbalance)
- Bottom panel redesign: volume bars + delta blocks

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-07 16:05:50 -03:00
rufinomec-afk 54f269b0ce visual: redesign bottom panel, price axis cleanup and bid/ask indicator
- Bottom panel: dual bid/ask bars per cluster (red=sell, blue=buy) with white volume label inside and delta block below
- Price axis: labels every 10 rows (~7.5pts) instead of every row — cleaner, closer to original
- Price axis: bid/ask spread boxes with arrow indicator (shows on live market open)
- Price axis zoom: inverted so drag-up = zoom in, matching original behavior
- Current price line rendered last (always on top of all bars)
- Bar colors: corrected — ask (buy) = blue, bid (sell) = pink
- Backend: close_time field added to cluster JSON; bar_volume M1 annotation (triggers after replay)
- Backend: last_bid/ask tracked and injected into active cluster WS message

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-06 15:53:05 -03:00
rufinomec-afk 11a0921e20 feat: visual e coleta de dados do footprint chart
- Footprint bars bid/ask por nível com cor dominante
- Painel inferior duplo: volume (barras) + delta (blocos azul/laranja)
- Linha de preço atual ciano dashed com tag no eixo
- Timestamp por cluster no eixo X
- Drag no eixo de tempo para zoom horizontal
- Drag no eixo de preço para ajustar step multiplier
- Coleta de volume via price-step method para delta correto
- Guard is_live para evitar flood de WebSocket no replay histórico
- total_ticks adicionado ao aggregator

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-06 14:57:02 -03:00
Thiago Moura 0a185c0223 Commit inicial: Projeto YuClusters 2026-06-04 18:12:47 -03:00