Analiza techniczna · rozpoznawanie wzorcówTechnical Analysis · Pattern Recognition
Atlas FormacjiChart Pattern Atlas
BTC / USDT
Katalog klasycznych formacji giełdowych wykrytych algorytmicznie w danych świecowych, wraz z policzoną statystyką: jak często cena po każdej formacji naprawdę poszła w kierunku, jaki „powszechnie” przypisuje jej analiza techniczna. A catalog of classic chart patterns detected algorithmically in candlestick data, together with computed statistics: how often price after each pattern actually moved in the direction that technical analysis "commonly" assigns to it.
TabliceCards
Każda tablica to jedna formacja: schemat kształtu, definicja, kierunek oczekiwany przez klasyczną analizę techniczną oraz realny wynik zmierzony na danych. Kliknij tablicę, aby zobaczyć konkretny przykład na wykresie poniżej. Each card is one pattern: its shape diagram, definition, the direction expected by classic technical analysis, and the real-world outcome measured on the data. Click a card to see a specific example on the chart below.
Wybierz Instrument i Interwał razem (np. ), żeby zobaczyć wyłącznie tę jedną kombinację - obecnie jedyną opartą o realne dane rynkowe. Horyzont 10 świec oznacza, że skuteczność formacji mierzymy 10 świec po momencie jej potwierdzenia (nie od geometrycznego końca kształtu - patrz sekcja „Metoda” niżej, gdzie wyjaśniamy, dlaczego to rozróżnienie jest konieczne, żeby nie liczyć wyniku formacji na podstawie danych z przyszłości) - dla interwału 1D to ok. 10 dni do przodu, dla 1h to 10 godzin, dla 1W to 10 tygodni, itd. (ta sama liczba świec, różny odcinek czasu w zależności od wybranego interwału). Pick Instrument and Timeframe together (e.g. ), to see only that one combination - currently the only one based on real market data. A 10-candle horizon means pattern effectiveness is measured 10 candles after the moment of its confirmation (not the geometric end of the shape - see the "Method" section below, where we explain why this distinction is necessary to avoid scoring a pattern using future data) - for the 1D timeframe that's roughly 10 days ahead, for 1h it's 10 hours, for 1W it's 10 weeks, and so on (same number of candles, different span of time depending on the chosen timeframe).
Mapy cieplneHeatmaps
Na których interwałach i instrumentach dana formacja jest najbardziej zgodna z „powszechnym przekonaniem” analizy technicznej. Ciemniejsza zieleń = wyższa zgodność, ciemniejsza czerwień = niższa. Liczba w nawiasie to liczba wystąpień (im większa, tym bardziej wiarygodny odsetek). On which timeframes and instruments a given pattern most closely matches the "conventional wisdom" of technical analysis. Darker green = higher agreement, darker red = lower. The number in parentheses is the count of occurrences (the higher it is, the more reliable the percentage).
Formacja × interwałPattern × timeframe
Formacja × instrumentPattern × instrument
Instrument obserwacyjnyInstance Viewer
Wybrana instancja formacji na świecach, z zaznaczonymi punktami, które ją definiują, geometrycznym końcem kształtu, momentem faktycznego POTWIERDZENIA formacji (bez zaglądania w przyszłość) oraz miejscem pomiaru wyniku - liczonym od potwierdzenia, nie od geometrycznego końca. The selected pattern instance on candles, with the points that define it marked, the geometric end of the shape, the moment of the pattern's actual CONFIRMATION (with no look-ahead into the future), and the point where the outcome is measured - counted from confirmation, not from the geometric end.
Backtest
Prosta symulacja transakcji: wejście na końcu formacji w kierunku oczekiwanym przez TA, stop-loss tuż za skrajnym punktem formacji, cel zysku 2R. Bez uwzględnienia prowizji, poślizgu ani realiów płynności - traktuj jako orientacyjny sygnał przewagi, nie gotową strategię. A simple trade simulation: entry at the end of the pattern in the direction expected by TA, stop-loss just beyond the pattern's extreme point, profit target 2R. Commissions, slippage, and real-world liquidity aren't accounted for - treat this as an indicative edge signal, not a ready-made strategy.
MetodaMethod
Jak wykrywane są formacjeHow patterns are detected
Cena zamknięcia jest wygładzana filtrem Savitzky-Golay, a następnie szukane są lokalne
szczyty i dołki (scipy.signal.find_peaks). Kolejne szczyty/dołki są sprawdzane
pod kątem relacji geometrycznych charakterystycznych dla danej formacji (np. w głowie i ramionach:
szczyt środkowy wyraźnie wyższy od dwóch skrajnych, zbliżonych do siebie wysokością).
The closing price is smoothed with a Savitzky-Golay filter, and local peaks
and troughs are then found (scipy.signal.find_peaks). Consecutive peaks/troughs are
checked against the geometric relationships characteristic of a given pattern (e.g. in head and
shoulders: the middle peak is clearly higher than the two outer ones, which are close to each other
in height).
Bez zaglądania w przyszłość: potwierdzenie formacjiNo look-ahead: pattern confirmation
find_peaks jest z natury niekauzalny - żeby algorytm uznał świecę za szczyt, musi
już „widzieć”, że cena po niej spadła. To znaczy, że geometryczny koniec formacji (np. prawe
ramię głowy i ramion) jest realną, historyczną świecą, ale FAKT bycia szczytem dało się
stwierdzić dopiero PÓŹNIEJ. Dlatego dla każdego ekstremum liczymy osobno moment
potwierdzenia: najwcześniejszy bar, w którym cena - patrząc wyłącznie wstecz, bez
żadnej wiedzy o przyszłości - faktycznie odbiła się od tego punktu o próg „prominence” użyty
przy wykrywaniu. Dopiero od TEGO momentu (nie od geometrycznego końca formacji) liczymy
horyzont wyniku i wejście w backteście. Formacje, których nie dało się potwierdzić w dostępnych
danych (zbyt blisko końca serii), są odrzucane, a nie liczone z założenia „poszłoby w górę”.
find_peaks is inherently non-causal - for the algorithm to treat a candle as a peak, it must already "see" that price dropped afterward. That means the geometric end
of a pattern (e.g. the right shoulder of head and shoulders) is a real, historical candle, but the
FACT of it being a peak could only be established LATER. That's why, for every extremum, we
separately compute the moment of confirmation: the earliest bar at which price - looking
strictly backward, with no knowledge of the future - actually reversed away from that point by the
"prominence" threshold used in detection. Only from THAT moment (not the geometric end of the
pattern) do we count the outcome horizon and the backtest entry. Patterns that couldn't be confirmed
within the available data (too close to the end of the series) are discarded, rather than counted
on the assumption that they "would have gone up".
Jak liczona jest skutecznośćHow effectiveness is calculated
Dla każdej wykrytej i potwierdzonej formacji sprawdzana jest zmiana ceny N świec po momencie potwierdzenia. Jeśli ruch przekracza zadany próg procentowy, formacja jest klasyfikowana jako „poszła w górę” lub „w dół” (inaczej: „bez zmian”). Wynik porównywany jest z kierunkiem, jaki podręcznikowo przypisuje się danej formacji. For every detected and confirmed pattern, the price change N candles after the confirmation moment is checked. If the move exceeds a given percentage threshold, the pattern is classified as having "gone up" or "gone down" (otherwise: "no change"). The outcome is compared against the direction textbooks assign to that pattern.
Źródła / bibliotekiSources / libraries
white07S/TradingPatternScanner, keithorange/PatternPy, tysoncung/crypto-chart-patterns oraz metoda z artykułu Alpaca „Detecting & Trading Technical Chart Patterns w/ Python”. white07S/TradingPatternScanner, keithorange/PatternPy, tysoncung/crypto-chart-patterns, and the method from Alpaca's article "Detecting & Trading Technical Chart Patterns w/ Python".