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:
@@ -3,12 +3,12 @@
|
||||
<text x="8" y="40" fill="#188a3e" style="font-weight:bold">DA — candelă de moment după M</text>
|
||||
<text x="396" y="40" fill="#c00" style="font-weight:bold">NU — M valid, dar fără trigger</text>
|
||||
<svg x="8" y="52" width="372" height="495" viewBox="0 0 372 495"> <rect x="274.0" y="270.5" width="24.0" height="63.5" fill="#188a3e" fill-opacity="0.08" stroke="#188a3e" stroke-width="1"/>
|
||||
<line x1="24" y1="297.5" x2="358" y2="297.5" stroke="#1a5fb4" stroke-width="1.5" stroke-dasharray="4 3"/>
|
||||
<text x="30" y="291.5" fill="#1a5fb4">bandă inferioară 623.90</text>
|
||||
<line x1="24" y1="354.5" x2="358" y2="354.5" stroke="#c00" stroke-width="1.5" stroke-dasharray="4 3"/>
|
||||
<text x="30" y="348.5" fill="#c00">SL 623.60</text>
|
||||
<line x1="24" y1="34.0" x2="358" y2="34.0" stroke="none" stroke-width="1.5" stroke-dasharray=""/>
|
||||
<line x1="24" y1="426.0" x2="358" y2="426.0" stroke="none" stroke-width="1.5" stroke-dasharray=""/>
|
||||
<line x1="24.0" y1="297.5" x2="358" y2="297.5" stroke="#1a5fb4" stroke-width="1.5" stroke-dasharray="4 3"/>
|
||||
<text x="30.0" y="291.5" fill="#1a5fb4">bandă inferioară 623.90</text>
|
||||
<line x1="24.0" y1="354.5" x2="358" y2="354.5" stroke="#c00" stroke-width="1.5" stroke-dasharray="4 3"/>
|
||||
<text x="30.0" y="348.5" fill="#c00">SL 623.60</text>
|
||||
<line x1="24.0" y1="34.0" x2="358" y2="34.0" stroke="none" stroke-width="1.5" stroke-dasharray=""/>
|
||||
<line x1="24.0" y1="426.0" x2="358" y2="426.0" stroke="none" stroke-width="1.5" stroke-dasharray=""/>
|
||||
<line x1="44.0" y1="58.1" x2="44.0" y2="117.0" stroke="#1a1a1a" stroke-width="1.2"/>
|
||||
<rect x="37.0" y="69.5" width="14" height="28.5" fill="#c00"/>
|
||||
<line x1="66.0" y1="86.6" x2="66.0" y2="145.5" stroke="#1a1a1a" stroke-width="1.2"/>
|
||||
@@ -48,12 +48,12 @@
|
||||
</svg>
|
||||
<svg x="396" y="52" width="418" height="495" viewBox="0 0 418 495"> <rect x="274.0" y="287.6" width="68.0" height="122.4" fill="#c00" fill-opacity="0.08" stroke="#c00" stroke-width="1"/>
|
||||
<text x="274.0" y="282.6" fill="#c00" style="font-weight:bold">3 candele fără trigger</text>
|
||||
<line x1="24" y1="297.5" x2="404" y2="297.5" stroke="#1a5fb4" stroke-width="1.5" stroke-dasharray="4 3"/>
|
||||
<text x="30" y="291.5" fill="#1a5fb4">bandă inferioară 623.90</text>
|
||||
<line x1="24" y1="354.5" x2="404" y2="354.5" stroke="#c00" stroke-width="1.5" stroke-dasharray="4 3"/>
|
||||
<text x="30" y="348.5" fill="#c00">stopul ar fi fost 623.60</text>
|
||||
<line x1="24" y1="34.0" x2="404" y2="34.0" stroke="none" stroke-width="1.5" stroke-dasharray=""/>
|
||||
<line x1="24" y1="426.0" x2="404" y2="426.0" stroke="none" stroke-width="1.5" stroke-dasharray=""/>
|
||||
<line x1="24.0" y1="297.5" x2="404" y2="297.5" stroke="#1a5fb4" stroke-width="1.5" stroke-dasharray="4 3"/>
|
||||
<text x="30.0" y="291.5" fill="#1a5fb4">bandă inferioară 623.90</text>
|
||||
<line x1="24.0" y1="354.5" x2="404" y2="354.5" stroke="#c00" stroke-width="1.5" stroke-dasharray="4 3"/>
|
||||
<text x="30.0" y="348.5" fill="#c00">stopul ar fi fost 623.60</text>
|
||||
<line x1="24.0" y1="34.0" x2="404" y2="34.0" stroke="none" stroke-width="1.5" stroke-dasharray=""/>
|
||||
<line x1="24.0" y1="426.0" x2="404" y2="426.0" stroke="none" stroke-width="1.5" stroke-dasharray=""/>
|
||||
<line x1="44.0" y1="58.1" x2="44.0" y2="117.0" stroke="#1a1a1a" stroke-width="1.2"/>
|
||||
<rect x="37.0" y="69.5" width="14" height="28.5" fill="#c00"/>
|
||||
<line x1="66.0" y1="86.6" x2="66.0" y2="145.5" stroke="#1a1a1a" stroke-width="1.2"/>
|
||||
|
||||
|
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 8.4 KiB |
Reference in New Issue
Block a user