|
| 1 | +# DevMeister3000 — History |
| 2 | + |
| 3 | +## Project Context |
| 4 | + |
| 5 | +- **Project:** PyIndicators — Python library for financial technical analysis |
| 6 | +- **Owner:** marcvanduyn |
| 7 | +- **Stack:** Python 3.12+, pandas, polars, numpy, unittest |
| 8 | +- **Indicator pattern:** `indicator()` → `indicator_signal()` → `get_indicator_stats()`, all support pandas + polars |
| 9 | +- **Current indicators:** ~50+ including EMA, SMA, RSI, MACD, Supertrend, Bollinger Bands, Fair Value Gap, Order Blocks, Market Structure, Swing Structure, Trendline Breakout Navigator, and many more |
| 10 | + |
| 11 | +## Learnings |
| 12 | + |
| 13 | +- Team formed 2026-02-27. |
| 14 | +- Existing indicators follow a consistent pattern: internal `_compute_pandas()` function, public API with Union[PdDataFrame, PlDataFrame] type hints. |
| 15 | +- Polars support is done by converting to pandas, computing, and converting back. |
| 16 | +- Pivot detection uses left/right bar confirmation pattern (see `swing_structure.py`, `trendline_breakout_navigator.py`). |
| 17 | +- **2026-02-27 — Flake8 cleanup (14 warnings):** Fixed F841, F401, E741, E127 across 8 files. Key patterns found: |
| 18 | + - Several indicators compute intermediate variables for debugging/clarity that are never used (e.g., `y1_plus_slope` in trendline_breakout_navigator, `atr_vals` in z_score_predictive_zones). |
| 19 | + - Three indicator modules used ambiguous variable `l` for low arrays — renamed to `low` in opening_gap.py, strong_weak_high_low.py, volume_imbalance.py. Other modules (like the older ones) used different patterns already. |
| 20 | + - `accumulation_distribution_zones` functions were imported in `pyindicators/__init__.py` but missing from `__all__` — added them. This was likely an oversight when the indicator was registered. |
| 21 | + - `Optional` was imported but unused in range_intelligence.py (the module uses `Union` instead). |
| 22 | + - Pre-existing test failures exist in `test_market_structure` (CHoCH/BOS) — 9 errors unrelated to this work.- **2026-02-27 — TBN analysis notebook (Issue #3):** Created `analysis/indicators/trendline_breakout_navigator.ipynb` following Carlos's chart plan and the VWT notebook pattern. 3-row layout: candlestick + trendlines + markers (row 1, 70%), composite trend bar chart (row 2, 15%), volume bars (row 3, 15%). Outputs HTML, PNG to `static/images/indicators/` and `docs/static/img/indicators/`. `analysis/indicators/` directory is gitignored — used `git add -f` to commit. Stats block prints all 16 keys from `get_trendline_breakout_navigator_stats()`. |
| 23 | +- **2026-02-28 — TBN dark theme chart overhaul (Issue #3):** Rewrote chart styling from light to dark theme (#131722 background, matching TradingView aesthetic). Key changes: (1) bright green `#00e676` / red `#ff5252` trendlines for contrast against dark background; (2) white-outlined markers (HH triangles, LL triangles, wick diamonds) for visibility; (3) increased chart height to 1000px + width 1400px; (4) Consolas monospace font; (5) subtle grid lines `rgba(255,255,255,0.06)` and muted neutral bars `#363a45` for zero-trend periods; (6) composite trend + volume bars at higher opacity for dark readability. Outputs regenerated to all three paths (HTML + 2× PNG). |
0 commit comments