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

@@ -2,14 +2,14 @@
<text x="24" y="48" fill="#333" style="font-weight:bold">HIG — daily (Sell Doji + Bear Reversal, RVOL 200%)</text>
<rect x="281.8" y="121.6" width="64.0" height="52.0" fill="#c00" fill-opacity="0.08" stroke="#c00" stroke-width="1"/>
<text x="281.8" y="116.6" fill="#c00" style="font-weight:bold">ce l-a scos în față din cele 16 rezultate</text>
<line x1="24" y1="56.0" x2="723" y2="56.0" stroke="#777" stroke-width="1.5" stroke-dasharray="4 3"/>
<line x1="24.0" y1="56.0" x2="723" y2="56.0" stroke="#777" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="709" y="50.0" fill="#777" text-anchor="end">rezistenta 84.50</text>
<line x1="24" y1="96.0" x2="723" y2="96.0" stroke="#c00" stroke-width="1.5" stroke-dasharray="4 3"/>
<line x1="24.0" y1="96.0" x2="723" y2="96.0" stroke="#c00" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="709" y="90.0" fill="#c00" text-anchor="end">SL 82.00</text>
<line x1="24" y1="158.4" x2="723" y2="158.4" stroke="#1a5fb4" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="30" y="152.4" fill="#1a5fb4">intrare short 78.10</text>
<line x1="24" y1="256.0" x2="723" y2="256.0" stroke="#188a3e" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="30" y="250.0" fill="#188a3e">TP 72.00</text>
<line x1="24.0" y1="158.4" x2="723" y2="158.4" stroke="#1a5fb4" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="30.0" y="152.4" fill="#1a5fb4">intrare short 78.10</text>
<line x1="24.0" y1="256.0" x2="723" y2="256.0" stroke="#188a3e" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="30.0" y="250.0" fill="#188a3e">TP 72.00</text>
<polyline points="426.3,129.0 441.3,132.5 456.3,136.3 471.3,141.0 486.3,146.7 501.3,151.8 516.3,158.1 531.3,165.4 546.3,173.7 561.3,182.8 576.3,192.7" fill="none" stroke="#b06000" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="582" y="187" fill="#b06000">SMA-20</text>
<line x1="141.3" y1="120.8" x2="141.3" y2="137.6" stroke="#1a1a1a" stroke-width="1.2"/>

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB