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:
@@ -118,9 +118,9 @@ apar pe desen, pentru că nu aparțin acestui capitol.</p>
|
||||
<rect x="188.3" y="146.0" width="184.0" height="317.7" fill="#c00" fill-opacity="0.08" stroke="#c00" stroke-width="1"/>
|
||||
<text x="188.3" y="141.0" fill="#c00" style="font-weight:bold">1. downtrend — de asta apare în scaner</text>
|
||||
<rect x="368.3" y="334.3" width="139.0" height="176.9" fill="#1a5fb4" fill-opacity="0.08" stroke="#1a5fb4" stroke-width="1"/>
|
||||
<line x1="24" y1="506.1" x2="822" y2="506.1" stroke="#1a5fb4" stroke-width="1.5" stroke-dasharray="4 3"/>
|
||||
<text x="30" y="500.1" fill="#1a5fb4">suport monthly 355.48</text>
|
||||
<line x1="24" y1="265.9" x2="822" y2="265.9" stroke="#1a5fb4" stroke-width="1.5" stroke-dasharray="4 3"/>
|
||||
<line x1="24.0" y1="506.1" x2="822" y2="506.1" stroke="#1a5fb4" stroke-width="1.5" stroke-dasharray="4 3"/>
|
||||
<text x="30.0" y="500.1" fill="#1a5fb4">suport monthly 355.48</text>
|
||||
<line x1="24.0" y1="265.9" x2="822" y2="265.9" stroke="#1a5fb4" stroke-width="1.5" stroke-dasharray="4 3"/>
|
||||
<text x="808" y="259.9" fill="#1a5fb4" text-anchor="end">pivot monthly 383.74</text>
|
||||
<polyline points="482.8,365.9 497.8,375.2 512.8,382.1 527.8,387.0 542.8,389.8 557.8,390.5 572.8,389.2 587.8,385.5 602.8,379.6 617.8,371.3 632.8,360.3 647.8,346.1 662.8,329.2" fill="none" stroke="#b06000" stroke-width="1.5" stroke-dasharray="4 3"/>
|
||||
<text x="669" y="323" fill="#b06000">SMA-20</text>
|
||||
@@ -625,9 +625,9 @@ calculat din perioada trecută. Condiția de apropiere: <strong>până la 3 %</s
|
||||
<svg viewBox="0 0 683 610" xmlns="http://www.w3.org/2000/svg" style="width:100%;height:auto;font:12px sans-serif">
|
||||
<text x="24" y="100" fill="#333" style="font-weight:bold">Cât de aproape de suport e prețul — daily, exemplu construit</text>
|
||||
<rect x="58.4" y="294.2" width="484.0" height="37.4" fill="#1a5fb4" fill-opacity="0.08" stroke="#1a5fb4" stroke-width="1"/>
|
||||
<line x1="24" y1="331.6" x2="669" y2="331.6" stroke="#1a5fb4" stroke-width="1.5" stroke-dasharray="4 3"/>
|
||||
<text x="30" y="325.6" fill="#1a5fb4">suport monthly 48.00</text>
|
||||
<line x1="24" y1="294.2" x2="669" y2="294.2" stroke="#1a5fb4" stroke-width="1.5" stroke-dasharray="5 3"/>
|
||||
<line x1="24.0" y1="331.6" x2="669" y2="331.6" stroke="#1a5fb4" stroke-width="1.5" stroke-dasharray="4 3"/>
|
||||
<text x="30.0" y="325.6" fill="#1a5fb4">suport monthly 48.00</text>
|
||||
<line x1="24.0" y1="294.2" x2="669" y2="294.2" stroke="#1a5fb4" stroke-width="1.5" stroke-dasharray="5 3"/>
|
||||
<text x="655" y="288.2" fill="#1a5fb4" text-anchor="end">suport + 3 % = 49.44</text>
|
||||
<polyline points="352.9,222.8 367.9,231.8 382.9,239.7 397.9,247.4 412.9,254.9 427.9,261.4 442.9,267.8 457.9,273.7 472.9,278.8 487.9,283.6 502.9,288.2 517.9,291.8 532.9,294.5" fill="none" stroke="#b06000" stroke-width="1.5" stroke-dasharray="4 3"/>
|
||||
<text x="539" y="272.0" fill="#b06000">SMA-20</text>
|
||||
@@ -1205,14 +1205,14 @@ folosit aici ca primă țintă. Aparțin planului de intrare, nu selecției.</p>
|
||||
<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"/>
|
||||
|
||||
Reference in New Issue
Block a user