BTC ETF Flow Trading SignalsTracks large money flows (500M+) across major Bitcoin ETFs (IBIT, BTCO, FBTC, ARKB, BITB)
Generates long/short signals based on institutional money movement
Shows flow trends and strength of movements
This script provides a foundation for comparing ETF inflows and Bitcoin price. The effectiveness of the analysis depends on the quality of the data and your interpretation of the results. Key levels of 500M and 350M Inflow/Outflow Enjoy
Collaboration with Vivid Vibrations
Enjoy & improve!
Search in scripts for "etf联接a和c基金是什么意思"
Economic Growth Index (XLY/XLP)Keeping an eye on the macroeconomic environment is an essential part of a successful investing and trading strategy. Piecing together and analysing its complex patterns are important to detect probable changing trends. This may seem complicated, or even better left to experts and gurus, but it’s made a whole lot easier by this indicator, the Economic Growth Index (EGI).
Common sense shows that in an expanding economy, consumers have access to cash and credit in the form of disposable income, and spend it on all sorts of goods, but mainly crap they don’t need (consumer discretionary items). Companies making these goods do well in this phase of the economy, and can charge well for their products.
Conversely, in a contracting economy, disposable income and credit dry up, so demand for consumer discretionary products slows, because people have no choice but to spend what they have on essential goods. Now, companies making staple goods do well, and keep their pricing power.
These dynamics are represented in EGI, which plots the Rate of Change of the Consumer Discretionary ETF (XLY) in relation to the Consumer Staples ETF (XLP). Put simply, green is an expanding phase of the economy, and red shrinking. The signal line is the market, a smoothed RSI of the S&P500. Run this on a Daily timeframe or higher. Check it occasionally to see where the smart money is heading.
Blackrock Spot ETF Premium BTCUSD (COINBASE) V1I created an indicator that takes the spot BTC/USD pair from major exchanges and compares it to the Spot BTC/USD pair on Coinbase that institutions will use for their Spot ETFs.
Blackrock Spot ETF Premium BTCUSD (COINBASE)
I suspect we will see a new "Kimchi Premium" where the Spot ETF pressures from institutions will raise the Coinbase Bitcoin price by a factor of 10-50% premium to the other exchanges.
Naturally excess coins from other exchanges will flow into Coinbase to capture this.
This indicator should be good for some time until one of the other exchanges delist or stop using BTCUSD "spot" If it breaks it I will update it if I remember.
FederalXBT,
Convert ETF to Futures/IndexThis indicator is used to automatically map an ETF's VWAP and 10 levels above and below the strike of your choice, to the futures or index instrument currently being viewed/traded. This works very well when using both SPY to ES/MES/SPX or QQQ to NQ/MNQ/NDX to plot the ETF strikes and can lead to some incredible trades, especially when trading level to level. Since SPY, QQQ, IWM, and DIA have the same price action as their futures iteration, there seems to be a direct correlation between their levels and VWAP . This indicator is made to easily map these key levels to the appropriate futures instrument. If you have a way to measure GEX centered around a certain level, I recommend color coding the lines to help indicate whether the level will have strong positive or negative gamma hedging associated with it.
NIFTY / BANKNIFTY ETF SIP NOTIFIERNIFTY / BANKNIFTY - ETF SIP NOTIFIER
STUDY concept -
- As a market investor, one cannot time the market.
- Specailly, working professionals and job holders don't have time for market tracking.
- The idea of the script is - When Nifty closes below 2% previous day high, market has corrected and it's available at a discount w.r.t. previous day
- One can then invest in NIFTY / BANKNIFTY via ETF option on same or next day.
- If you like this idea, Save this script and add alert condition of this script in NIFTY / BANKNIFTY chart.
- One can get notification on TradingView mobile app or via email when the criteria is met.
- Logic can be applied to investing in INDEXES , NIFTY, BANKNIFTY.
Logic may be improved later.
NOTE - Investing is a serious and risky business. Profit / Loss from this investing idea is sole responsibility of the investor. This script is for education and learning purpose.
Oil ETF VolumeDirexxion Daily has both 'bear' and 'bull' oil ETFs. This tracks the volume in both combined. It also tracks them individually: the bear ETF is the red line, and bull the green.
NOTE: the color of the volume bars is determined by whatever ticker you're currently looking at, and whether current close is gt/lt previous close. It is intended to be used while looking at the USOIL chart. The colors will be inverted if you're looking at the 'bear' ETF! as the higher closes will actually mean price is going down :D
Standardized Leveraged ETF Fund of FlowsThis indicator tracks and standardizes the 3-month fund flows of major leveraged ETFs across different asset classes, including equities, gold, and bonds.
The fund flows are summed over a 3-month period (63 trading days) and then standardized using a 500-day rolling mean and standard deviation.
The resulting normalized fund flow values are plotted in three distinct colors:
Blue for Equities Fund Flows
Yellow for Gold Fund Flows
Green for Bond Fund Flows
CE - 42MACRO Fixed Income and Macro This is Part 2 of 2 from the 42MACRO Recreation Series
However, there will be a bonus Indicator coming soon!
The CE - 42MACRO Fixed Income and Macro Table is a next level Macroeconomic and market analysis indicator.
It aims to provide a probabilistic insight into the market realized GRID Macro regimes,
track a multiplex of important Assets, Indices, Bonds and ETF's to derive extra market insights by showing the most important aggregates and their performance over multiple timeframes... and what that might mean for the whole market direction.
For traders and especially investors, the unique functionalities will be of high value.
Quick guide on how to use it:
docs.google.com
WARNING
By the nature of the macro regimes, the outcomes are more accurate over longer Chart Timeframes (Week to Months).
However, it is also a valuable tool to form an advanced,
market realized, short to medium term bias.
NOTE
This Indicator is intended to be used alongside the 1nd part "CE - 42MACRO Equity Factor"
for a more wholistic approach and higher accuracy.
Methodology:
The Equity Factor Table tracks specifically chosen Assets to identify their performance and add the combined performances together to visualize 42MACRO's GRID Equity Model.
For this it uses the below Assets:
Convertibles ( AMEX:CWB )
Leveraged Loans ( AMEX:BKLN )
High Yield Credit ( AMEX:HYG )
Preferreds ( NASDAQ:PFF )
Emerging Market US$ Bonds ( NASDAQ:EMB )
Long Bond ( NASDAQ:TLT )
5-10yr Treasurys ( NASDAQ:IEF )
5-10yr TIPS ( AMEX:TIP )
0-5yr TIPS ( AMEX:STIP )
EM Local Currency Bonds ( AMEX:EMLC )
BDCs ( AMEX:BIZD )
Barclays Agg ( AMEX:AGG )
Investment Grade Credit ( AMEX:LQD )
MBS ( NASDAQ:MBB )
1-3yr Treasurys ( NASDAQ:SHY )
Bitcoin ( AMEX:BITO )
Industrial Metals ( AMEX:DBB )
Commodities ( AMEX:DBC )
Gold ( AMEX:GLD )
Equity Volatility ( AMEX:VIXM )
Interest Rate Volatility ( AMEX:PFIX )
Energy ( AMEX:USO )
Precious Metals ( AMEX:DBP )
Agriculture ( AMEX:DBA )
US Dollar ( AMEX:UUP )
Inverse US Dollar ( AMEX:UDN )
Functionalities:
Fixed Income and Macro Table
Shows relative market Asset performance
Comes with different Calculation options like RoC,
Sharpe ratio, Sortino ratio, Omega ratio and Normalization
Allows for advanced market (health) performance
Provides the calculated, realized GRID market regimes
Informs about "Risk ON" and "Risk OFF" market states
Visuals - for your best experience only use one (+ BarColoring) at a time:
You can visualize all important metrics:
- GRID regimes of the currently chosen calculation type
- Risk On/Risk Off with background colouring and additional +1/-1 values
- a smoother GRID model
- a smoother Risk On/ Risk Off metric
- Barcoloring for enabled metric of the above
If you have more suggestions, please write me
Fixed Income and Macro:
The visualisation of the relative performance of the different assets provides valuable information about the current market environment and the actual market performance.
It furthermore makes it possible to obtain a deeper understanding of how the interconnected market works and makes it simple to identify the actual market direction,
thus also providing all the information to derive overall market health, market strength or weakness.
Utility:
The Fixed Income and Macro Table is divided in 4 Columns which are the GRID regimes:
Economic Growth:
Goldilocks
Reflation
Economic Contraction:
Inflation
Deflation
Top 5 Fixed Income/ Macro Factors:
Are the values green for a specific Column?
If so then the market reflects the corresponding GRID behavior.
Bottom 5 Fixed Income/ Macro Factors:
Are the values red for a specific Column?
If so then the market reflects the corresponding GRID behavior.
So if we have Goldilocks as current regime we would see green values in the Top 5 Goldilocks Cells and red values in the Bottom 5 Goldilocks Cells.
You will find that Reflation will look similar, as it is also a sign of Economic Growth.
Same is the case for the two Contraction regimes.
******
This Indicator again is based to a majority on 42MACRO's models.
I only brought them into TV and added things on top of it.
If you have questions or need a more in-depth guide DM me.
GM
RSI - S&P Sector ETFsThe script displays RSI of each S&P SPDR Sector ETF
XLB - Materials
XLC - Communications
XLE - Energy
XLF - Financials
XLI - Industrials
XLK - Technology
XLP - Consumer Staples
XLRE - Real Estate
XLU - Utilities
XLV - Healthcare
XLY - Consumer Discretionary
It is meant to identify changes in sector rotation, compare oversold/overbought signals of each sector, and/or any price momentum trading strategy applicable to a trader.
InfoPanel - SeasonalityThis panel will show which is the best month to buy a stock, index or ETF or even a cryptocurrency in the past 5 years.
Script to use only with MONTHLY timeframe.
Thanks to: RicardoSantos for his hard work.
Please use comment section for any feedback.
Smart Breadth [smartcanvas]Overview
This indicator is a market breadth analysis tool focused on the S&P 500 index. It visualizes the percentage of S&P 500 constituents trading above their 50-day and 200-day moving averages, integrates the McClellan Oscillator for advance-decline analysis, and detects various breadth-based signals such as thrusts, divergences, and trend changes. The indicator is displayed in a separate pane and provides visual cues, a summary label with tooltip, and alert conditions to highlight potential market conditions.
The tool uses data symbols like S5FI (percentage above 50-day MA), S5TH (percentage above 200-day MA), ADVN/DECN (S&P advances/declines), and optionally NYSE advances/declines for certain calculations. If primary data is unavailable, it falls back to calculated breadth from advance-decline ratios.
This indicator is intended for educational and analytical purposes to help users observe market internals. My intention was to pack in one indicator things you will only find in a few. It does not provide trading signals as financial advice, and users are encouraged to use it in conjunction with their own research and risk management strategies. No performance guarantees are implied, and historical patterns may not predict future market behavior.
Key Components and Visuals
Plotted Lines:
Aqua line: Percentage of S&P 500 stocks above their 50-day MA.
Purple line: Percentage of S&P 500 stocks above their 200-day MA.
Optional orange line (enabled via "Show Momentum Line"): 10-day momentum of the 50-day MA breadth, shifted by +50 for scaling.
Optional line plot (enabled via "Show McClellan Oscillator"): McClellan Oscillator, colored green when positive and red when negative. Can use actual scale or normalized to fit breadth percentages (0-100).
Horizontal Levels:
Dotted green at 70%: "Strong" level.
Dashed green at user-defined green threshold (default 60%): "Buy Zone".
Dashed yellow at user-defined yellow threshold (default 50%): "Neutral".
Dotted red at 30%: "Oversold" level.
Optional dotted lines for McClellan (when shown and not using actual scale): Overbought (red), Oversold (green), and Zero (gray), scaled to fit.
Background Coloring:
Green shades for bullish/strong bullish states.
Yellow for neutral.
Orange for caution.
Red for bearish.
Signal Shapes:
Rocket emoji (🚀) at bottom for Zweig Breadth Thrust trigger.
Green circle at bottom for recovery signal.
Red triangle down at top for negative divergence warning.
Green triangle up at bottom for positive divergence.
Light green triangle up at bottom for McClellan oversold bounce.
Green diamond at bottom for capitulation signal.
Summary Label (Right Side):
Displays current action (e.g., "BUY", "HOLD") with emoji, breadth percentages with colored circles, McClellan value with emoji, market state, risk/reward stars, and active signals.
Hover tooltip provides detailed breakdown: action priority, breadth metrics, McClellan status, momentum/trend, market state, active signals, data quality, thresholds, recent changes, and a general recommendation category.
Calculations and Logic
Breadth Percentages: Derived from S5FI/S5TH or calculated from advances/(advances + declines) * 100, with fallback adjustments.
McClellan Oscillator: Difference between fast (default 19) and slow (default 39) EMAs of net advances (advances - declines).
Momentum: 10-day change in 50-day MA breadth percentage.
Trend Analysis: Counts consecutive rising days in breadth to detect upward trends.
Breadth Thrust (Zweig): 10-day EMA of advances/total issues crossing from below a bottom level (default 40) to above a top level (default 61.5). Can use S&P or NYSE data.
Divergences: Compares S&P 500 price highs/lows with breadth or McClellan over a lookback period (default 20) to detect positive (bullish) or negative (bearish) divergences.
Market States: Determined by breadth levels relative to thresholds, trend direction, and McClellan conditions (e.g., strong bullish if above green threshold, rising, and McClellan supportive).
Actions: Prioritized logic (0-10) selects an action like "BUY" or "AVOID LONGS" based on signals, states, and conditions. Higher priority (e.g., capitulation at 10) overrides lower ones.
Alerts: Triggered on new occurrences of key conditions, such as breadth thrust, divergences, state changes, etc.
Input Parameters
The indicator offers customization through grouped inputs, but the use of defaults is encouraged.
Usage Notes
Add the indicator to a chart of any symbol (though designed around S&P 500 data; works best on daily or higher timeframes). Monitor the label and tooltip for a consolidated view of conditions. Set up alerts for specific events.
This script relies on external security requests, which may have data availability issues on certain exchanges or timeframes. The fallback mechanism ensures continuity but may differ slightly from primary sources.
Disclaimer
This indicator is provided for informational and educational purposes only. It does not constitute investment advice, financial recommendations, or an endorsement of any trading strategy. Market conditions can change rapidly, and users should not rely solely on this tool for decision-making. Always perform your own due diligence, consult with qualified professionals if needed, and be aware of the risks involved in trading. The author and TradingView are not responsible for any losses incurred from using this script.
AI - 200 EMA with Offsets StrategyLong when close price crosses above +4% offset 200 day EMA
Sell when close price crosses below -6.5% offset 200 day EMA
Major Support and Resistance LevelsSupport and Resistance Levels shows daily with the Green and Red lines. Previous days with the crosses.
Adaptive Confluence StrategyAdaptive Confluence Strategy brings institutional discipline to retail charts — blending adaptive EMA crossovers, RSI, VWAP, and higher-timeframe filters with ATR-driven risk management and smart position sizing to help traders capture trends with confidence.
Adaptive EMA Crossovers – auto-adjusted for intraday, daily, or weekly charts.
Multi-Factor Confluence – optional RSI filter, VWAP alignment (intraday), and higher timeframe EMA trend confirmation.
ATR-Based Risk Management – stop loss, take profit, and optional Chandelier trailing stop.
Position Sizing Guidance – suggested trade size and risk/reward metrics displayed on chart.
Flexible Use – suitable for both short-term day trading and longer-term swing setups.
Back test & Refine – built-in strategy logic for historical testing and optimization.
Overview:
A multi-factor trend-following strategy designed for both intraday
and swing trading. The system combines EMA crossovers with optional
RSI filters, VWAP confluence (intraday), and higher timeframe trend
confirmation. Risk management is enforced through ATR-based stop
loss / take profit and an optional ATR Chandelier trailing stop.
Position sizing guidance is included to assist with consistent
risk-per-trade allocation.
// Disclaimer:
// This script is for educational and research purposes only.
// Past performance in backtests does not guarantee future results.
// Use at your own risk.
Elliott Wave Rule EngineWhat this tool does
The indicator scans price for two concurrent swing structures—a Small (shorter-degree) and a Large (higher-degree) set—then applies an Elliott/NeoWave rule engine to the most recent 5-swing motive (1-2-3-4-5) or 3-swing corrective (A-B-C). It produces:
Blue lines for Small swings and Orange lines for Large swings.
A rule dashboard (optional) showing PASS/FAIL/WARN for core rules & guidelines.
Buy/Sell labels when (a) a valid motive completes and (b) loop “consensus,” alignment, and scoring gates are satisfied.
Reading the chart
Small swings: thin blue segments, built from your Small settings.
Large swings: thicker orange segments, from your Large settings.
Background tint: faint green when a motive (impulse/diagonal) is valid right now on Small.
Labels (if enabled):
“1…5” or “A-B-C” markers on the latest detected structure.
Buy/Sell label at the last pivot when all gates pass; text may include a score %.
How it works
For both Small and Large degrees the script:
- Loops over all (left, right) combinations you specify (e.g., Small Left = 3..6, Right = 0..0) and calls ta.pivothigh/low.
- Aggregates the results:
- Keeps the most extreme pivot found in the loop (highest high or lowest low) that’s newer than the last accepted swing.
- Gates acceptance by minimum % change versus the last opposite swing (inside the loop) and a post-aggregation filter (Small Minimum swing %, Large Minimum swing %).
- Merges back-to-back same-type swings (HH or LL) by keeping only the more extreme one.
- Keeps only the last N=lookbackWaves swings (default 100).
- Consensus (used for signals) comes from the loop counts:
- sBuyConsensus = small L-count / total-combos (bullish bias)
- sSellConsensus = small H-count / total-combos (bearish bias)
(and the same for Large). This is a data-driven “how many combos agreed” measure.
2) Rule engine (Impulse/Diagonal vs. Corrective)
When there are at least 6 Small swings, the engine tests 1-2-3-4-5:
Hard rules (must pass for an Impulse):
- Wave-2 not > 100% of Wave-1 (no retrace beyond start of W1).
- Wave-3 not the shortest among 1,3,5.
- Wave-4 doesn’t overlap Wave-1 (if it does, structure may be a Diagonal).
- Diagonal eligibility: Rules 1 & 2 pass but Rule 3 fails ⇒ eligible as a Diagonal (
Guidelines (7 checks, count toward a threshold you set):
- W2 retraces a Fib level (within ±fibTol).
- W4 retraces a Fib level (within ±fibTol).
- W3 strongest momentum (speed = |Δprice| / bars).
- Alternation: W2 vs W4 have meaningfully different “sharpness” (price per bar), threshold altSlopeThr.
- Proportion (Price): |W1| and |W3| within propTolP× each other.
- Proportion (Time): W1W3 and W2W4 durations within propTolT×.
- W5 weaker than W3 (momentum divergence proxy).
A Motive is valid if:
- Impulse: all 3 hard rules pass and guideline passes ≥ Min guideline passes.
- Diagonal: diagonal-eligible and guideline passes ≥ Min guideline passes.
- if motive fails, the engine still evaluates ABC as Zigzag and Flat to populate the table:
- Zigzag: B shallower than ~0.618A; C ≈ A or 1.618A (±fibTol).
- Flat: B ≥ ~0.9A; expanded flat if B > 1.0A and C in *A; “running” note if C < A.
3) Signal logic (consensus-gated & scored)
Signals fire only on new Small pivots and only if a Small motive just validated:Direction comes from the motive’s W1 (up = bull, down = bear).
Consensus checks (from the loop):
Use Sell consensus if the last pivot is a High, or Buy consensus if it’s a Low.Require it ≥ Min SMALL loop consensus and ahead of the opposite side by at least Min consensus margin.If you also require Large quality: check the corresponding Large consensus ≥ Min LARGE loop consensus.
Alignment: If Require small/large directional alignment is ON, Small and Large directions must match (or the Large motive must be complete).
Score:
- If Large not required: finalScore = smallConsensus × smallQuality.
- If Large required: finalScore = smallConsensus × smallQuality × largeQuality.
- Need finalScore ≥ Min final score.
When all gates pass, you’ll see “Buy xx%” or “Sell xx%” at the pivot.
Inputs (explained):
- Smaller Wave Swing Detection (Looped)
- Small Left Min / Max (default 3..6): ta.pivot* left widths to scan.
- Small Right Min / Max (default 0..0): right widths to scan (0 = earliest confirmation).
- Small Minimum swing % (post-aggregation) (0.3%): filters out tiny swings after the loop.
- Larger Wave Swing Detection (Looped)
- Large Left Min / Max (100..200) and Right Min/Max (0..0): higher-degree scan (defaults are big; adjust for intraday).
- Large Minimum swing % (post-aggregation) (1.5%).
- Loop Filters (inside the loop)
- Small loop min % change (0.20%): a candidate pivot counts only if move vs. last opposite Small swing ≥ this.
- Large loop min % change (1.50%): same idea for Large.
Rule Engine Tolerances
- Fibonacci tolerance (±%) (0.05 = 5%): closeness to Fib levels.
-Same-degree TIME proportion max (x) (2.00×) and PRICE proportion max (x) (3.00×).
- Alternation slope ratio threshold (0.10): higher = stricter alternation.
- Min guideline passes (0–7) (5): threshold for motive validity.
- Signal Probability (Loop Consensus)
- Min SMALL loop consensus (0.60).
- Min LARGE loop consensus (0.50) (used only if Large validation matters).
- Min consensus margin vs opposite (0.10): e.g., 0.60 vs 0.45 fails (margin 0.15 passes).
Require LARGE 1–5 valid (or diagonal) for signal (off by default).
Min final score (0.20): gate on the composite score.
Annotate label with score % (on).
WARN (orange): guideline not met—pattern can still be valid if total passes ≥ Min guideline passes.
FAQ
Q: Why did I get a diagonal instead of an impulse?
A: Wave-4 overlapped Wave-1 (Rule 3). If Rules 1 & 2 pass and guidelines meet your minimum, it’s eligible as a Diagonal.
Q: Where do Buy/Sell labels come from?
A: Only after a valid Small motive at a new pivot, and only if consensus, alignment, and final score gates pass (per your settings).
Q: It “missed” a wave in hindsight.
A: Pivots require right bars to confirm; extremely tight settings can filter that swing; adjust Small min % or ranges.
Q: Are there repaints?
A: No, It uses standard pivot confirmation; until a pivot is confirmed, recent swings can evolve. After confirmation, lines/labels are stable.
Limitations & disclaimers
Elliott/NeoWave rules are heuristics; markets are messy. Treat outputs as structured context, not certainty.
Consensus is pattern-scan agreement, not probability of profit Not investment advice; always couple with risk management.
Custom RSI with Dual Smoothing + Bias Bands + ZonesRSI indicator with two layers of smoothing, key levels (20, 40, 50, 60, 80), and color-coded background zones for bullish, bearish, and neutral bias.
Great for spotting momentum, trend direction, and overbought/oversold conditions across any timeframe.
Smart Market Structure🔹 What it does:
Detects swing highs & lows automatically
Marks Break of Structure (BOS) and Market Structure Shifts (MSS) in real time
Plots Order Blocks and auto-removes them if invalidated
Colors candles by market structure bias (bullish / bearish)
Comes with a built-in Dashboard showing:
Last BOS & MSS direction
Current trend bias
Swings since last MSS
Active Bullish/Bearish OB count
A Trend Strength Meter to gauge momentum
🔹 Goal:
To give traders a clearer picture of price action, so instead of staring at raw candles and second-guessing, you get structure + context instantly.
Source: www.reddit.com
heat map Last Close (Green/Red) 1-5-15-30-60-120m candle chartheat map Last Close (Green/Red) 1-5-15-30-60-120m candle chart
MTF confluence 1m, 5m, 15m, 30m, 1hr, 2hr indociator (gree/ red)shows 1m, 5m, 15m, 30m, 1hr, 2hr candle charts either being green or red to show major trend forming up or down ( shows up as an indicator under chart)
Current Day H/L & Previous/Premarket H/LPuts dashed lines on the chart for Previous Day and Premarket High and Low. Also moves a line along for current day high and low.
Draw Trend LinesSometimes the simplest indicators help traders make better decisions. This indicator draws simple trend lines, the same lines you would draw manually.
To trade with an edge, traders need to interpret the recent price action, whether it's noisy or choppy, or it's trending. Trend Lines will help traders with that interpretation.
The lines drawn are:
1. lower tops
2. higher bottoms
Because trends are defined as higher lows, or lower highs.
When you see "Wedges", formed by prices chopping between top and bottom trend lines, that's noisy environment not to be traded. When you learn to "stop yourself", you already have an edge.
Often when you see a trend, it's still not too late. Trend will continue until it doesn't. But the caveat is a very steep trend is unlikely to continue, because buying volume is extremely unbalanced to cause the steep trend, and that volume will run out of energy. (Same on the sell side of course)
Trends can reverse, and when price action breaks the trend line, Breakout/Breakdown traders can take this as an entry signal.
Enjoy, and good trading!
STRAT 3-2-2 (30m) • Upcoming / Approach / Entry + AlertsThis indicator is built for The STRAT trading method, specifically the 3-2-2 reversal pattern. It monitors price action on the 30-minute timeframe (HTF = 30m) and visually/alert-wise highlights where a 3-2-2 setup, approach, or entry trigger occurs.
---
⚙️ How it works
1. Detects bar types:
3 (Outside Bar) = range breaks both high & low of the previous bar
2u (Up bar) = higher high, not outside
2d (Down bar) = lower low, not outside
1 (Inside bar) = fully contained within prior bar
2. Looks for 3-2-2 setups:
Bullish 3-2-2 = 3 → 2d → 2u (expect reversal UP)
Bearish 3-2-2 = 3 → 2u → 2d (expect reversal DOWN)
3. Defines trigger levels:
Bullish trigger = high of the first “2d” bar
Bearish trigger = low of the first “2u” bar
4. Signals 3 phases:
Upcoming: pattern is forming, second “2” hasn’t triggered yet
Approach: price comes within 50% (adjustable) of the trigger level
Entry: price breaks the trigger (actual reversal confirmation)
5. Visualization:
Labels above/below candles show “Approach” and “Entry”
Background or bar colors (toggle in settings) highlight Setup / Approach / Entry
Optional dotted line marks the trigger level for clarity
---
🔔 Alerts
Two alert systems are built in:
1. Safe static conditions (for normal TradingView alert setup):
APPROACH: Bullish 3-2-2 (30m)
APPROACH: Bearish 3-2-2 (30m)
ENTRY: Bullish 3-2-2 (30m)
ENTRY: Bearish 3-2-2 (30m)
2. Dynamic messages (using alert() calls with price info):
If you create an alert with “Any alert() function call”, the pop-up will include the trigger price.
---
📋 Inputs (Settings)
Signal timeframe (HTF) → default 30m
Confirm signals at HTF bar close → waits for bar close (non-repainting)
Approach = % of first '2' bar range → default 50%
Show labels → On/Off
Color candles instead of background → toggle between candle color vs. chart background