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

@@ -6,12 +6,12 @@
<text x="436" y="94" fill="#333" style="font-size:11px">ETF simplu (SPY): -20 %</text>
<text x="436" y="109" fill="#333" style="font-size:11px">ETF cu levier 2x: -40 %</text>
<text x="436" y="124" fill="#333" style="font-size:11px">ETF cu levier 3x (SPXL): -60 %</text>
<line x1="24" y1="152.0" x2="706" y2="152.0" stroke="#1a5fb4" stroke-width="1.5" stroke-dasharray="4 3"/>
<line x1="24.0" y1="152.0" x2="706" y2="152.0" stroke="#1a5fb4" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="692" y="146.0" fill="#1a5fb4" text-anchor="end">TP +10 % = 105.60</text>
<line x1="24" y1="205.8" x2="706" y2="205.8" stroke="#188a3e" stroke-width="1.5" stroke-dasharray="4 3"/>
<line x1="24.0" y1="205.8" x2="706" y2="205.8" stroke="#188a3e" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="692" y="199.8" fill="#188a3e" text-anchor="end">intrare 96.00</text>
<line x1="24" y1="313.3" x2="706" y2="313.3" stroke="#c00" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="30" y="307.3" fill="#c00">fund 76.80 = -20 % pe poziție</text>
<line x1="24.0" y1="313.3" x2="706" y2="313.3" stroke="#c00" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="30.0" y="307.3" fill="#c00">fund 76.80 = -20 % pe poziție</text>
<line x1="56.0" y1="187.6" x2="56.0" y2="195.4" stroke="#1a1a1a" stroke-width="1.2"/>
<rect x="51.5" y="189.5" width="9" height="3.9" fill="#c00"/>
<line x1="72.0" y1="191.5" x2="72.0" y2="201.6" stroke="#1a1a1a" stroke-width="1.2"/>

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB