Institution Radar Institution Radar
Institution Radar compares Price RSI with Volume-Delta RSI to show when price moves are real (backed by volume) or fake (moving without volume).
This helps reveal two powerful concepts:
Absorption (Bullish or Bearish)
Absorption happens when a large limit order is sitting in the order book.
Market orders hit it over and over, but the level doesn't break.
This usually means:
Strong players are absorbing the aggressive orders
Price is likely to move in the opposite direction
The next candle often reacts immediately
Can lead to a full reversal or just a short 1–2 candle move
Exhaustion (Bullish or Bearish)
Exhaustion happens when institutions pull their limit orders away.
There is no real volume behind the move, so price drifts up or down easily.
This usually means:
The current move is weak
A slowdown, pullback, or reversal is likely
Often shows up right before a flip in direction
📌 What the Signals Mean
Green signal → next candles often push upward
Red signal → next candles often push downward
These can mark trend reversals or temporary 1–2 candle reactions
🎚️ Sensitivity Setting
You can adjust how strict the signals are:
Lower sensitivity = more signals, more noise
Higher sensitivity = fewer signals, but more accurate and stronger
A higher sensitivity is recommended if you only want the cleanest institutional moments.
指標和策略
Project 1 - Complete with CMF and All IndicatorsProject 1 – Multi-Indicator Suite
This script combines several widely-used technical indicators into a single visual framework.
It is designed to help traders track momentum, trend strength, volume behavior, and money flow without switching between multiple tools.
Included components:
• MACD with dynamic color changes
• RSI with percentage change and directional marker
• ADX with trend-strength shading and Δ% calculation
• CMF (Chaikin Money Flow) with positive/negative flow tracking
• Volume Oscillator for short–long volume pressure
• Auto-updated labels for RSI, ADX, and CMF
• Lightweight visual lines to show momentum changes
Use cases:
• Trend confirmation
• Momentum diagnostics
• Volume-based pressure analysis
• Money-flow direction and strength
• Multi-factor confluence without indicator stacking
This tool does not generate buy/sell signals and does not imply trading outcomes.
It is a visual analytics suite built for discretionary technical analysis.
Pair Cointegration & Static Beta Analyzer (v6)Pair Cointegration & Static Beta Analyzer (v6)
This indicator evaluates whether two instruments exhibit statistical properties consistent with cointegration and tradable mean reversion.
It uses long-term beta estimation, spread standardization, AR(1) dynamics, drift stability, tail distribution analysis, and a multi-factor scoring model.
1. Static Beta and Spread Construction
A long-horizon static beta is estimated using covariance and variance of log-returns.
This beta does not update on every bar and is used throughout the entire model.
Beta = Cov(r1, r2) / Var(r2)
Spread = PriceA - Beta * PriceB
This “frozen” beta provides structural stability and avoids rolling noise in spread construction.
2. Correlation Check
Log-price correlation ensures the instruments move together over time.
Correlation ≥ 0.85 is required before deeper cointegration diagnostics are considered meaningful.
3. Z-Score Normalization and Distribution Behavior
The spread is standardized:
Z = (Spread - MA(Spread)) / Std(Spread)
The following statistical properties are examined:
Z-Mean: Should be close to zero in a stationary process
Z-Variance: Measures amplitude of deviations
Tail Probability: Frequency of |Z| being larger than a threshold (e.g. 2)
These metrics reveal whether the spread behaves like a mean-reverting equilibrium.
4. Mean Drift Stability
A rolling mean of the spread is examined.
If the rolling mean drifts excessively, the spread may not represent a stable long-term equilibrium.
A normalized drift ratio is used:
Mean Drift Ratio = Range( RollingMean(Spread) ) / Std(Spread)
Low drift indicates stable long-run equilibrium behavior.
5. AR(1) Dynamics and Half-Life
An AR(1) model approximates mean reversion:
Spread(t) = Phi * Spread(t-1) + error
Mean reversion requires:
0 < Phi < 1
Half-life of reversion:
Half-life = -ln(2) / ln(Phi)
Valid half-life for 10-minute bars typically falls between 3 and 80 bars.
6. Composite Scoring Model (0–100)
A multi-factor weighted scoring system is applied:
Component Score
Correlation 0–20
Z-Mean 0–15
Z-Variance 0–10
Tail Probability 0–10
Mean Drift 0–15
AR(1) Phi 0–15
Half-Life 0–15
Score interpretation:
70–100: Strong Cointegration Quality
40–70: Moderate
0–40: Weak
A pair is classified as cointegrated when:
Total Score ≥ Threshold (default = 70)
7. Main Cointegration Panel
Displays:
Static beta
Log-price correlation
Z-Mean, Z-Variance, Tail Probability
Drift Ratio
AR(1) Phi and Half-life
Composite score
Overall cointegration assessment
8. Beta Hedge Position Sizing (Average-Price Based)
To provide a more stable hedge ratio, hedge sizing is computed using average prices, not instantaneous prices:
AvgPriceA = SMA(PriceA, N)
AvgPriceB = SMA(PriceB, N)
Required B per 1 A = Beta * (AvgPriceA / AvgPriceB)
Using averaged prices results in a smoother, more reliable hedge ratio, reducing noise from bar-to-bar volatility.
The panel displays:
Required B security for 1 A security (average)
This represents the beta-neutral quantity of B required to hedge one unit of A.
Overview of Classical Stationarity & Cointegration Methods
The principal econometric tools commonly used in assessing stationarity and cointegration include:
Augmented Dickey–Fuller (ADF) Test
Phillips–Perron (PP) Test
KPSS Test
Engle–Granger Cointegration Test
Phillips–Ouliaris Cointegration Test
Johansen Cointegration Test
Since these procedures rely on regression residuals, matrix operations, and distribution-based critical values that are not supported in TradingView Pine Script, a practical multi-criteria scoring approach is employed instead. This framework leverages metrics that are fully computable in Pine and offers an operational proxy for evaluating cointegration-like behavior under platform constraints.
References
Engle & Granger (1987), Co-integration and Error Correction
Poterba & Summers (1988), Mean Reversion in Stock Prices
Vidyamurthy (2004), Pairs Trading
Explanation structured with assistance from OpenAI’s ChatGPT
Regards.
Fib and Slope Trend Detector [EWT] + MTF Dashboard🚀 Overview
The Momentum Structure Trend Detector is a sophisticated trend-following tool that combines Price Velocity (Slope) with Market Structure (Fibonacci) to identify high-probability trend reversals and continuations.
Unlike traditional indicators that rely heavily on lagging moving averages, this script analyzes the speed of price action in real-time. It operates on the core principle of market structure: Impulse moves are fast and steep, while corrections are slow and shallow.
🧠 The Logic: Physics Meets Market Structure
This indicator determines the trend direction by calculating the Slope (Velocity) of price swings.
ZigZag Calculation: It first identifies market swings (Highs and Lows) using a standard pivot detection algorithm.
Slope Calculation: It calculates the velocity of every completed leg using the formula: $Slope = \frac{|Price Change|}{|Time Duration|}$.
Trend Definition:
Uptrend : If the previous Up-move was fast (Impulse) and the subsequent Down-move is slower (Correction), the market is primed for an uptrend.
Downtrend : If the previous Down-move was fast (Impulse) and the subsequent Up-move is slower (Correction), the market is primed for a downtrend.
🔥 Key Features
1. Aggressive Real-Time Detection (No Lag)
Most structure indicators wait for a "Higher High" to confirm a trend, which often leads to late entries. This script uses an Aggressive Live Slope calculation:
It compares the current developing slope of the live price action against the slope of the previous completed leg.
Result: As soon as the current move becomes "steeper" (faster) than the previous correction, the trend flips immediately. This allows you to catch the "meat" of the move before a new pivot is even confirmed.
2. Fibonacci Validity Filter
Momentum alone isn't enough; we need structural integrity.
The script calculates the 78.6% Retracement level of the impulse leg.
If a correction moves deeper than this Fibonacci limit (on a closing basis), the trend structure is considered "broken" or "invalid," and the indicator switches to a Neutral state. This filters out choppy/ranging markets.
3. Multi-Timeframe (MTF) Dashboard
A customizable dashboard on the chart allows for fractal analysis. You can view the trend state (UP/DOWN/NEUTRAL) across 9 different timeframes (1m to 1M) simultaneously.
Green Row : Uptrend
Red Row : Downtrend
Gray : Neutral/Indeterminate
4. Smart Visuals
Background Colo r: Changes dynamically (Teal for Bullish, Red for Bearish, Gray for Neutral) to give you an instant read of the market state.
Slope Labels : Displays the calculated numeric slope on the chart, helping you visualize the momentum difference between impulse and corrective waves.
Invalidation Levels : Automatically plots the invalidation line (Stop Loss level) based on the market structure.
🛠️ Settings & Inputs
Strategy Settings
Pivot Deviation Length : Sensitivity of the ZigZag calculation (Default: 5). Lower numbers = more sensitive to small swings.
Max Retracement % : The Fibonacci limit for a valid correction (Default: 78.6%).
Min Bars for Live Calc : To prevent noise, the script waits for this many bars after a pivot before calculating the "Live Slope" (Default: 3).
Dashboard Settings
Show Dashboard : Toggle the table on/off.
Timeframe Toggles : Enable/Disable specific timeframes (1m, 5m, 15m, 30m, 1H, 4H, 1D, 1W, 1M) to suit your trading style.
🎯 How to Use
Wait for Background Change : When the background turns Teal, it indicates that a corrective pullback has ended and a new impulse with high velocity has begun.
Check Invalidation : Look at the plotted Stop Loss Level. If price closes below this line, the trade idea is invalid.
Confirm with Dashboard : Use the table to ensure the higher timeframes (e.g., 1H, 4H) align with your current chart's direction for higher probability setups.
Disclaimer : This tool is designed for trend analysis and educational purposes. Past performance (momentum) is not indicative of future results. Always manage your risk.
Defended Price Levels (DPLs) — Melvin Dickover ConceptThis indicator identifies and draws horizontal “Defended Price Levels” (DPLs) exactly as originally described by Melvin E. Dickover in his trading methodology.
Dickover observed that when extreme relative volume and extreme “freedom of movement” (volume-to-price-movement ratio) occur on the same bar, especially on bars with large gaps or unusually large bodies, the closing price (or previous close) of that bar very often becomes a significant future support/resistance level that the market later “defends.”
This script automates the detection of those exact coincident spikes using two well-known public indicators:
Relative Volume (RVI)
• Original idea: Melvin Dickover
• Pine Script implementation used here: “Relative Volume Indicator (Freedom Of Movement)” by LazyBear
Link:
Freedom of Movement (FoM)
• Original idea and calculation: starbolt64
• Pine Script: “Freedom of Movement” by starbolt64
Link:
How this indicator works
Calculates the raw (possibly negative) LazyBear RVI and starbolt64’s exact FoM values
Normalizes and standardizes both over the user-defined lookback
Triggers only when both RVI and FoM exceed the chosen number of standard deviations on the same bar (true Dickover coincident-spike condition)
Applies Dickover’s original price-selection rules (uses current close on big gaps or 2× body expansion candles, otherwise previous close)
Draws a thin maroon horizontal ray only when the new level is sufficiently far from all previously drawn levels (default ≥0.8 %) and the maximum number of levels has not been reached
Keeps the chart clean by limiting the total number of significant defended levels shown
This is not a republish or minor variation of the two source scripts — it is a faithful automation of Melvin Dickover’s specific “defended price line” concept that he manually marked using the coincidence of these two indicators.
Full credit goes to:
Melvin E. Dickover — creator of the Defended Price Levels concept
LazyBear — author of the Relative Volume (RVI) implementation used here
starbolt64 — author of the Freedom of Movement indicator and calculation
Settings (all adjustable):
Standard Deviation Length (default 60)
Spike Threshold in standard deviations (default 2.0)
Minimum distance between levels in % (default 0.8 %)
Maximum significant levels to display (15–80)
Use these horizontal maroon lines as potential future support/resistance zones that the market has previously shown strong willingness to defend.
Thank you to Melvin, LazyBear, and starbolt64 for the original work that made this automation possible.
[CASH] Crypto And Stocks Helper (MultiPack w. Alerts)ATTENTION! I'm not a good scripter. I have just learned a little basics for this project, stolen code from other public scripts and modified it, and gotten help from AI LLM's.
If you want recognition from stolen code please tell me to give you the credit you deserve.
The script is not completely finished yet and contains alot of errors but my friends and family wants access so I made it public.
_________________________________________________________________________________
CASH has multiple indicators (a true all-in-one multipack), guides and alerts to help you make better trades/investments. It has:
- Bitcoin Bull Market Support Band
- Dollar Volume
- 5 SMA and 5 EMA
- HODL Trend (a.k.a SuperTrend) indicator
- RSI, Volume and Divergence indicators w. alerts
More to come as well, like Backburner and a POC line from Volume Profile.
Everything is fully customizable, appearance and off/on etc.
More information and explainations along with my guides you can find in settings under "Input" and "Style".
청산맵[by좐주노]//@version=5
indicator("청산맵 "
, overlay = true
, max_lines_count = 500
, max_labels_count = 500
, max_boxes_count = 500)
//------------------------------------------------------------------------------
//Settings
//-----------------------------------------------------------------------------{
length = input(14, '청산기간 기준 ')
area = input.string('꼬리기준', '측정 범위', options = )
intraPrecision = input(false, 'Intrabar Precision', inline = 'intrabar')
intrabarTf = input.timeframe('1', '' , inline = 'intrabar')
filterOptions = input.string('Count', 'Filter Areas By', options = , inline = 'filter')
filterValue = input.float(0, '' , inline = 'filter')
//Style
showTop = input(true, 'Swing High' , inline = 'top', group = 'Style')
topCss = input(color.red, '' , inline = 'top', group = 'Style')
topAreaCss = input(color.new(color.red, 50), 'Area', inline = 'top', group = 'Style')
showBtm = input(true, 'Swing Low' , inline = 'btm', group = 'Style')
btmCss = input(color.teal, '' , inline = 'btm', group = 'Style')
btmAreaCss = input(color.new(color.teal, 50), 'Area', inline = 'btm', group = 'Style')
labelSize = input.string('Tiny', 'Labels Size', options = , group = 'Style')
//-----------------------------------------------------------------------------}
//Functions
//-----------------------------------------------------------------------------{
n = bar_index
get_data()=>
= request.security_lower_tf(syminfo.tickerid, intrabarTf, get_data())
get_counts(condition, top, btm)=>
var count = 0
var vol = 0.
if condition
count := 0
vol := 0.
else
if intraPrecision
if n > length
if array.size(v ) > 0
for in v
vol += array.get(l , index) < top and array.get(h , index) > btm ? element : 0
else
vol += low < top and high > btm ? volume : 0
count += low < top and high > btm ? 1 : 0
set_label(count, vol, x, y, css, lbl_style)=>
var label lbl = na
var label_size = switch labelSize
'Tiny' => size.tiny
'Small' => size.small
'Normal' => size.normal
target = switch filterOptions
'Count' => count
'Volume' => vol
if ta.crossover(target, filterValue)
lbl := label.new(x, y, str.tostring(vol, format.volume)
, style = lbl_style
, size = label_size
, color = #00000000
, textcolor = css)
if target > filterValue
label.set_text(lbl, str.tostring(vol, format.volume))
set_level(condition, crossed, value, count, vol, css)=>
var line lvl = na
target = switch filterOptions
'Count' => count
'Volume' => vol
if condition
if target < filterValue
line.delete(lvl )
else if not crossed
line.set_x2(lvl, n - length)
lvl := line.new(n - length, value, n, value
, color = na)
if not crossed
line.set_x2(lvl, n+3)
if crossed and not crossed
line.set_x2(lvl, n)
line.set_style(lvl, line.style_dashed)
if target > filterValue
line.set_color(lvl, css)
set_zone(condition, x, top, btm, count, vol, css)=>
var box bx = na
target = switch filterOptions
'Count' => count
'Volume' => vol
if ta.crossover(target, filterValue)
bx := box.new(x, top, x + count, btm
, border_color = na
, bgcolor = css)
if target > filterValue
box.set_right(bx, x + count)
//-----------------------------------------------------------------------------}
//Global variables
//-----------------------------------------------------------------------------{
//Pivot high
var float ph_top = na
var float ph_btm = na
var bool ph_crossed = na
var ph_x1 = 0
var box ph_bx = box.new(na,na,na,na
, bgcolor = color.new(topAreaCss, 80)
, border_color = na)
//Pivot low
var float pl_top = na
var float pl_btm = na
var bool pl_crossed = na
var pl_x1 = 0
var box pl_bx = box.new(na,na,na,na
, bgcolor = color.new(btmAreaCss, 80)
, border_color = na)
//-----------------------------------------------------------------------------}
//Display pivot high levels/blocks
//-----------------------------------------------------------------------------{
ph = ta.pivothigh(length, length)
//Get ph counts
= get_counts(ph, ph_top, ph_btm)
//Set ph area and level
if ph and showTop
ph_top := high
ph_btm := switch area
'Wick Extremity' => math.max(close , open )
'Full Range' => low
ph_x1 := n - length
ph_crossed := false
box.set_lefttop(ph_bx, ph_x1, ph_top)
box.set_rightbottom(ph_bx, ph_x1, ph_btm)
else
ph_crossed := close > ph_top ? true : ph_crossed
if ph_crossed
box.set_right(ph_bx, ph_x1)
else
box.set_right(ph_bx, n+3)
if showTop
//Set ph zone
set_zone(ph, ph_x1, ph_top, ph_btm, ph_count, ph_vol, topAreaCss)
//Set ph level
set_level(ph, ph_crossed, ph_top, ph_count, ph_vol, topCss)
//Set ph label
set_label(ph_count, ph_vol, ph_x1, ph_top, topCss, label.style_label_down)
//-----------------------------------------------------------------------------}
//Display pivot low levels/blocks
//-----------------------------------------------------------------------------{
pl = ta.pivotlow(length, length)
//Get pl counts
= get_counts(pl, pl_top, pl_btm)
//Set pl area and level
if pl and showBtm
pl_top := switch area
'Wick Extremity' => math.min(close , open )
'Full Range' => high
pl_btm := low
pl_x1 := n - length
pl_crossed := false
box.set_lefttop(pl_bx, pl_x1, pl_top)
box.set_rightbottom(pl_bx, pl_x1, pl_btm)
else
pl_crossed := close < pl_btm ? true : pl_crossed
if pl_crossed
box.set_right(pl_bx, pl_x1)
else
box.set_right(pl_bx, n+3)
if showBtm
//Set pl zone
set_zone(pl, pl_x1, pl_top, pl_btm, pl_count, pl_vol, btmAreaCss)
//Set pl level
set_level(pl, pl_crossed, pl_btm, pl_count, pl_vol, btmCss)
//Set pl labels
set_label(pl_count, pl_vol, pl_x1, pl_btm, btmCss, label.style_label_up)
//-----------------------------------------------------------------------------}
Advanced Market Profile & S/R Zones (Pro)Advanced Market Profile & S/R Zones
This indicator brings professional Auction Market Theory to your chart using a custom rolling Volume Profile algorithm. Unlike standard profiles that remain fixed, this tool dynamically calculates the "Fair Value" of the asset based on your specific lookback period (e.g., the last 100 bars).
It automatically highlights the Point of Control (POC), Value Area (VA), and suggests statistical Discount (Buy) and Premium (Sell) zones.
Key Features
Volume Splitting Algorithm:
Most basic scripts dump the entire volume of a candle into a single price point (the average). This script splits the volume across the candle's entire High-Low range. This results in a much smoother, higher-resolution bell curve that accurately reflects price action, especially on higher timeframes like Monthly charts.
Auto-generated Zones:
Green Zone (Discount): Prices below the Value Area Low (VAL). Statistically "cheap."
Red Zone (Premium): Prices above the Value Area High (VAH). Statistically "expensive."
Real-Time Dashboard:
A built-in panel displays the exact price levels for the POC, VAH, and VAL for precise limit order placement, along with the current Market Trend.
How to Use
For Intraday (Day Trading):
Settings: Set Lookback to 100 - 300.
Strategy: Watch for price to open outside the Value Area. If price breaks back inside the Value Area, target the POC (Red Line).
For Macro (Monthly/Weekly Charts):
Settings: Set Lookback to 12 (1 Year) or 60 (5 Years).
Strategy: Identify multi-year structural support. When a monthly candle enters the Green Discount Zone of a 5-year profile, it is often a high-probability institutional entry point.
Trend Logic
The Dashboard indicates trend based on price location relative to value:
Strong Bullish: Price is accepted ABOVE the Value Area.
Strong Bearish: Price is accepted BELOW the Value Area.
Neutral / In VA: Price is chopping inside the Value Area.
Disclaimer
This is a "Rolling Profile." It calculates the profile based on the current lookback window relative to the latest bar. As new bars form, the lookback window shifts, and the profile updates to reflect the new dataset.
MTF EMA Directional Bias -1hr and 4hr A compact, fixed-position table (bottom-right corner) that shows the current slope direction of two higher-timeframe EMAs:
4H EMA 50 → direction over the last 2 bars (UP ↑, DOWN ↓, or FLAT ⏸)
1H EMA 21 → direction over the last 2 bars (UP ↑, DOWN ↓, or FLAT ⏸)
Background color logic:
Green → both 4H and 1H EMAs are sloping upward
Red → both 4H and 1H EMAs are sloping downward
Gray → mixed or flat directions (no confluence)
Additionally draws the actual 1H EMA-21 (purple) and 4H EMA-50 (red) as step-lines on the chart.
MA % Deviation ChannelMA % Deviation Channel — an indicator for measuring price deviation from the moving average
MA % Deviation Channel (MA%DC) is a visual analysis tool that shows how far the current price deviates from a selected moving average, expressed in percentages. The indicator builds dynamic channels based on historical percentage deviations, helping traders identify statistical extremes and use them as potential reversal or continuation zones.
How the indicator works
MA%DC calculates the percentage deviation of High and Low from the chosen MA and stores these values in arrays. Based on the average deviation values, the script plots four key levels:
Avg. High Dev. — average deviation of highs from the MA
Avg. Low Dev. — average deviation of lows from the MA
Avg. Extreme High Dev. — extreme (above-average) deviations of highs
Avg. Extreme Low Dev. — extreme (below-average) deviations of lows
The width of the channel automatically adapts to the selected MA period — the longer the period, the deeper the historical analysis.
Purpose and use cases
MA % Deviation Channel helps:
Evaluate volatility relative to the moving average
Identify overbought and oversold zones based on real price behavior
Filter breakouts and false impulses
Build trend-following and counter-trend strategies using statistical deviations
Advantages
Based on percentage deviation rather than fixed distances
Adaptive to changing market conditions
Supports 5 popular types of moving averages
Settings
MA Source — data source for the moving average
MA Type — moving average type (SMA, EMA, WMA, VWMA, RMA)
MA Length — smoothing period
Visual elements
The moving average line
Average deviation channels
Extreme deviation channels
Color fills between levels for improved readability
Chop + MSS/FVG Retest (Ace v1.6) – IndicatorWhat this indicator does
Name: Chop + MSS/FVG Retest (Ace v1.6) – Indicator
This is an entry model helper, not just a BOS/MSS marker.
It looks for clean trend-side setups by combining:
MSS (Market Structure Shift) using swing highs/lows
3-bar ICT Fair Value Gaps (FVG)
First retest back into the FVG
A built-in chop / trend filter based on ATR and a moving average
When everything lines up, it plots:
L below the candle = Long candidate
S above the candle = Short candidate
You pair this with a higher-timeframe filter (like the Chop Meter 1H/30M/15M) to avoid pressing the button in garbage environments.
How it works (simple explanation)
Chop / Trend filter
Computes ATR and compares each bar’s range to ATR.
If the bar is small vs ATR → more likely CHOP.
If the bar is big vs ATR → more likely TREND.
Uses a moving average:
Above MA + TREND → trendLong zone
Below MA + TREND → trendShort zone
MSS (Market Structure Shift)
Uses swing highs/lows (left/right bars) to track the last significant high/low.
Bullish MSS: close breaks above last swing high with displacement.
Bearish MSS: close breaks below last swing low with displacement.
Those events are marked as tiny triangles (MSS up/down).
A MSS only stays “valid” for a certain number of bars (Bars after MSS allowed).
3-bar ICT FVG
Bullish FVG: low > high
→ gap between bar 3 high and bar 2 low.
Bearish FVG: high < low
→ gap between bar 3 low and bar 2 high.
The indicator stores the FVG boundaries (top/bottom).
Retest of FVG
Watches for price to trade back into that gap (first touch).
That retest is the “entry zone” after the MSS.
Final Long / Short condition
Long (L) prints when:
Recent bullish MSS
Bullish FVG has formed
Price retests the bullish FVG
Environment = trendLong (ATR + above MA)
Not CHOP
Short (S) prints when:
Recent bearish MSS
Bearish FVG has formed
Price retests the bearish FVG
Environment = trendShort (ATR + below MA)
Not CHOP
So the L/S markers are “model-approved entry candles”, not just any random BOS.
Inputs / Settings
Key inputs you’ll see:
ATR length (chop filter)
How many bars to use for ATR in the chop / trend filter.
Lower = more sensitive, twitchy
Higher = smoother, slower to change
Max chop ratio
If barRange / ATR is below this → treat as CHOP.
Min trend ratio
If barRange / ATR is above this → treat as TREND.
Hide MSS/BOS marks in CHOP?
ON = MSS triangles disappear when the bar is classified as CHOP
Keeps your chart cleaner in consolidation
Swing left / right bars
Controls how tight or wide the swing highs/lows are for MSS:
Smaller = more sensitive, more MSS points
Larger = fewer, more significant swings
Bars after MSS allowed
How many bars after a MSS the indicator will still allow FVG entries.
Small value (e.g. 10) = MSS must deliver quickly or it’s ignored.
Larger (e.g. 20) = MSS idea stays “in play” longer.
Visual RR (for info only)
Just for plotting relative risk-reward in your head.
This is not a strategy tester; it doesn’t manage positions.
What you see on the chart
Small green triangle up = Bullish MSS
Small red triangle down = Bearish MSS
“L” triangle below a bar = Long idea (MSS + FVG retest + trendLong + not chop)
“S” triangle above a bar = Short idea (MSS + FVG retest + trendShort + not chop)
Faint circle plots on price:
When the filter sees CHOP
When it sees Trend Long zone
When it sees Trend Short zone
You do not have to trade every L or S.
They’re there to show “this is where the model would have considered an entry.”
How to use it in your trading
1. Use it with a higher-timeframe filter
Best practice:
Use this with the Chop Meter 1H/30M/15M or some other HTF filter.
Only consider L/S when:
Chop Meter = TRADE / NORMAL, and
This indicator prints L or S in the right location (premium/discount, near OB/FVG, etc.)
If higher-timeframe says NO TRADE, you ignore all L/S.
2. Location > Signal
Treat L/S as confirmation, not the whole story.
For shorts (S):
Look for premium zones (previous highs, OBs, fair value ranges above mid).
Want purge / raid of liquidity + MSS down + bearish FVG retest → then S.
For longs (L):
Look for discount zones (previous lows, OBs/FVGs below mid).
Want stop raid / purge low + MSS up + bullish FVG retest → then L.
If you see L/S firing in the middle of a bigger range, that’s where you skip and let it go.
3. Instrument presets (example)
You can tune the ATR/chop settings per instrument:
MNQ (noisy, 1m chart):
ATR length: 21
Max chop ratio: 0.90
Min trend ratio: 1.40
Bars after MSS allowed: 10
GOLD (cleaner, 3m chart):
ATR length: 14
Max chop ratio: 0.80
Min trend ratio: 1.30
Bars after MSS allowed: 20
You can save those as presets in the TV settings for quick switching.
4. How to practice with it
Open replay on a couple of days.
Check Chop Meter → if NO TRADE, just observe.
When Chop Meter says TRADE:
Mark where L/S printed.
Ask:
Was this in premium/discount?
Was there SMT / purge on HTF?
Did the move actually deliver, or did it die?
Screenshot the A+ L/S and the ugly ones; refine:
ATR length
Chop / trend thresholds
MSS lookback
Your goal is to get it to where:
The L/S marks show up mostly in the same places your eye already likes,
and you ignore the rest.
High-Probability Swing & Day Trade Setup - ChannelChannel indicator that I use for Day and Swing Trading
BTC Risk Metric DCA Adapter (3Commas Webhook Strategy)Risk Metric DCA Adapter (3Commas Webhook Strategy) - WORK IN PROGRESS
This Pine Script strategy, originally inspired by the Risk Metric Indicator, is fundamentally engineered as an Adapter to interface with external trading bots like 3Commas via Webhooks. It calculates a dynamic market risk score and translates that score into specific dollar-cost averaging (DCA) entry levels and tiered profit-taking exits.
Key Features & Logic
Risk Metric Calculation (Credit to The Trading Parrot):
The strategy incorporates a complex, multi-timeframe Risk Metric calculation based on daily and weekly moving averages (SMA) and standard deviation (StDev). This metric aims to quantify the current market overextension or compression relative to long-term historical data. The resulting score dictates the level of conviction for a new trade.
Tiered DCA Entry Sizing:
The strategy defines three distinct Buy Levels (L1, L2, L3) corresponding to increasingly favorable (lower) Risk Metric scores.
L1 (Base): Risk is moderate, initiating the minimum defined trade amount.
L2 (Scaled): Risk is low, initiating L1 amount + L2 amount.
L3 (Aggressive): Risk is very low, initiating L1 + L2 + L3 amounts.
Tiered Profit-Taking Exits:
The strategy implements a staggered, partial profit-taking approach based on the Risk Metric rising:
Sell L1 & L2: Closes a percentage of the current position when the Risk Metric reaches defined high thresholds, locking in partial profits.
Sell L3 (Full Exit): Closes the remaining position when the Risk Metric reaches the highest defined threshold.
The Adapter Function (Webhook Integration)
This script is unique because it uses the Pine Script strategy() function to trigger Order Fills, which are necessary to access powerful placeholders in the TradingView alert system.
Trigger Type: The alert must be set to trigger on Any order fill.
Dynamic Webhook Data: Instead of using fixed alert() commands, the strategy generates dynamic labels (e.g., BUY_ENTRY_L3_USD_1000 or SELL_L1_PCT_25) using the strategy.entry and strategy.close commands.
Data Transfer: The alert message then uses the placeholder {{strategy.order.comment}} to pass these dynamic labels to the 3Commas bot, allowing the bot to execute the precise action (e.g., start_deal_with_volume_in_quote_currency or close_deal_at_market_percentage).
Full Strategy Webhook payload
{
"secret": "YOUR_3COMMAS_SECRET_KEY",
"max_lag": "300",
"timestamp": "{{timenow}}",
"trigger_price": "{{close}}",
"tv_exchange": "{{exchange}}",
"tv_instrument": "{{ticker}}",
"action": "{{strategy.order.action}}",
"bot_uuid": "YOUR_BOT_UUID",
"strategy_info": {
"market_position": "{{strategy.market_position}}",
"market_position_size": "{{strategy.market_position_size}}",
"prev_market_position": "{{strategy.prev_market_position}}",
"prev_market_position_size": "{{strategy.prev_market_position_size}}"
},
"order": {
"amount": "{{strategy.order.contracts}}",
"currency_type": "base",
"comment": "{{strategy.order.comment}}"
}
}
Disclaimer: This script is an adapter tool and does not guarantee profit. Trading requires manual configuration of risk settings, bot parameters, and adherence to platform-specific setup instructions.
Trend Rider EMA9/21 + SuperTrend (EN)Trend Rider EMA9/21 + SuperTrend (EN) helps you watch ema 9 and 21 together for a trend.
tdxh short/ This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
// © ChartPrime & User Customized
// 抗插针版:引入实体止损逻辑,专治影线扫损
//@version=5
indicator("SR空单指标 (抗插针版)", shorttitle="SR Anti-Wick", overlay=true, max_boxes_count=500, max_labels_count=500)
Daily vs Intraday Candle Match Strategy고죠 훈의 차트공부방
Gojo Hoon’s Trading Room
전일 종가 대비 현재 일봉 방향과 시간봉 방향이 일치할 때 진입
Trade when current daily direction (vs. previous close) matches the hourly/15-minute candle direction.
RSI to 50 (decimal version) - TemujinTradingSimple indicator that shows the price levels required for the RSI to get to the value of 50.
What I observe is 50 rsi often acts as support or resistance and is a fair indication of bullish/bearish sentiment and price action and bounce/rejection levels.
It provides a table showing current time frame, 4 hr, daily, weekly describing the current rsi value and the price needed for that rsi to get to 50. This table is colored red when bearish at the time frame and green when bullish (as per <50 rsi or >50rsi).
Plots historical lines of each previous candle in the series showing how price interacts.
Updated script to allow manual input of price decimals to enable more assets price to be viewable in the table format.
NICHI Beta (NuwenPham's Ichimoku)# **NuwenPham’s Ichimoku (NICHI)**
**Version BETA.251123a.3.1.2 – Pine Script v6**
**Author:** NuwenPham
**Forked from:** Donovan Wall
**Contributors:** Claude (Anthropic)
**License:** MPL 2.0
---
# **Overview**
**NICHI (Nuwen’s Ichimoku)** is a next-generation Ichimoku system that merges the classical Hosoda Ichimoku with a modular adaptive-smoothing engine, enhanced Kumo logic, directional trend counters, and multi-mode bar coloring.
The indicator includes **two completely separate Ichimoku engines**:
* **Standard Ichimoku** – Traditional Donchian-based Tenkan, Kijun, Senkou A/B, and Chikou
* **Advanced Ichimoku** – Fully customizable Ichimoku using 15+ moving-average filters and enhanced logic
NICHI is designed for modern markets—especially **futures and volatile instruments** (NG, CL, ES, NQ, crypto).
---
# **Key Features**
## **1. Dual Ichimoku Systems**
* **Standard Mode:**
Classic Donchian Ichimoku with Tenkan, Kijun, Senkou A/B, and Chikou.
Clean, faithful implementation.
* **Advanced Mode:**
Every Ichimoku line uses a **selected smoothing filter** (EMA, KAMA, FRAMA, Hull, McGinley, etc.).
Includes directional persistence tracking, enhanced cloud logic, and adaptive bar coloring.
---
## **2. Advanced Filter Engine (15+ Smooth Types)**
Use any of the following for Tenkan, Kijun, Senkou B, or Chikou:
* EMA
* DEMA
* SMA
* SMMA (RMA)
* WMA
* VWMA
* Hull MA
* ALMA
* LSMA (Linear Regression)
* McGinley Dynamic
* KAMA
* FRAMA
* COVWMA
* Moving Median
* 50th Percentile (Nearest Rank)
This transforms Ichimoku into an **adaptive trend system**.
---
## **3. Enhanced Cloud (Kumo) Modeling**
* Independent forward offsets for Span A & Span B
* Cloud colors adapt based on strength, direction, and filter behavior
* Cloud thickness reflects volatility
* Neutral cloud state available when spans disagree
---
## **4. Directional Persistence Counters**
NICHI tracks the **trend streak** of each main component:
* Tenkan rising/falling
* Kijun rising/falling
* Span A rising/falling
* Span B rising/falling
These counters make cloud and line colors more accurate and stable.
---
## **5. Regime-Based Bar Coloring (3 Modes)**
NICHI includes three built-in trading frameworks:
### **Mode 1: Kumo-Based**
Bar color reflects price relative to the cloud:
* Green = Above Kumo
* Red = Below Kumo
* Orange = Inside Kumo
Ideal for **trend-following** and **market regime detection**.
---
### **Mode 2: Tenkan/Kijun-Based**
Bar color reflects momentum structure:
* Green = Price above both Tenkan & Kijun
* Red = Price below both
Designed for **momentum entries and TK breakouts**.
---
### **Mode 3: Chikou-Based**
Bars reflect historical confirmation:
* Green = Chikou > price (offset period)
* Red = Chikou < price
Excellent for **confirmation-first strategies** where accuracy matters most.
---
## **6. Multi-MA Overlay System**
Up to **four optional moving averages**:
* SMA, EMA, SMMA, WMA, HMA, VWMA
* Independent lengths, widths, colors
* Useful for bias, confluence, trend filters
Default: **SMA 200** enabled.
---
## **7. TK Cross Signals**
Both systems show TK crosses:
* Standard TK Cross (classic)
* Advanced TK Cross (filtered version)
Crosses appear with clear markers for entry/exit logic.
---
# **How to Use NICHI**
## **1. Choose Your Engine**
* **Standard:** Clean, classic Ichimoku
* **Advanced:** Adaptive, filter-driven Ichimoku
* **Both:** Comparative analysis
---
## **2. Select Your Filter Type (Advanced Mode)**
Suggested filters:
| Market | Filter Type | Notes |
| ---------------- | ---------------- | -------------------------- |
| Natural Gas (NG) | KAMA or FRAMA | Handles extreme volatility |
| Crude Oil (CL) | McGinley Dynamic | Smooths spikes |
| ES / NQ | SMMA or WMA | Balanced response |
| Crypto | Hull or ALMA | Handles momentum bursts |
| FX | EMA or SMMA | Classic, stable |
---
## **3. Choose a Bar-Color Strategy**
* **Kumo-Based:** Trend following
* **TK-Based:** Momentum and breakouts
* **Chikou-Based:** Highest confirmation/accuracy
Each strategy is valid and intentionally distinct.
---
## **4. Reading the Cloud**
* **Bullish Cloud:** Span A > Span B
* **Bearish Cloud:** Span A < Span B
* **Neutral Cloud:** Disagreement between spans
* **Thick Cloud:** High volatility / stronger structure
* **Thin Cloud:** Weak trend / potential twist
---
## **5. Entry & Exit Concepts**
### **Entries**
* **Momentum Entry:** TK cross with price above the cloud
* **Reversal Entry:** TK cross before a cloud twist
* **Confirmation Entry:** Chikou breaks cleanly above/below past price
### **Exits**
* Price falling through Kijun
* Re-entering the cloud
* Opposite TK cross
* Cloud flipping against position
---
# **Recommended Trading Approaches**
## **Kumo-Based Trend Strategy**
* Long above cloud, short below
* Avoid signals inside cloud
Best for swing/position trading.
---
## **TK-Based Momentum Strategy**
* Enter on Tenkan/Kijun breakout
* Bar color confirms momentum
* Cloud filter optional but helps
Great for high-velocity markets.
---
## **Chikou-Based Confirmation Strategy**
* Enter only when Chikou confirms structure
* Highest accuracy, fewest trades
* Ideal for volatile markets (NG, CL)
---
# **Closing Notes**
NICHI is a **research-grade Ichimoku framework** designed to handle modern volatility where traditional Ichimoku often fails.
It supports scalpers, swing traders, and system developers alike.
Experiment with:
* Filter types
* Cloud offsets
* Bar-color modes
* MA overlays
to match your strategy and market.
COT Net Positions OTCCOT Net Positions Indicator Description
This is a TradingView Pine Script indicator that displays Commitment of Traders (COT) data for any trading instrument.
What it does:
Fetches COT Data - Uses the TradingView COT library to retrieve official CFTC (Commodity Futures Trading Commission) data for the current symbol
Calculates Net Positions for three trader categories:
Commercial (Blue) - Large hedging institutions; represents institutional long/short positioning
Non-Commercial (Yellow) - Large speculators and hedge funds; often considered "smart money"
Retail (Red) - Small individual traders; often considered contrarian indicators
Net Position Calculation - For each category:
Takes Long Positions minus Short Positions
Plots the result on a separate panel below the price chart
Special Symbol Handling - Includes custom mappings for specific commodities:
Copper (HG) → CFTC code 085692
Brazilian Real (LBR) → CFTC code 058644
Use Cases:
Market Bias Detection - See if institutions are mostly long or short
Contrarian Trading - When retail traders are extremely positioned one way, often the market reverses
Trend Confirmation - Non-commercial positioning often aligns with established trends
Support/Resistance - Extreme COT positions can signal market turning points
MA200 Parallel ChannelDynamic MA100 Parallel Bands – Precision S/R Levels
This indicator builds a clean, parallel channel around the 100-period moving average using a fixed ±4 offset.
Because the offset mirrors the short-term MA1 fluctuations, the channel reveals highly accurate support and resistance zones that react instantly to market micro-structure.
Unlike Bollinger Bands—which expand with volatility—this tool stays perfectly parallel and trend-aligned, making breakouts and pullbacks incredibly easy to spot.
How it works:
Centerline: 100-period moving average (MA100)
Upper Band: MA100 + 4
Lower Band: MA100 – 4
MA1 used as a sensitivity reference for micro-trend behavior
Parallel structure ensures stable, predictable levels
Why it’s powerful:
The ±4 channel creates extremely precise S/R zones
Price respecting the lower band = dynamic support
Price rejecting the upper band = dynamic resistance
A clean break above or below the bands highlights strong momentum shifts
Perfect for intraday traders needing structure without noise
Perfect for:
Identifying high-probability bounce levels
Spotting early trend continuation
Confirming MA100 breakouts
Filtering weak signals and fake volatility spikes
If you want razor-sharp support & resistance levels that stay consistent across all timeframes, these MA100 parallel bands deliver exceptional clarity.
RSI Hybrid + EMA Cloud + Swings(15m/2H)RSI Hybrid + EMA Cloud (15m Trend + 2H Momentum)
A dual-timeframe trading system combining fast 15-minute trend structure with higher-timeframe 2-Hour momentum, volume and structural levels.
🧩 What This Indicator Does
This tool blends:
🔹 15m Trend (EMA Cloud) – 2 Points
EMA 7 vs 21 → Short trend
EMA 30 vs 74 → Long trend
Cloud shading highlights bullish/bearish alignment
Faster, intraday trend sensitivity
🔹 2H Momentum (RSI Hybrid) – 3 Points
RSI > 50
RSI > SMA(4)
RSI > SMA(12)
Gives short / medium / long momentum confirmation from the higher timeframe.
🔹 2H Volume Pressure – 1 Point
Volume vs 20-SMA
Mild / Moderate / Strong Bull/Bear
Confirms true participation behind price moves
⭐ Score System (0–6 Total)
Component Points
15m EMA Trend 2
2H RSI Hybrid 3
2H Volume Power 1
Total 6
Interpretation:
5–6 → High-confluence direction
3–4 → Partial confluence
1–2 → Weak bias
0 → No reliable direction
Designed for discretionary and semi-systematic intraday traders.
📊 15m Structural Levels
Includes:
✔ Last confirmed 15m Swing High / Swing Low
Based on close-price pivots, not highs/lows.
✔ Live Running High since last Swing LOW
Tracks how far price has extended upward.
✔ Live Running Low since last Swing HIGH
Tracks downward extension after a swing high.
✔ ATR(15m)
Volatility reference for SL/TP or risk modeling.
These levels help in timing entries, managing stops, and identifying breakout/breakdown zones.
🖥 On-Chart Info Table
Summarizes:
15m EMA short & long trend
2H RSI short/medium/long momentum
RSI vs 50
2H volume power
Bull & Bear score (with breakdown)
Last 15m swing highs/lows
ATR(15m)
Color-coded for clarity
💡 Why Use This Indicator
High-speed 15m trend detection
Higher-TF 2H momentum & volume confirmation
Multi-layered bias presented in a simple score
Built-in structure for more intelligent entries/exits
Works on indices, stocks, FX, crypto
Ideal for intraday traders who want speed + reliability






















