OPEN-SOURCE SCRIPT
APC – Anti-Analysis-Paralysis Kompass

APC – Anti-Analysis-Paralysis Compass (Pine v5).
Research/education indicator that compresses trend from 5 timeframes into one compass with Direction, Score, and Coherence (TF agreement). Non-repainting with a high-contrast breakdown table and in-chart help. No financial advice.
What it is
APC is a research/education tool that condenses trend information from five timeframes into a single compass. It shows Direction (↑/↓/→), a weighted Score, and Coherence (how strongly timeframes agree). The script is non-repainting (security(..., lookahead=off)) and includes a readable breakdown panel and example alerts.
How it works
• For each timeframe APC fits a linear regression to price, measures the slope change over k bars, optionally normalizes by ATR%, then maps it to +1 / 0 / −1 using a Deadzone (small slopes → neutral).
• A (weighted) sum of the five signs forms the Score.
• Coherence = |Score| / maxScore (0–100%), i.e., degree of TF alignment.
Quick start (suggested defaults)
• Timeframes: 15m · 1h · 4h · 1D · 1W • Weights: 1, 1, 1, 1.5, 2
• LinReg length: 100 • Slope Δ window: 10
• ATR normalization: ON • Deadzone: 0.03–0.05
• Coherence lock (for example alerts): 60%
Example research filters (non-advisory)
Many users test: Bullish bias when Score ≥ +3 and Coherence ≥ 60%; bearish bias when Score ≤ −3 and Coherence ≥ 60%. These are illustrative defaults only—configure and test your own thresholds.
Optional: pair with Kagi
Use APC for bias/conviction and Kagi turns for timing. Typical Kagi (swing): base 15m–1h, reversal ATR(14) × 1.5–2.5 or 1–3%.
Notes
Raise Deadzone in choppy markets; lower it for earlier flips. On very illiquid or young symbols, lengthen lenLR.
Disclaimer
APC is a research & educational indicator. It does not provide financial advice or recommendations. Use at your own risk. License: MIT.
Research/education indicator that compresses trend from 5 timeframes into one compass with Direction, Score, and Coherence (TF agreement). Non-repainting with a high-contrast breakdown table and in-chart help. No financial advice.
What it is
APC is a research/education tool that condenses trend information from five timeframes into a single compass. It shows Direction (↑/↓/→), a weighted Score, and Coherence (how strongly timeframes agree). The script is non-repainting (security(..., lookahead=off)) and includes a readable breakdown panel and example alerts.
How it works
• For each timeframe APC fits a linear regression to price, measures the slope change over k bars, optionally normalizes by ATR%, then maps it to +1 / 0 / −1 using a Deadzone (small slopes → neutral).
• A (weighted) sum of the five signs forms the Score.
• Coherence = |Score| / maxScore (0–100%), i.e., degree of TF alignment.
Quick start (suggested defaults)
• Timeframes: 15m · 1h · 4h · 1D · 1W • Weights: 1, 1, 1, 1.5, 2
• LinReg length: 100 • Slope Δ window: 10
• ATR normalization: ON • Deadzone: 0.03–0.05
• Coherence lock (for example alerts): 60%
Example research filters (non-advisory)
Many users test: Bullish bias when Score ≥ +3 and Coherence ≥ 60%; bearish bias when Score ≤ −3 and Coherence ≥ 60%. These are illustrative defaults only—configure and test your own thresholds.
Optional: pair with Kagi
Use APC for bias/conviction and Kagi turns for timing. Typical Kagi (swing): base 15m–1h, reversal ATR(14) × 1.5–2.5 or 1–3%.
Notes
Raise Deadzone in choppy markets; lower it for earlier flips. On very illiquid or young symbols, lengthen lenLR.
Disclaimer
APC is a research & educational indicator. It does not provide financial advice or recommendations. Use at your own risk. License: MIT.
Skrypt open-source
W duchu TradingView twórca tego skryptu udostępnił go jako open-source, aby traderzy mogli analizować i weryfikować jego funkcjonalność. Brawo dla autora! Możesz korzystać z niego za darmo, ale pamiętaj, że ponowna publikacja kodu podlega naszym Zasadom Społeczności.
Wyłączenie odpowiedzialności
Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.
Skrypt open-source
W duchu TradingView twórca tego skryptu udostępnił go jako open-source, aby traderzy mogli analizować i weryfikować jego funkcjonalność. Brawo dla autora! Możesz korzystać z niego za darmo, ale pamiętaj, że ponowna publikacja kodu podlega naszym Zasadom Społeczności.
Wyłączenie odpowiedzialności
Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.