svg_candles: cautarea nivelurilor, scoasa in functie comuna; 11 generatoare reparate

Unsprezece generatoare nu mai rulau deloc la HEAD: cautau <line x1="24", iar
svg_candles scrie x1="24.0" de cand are Level.i0. Un generator mort inseamna
ca diagrama nu mai poate fi regenerata, si nimeni n-ar fi aflat pana cand ar
fi incercat cineva, peste luni.

Cele 11 copii ale aceluiasi regex au disparut: y_niveluri() si offset_render()
se agata acum de semnatura liniei de Level (stroke-width + dasharray), nu de
x-ul ei. Caz nou in selftest, cu Level(i0=) si panou de volum - combinatia la
care varianta veche fie crapa, fie prindea tacut linia de zero a volumului.

41 de SVG-uri regenerate, toate identice cu cele comise dupa normalizarea
x1=24 -> x1=24.0, deci niciun desen n-a sarit. Verificarea asta a prins o
regresie reala: la buy_doji_transe substitutia lasase scaderea veche pe randul
urmator, offsetul se scadea de doua ori si desenul urca 92 px.

Inca doua generatoare moarte din aceeasi familie, gasite pe drum
(intrarea_cazul_lui, intrarea_doua_variante): desenau peste grafic citind
ch._y() fara offset. Nu crapau zgomotos - produceau suprapuneri la 22 px.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ThN7ixZrowca8aTGrK1MUJ
This commit is contained in:
Claude Agent
2026-10-02 06:12:32 +00:00
parent d82e1d5ce5
commit 84f933bcfa
60 changed files with 505 additions and 444 deletions

View File

@@ -3,12 +3,12 @@
<text x="24" y="44" fill="#333" style="font-weight:bold">cifrele planului nu vin din curs)</text>
<rect x="184.5" y="306.0" width="154.0" height="128.8" fill="#1a5fb4" fill-opacity="0.08" stroke="#1a5fb4" stroke-width="1"/>
<text x="184.5" y="278.6" fill="#1a5fb4" style="font-weight:bold">M (zonă + divergență) → A (trigger) → P (plan)</text>
<line x1="24" y1="402.8" x2="771" y2="402.8" stroke="#1a5fb4" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="30" y="396.8" fill="#1a5fb4">pivot daily 590.00 — zona (M)</text>
<line x1="24" y1="431.6" x2="771" y2="431.6" stroke="#c00" stroke-width="1.5" stroke-dasharray="4 3"/>
<line x1="24.0" y1="402.8" x2="771" y2="402.8" stroke="#1a5fb4" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="30.0" y="396.8" fill="#1a5fb4">pivot daily 590.00 — zona (M)</text>
<line x1="24.0" y1="431.6" x2="771" y2="431.6" stroke="#c00" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="757" y="425.6" fill="#c00" text-anchor="end">SL 589.40 = 0.10 sub piciorul 2 (risc 0.80)</text>
<line x1="24" y1="354.8" x2="771" y2="354.8" stroke="#188a3e" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="30" y="348.8" fill="#188a3e">TP1 591.00 = 1:1</text>
<line x1="24.0" y1="354.8" x2="771" y2="354.8" stroke="#188a3e" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="30.0" y="348.8" fill="#188a3e">TP1 591.00 = 1:1</text>
<polyline points="329.0,292.3 344.0,305.2 359.0,315.6 374.0,326.6 389.0,335.0 404.0,342.2 419.0,346.9 434.0,351.7 449.0,354.0 464.0,354.1 479.0,351.2 494.0,344.7 509.0,339.9 524.0,337.5" fill="none" stroke="#b06000" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="530" y="332" fill="#b06000">SMA-20</text>
<line x1="44.0" y1="74.0" x2="44.0" y2="129.2" stroke="#1a1a1a" stroke-width="1.2"/>

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB