OPEN-SOURCE SCRIPT
업데이트됨 SpikeFlow Matrix

SpikeFlow Matrix
Author: Sam George
Developed with AI assistance
License: Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International
SpikeFlow Matrix is a multi-symbol volume and momentum scanner designed to identify unusual volume activity, directional strength, and trend confirmation across a watchlist.
The author mainly uses it on the **weekly timeframe** to catch stronger momentum signals and ride larger trends. It can also be used on daily or lower timeframes, but lower timeframes may create more noise and marker crowding.
What It Does
SpikeFlow Matrix combines:
The purpose is to help traders quickly see which symbols have unusual volume and whether momentum is aligned enough to deserve deeper chart review.
**Matrix Columns**
`Ticker`
The scanned symbol.
`TF`
The timeframe being scanned.
`Volume Signal`
`VOL BUY` means a bullish volume spike with directional confirmation.
`VOL SELL` means a bearish volume spike with directional confirmation.
`SPIKE` means volume is active but direction is not fully confirmed.
`Rel Vol`
Current volume compared with average volume.
`RSI>55/<45 + Candle`
Green when RSI is above 55 and the candle agrees bullishly.
Red when RSI is below 45 and the candle agrees bearishly.
Mixed means no clean agreement.
`R-S RSI-SMA`
Shows RSI compared with its own SMA.
Bullish when RSI is above RSI-SMA.
Bearish when RSI is below RSI-SMA.
`MACD BB`
Shows when MACD expands beyond its Bollinger Band threshold, helping identify momentum expansion.
`EMA Stack`
Shows bullish or bearish EMA alignment. The default stack is 9/21, with optional deeper stacks up to 200 EMA.
`Score`
A 0-100 ranking of signal alignment.
**Score Logic**
The score is determined by:
Volume spike: up to 45 points
Relative volume strength: up to 20 points
RSI/candle agreement: 20 points
RSI agreement: 5 points
MACD BB agreement: 5 points
EMA Stack agreement: 5 points
A higher score means more components are aligned. It does not guarantee a successful trade.
Chart Markers
The chart can display historical markers showing how a setup developed.
`VOL` = volume buy/sell signal
`SPK` = spike only
`R` = RSI threshold signal
`R-S` = RSI compared with RSI-SMA
`MACD` = MACD BB momentum signal
`EMA` = EMA stack signal
For lower timeframes, where labels may overlap, the interface allows:
`Full Names`
Shows full marker names.
`Short Symbols`
Shows compact labels such as `VOL`, `R`, `R-S`, `MACD`, `EMA`.
`Dots Only`
Shows only dots when the chart is crowded.
Each marker group can also be turned on or off individually.
Profit And Stop-Loss Boxes
SpikeFlow Matrix includes optional profit and stop-loss boxes.
The box follows the **latest signal from the selected component**.
Available box sources:
`VOL BUY/SELL`
Uses the latest volume buy/sell signal.
`RSI`
Uses the latest RSI threshold signal.
`RSI-SMA`
Uses the latest R-S signal.
`MACD BB`
Uses the latest MACD BB signal.
`EMA Stack`
Uses the latest EMA stack signal.
The generic `All` option was removed so box behaviour is clearer.
**How To Show A Profit/SL Box**
Example: show a box from the latest RSI signal.
1. Open indicator settings.
2. Go to `Profit + Stop Boxes`.
3. Turn on `Show Profit/SL Boxes`.
4. Set `Box Creation` to `RSI`.
5. Turn on `Create On-Demand Box From Selected Signal`.
The box will appear on the latest RSI signal, not merely on the current candle.
Example: show a box from the latest RSI-SMA signal.
1. Set `Box Creation` to `RSI-SMA`.
2. Turn on `Create On-Demand Box From Selected Signal`.
The box will move to the latest `R-S` signal.
Example: automatic volume-based box.
1. Turn on `Show Profit/SL Boxes`.
2. Set `Box Creation` to `VOL BUY/SELL`.
3. Leave the on-demand switch off.
The box will use the latest selected volume buy/sell signal.
Box labels:
`B 85` = Buy box with score 85
`S 85` = Sell box with score 85
`T1` = Target 1
`T2` = Target 2
`SL` = Stop Loss
**Box Customisation**
Stop Loss Method:
ATR
Last Doji
Percent
Swing
Default stop method: `Swing`
Take Profit Method:
ATR
Percent
Default take-profit method: `ATR`
The stop-loss method and take-profit method are independent. For example, a trader can use Swing stop loss with ATR targets, or Percent stop loss with Percent targets.
Default percent targets:
TP1 = 10%
TP2 = 15%
Interface Overview
Timeframe:
Use current chart timeframe
Manual scan timeframe, default daily
Volume:
Volume SMA length
Standard deviation multiplier
Minimum relative volume
RSI:
RSI length
RSI bull level, default 55
RSI bear level, default 45
RSI-SMA length
Momentum and trend:
MACD fast/slow EMA
MACD BB period
MACD BB deviation
EMA stack mode from 9/21 up to 9/21/30/55/100/200
Matrix:
Show matrix
Show only active spikes
Hide mixed spike-only rows
Matrix position
Matrix text size
Chart markers:
Marker text mode
Show/hide VOL markers
Show/hide SPK markers
Show/hide R markers
Show/hide R-S markers
Show/hide MACD BB markers
Show/hide EMA Stack markers
Marker spacing
Maximum marker labels to keep
Profit/SL boxes:
Show Profit/SL boxes
Box creation source
On-demand box from selected signal
Minimum score
Stop-loss method
Take-profit method
ATR settings
Percent stop and percent targets
Swing lookback
Last doji settings
Box width
Show/hide TP2
Suggested Workflow
1. Use weekly or daily timeframe for cleaner signals.
2. Scan the matrix for `VOL BUY` or `VOL SELL`.
3. Prioritise strong relative volume and high scores.
4. Check whether RSI, R-S, MACD BB, and EMA Stack agree.
5. Open the strongest symbol chart.
6. Use chart markers to see how the setup evolved.
7. Choose the component you trust most.
8. Use the Profit/SL box to visualise risk and targets.
9. Confirm price structure manually before entering.
Recommended Pairing
SpikeFlow Matrix can be paired with AK MACD BB for deeper visual momentum confirmation:

It can also be paired with TradingView’s standard RSI indicator:
tradingview.com/support/solutions/43000502338/
Using RSI separately with its SMA enabled can help visually confirm the `R` and `R-S` signals shown by SpikeFlow Matrix.
Customisation Ideas
Weekly momentum trader:
Use weekly timeframe
EMA Stack: 9/21 or 9/21/30/55
Stop Loss Method: Swing
Take Profit Method: ATR
Lower timeframe trader:
Use shorter scan timeframe
Set Marker Text Mode to Dots Only
Turn off marker groups not needed
Increase marker spacing if labels overlap
Reduce maximum marker labels if the chart is too busy
Conservative trader:
Increase RSI bull level above 55
Lower RSI bear level below 45
Use deeper EMA stack up to 200
Require stronger relative volume
Aggressive trader:
Use shorter timeframes
Use 9/21 EMA stack
Lower volume thresholds
Use on-demand boxes for fast risk/reward visualisation
Risks And Limitations
This indicator is not financial advice.
Volume spikes can fail.
High scores can still produce losing trades.
Signals can appear after a large candle has already moved.
Lower timeframes can create noise and label crowding.
News, earnings, dilution, macro events, and market-wide weakness can override technical signals.
Small-cap and speculative stocks can move sharply in both directions.
Use position sizing, stop losses, and independent judgement. SpikeFlow Matrix is best used as a scanner and decision-support tool, not as an automatic trading system.
Author: Sam George
Developed with AI assistance
License: Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International
SpikeFlow Matrix is a multi-symbol volume and momentum scanner designed to identify unusual volume activity, directional strength, and trend confirmation across a watchlist.
The author mainly uses it on the **weekly timeframe** to catch stronger momentum signals and ride larger trends. It can also be used on daily or lower timeframes, but lower timeframes may create more noise and marker crowding.
What It Does
SpikeFlow Matrix combines:
- Volume spikes
- Relative volume
- RSI threshold confirmation
- RSI compared with RSI-SMA
- MACD Bollinger Band expansion
- EMA stack trend structure
- Optional profit and stop-loss boxes
The purpose is to help traders quickly see which symbols have unusual volume and whether momentum is aligned enough to deserve deeper chart review.
**Matrix Columns**
`Ticker`
The scanned symbol.
`TF`
The timeframe being scanned.
`Volume Signal`
`VOL BUY` means a bullish volume spike with directional confirmation.
`VOL SELL` means a bearish volume spike with directional confirmation.
`SPIKE` means volume is active but direction is not fully confirmed.
`Rel Vol`
Current volume compared with average volume.
`RSI>55/<45 + Candle`
Green when RSI is above 55 and the candle agrees bullishly.
Red when RSI is below 45 and the candle agrees bearishly.
Mixed means no clean agreement.
`R-S RSI-SMA`
Shows RSI compared with its own SMA.
Bullish when RSI is above RSI-SMA.
Bearish when RSI is below RSI-SMA.
`MACD BB`
Shows when MACD expands beyond its Bollinger Band threshold, helping identify momentum expansion.
`EMA Stack`
Shows bullish or bearish EMA alignment. The default stack is 9/21, with optional deeper stacks up to 200 EMA.
`Score`
A 0-100 ranking of signal alignment.
**Score Logic**
The score is determined by:
Volume spike: up to 45 points
Relative volume strength: up to 20 points
RSI/candle agreement: 20 points
RSI agreement: 5 points
MACD BB agreement: 5 points
EMA Stack agreement: 5 points
A higher score means more components are aligned. It does not guarantee a successful trade.
Chart Markers
The chart can display historical markers showing how a setup developed.
`VOL` = volume buy/sell signal
`SPK` = spike only
`R` = RSI threshold signal
`R-S` = RSI compared with RSI-SMA
`MACD` = MACD BB momentum signal
`EMA` = EMA stack signal
For lower timeframes, where labels may overlap, the interface allows:
`Full Names`
Shows full marker names.
`Short Symbols`
Shows compact labels such as `VOL`, `R`, `R-S`, `MACD`, `EMA`.
`Dots Only`
Shows only dots when the chart is crowded.
Each marker group can also be turned on or off individually.
Profit And Stop-Loss Boxes
SpikeFlow Matrix includes optional profit and stop-loss boxes.
The box follows the **latest signal from the selected component**.
Available box sources:
`VOL BUY/SELL`
Uses the latest volume buy/sell signal.
`RSI`
Uses the latest RSI threshold signal.
`RSI-SMA`
Uses the latest R-S signal.
`MACD BB`
Uses the latest MACD BB signal.
`EMA Stack`
Uses the latest EMA stack signal.
The generic `All` option was removed so box behaviour is clearer.
**How To Show A Profit/SL Box**
Example: show a box from the latest RSI signal.
1. Open indicator settings.
2. Go to `Profit + Stop Boxes`.
3. Turn on `Show Profit/SL Boxes`.
4. Set `Box Creation` to `RSI`.
5. Turn on `Create On-Demand Box From Selected Signal`.
The box will appear on the latest RSI signal, not merely on the current candle.
Example: show a box from the latest RSI-SMA signal.
1. Set `Box Creation` to `RSI-SMA`.
2. Turn on `Create On-Demand Box From Selected Signal`.
The box will move to the latest `R-S` signal.
Example: automatic volume-based box.
1. Turn on `Show Profit/SL Boxes`.
2. Set `Box Creation` to `VOL BUY/SELL`.
3. Leave the on-demand switch off.
The box will use the latest selected volume buy/sell signal.
Box labels:
`B 85` = Buy box with score 85
`S 85` = Sell box with score 85
`T1` = Target 1
`T2` = Target 2
`SL` = Stop Loss
**Box Customisation**
Stop Loss Method:
ATR
Last Doji
Percent
Swing
Default stop method: `Swing`
Take Profit Method:
ATR
Percent
Default take-profit method: `ATR`
The stop-loss method and take-profit method are independent. For example, a trader can use Swing stop loss with ATR targets, or Percent stop loss with Percent targets.
Default percent targets:
TP1 = 10%
TP2 = 15%
Interface Overview
Timeframe:
Use current chart timeframe
Manual scan timeframe, default daily
Volume:
Volume SMA length
Standard deviation multiplier
Minimum relative volume
RSI:
RSI length
RSI bull level, default 55
RSI bear level, default 45
RSI-SMA length
Momentum and trend:
MACD fast/slow EMA
MACD BB period
MACD BB deviation
EMA stack mode from 9/21 up to 9/21/30/55/100/200
Matrix:
Show matrix
Show only active spikes
Hide mixed spike-only rows
Matrix position
Matrix text size
Chart markers:
Marker text mode
Show/hide VOL markers
Show/hide SPK markers
Show/hide R markers
Show/hide R-S markers
Show/hide MACD BB markers
Show/hide EMA Stack markers
Marker spacing
Maximum marker labels to keep
Profit/SL boxes:
Show Profit/SL boxes
Box creation source
On-demand box from selected signal
Minimum score
Stop-loss method
Take-profit method
ATR settings
Percent stop and percent targets
Swing lookback
Last doji settings
Box width
Show/hide TP2
Suggested Workflow
1. Use weekly or daily timeframe for cleaner signals.
2. Scan the matrix for `VOL BUY` or `VOL SELL`.
3. Prioritise strong relative volume and high scores.
4. Check whether RSI, R-S, MACD BB, and EMA Stack agree.
5. Open the strongest symbol chart.
6. Use chart markers to see how the setup evolved.
7. Choose the component you trust most.
8. Use the Profit/SL box to visualise risk and targets.
9. Confirm price structure manually before entering.
Recommended Pairing
SpikeFlow Matrix can be paired with AK MACD BB for deeper visual momentum confirmation:

It can also be paired with TradingView’s standard RSI indicator:
tradingview.com/support/solutions/43000502338/
Using RSI separately with its SMA enabled can help visually confirm the `R` and `R-S` signals shown by SpikeFlow Matrix.
Customisation Ideas
Weekly momentum trader:
Use weekly timeframe
EMA Stack: 9/21 or 9/21/30/55
Stop Loss Method: Swing
Take Profit Method: ATR
Lower timeframe trader:
Use shorter scan timeframe
Set Marker Text Mode to Dots Only
Turn off marker groups not needed
Increase marker spacing if labels overlap
Reduce maximum marker labels if the chart is too busy
Conservative trader:
Increase RSI bull level above 55
Lower RSI bear level below 45
Use deeper EMA stack up to 200
Require stronger relative volume
Aggressive trader:
Use shorter timeframes
Use 9/21 EMA stack
Lower volume thresholds
Use on-demand boxes for fast risk/reward visualisation
Risks And Limitations
This indicator is not financial advice.
Volume spikes can fail.
High scores can still produce losing trades.
Signals can appear after a large candle has already moved.
Lower timeframes can create noise and label crowding.
News, earnings, dilution, macro events, and market-wide weakness can override technical signals.
Small-cap and speculative stocks can move sharply in both directions.
Use position sizing, stop losses, and independent judgement. SpikeFlow Matrix is best used as a scanner and decision-support tool, not as an automatic trading system.
릴리즈 노트
**Release Notes**Major update to SpikeFlow Matrix with structure, risk/reward, and visual alignment improvements.
New:
- Added automatic higher-timeframe BOS detection.
- Weekly charts now use higher-timeframe structure, such as monthly BOS.
- BOS lines now connect only the relevant swing level to the break point instead of extending across the whole chart.
- Added BOS to the matrix and Profit/SL box creation choices.
- Profit/SL boxes can now use the latest selected signal, including BOS.
- BOS-based boxes now use the actual BOS level as the entry line.
- Profit zones are always green and stop-loss zones are always red, including short/sell setups.
- Matrix columns are clearer and now show event values such as `BUY`, `SELL`, `>2SD`, RSI value, `Bull/Bear`, `Stack Up/Down`, and `BOS Up/Down`.
- Added signal alignment bar coloring: upward alignment colors the bar lime, downward alignment colors it amber.
- Matrix scanning has been capped to 30 symbols to help stay within TradingView limits.
Improved:
- Cleaner chart labels with full signal names by default.
- BOS labels are anchored to the BOS price level.
- Profit/SL boxes now show only the latest relevant setup instead of cluttering the chart.
- Matrix headers now better match the chart signal names.
- Reduced matrix clutter by replacing relative volume display with BOS and simplifying columns.
Note:
SpikeFlow Matrix remains a scanner and decision-support tool, not an automatic trading system. Use independent judgement, position sizing, and stop losses.
릴리즈 노트
Spike Flow Matrix UpdateMatrix now mirrors the chart signal logic more closely.
Replaced separate volume columns with one clear VOL column.
VOL now shows the same volume events as the chart:
VOL BUY
VOL SELL
VOL SPIKE
Quiet volume now shows - instead of noisy relative-volume text.
Added a cleaner row display mode:
Fresh Signals Only
All Signal Rows
All Symbols
Fresh signal filtering now works across volume, RSI-SMA, MACD, EMA Stack, and HTF BOS.
Matrix layout simplified to:
Symbol | VOL | RSI >/< SMA | MACD | EMA Stack | HTF | Score
Current chart symbol remains pinned near the top of the matrix.
Market context panel remains included for:
S&P 500: market health
Nasdaq 100: risk/tech appetite
Dow Jones: macro mood
Score remains a strength score, not a direction by itself. Direction is read from the signal columns and colors.
릴리즈 노트
Release Notes:Updated Spike Flow Matrix to make MACD BB signals clearer and more consistent across the chart and matrix.
What changed:
MACD BB now shows both the Bollinger Band event and zero-line position.
Chart labels and matrix values now match each other.
Matrix column renamed to MACD BB/0.
New MACD labels:
BB+ >0 = MACD above upper BB band and above zero
BB+ <0 = MACD above upper BB band but still below zero
BB- >0 = MACD below lower BB band but still above zero
BB- <0 = MACD below lower BB band and below zero
Tooltips were updated so the MACD BB setting explains the meaning directly.
This makes it easier to distinguish early MACD expansion from stronger momentum confirmation.
릴리즈 노트
**Release Note**Updated **Spike Flow Matrix** for clearer labels, cleaner settings, and better risk-box readability.
What changed:
- RSI moving-average signals now show direction clearly:
- `RSI>SMA` = bullish RSI momentum
- `RSI<SMA` = bearish RSI momentum
- Settings now use the same wording as the chart and matrix.
- MACD BB labels now show both parts:
- `BB+ >0`, `BB+ <0`, `BB- >0`, `BB- <0`
- Risk-box labels now auto-space vertically to reduce overlap between `SL`, `ENTRY`, `TP1`, and `TP2`.
- Fixed the TradingView warning caused by `ta.atr()` being called inside the last-bar drawing block.
- Matrix, chart markers, and risk-box source options are now more consistent and easier to understand.
릴리즈 노트
**SpikeFlow Matrix - Latest Update**This update focuses on making the panel easier to read, making BUY/SELL decisions clearer, and improving trade-box behaviour.
**What Changed**
- Added a cleaner **Compact panel** layout.
- Compact panel now separates components into:
`Vol | RSI | BB | EMA | BOS | Weight | Action`
- Each component now colours independently:
- RSI can be green/red on its own
- BB can be green/red on its own
- EMA can be green/red on its own
- BOS can be green/red on its own
- Replaced the old “Decision” language with clearer **Action** wording:
- `BUY`
- `SELL`
- `WATCH B`
- `WATCH S`
- `WAIT`
- `CONFLICT`
- Action now includes weight percentage, e.g. `BUY 85%`.
**Trade Box Changes**
- Trade box now acts as the main source of truth for BUY/SELL.
- Default box creation changed to **Aligned / Confluence**.
- Minimum weight for BUY/SELL and trade box defaults to `55%`.
- Added EMA 200 filter by default:
- BUY requires price above EMA 200
- SELL requires price below EMA 200
- TP2 is now off by default.
- Added two dotted trade-box guide lines.
- Dotted guide percentages can now auto-adjust by chart timeframe:
- 5 min or lower: `0.5% / 1%`
- 15 min: `1% / 2%`
- 1 hour: `2% / 4%`
- 4 hour: `3% / 6%`
- Daily: `5% / 10%`
- Weekly: `10% / 20%`
**Weightage System**
- Score has been reframed as **Weight %**.
- Added user-adjustable weight settings for:
- Volume event
- Fresh entry trigger
- RSI momentum
- MACD Bollinger momentum
- EMA trend
- BOS structure
- Opposing signal penalty
- This makes it clearer what contributes to BUY/SELL quality.
**Visual Improvements**
- Volume column no longer lights up the full background for every event.
- Volume now uses neutral background with coloured text.
- Current ticker row highlights only when a fresh BUY/SELL action appears.
- Panel colours were made more uniform and less crowded.
- Existing chart labels were kept intact.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.