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,14 +3,14 @@
<rect x="348.4" y="114.5" width="83.0" height="58.5" fill="#b06000" fill-opacity="0.08" stroke="#b06000" stroke-width="1"/>
<text x="348.4" y="109.5" fill="#b06000" style="font-weight:bold">pullback</text>
<rect x="444.4" y="82.2" width="51.0" height="60.2" fill="#b06000" fill-opacity="0.08" stroke="#b06000" stroke-width="1"/>
<line x1="24" y1="136.1" x2="771" y2="136.1" stroke="#1a5fb4" stroke-width="1.5" stroke-dasharray="4 3"/>
<line x1="24.0" y1="136.1" x2="771" y2="136.1" stroke="#1a5fb4" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="757" y="130.1" fill="#1a5fb4" text-anchor="end">65.95 = 2R — ținta din exemplul lecției</text>
<line x1="24" y1="180.3" x2="771" y2="180.3" stroke="#188a3e" stroke-width="1.5" stroke-dasharray="4 3"/>
<line x1="24.0" y1="180.3" x2="771" y2="180.3" stroke="#188a3e" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="757" y="174.3" fill="#188a3e" text-anchor="end">64.65 = 1:1 — prima jumătate</text>
<line x1="24" y1="224.5" x2="771" y2="224.5" stroke="#555" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="30" y="218.5" fill="#555">intrare 63.35</text>
<line x1="24" y1="268.7" x2="771" y2="268.7" stroke="#c00" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="30" y="262.7" fill="#c00">SL inițial 62.05</text>
<line x1="24.0" y1="224.5" x2="771" y2="224.5" stroke="#555" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="30.0" y="218.5" fill="#555">intrare 63.35</text>
<line x1="24.0" y1="268.7" x2="771" y2="268.7" stroke="#c00" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="30.0" y="262.7" fill="#c00">SL inițial 62.05</text>
<line x1="133.9" y1="190.5" x2="133.9" y2="233.0" stroke="#1a1a1a" stroke-width="1.2"/>
<rect x="129.4" y="199.0" width="9" height="23.8" fill="#c00"/>
<line x1="149.9" y1="204.1" x2="149.9" y2="233.0" stroke="#1a1a1a" stroke-width="1.2"/>

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 6.7 KiB