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:
@@ -2,14 +2,14 @@
|
||||
<text x="24" y="48" fill="#333" style="font-weight:bold">SPY — 15 min: de unde iese stopul (fereastra de 4 candele)</text>
|
||||
<rect x="320.0" y="352.1" width="118.0" height="187.0" fill="#c00" fill-opacity="0.08" stroke="#c00" stroke-width="1"/>
|
||||
<text x="320.0" y="339.1" fill="#c00" style="font-weight:bold">4 candele: trigger-ul și cele 3 dinaintea lui</text>
|
||||
<line x1="24" y1="441.1" x2="742" y2="441.1" stroke="#1a5fb4" stroke-width="1.5" stroke-dasharray="4 3"/>
|
||||
<text x="30" y="435.1" fill="#1a5fb4">banda inferioară 623.90</text>
|
||||
<line x1="24" y1="426.1" x2="742" y2="426.1" stroke="#188a3e" stroke-width="1.5" stroke-dasharray="2 3"/>
|
||||
<line x1="24.0" y1="441.1" x2="742" y2="441.1" stroke="#1a5fb4" stroke-width="1.5" stroke-dasharray="4 3"/>
|
||||
<text x="30.0" y="435.1" fill="#1a5fb4">banda inferioară 623.90</text>
|
||||
<line x1="24.0" y1="426.1" x2="742" y2="426.1" stroke="#188a3e" stroke-width="1.5" stroke-dasharray="2 3"/>
|
||||
<text x="728" y="420.1" fill="#188a3e" text-anchor="end">intrare 623.95 = close-ul trigger-ului</text>
|
||||
<line x1="24" y1="531.1" x2="742" y2="531.1" stroke="#c00" stroke-width="1.5" stroke-dasharray="4 3"/>
|
||||
<text x="30" y="525.1" fill="#c00">SL 623.60</text>
|
||||
<line x1="24" y1="56.0" x2="742" y2="56.0" stroke="none" stroke-width="1.5" stroke-dasharray=""/>
|
||||
<line x1="24" y1="562.2" x2="742" y2="562.2" stroke="none" stroke-width="1.5" stroke-dasharray=""/>
|
||||
<line x1="24.0" y1="531.1" x2="742" y2="531.1" stroke="#c00" stroke-width="1.5" stroke-dasharray="4 3"/>
|
||||
<text x="30.0" y="525.1" fill="#c00">SL 623.60</text>
|
||||
<line x1="24.0" y1="56.0" x2="742" y2="56.0" stroke="none" stroke-width="1.5" stroke-dasharray=""/>
|
||||
<line x1="24.0" y1="562.2" x2="742" y2="562.2" stroke="none" stroke-width="1.5" stroke-dasharray=""/>
|
||||
<line x1="64.0" y1="87.1" x2="64.0" y2="171.1" stroke="#1a1a1a" stroke-width="1.2"/>
|
||||
<rect x="55.0" y="105.1" width="18" height="36.0" fill="#c00"/>
|
||||
<line x1="94.0" y1="123.1" x2="94.0" y2="216.1" stroke="#1a1a1a" stroke-width="1.2"/>
|
||||
|
||||
|
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 5.4 KiB |
Reference in New Issue
Block a user