OPEN-SOURCE SCRIPT
PsyExpansionPanel_v5_Kohlhaas

The PsyExpansionPanel measures the energy in the market, combining volatility, momentum, and volume into one composite signal.
It helps identify when a move is genuine and powerful — not just visually strong but backed by volatility and participation.
⸻
⚙️ Core Idea
When the blue line (Expansion Score) rises above the orange line (Threshold),
the market enters an expansion phase — volatility, speed, and participation all increase together.
This is the moment when a move becomes serious and emotionally charged.
⸻
📊 What Each Line Means
• Blue line → Expansion Score (combined energy from ATR%, ROC, and Volume)
• Orange line → Threshold (e.g. 0.75) — when crossed, expansion is active
• Gray line → Neutral zone — calm market, low activity
When the blue line crosses above the orange threshold,
the background turns orange, signaling: Expansion Active.
⸻
🧠 Market Psychology Behind It
During expansion, three things happen at once:
1. Volatility (ATR%) increases → traders become emotional (fear or greed rises)
2. Momentum (ROC) accelerates → price moves faster than usual
3. Volume rises above average → more participants join the move
This combination signals a transition from equilibrium to collective emotional action —
a moment when trends or reversals often begin.
It helps identify when a move is genuine and powerful — not just visually strong but backed by volatility and participation.
⸻
⚙️ Core Idea
When the blue line (Expansion Score) rises above the orange line (Threshold),
the market enters an expansion phase — volatility, speed, and participation all increase together.
This is the moment when a move becomes serious and emotionally charged.
⸻
📊 What Each Line Means
• Blue line → Expansion Score (combined energy from ATR%, ROC, and Volume)
• Orange line → Threshold (e.g. 0.75) — when crossed, expansion is active
• Gray line → Neutral zone — calm market, low activity
When the blue line crosses above the orange threshold,
the background turns orange, signaling: Expansion Active.
⸻
🧠 Market Psychology Behind It
During expansion, three things happen at once:
1. Volatility (ATR%) increases → traders become emotional (fear or greed rises)
2. Momentum (ROC) accelerates → price moves faster than usual
3. Volume rises above average → more participants join the move
This combination signals a transition from equilibrium to collective emotional action —
a moment when trends or reversals often begin.
Script de código aberto
No verdadeiro espirito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam entendê-lo e verificá-lo. Parabéns ao autor Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações e regida pelas Regras da Casa.
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.
Script de código aberto
No verdadeiro espirito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam entendê-lo e verificá-lo. Parabéns ao autor Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações e regida pelas Regras da Casa.
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.