MODUL 5: ultimele patru suprapuneri de eticheta, si verificatorul scos in gen/eticheta_libera.py

Assert-ul care verifica daca o eticheta sta lipita de o linie a devenit modul
propriu, importat din ambele generatoare de patternuri. Vede acum si
<polyline> (mediile mobile - punctul lui orb) si, optional, corpurile
candelelor. Avea si un bug tacut: regexul cerea culoare pe 6 cifre, deci sarea
peste tot ce e desenat cu #c00, adica exact sagetile si nivelurile rosii. Are
demo() cu self-check.

La bull_flag eticheta SMA-20 nu e mutabila din generator - pozitia ei o
calculeaza svg_candles - asa ca media e numita in caption, ca la cup with
handle.

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 02:32:27 +00:00
parent aea592091e
commit 0dd358802d
7 changed files with 171 additions and 80 deletions

103
gen/eticheta_libera.py Normal file
View File

@@ -0,0 +1,103 @@
"""O etichetă de diagramă nu are voie să stea peste desen.
`audit_diagrams.py` prinde doar text peste text. Astea sunt celelalte trei
feluri de suprapunere, găsite vizual pe 02.10.2026 și ușor de regresat la
următoarea mutare de etichetă:
- `<line>` — niveluri, laturi de wedge, bracket-uri, cozi de săgeată;
- `<polyline>` — mediile mobile (punctul orb al primei versiuni);
- `<rect>` — corpurile candelelor și barele de volum.
Verificarea e opt-in, pe etichete numite: pe un grafic de candele aproape
orice text atinge ceva, iar o regulă globală ar bloca tot repo-ul.
eticheta_libera(svg, "wedge_desc", {"baza = 4.00"}, rects=True)
"""
import re
CW = 6.2 # lățimea unui caracter bold de 11-12px
WICK = "#1a1a1a" # fitilele: desenul le traversează oricum, prin construcție
def _bbox(m, min_px):
"""Caseta etichetei, lărgită cu marginea cerută."""
tx, ty, attrs, s = float(m.group(1)), float(m.group(2)), m.group(3), m.group(4)
w = CW * len(s)
x0 = tx if 'anchor="start"' in attrs else tx - w if 'anchor="end"' in attrs else tx - w / 2
return s, (x0 - min_px, x0 + w + min_px, ty - 9 - min_px, ty + 3 + min_px)
def _segmente(svg):
"""Toate segmentele desenate, ca perechi de capete: linii + polilinii."""
for m in re.finditer(r'<line x1="(-?[\d.]+)" y1="(-?[\d.]+)" x2="(-?[\d.]+)"'
r' y2="(-?[\d.]+)"[^/]*?stroke="(#[0-9a-f]{3,6})"', svg):
if m.group(5) != WICK:
yield ("linia", *map(float, m.groups()[:4]))
for m in re.finditer(r'<polyline points="([^"]+)"', svg):
pts = [tuple(map(float, p.split(","))) for p in m.group(1).split()]
for (ax, ay), (bx, by) in zip(pts, pts[1:]):
yield ("curba", ax, ay, bx, by)
def _atinge(box, ax, ay, bx, by):
x0, x1, top, bot = box
if max(ax, bx) < x0 or min(ax, bx) > x1:
return False
if ax == bx:
ys = (ay, by)
else: # y-ul segmentului pe porțiunea comună
ys = tuple(ay + (by - ay) * (min(max(x, min(ax, bx)), max(ax, bx)) - ax) / (bx - ax)
for x in (x0, x1))
return min(ys) <= bot and max(ys) >= top
def eticheta_libera(svg, name, etichete, min_px=5.0, rects=False, segmente=True):
"""Ridică AssertionError dacă vreuna din `etichete` stă peste desen.
`segmente=False` pentru etichetele de nivel: alea stau lipite de linia lor
prin construcție (y − 6), deci doar candelele sunt o suprapunere reală.
"""
segs = list(_segmente(svg)) if segmente else []
boxes = []
if rects:
for m in re.finditer(r'<rect x="(-?[\d.]+)" y="(-?[\d.]+)" width="([\d.]+)"'
r' height="([\d.]+)"([^/]*)/>', svg):
x, y, w, h = map(float, m.groups()[:4])
if "fill-opacity" in m.group(5): # zonele colorate stau în fundal
continue
boxes.append((x, y, x + w, y + h))
for m in re.finditer(r'<text x="(-?[\d.]+)" y="(-?[\d.]+)"([^>]*)>([^<]*)</text>', svg):
if m.group(4) not in etichete:
continue
s, box = _bbox(m, min_px)
for kind, ax, ay, bx, by in segs:
if _atinge(box, ax, ay, bx, by):
raise AssertionError(f"{name}: eticheta '{s}' sta pe {kind} "
f"({ax:.0f},{ay:.0f})-({bx:.0f},{by:.0f})")
for rx0, ry0, rx1, ry1 in boxes:
if rx0 < box[1] and rx1 > box[0] and ry0 < box[3] and ry1 > box[2]:
raise AssertionError(f"{name}: eticheta '{s}' sta pe dreptunghiul "
f"({rx0:.0f},{ry0:.0f})-({rx1:.0f},{ry1:.0f})")
def demo():
svg = ('<svg><line x1="0" y1="50" x2="100" y2="50" stroke="#c00"/>'
'<polyline points="0,200 100,120"/>'
'<rect x="0" y="300" width="20" height="40" fill="#188a3e"/>'
'<text x="10" y="55">pe linie</text>'
'<text x="90" y="128">pe curba</text>'
'<text x="10" y="310">pe candela</text>'
'<text x="10" y="400">libera</text></svg>')
for et in ("pe linie", "pe curba", "pe candela"):
try:
eticheta_libera(svg, "demo", {et}, rects=True)
except AssertionError:
pass
else:
raise AssertionError(f"'{et}' trebuia prinsa")
eticheta_libera(svg, "demo", {"libera"}, rects=True)
print("eticheta_libera: ok")
if __name__ == "__main__":
demo()

View File

@@ -10,7 +10,9 @@ import re
import sys
sys.path.insert(0, "/workspace/atm-curs-dl")
sys.path.insert(0, "/workspace/atm-curs-dl/gen")
from svg_candles import Chart, Level, Mark, MA, Zone, from_closes # noqa: E402
from eticheta_libera import eticheta_libera # noqa: E402
MD = "/workspace/atm-curs-dl/summaries/06_MODUL_5/02_patternuri_complexe_partea_a_treia.md"
@@ -25,7 +27,7 @@ def hi(cds, a, b):
return round(max(c.h for c in cds[a:b + 1]), 2)
def check(ch, name, distante=()):
def check(ch, name, distante=(), clear=(), clear_rect=()):
"""Nicio etichetă nu poate numi un preț care nu e un nivel desenat."""
svg = ch.render()
assert "\n\n" not in svg, f"{name}: linie goală în svg"
@@ -42,6 +44,10 @@ def check(ch, name, distante=()):
for lv in ch.levels:
assert ch._y(lv.price) > sus - 0.06 * (jos - sus), \
f"{name}: nivelul {lv.price} e lipit de marginea de sus"
if clear:
eticheta_libera(svg, name, set(clear))
if clear_rect: # etichete de nivel: doar peste candele e o problemă
eticheta_libera(svg, name, set(clear_rect), rects=True, segmente=False)
SVG[name] = svg
@@ -410,13 +416,14 @@ check(Chart(
Level(FUND_C, f"fundul ceștii {FUND_C:.2f}", "#b06000", label_at="left")],
marks=[Mark(5, "top 1", "#c00"), Mark(23, "top 2", "#c00", dy=-18),
Mark(13, "fundul ceștii", "#b06000", "below"),
Mark(29, "breakout", "#188a3e", dy=-14)],
Mark(29, "breakout", "#188a3e", dy=-68)],
zones=[Zone(24, 27, "mânerul", "#b06000")],
mas=[MA(20, "#777", dash="4 3")],
scale=4.2, gap=15, body_w=9, left=46, width=620, vol_h=70, top=100,
scale=4.2, gap=15, body_w=9, left=46, width=700, vol_h=70, top=100,
vol_label="volum", title="Cup with handle — exemplu construit (fără ticker), monthly",
caption="Mânerul: 4 bare, −30% din adâncime. Două top-uri la 120.00 = double top. Gri punctat: SMA-20."),
"cu", [AD_C, RIM_C - MANER])
"cu", [AD_C, RIM_C - MANER],
clear=("breakout",), clear_rect=(f"minimul mânerului {MANER:.2f}", "breakout"))
# ----------------------------------------- cup with handle: mâner prea adânc
closes_cn = ([99.0, 105.0, 111.0, 116.0, 119.5] # 0-4 uptrend + rim 1

View File

@@ -15,7 +15,9 @@ import re
import sys
sys.path.insert(0, "/workspace/atm-curs-dl")
sys.path.insert(0, "/workspace/atm-curs-dl/gen")
from svg_candles import Chart, Level, Mark, MA, Zone, Arrow, from_closes # noqa: E402
from eticheta_libera import eticheta_libera # noqa: E402
MD = ("/workspace/atm-curs-dl/summaries/06_MODUL_5/"
"03_patternuri_complexe_partea_a_patra.md")
@@ -58,31 +60,7 @@ def txt(i, p, s, color="#8b5cf6", anchor="middle", dx=0.0, dy=0.0, bold=True):
return dict(i=i, p=p, s=s, color=color, anchor=anchor, dx=dx, dy=dy, bold=bold)
def _desprinse(svg, name, etichete, min_px=5.0):
"""Etichetele date nu au voie sa stea pe nicio linie (regresia 11/12)."""
# fitilele candelelor (#1a1a1a) nu se numara: desenul le traverseaza oricum
lines = [tuple(map(float, m.groups()[:4])) for m in re.finditer(
r'<line x1="(-?[\d.]+)" y1="(-?[\d.]+)" x2="(-?[\d.]+)" y2="(-?[\d.]+)"'
r'[^/]*?stroke="(#[0-9a-f]{6})"', svg) if m.group(5) != "#1a1a1a"]
for m in re.finditer(r'<text x="(-?[\d.]+)" y="(-?[\d.]+)"([^>]*)>([^<]*)</text>', svg):
tx, ty, attrs, s = float(m.group(1)), float(m.group(2)), m.group(3), m.group(4)
if s not in etichete:
continue
w = 6.2 * len(s)
x0 = tx if 'anchor="start"' in attrs else tx - w if 'anchor="end"' in attrs else tx - w / 2
x1, top, bot = x0 + w, ty - 9 - min_px, ty + 3 + min_px
for lx1, ly1, lx2, ly2 in lines:
if max(lx1, lx2) < x0 or min(lx1, lx2) > x1:
continue
ys = [ly1 + (ly2 - ly1) * (max(min(x, max(lx1, lx2)), min(lx1, lx2)) - lx1)
/ ((lx2 - lx1) or 1) for x in (x0, x1)] if lx1 != lx2 else [ly1, ly2]
if min(ys) <= bot and max(ys) >= top:
raise AssertionError(
f"{name}: eticheta '{s}' sta pe linia "
f"({lx1:.0f},{ly1:.0f})-({lx2:.0f},{ly2:.0f})")
def deco(ch, name, segs=(), texts=(), distante=(), clear=()):
def deco(ch, name, segs=(), texts=(), distante=(), clear=(), rects=False):
"""Randează graficul, injectează liniile/textele, verifică, salvează."""
saved = ch.top, ch.left, ch.width
try:
@@ -114,7 +92,7 @@ def deco(ch, name, segs=(), texts=(), distante=(), clear=()):
assert m.group(0) in desenate, \
f"{name}: eticheta numește {m.group(0)}, care nu e un nivel desenat"
if clear:
_desprinse(svg, name, set(clear))
eticheta_libera(svg, name, set(clear), rects=rects)
sus = min(ch._y(c.h) for c in ch.candles)
jos = max(ch._y(c.l) for c in ch.candles)
for lv in ch.levels:
@@ -126,6 +104,9 @@ def deco(ch, name, segs=(), texts=(), distante=(), clear=()):
CAP = ("Exemplu construit (fără ticker), la scară: lecția nu rostește nicio "
"cifră. Regula de măsurare e a cursului.")
# la bull flag eticheta SMA-20 ar cadea exact pe linia TP1: o mut in caption
CAP_SMA = ("Exemplu construit (fără ticker), la scară. Portocaliu punctat: SMA-20."
" Regula de măsurare e a cursului.")
# ============================================================ 1. wedge descendent
U0, L0 = 52.00, 48.00 # laturile la deschiderea triunghiului
@@ -190,12 +171,12 @@ deco(Chart(
Mark(13, "picior 1", "#c00", "below", dy=16),
Mark(19, "picior 2 (mai jos)", "#c00", "below"),
Mark(25, "hammer in capul triunghiului", "#b06000", "below", dy=8),
Mark(27, "breakout cu volum", "#188a3e")],
Mark(27, "breakout cu volum", "#188a3e", "above", dy=-24)],
zones=[Zone(10, 26, "wedge descendent = consolidare contra-trend (17 bare)",
"#8b5cf6")],
arrows=[Arrow(29, "stopul sta sub low-ul candelei de breakout:\n"
"daca pretul se intoarce in triunghi, ideea a murit",
price=SL_D, where="below", color="#c00", dy=30, dx=44)],
price=SL_D, where="below", color="#c00", dy=30, dx=56)],
mas=[MA(20, "#b06000", dash="4 3", text="SMA-20")],
scale=24, gap=16, body_w=9, left=46, width=730, top=62, vol_h=70,
title="Wedge descendent — bull",
@@ -206,11 +187,13 @@ deco(Chart(
seg(13, lo_d(13), 27, lo_d(27)),
seg(10.0, L0, 10.0, U0, "#8b5cf6", "", 2.2),
seg(35.6, E_D, 35.6, TP_D, "#1a5fb4", "", 2.2)],
texts=[txt(10.1, (U0 + L0) / 2, f"baza = {BAZA_D:.2f}", anchor="start", dx=4),
texts=[txt(10.1, (U0 + L0) / 2, f"baza = {BAZA_D:.2f}", anchor="start",
dx=4, dy=16),
txt(35.8, (E_D + TP_D) / 2, f"aceeasi {BAZA_D:.2f}", "#1a5fb4",
anchor="start", dx=4)],
distante=(BAZA_D,),
clear=("picior 1", "breakout cu volum", "hammer in capul triunghiului"))
clear=("picior 1", "breakout cu volum", "hammer in capul triunghiului",
f"baza = {BAZA_D:.2f}", f"aceeasi {BAZA_D:.2f}"))
# ================================================ 2. wedge vs flag (forma)
cl = (ramp(29.6, 34.00, 6) # 0-5 urcare
@@ -449,10 +432,10 @@ deco(Chart(
Mark(20, "C = aici era by the dip", "#b06000", "below"),
Mark(23, "breakout cu volum", "#188a3e", dy=-36)],
zones=[Zone(11, 22, "flamura (12 bare)", "#999")],
mas=[MA(20, "#b06000", dash="4 3", text="SMA-20")],
mas=[MA(20, "#b06000", dash="4 3")],
scale=13, gap=16, body_w=9, left=46, width=730, top=62, vol_h=70,
title="Bull flag = ABCD long",
caption=CAP),
caption=CAP_SMA),
"bull_flag",
segs=[seg(11, 40.00, 24, up_f(24), "#1a5fb4"),
seg(11, 37.00, 14, lo_f(14), "#1a5fb4", "4 3", 1.2),

View File

@@ -910,23 +910,23 @@ diferența față de rounding bottom, pentru că formele sunt aproape identice:<
vezi după o urcare, e o ceașcă. Aceeași curbă, două interpretări diferite,
pentru că trendul dinainte e diferit.</p>
<!--SVG:cu-->
<p><svg viewBox="0 0 620 602" xmlns="http://www.w3.org/2000/svg" style="width:100%;height:auto;font:12px sans-serif">
<p><svg viewBox="0 0 700 602" xmlns="http://www.w3.org/2000/svg" style="width:100%;height:auto;font:12px sans-serif">
<text x="24" y="114" fill="#333" style="font-weight:bold">Cup with handle — exemplu construit (fără ticker), monthly</text>
<rect x="396.5" y="290.0" width="64.0" height="64.7" fill="#b06000" fill-opacity="0.08" stroke="#b06000" stroke-width="1"/>
<text x="396.5" y="285.0" fill="#b06000" style="font-weight:bold">mânerul</text>
<line x1="24.0" y1="128.3" x2="606" y2="128.3" stroke="#1a5fb4" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="592" y="122.3" fill="#1a5fb4" text-anchor="end">target 160.00 = 120.00 + 40.00</text>
<line x1="24.0" y1="292.1" x2="606" y2="292.1" stroke="#188a3e" stroke-width="1.5" stroke-dasharray="4 3"/>
<line x1="24.0" y1="128.3" x2="686" y2="128.3" stroke="#1a5fb4" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="672" y="122.3" fill="#1a5fb4" text-anchor="end">target 160.00 = 120.00 + 40.00</text>
<line x1="24.0" y1="292.1" x2="686" y2="292.1" stroke="#188a3e" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="30.0" y="286.1" fill="#188a3e">intrare 121.00</text>
<line x1="24.0" y1="296.3" x2="606" y2="296.3" stroke="#c00" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="592" y="290.3" fill="#c00" text-anchor="end">rezistență 120.00</text>
<line x1="24.0" y1="346.7" x2="606" y2="346.7" stroke="#b06000" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="592" y="340.7" fill="#b06000" text-anchor="end">minimul mânerului 108.00</text>
<line x1="24.0" y1="350.9" x2="606" y2="350.9" stroke="#c00" stroke-width="1.5" stroke-dasharray="4 3"/>
<line x1="24.0" y1="296.3" x2="686" y2="296.3" stroke="#c00" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="672" y="290.3" fill="#c00" text-anchor="end">rezistență 120.00</text>
<line x1="24.0" y1="346.7" x2="686" y2="346.7" stroke="#b06000" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="672" y="340.7" fill="#b06000" text-anchor="end">minimul mânerului 108.00</text>
<line x1="24.0" y1="350.9" x2="686" y2="350.9" stroke="#c00" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="30.0" y="344.9" fill="#c00">SL 107.00</text>
<line x1="24.0" y1="380.3" x2="606" y2="380.3" stroke="#8b5cf6" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="592" y="374.3" fill="#8b5cf6" text-anchor="end">limita de 50% 100.00</text>
<line x1="24.0" y1="464.3" x2="606" y2="464.3" stroke="#b06000" stroke-width="1.5" stroke-dasharray="4 3"/>
<line x1="24.0" y1="380.3" x2="686" y2="380.3" stroke="#8b5cf6" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="672" y="374.3" fill="#8b5cf6" text-anchor="end">limita de 50% 100.00</text>
<line x1="24.0" y1="464.3" x2="686" y2="464.3" stroke="#b06000" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="30.0" y="458.3" fill="#b06000">fundul ceștii 80.00</text>
<polyline points="331.0,388.3 346.0,385.8 361.0,383.2 376.0,380.9 391.0,379.1 406.0,379.1 421.0,380.7 436.0,382.3 451.0,381.9 466.0,378.7 481.0,373.5 496.0,365.3 511.0,354.1 526.0,341.0 541.0,326.7 556.0,310.8 571.0,294.9" fill="none" stroke="#777" stroke-width="1.5" stroke-dasharray="4 3"/>
<line x1="46.0" y1="388.7" x2="46.0" y2="405.5" stroke="#1a1a1a" stroke-width="1.2"/>
@@ -1001,7 +1001,7 @@ pentru că trendul dinainte e diferit.</p>
<rect x="551.5" y="140.9" width="9" height="29.4" fill="#188a3e"/>
<line x1="571.0" y1="122.0" x2="571.0" y2="147.2" stroke="#1a1a1a" stroke-width="1.2"/>
<rect x="566.5" y="126.2" width="9" height="14.7" fill="#188a3e"/>
<line x1="24" y1="560.3" x2="606" y2="560.3" stroke="#888"/>
<line x1="24" y1="560.3" x2="686" y2="560.3" stroke="#888"/>
<rect x="41.5" y="530.7" width="9" height="29.6" fill="#188a3e" opacity="0.55"/>
<rect x="56.5" y="528.0" width="9" height="32.3" fill="#188a3e" opacity="0.55"/>
<rect x="71.5" y="525.3" width="9" height="35.0" fill="#188a3e" opacity="0.55"/>
@@ -1042,7 +1042,7 @@ pentru că trendul dinainte e diferit.</p>
<text x="121.0" y="286.3" fill="#c00" text-anchor="middle" style="font-weight:bold">top 1</text>
<text x="391.0" y="268.3" fill="#c00" text-anchor="middle" style="font-weight:bold">top 2</text>
<text x="241.0" y="478.3" fill="#b06000" text-anchor="middle" style="font-weight:bold">fundul ceștii</text>
<text x="481.0" y="263.9" fill="#188a3e" text-anchor="middle" style="font-weight:bold">breakout</text>
<text x="481.0" y="209.9" fill="#188a3e" text-anchor="middle" style="font-weight:bold">breakout</text>
<text x="24" y="590" fill="#555">Mânerul: 4 bare, −30% din adâncime. Două top-uri la 120.00 = double top. Gri punctat: SMA-20.</text>
</svg></p>
<p>Părțile formei, cu numele din curs:

View File

@@ -920,23 +920,23 @@ vezi după o urcare, e o ceașcă. Aceeași curbă, două interpretări diferite
pentru că trendul dinainte e diferit.
<!--SVG:cu-->
<svg viewBox="0 0 620 602" xmlns="http://www.w3.org/2000/svg" style="width:100%;height:auto;font:12px sans-serif">
<svg viewBox="0 0 700 602" xmlns="http://www.w3.org/2000/svg" style="width:100%;height:auto;font:12px sans-serif">
<text x="24" y="114" fill="#333" style="font-weight:bold">Cup with handle — exemplu construit (fără ticker), monthly</text>
<rect x="396.5" y="290.0" width="64.0" height="64.7" fill="#b06000" fill-opacity="0.08" stroke="#b06000" stroke-width="1"/>
<text x="396.5" y="285.0" fill="#b06000" style="font-weight:bold">mânerul</text>
<line x1="24.0" y1="128.3" x2="606" y2="128.3" stroke="#1a5fb4" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="592" y="122.3" fill="#1a5fb4" text-anchor="end">target 160.00 = 120.00 + 40.00</text>
<line x1="24.0" y1="292.1" x2="606" y2="292.1" stroke="#188a3e" stroke-width="1.5" stroke-dasharray="4 3"/>
<line x1="24.0" y1="128.3" x2="686" y2="128.3" stroke="#1a5fb4" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="672" y="122.3" fill="#1a5fb4" text-anchor="end">target 160.00 = 120.00 + 40.00</text>
<line x1="24.0" y1="292.1" x2="686" y2="292.1" stroke="#188a3e" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="30.0" y="286.1" fill="#188a3e">intrare 121.00</text>
<line x1="24.0" y1="296.3" x2="606" y2="296.3" stroke="#c00" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="592" y="290.3" fill="#c00" text-anchor="end">rezistență 120.00</text>
<line x1="24.0" y1="346.7" x2="606" y2="346.7" stroke="#b06000" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="592" y="340.7" fill="#b06000" text-anchor="end">minimul mânerului 108.00</text>
<line x1="24.0" y1="350.9" x2="606" y2="350.9" stroke="#c00" stroke-width="1.5" stroke-dasharray="4 3"/>
<line x1="24.0" y1="296.3" x2="686" y2="296.3" stroke="#c00" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="672" y="290.3" fill="#c00" text-anchor="end">rezistență 120.00</text>
<line x1="24.0" y1="346.7" x2="686" y2="346.7" stroke="#b06000" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="672" y="340.7" fill="#b06000" text-anchor="end">minimul mânerului 108.00</text>
<line x1="24.0" y1="350.9" x2="686" y2="350.9" stroke="#c00" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="30.0" y="344.9" fill="#c00">SL 107.00</text>
<line x1="24.0" y1="380.3" x2="606" y2="380.3" stroke="#8b5cf6" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="592" y="374.3" fill="#8b5cf6" text-anchor="end">limita de 50% 100.00</text>
<line x1="24.0" y1="464.3" x2="606" y2="464.3" stroke="#b06000" stroke-width="1.5" stroke-dasharray="4 3"/>
<line x1="24.0" y1="380.3" x2="686" y2="380.3" stroke="#8b5cf6" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="672" y="374.3" fill="#8b5cf6" text-anchor="end">limita de 50% 100.00</text>
<line x1="24.0" y1="464.3" x2="686" y2="464.3" stroke="#b06000" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="30.0" y="458.3" fill="#b06000">fundul ceștii 80.00</text>
<polyline points="331.0,388.3 346.0,385.8 361.0,383.2 376.0,380.9 391.0,379.1 406.0,379.1 421.0,380.7 436.0,382.3 451.0,381.9 466.0,378.7 481.0,373.5 496.0,365.3 511.0,354.1 526.0,341.0 541.0,326.7 556.0,310.8 571.0,294.9" fill="none" stroke="#777" stroke-width="1.5" stroke-dasharray="4 3"/>
<line x1="46.0" y1="388.7" x2="46.0" y2="405.5" stroke="#1a1a1a" stroke-width="1.2"/>
@@ -1011,7 +1011,7 @@ pentru că trendul dinainte e diferit.
<rect x="551.5" y="140.9" width="9" height="29.4" fill="#188a3e"/>
<line x1="571.0" y1="122.0" x2="571.0" y2="147.2" stroke="#1a1a1a" stroke-width="1.2"/>
<rect x="566.5" y="126.2" width="9" height="14.7" fill="#188a3e"/>
<line x1="24" y1="560.3" x2="606" y2="560.3" stroke="#888"/>
<line x1="24" y1="560.3" x2="686" y2="560.3" stroke="#888"/>
<rect x="41.5" y="530.7" width="9" height="29.6" fill="#188a3e" opacity="0.55"/>
<rect x="56.5" y="528.0" width="9" height="32.3" fill="#188a3e" opacity="0.55"/>
<rect x="71.5" y="525.3" width="9" height="35.0" fill="#188a3e" opacity="0.55"/>
@@ -1052,7 +1052,7 @@ pentru că trendul dinainte e diferit.
<text x="121.0" y="286.3" fill="#c00" text-anchor="middle" style="font-weight:bold">top 1</text>
<text x="391.0" y="268.3" fill="#c00" text-anchor="middle" style="font-weight:bold">top 2</text>
<text x="241.0" y="478.3" fill="#b06000" text-anchor="middle" style="font-weight:bold">fundul ceștii</text>
<text x="481.0" y="263.9" fill="#188a3e" text-anchor="middle" style="font-weight:bold">breakout</text>
<text x="481.0" y="209.9" fill="#188a3e" text-anchor="middle" style="font-weight:bold">breakout</text>
<text x="24" y="590" fill="#555">Mânerul: 4 bare, −30% din adâncime. Două top-uri la 120.00 = double top. Gri punctat: SMA-20.</text>
</svg>

View File

@@ -241,18 +241,18 @@ cursului (buy doji, buy momentum, buy hammer, bull engulfing) și dacă zona e
<text x="254.0" y="235.2" fill="#c00" text-anchor="middle" style="font-weight:bold">picior 1</text>
<text x="350.0" y="240.8" fill="#c00" text-anchor="middle" style="font-weight:bold">picior 2 (mai jos)</text>
<text x="446.0" y="270.4" fill="#b06000" text-anchor="middle" style="font-weight:bold">hammer in capul triunghiului</text>
<text x="478.0" y="173.6" fill="#188a3e" text-anchor="middle" style="font-weight:bold">breakout cu volum</text>
<line x1="554.0" y1="280.4" x2="514.9" y2="229.9" stroke="#c00" stroke-width="1.8"/>
<polygon points="510.0,223.6 518.1,227.5 511.7,232.4" fill="#c00"/>
<text x="554.0" y="294.4" fill="#c00" text-anchor="middle" style="font-weight:bold">stopul sta sub low-ul candelei de breakout:</text>
<text x="554.0" y="308.4" fill="#c00" text-anchor="middle" style="font-weight:bold">daca pretul se intoarce in triunghi, ideea a murit</text>
<text x="478.0" y="149.6" fill="#188a3e" text-anchor="middle" style="font-weight:bold">breakout cu volum</text>
<line x1="566.0" y1="280.4" x2="515.6" y2="229.3" stroke="#c00" stroke-width="1.8"/>
<polygon points="510.0,223.6 518.5,226.5 512.8,232.1" fill="#c00"/>
<text x="566.0" y="294.4" fill="#c00" text-anchor="middle" style="font-weight:bold">stopul sta sub low-ul candelei de breakout:</text>
<text x="566.0" y="308.4" fill="#c00" text-anchor="middle" style="font-weight:bold">daca pretul se intoarce in triunghi, ideea a murit</text>
<text x="24" y="448" fill="#555">Exemplu construit (fără ticker), la scară: lecția nu rostește nicio cifră. Regula de măsurare e a cursului.</text>
<line x1="206.0" y1="92.4" x2="494.0" y2="222.0" stroke="#8b5cf6" stroke-width="1.6"/>
<line x1="206.0" y1="188.4" x2="254.0" y2="199.2" stroke="#8b5cf6" stroke-width="1.2" stroke-dasharray="4 3"/>
<line x1="254.0" y1="199.2" x2="478.0" y2="249.6" stroke="#8b5cf6" stroke-width="1.6"/>
<line x1="206.0" y1="188.4" x2="206.0" y2="92.4" stroke="#8b5cf6" stroke-width="2.2"/>
<line x1="615.6" y1="186.0" x2="615.6" y2="90.0" stroke="#1a5fb4" stroke-width="2.2"/>
<text x="211.6" y="140.4" fill="#8b5cf6" text-anchor="start" style="font-size:11px;font-weight:bold">baza = 4.00</text>
<text x="211.6" y="156.4" fill="#8b5cf6" text-anchor="start" style="font-size:11px;font-weight:bold">baza = 4.00</text>
<text x="622.8" y="138.0" fill="#1a5fb4" text-anchor="start" style="font-size:11px;font-weight:bold">aceeasi 4.00</text>
</svg></p>
<p><strong>Măsurarea, cuvânt cu cuvânt din curs:</strong> „dacă măsori distanța de aici
@@ -851,7 +851,6 @@ urmat de o <em>flamură</em>: un canal îngust, cu laturi paralele, înclinat u
<line x1="24.0" y1="88.9" x2="716" y2="88.9" stroke="#1a5fb4" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="702" y="82.9" fill="#1a5fb4" text-anchor="end">TP2 47.80 = batul steagului = 5.6R</text>
<polyline points="350.0,247.8 366.0,245.0 382.0,241.6 398.0,238.0 414.0,233.2 430.0,228.7 446.0,224.5 462.0,220.3 478.0,217.3 494.0,214.3 510.0,211.3 526.0,209.6 542.0,206.9 558.0,202.5 574.0,196.5 590.0,189.0" fill="none" stroke="#b06000" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="596" y="183" fill="#b06000">SMA-20</text>
<line x1="46.0" y1="311.0" x2="46.0" y2="316.7" stroke="#1a1a1a" stroke-width="1.2"/>
<rect x="41.5" y="312.5" width="9" height="2.6" fill="#188a3e"/>
<line x1="62.0" y1="311.2" x2="62.0" y2="320.3" stroke="#1a1a1a" stroke-width="1.2"/>
@@ -963,7 +962,7 @@ urmat de o <em>flamură</em>: un canal îngust, cu laturi paralele, înclinat u
<text x="222.0" y="160.3" fill="#555" text-anchor="middle" style="font-weight:bold">B</text>
<text x="366.0" y="278.6" fill="#b06000" text-anchor="middle" style="font-weight:bold">C = aici era by the dip</text>
<text x="414.0" y="171.6" fill="#188a3e" text-anchor="middle" style="font-weight:bold">breakout cu volum</text>
<text x="24" y="446" fill="#555">Exemplu construit (fără ticker), la scară: lecția nu rostește nicio cifră. Regula de măsurare e a cursului.</text>
<text x="24" y="446" fill="#555">Exemplu construit (fără ticker), la scară. Portocaliu punctat: SMA-20. Regula de măsurare e a cursului.</text>
<line x1="222.0" y1="190.3" x2="430.0" y2="232.6" stroke="#1a5fb4" stroke-width="1.6"/>
<line x1="222.0" y1="229.3" x2="270.0" y2="239.1" stroke="#1a5fb4" stroke-width="1.2" stroke-dasharray="4 3"/>
<line x1="270.0" y1="239.1" x2="414.0" y2="268.3" stroke="#1a5fb4" stroke-width="1.6"/>

View File

@@ -219,18 +219,18 @@ cursului (buy doji, buy momentum, buy hammer, bull engulfing) și dacă zona e
<text x="254.0" y="235.2" fill="#c00" text-anchor="middle" style="font-weight:bold">picior 1</text>
<text x="350.0" y="240.8" fill="#c00" text-anchor="middle" style="font-weight:bold">picior 2 (mai jos)</text>
<text x="446.0" y="270.4" fill="#b06000" text-anchor="middle" style="font-weight:bold">hammer in capul triunghiului</text>
<text x="478.0" y="173.6" fill="#188a3e" text-anchor="middle" style="font-weight:bold">breakout cu volum</text>
<line x1="554.0" y1="280.4" x2="514.9" y2="229.9" stroke="#c00" stroke-width="1.8"/>
<polygon points="510.0,223.6 518.1,227.5 511.7,232.4" fill="#c00"/>
<text x="554.0" y="294.4" fill="#c00" text-anchor="middle" style="font-weight:bold">stopul sta sub low-ul candelei de breakout:</text>
<text x="554.0" y="308.4" fill="#c00" text-anchor="middle" style="font-weight:bold">daca pretul se intoarce in triunghi, ideea a murit</text>
<text x="478.0" y="149.6" fill="#188a3e" text-anchor="middle" style="font-weight:bold">breakout cu volum</text>
<line x1="566.0" y1="280.4" x2="515.6" y2="229.3" stroke="#c00" stroke-width="1.8"/>
<polygon points="510.0,223.6 518.5,226.5 512.8,232.1" fill="#c00"/>
<text x="566.0" y="294.4" fill="#c00" text-anchor="middle" style="font-weight:bold">stopul sta sub low-ul candelei de breakout:</text>
<text x="566.0" y="308.4" fill="#c00" text-anchor="middle" style="font-weight:bold">daca pretul se intoarce in triunghi, ideea a murit</text>
<text x="24" y="448" fill="#555">Exemplu construit (fără ticker), la scară: lecția nu rostește nicio cifră. Regula de măsurare e a cursului.</text>
<line x1="206.0" y1="92.4" x2="494.0" y2="222.0" stroke="#8b5cf6" stroke-width="1.6"/>
<line x1="206.0" y1="188.4" x2="254.0" y2="199.2" stroke="#8b5cf6" stroke-width="1.2" stroke-dasharray="4 3"/>
<line x1="254.0" y1="199.2" x2="478.0" y2="249.6" stroke="#8b5cf6" stroke-width="1.6"/>
<line x1="206.0" y1="188.4" x2="206.0" y2="92.4" stroke="#8b5cf6" stroke-width="2.2"/>
<line x1="615.6" y1="186.0" x2="615.6" y2="90.0" stroke="#1a5fb4" stroke-width="2.2"/>
<text x="211.6" y="140.4" fill="#8b5cf6" text-anchor="start" style="font-size:11px;font-weight:bold">baza = 4.00</text>
<text x="211.6" y="156.4" fill="#8b5cf6" text-anchor="start" style="font-size:11px;font-weight:bold">baza = 4.00</text>
<text x="622.8" y="138.0" fill="#1a5fb4" text-anchor="start" style="font-size:11px;font-weight:bold">aceeasi 4.00</text>
</svg>
@@ -860,7 +860,6 @@ urmat de o *flamură*: un canal îngust, cu laturi paralele, înclinat ușor
<line x1="24.0" y1="88.9" x2="716" y2="88.9" stroke="#1a5fb4" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="702" y="82.9" fill="#1a5fb4" text-anchor="end">TP2 47.80 = batul steagului = 5.6R</text>
<polyline points="350.0,247.8 366.0,245.0 382.0,241.6 398.0,238.0 414.0,233.2 430.0,228.7 446.0,224.5 462.0,220.3 478.0,217.3 494.0,214.3 510.0,211.3 526.0,209.6 542.0,206.9 558.0,202.5 574.0,196.5 590.0,189.0" fill="none" stroke="#b06000" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="596" y="183" fill="#b06000">SMA-20</text>
<line x1="46.0" y1="311.0" x2="46.0" y2="316.7" stroke="#1a1a1a" stroke-width="1.2"/>
<rect x="41.5" y="312.5" width="9" height="2.6" fill="#188a3e"/>
<line x1="62.0" y1="311.2" x2="62.0" y2="320.3" stroke="#1a1a1a" stroke-width="1.2"/>
@@ -972,7 +971,7 @@ urmat de o *flamură*: un canal îngust, cu laturi paralele, înclinat ușor
<text x="222.0" y="160.3" fill="#555" text-anchor="middle" style="font-weight:bold">B</text>
<text x="366.0" y="278.6" fill="#b06000" text-anchor="middle" style="font-weight:bold">C = aici era by the dip</text>
<text x="414.0" y="171.6" fill="#188a3e" text-anchor="middle" style="font-weight:bold">breakout cu volum</text>
<text x="24" y="446" fill="#555">Exemplu construit (fără ticker), la scară: lecția nu rostește nicio cifră. Regula de măsurare e a cursului.</text>
<text x="24" y="446" fill="#555">Exemplu construit (fără ticker), la scară. Portocaliu punctat: SMA-20. Regula de măsurare e a cursului.</text>
<line x1="222.0" y1="190.3" x2="430.0" y2="232.6" stroke="#1a5fb4" stroke-width="1.6"/>
<line x1="222.0" y1="229.3" x2="270.0" y2="239.1" stroke="#1a5fb4" stroke-width="1.2" stroke-dasharray="4 3"/>
<line x1="270.0" y1="239.1" x2="414.0" y2="268.3" stroke="#1a5fb4" stroke-width="1.6"/>