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!
Cerca negli script per "芯片龙头etf"
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.
Algo + Trendlines :: Medium PeriodThis indicator helps me to avoid overlooking Trendlines / Algolines. So far it doesn't search explicitly for Algolines (I don't consider volume at all), but it's definitely now already not horribly bad.
These are meant to be used on logarithmic charts btw! The lines would be displayed wrong on linear charts.
The biggest challenge is that there are some technical restrictions in TradingView, f. e. a script stops executing if a for-loop would take longer than 0.5 sec.
So in order to circumvent this and still be able to consider as many candles from the past as possible, I've created multiple versions for different purposes that I use like this:
Algo + Trendlines :: Medium Period : This script looks for "temporary highs / lows" (meaning the bar before and after has lower highs / lows) on the daily chart, connects them and shows the 5 ones that are the closest to the current price (=most relevant). This one is good to find trendlines more thoroughly, but only up to 4 years ago.
Algo + Trendlines :: Long Period : This version looks instead at the weekly charts for "temporary highs / lows" and finds out which days caused these highs / lows and connects them, Taking data from the weekly chart means fewer data points to check whether a trendline is broken, which allows to detect trendlines from up to 12 years ago! Therefore it misses some trendlines. Personally I prefer this one with "Only Confirmed" set to true to really show only the most relevant lines. This means at least 3 candle highs / lows touched the line. These are more likely stronger resistance / support lines compared to those that have been touched only twice.
Very important: sometimes you might see dotted lines that suddenly stop after a few months (after 100 bars to be precise). This indicates you need to zoom further out for TradingView to be able to load the full line. Unfortunately TradingView doesn't render lines if the starting point was too long ago, so this is my workaround. This is also the script's biggest advantage: showing you lines that you might have missed otherwise since the starting bars were outside of the screen, and required you to scroll f. e back to 2015..
One more thing to know:
Weak colored line = only 2 "collision" points with candle highs/lows (= not confirmed)
Usual colored line = 3+ "collision" points (= confirmed)
Make sure to move this indicator above the ticker in the Object Tree, so that it is drawn on top of the ticker's candles!
More infos: www.reddit.com
Customizable EMA 10/20/50/100Customizable EMA indicator. Fully adjustable with inputs so you can change EMA lengths and colors directly from the indicator settings panel.
EMA20 Entry with Lei Teacher Strategy_Trend_Follow_RuleEMA20 Entry with Lei Teacher Strategy Trend Follow Entry Alert
VultureThis indicator ("vulture") is the volume of a candle divided by the spread.
When higher than 2 standard deviations, it suggests demand aggressively opposing supply and vice versa.
When lower than 2 standard deviations, it suggests demand hardly being opposed by supply or vice versa.
E.g., if the vulture is very high and volume is also very high, this indicates high institutional activity (who is usually right) against the herd (who is usually wrong). If the vulture is very low and volume is very high, this suggests a mark up or mark down. If vulture is very high and volume is very low, whilst prices are climbing up to a resistance area, the low volume climb is less likely an ease of movement, and more likely to be a significant "no demand" candle, and so prices are likely on the verge of a reversal back to the downside.
VolumeVolume with standard deviations.
Helps to identify moderately high/low volume and very high/low volume.
Low volume indicates less market participation. High volume indicates higher market participation.
It forecasts potential changes of sentiment.
Volatility Forecast/*==============================================================================
Volatility Forecast — Publishable Documentation
Author: @BB_9791
License: Mozilla Public License 2.0
WHAT THIS INDICATOR SHOWS
- A daily volatility estimate in percent points, called sigma_day.
- A slow volatility anchor, the 10-year EMA of sigma_day.
- A blended volatility series in percent points:
sigma_blend = (1 − p) * sigma_day + p * EMA_10y(sigma_day)
where p is the Slow weight %, default 30.
- Optional annualization by multiplying by 16, this is a daily-to-annual
conversion used by Robert Carver in his writings.
METHODOLOGY, CREDIT
The estimator follows the approach popularized by Robert Carver
("Systematic Trading", "Advanced Futures Trading Strategies", blog qoppac).
Current daily volatility is computed as an exponentially weighted standard
deviation of daily percent returns, with alpha = 2 / (span + 1).
The slow leg is a long EMA of that volatility series, about 10 years.
The blend uses fixed weights. This keeps the slow leg meaningful through
large price level changes, since the blend is done in percent space first.
MATH DETAILS
Let r_t be daily percent return:
r_t = 100 * (Close_t / Close_{t−1} − 1)
EWMA mean and variance:
m_t = α * r_t + (1 − α) * m_{t−1}
v_t = α * (r_t − m_t)^2 + (1 − α) * v_{t−1}
where α = 2 / (span_current + 1)
Current daily sigma in percent points:
sigma_day = sqrt(v_t)
Slow leg:
sigma_10y = EMA(sigma_day, span_long)
Blend:
sigma_blend = (1 − p) * sigma_day + p * sigma_10y
Annualized option:
sigma_ann = 16 * sigma_blend
INPUTS
- Threshold (percent points): horizontal guide level on the chart.
- Short term span (days): EW stdev span for sigma_day.
- Long term span (days): EMA span for the slow leg, choose about 2500 for 10 years.
- Slow weight %: p in the blend.
- Annualize (x16): plot daily or annualized values.
- Show components: toggles Current and 10y EMA lines.
- The script uses the chart symbol by default.
PLOTS
- Blended σ% as the main line.
- Optional Current σ% and 10y EMA σ%.
- Editable horizontal threshold line in the same units as the plot
(percent points per day or per year).
- Optional EMA 9 and EMA 20 cloud on the blended series, green for uptrend
when EMA 9 is above EMA 20, red otherwise. Opacity is configurable.
HOW TO READ
- Values are percent points of movement per day when not annualized,
for example 1.2 means about 1.2% typical daily move.
- With annualize checked, values are percent points per year, for example 18
means about 18% annualized volatility.
- Use the threshold and the EMA cloud to mark high or low volatility regimes.
NOTES
- All calculations use daily data via request.security at the chart symbol.
- The blend is done in percent space, then optionally annualized, which avoids
bias from the price level.
- This script does not produce trading signals by itself, it is a risk and
regime indicator.
CREDITS
Volatility forecasting method and scaling convention credited to Robert Carver.
See his books and blog for background and parameter choices.
VERSION
v1.0 Initial public release.
==============================================================================*/
ATR Extension from Moving Average, with Robust Sigma Bands
# ATR Extension from Moving Average, with Robust Sigma Bands
**What it does**
This indicator measures how far price is from a selected moving average, expressed in **ATR multiples**, then overlays **robust sigma bands** around the long run central tendency of that extension. Positive values mean price is extended above the MA, negative values mean price is extended below the MA. The signal adapts to volatility through ATR, which makes comparisons consistent across symbols and regimes.
**Why it can help**
* Normalizes distance to an MA by ATR, which controls for changing volatility
* Uses the **bar’s extreme** against the MA, not just the close, so it captures true stretch
* Computes a **median** and **standard deviation** of the extension over a multi-year window, which yields simple, intuitive bands for trend and mean-reversion decisions
---
## Inputs
* **MA length**: default 50, options 200, 64, 50, 20, 9, 4, 3
* **MA timeframe**: Daily or Weekly. The MA is computed on the chosen higher timeframe through `request.security`.
* **MA type**: EMA or SMA
* **Years lookback**: 1 to 10 years, default 5. This sets the sample for the median and sigma calculation, `years * 365` bars.
* **Line width**: visual width of the plotted extension series
* **Table**: optional on-chart table that displays the current long run **median** and **sigma** of the extension, with selectable text size
**Fixed parameters in this release**
* **ATR length**: 20 on the daily timeframe
* **ATR type**: classic ATR. ADR percent is not enabled in this version.
---
## Plots and colors
* **Main plot**: “Extension from 50d EMA” by default. Value is in **ATR multiples**.
* **Reference lines**:
* `median` line, black dashed
* +2σ orange, +3σ red
* −2σ blue, −3σ green
---
## How it is calculated
1. **Moving average** on the selected higher timeframe: EMA or SMA of `close`.
2. **Extreme-based distance** from MA, as a percent of price:
* If `close > MA`, use `(high − MA) / close * 100`
* Else, use `(low − MA) / close * 100`
3. **ATR percent** on the daily timeframe: `ATR(20) / close * 100`
4. **ATR multiples**: extension percent divided by ATR percent
5. **Robust center and spread** over the chosen lookback window:
* Center: **median** of the ATR-multiple series
* Spread: **standard deviation** of that series
* Bands: center ± 1σ, 2σ, 3σ, with 2σ and 3σ drawn
This design yields an intuitive unit scale. A value of **+2.0** means price is about 2 ATR above the selected MA by the most stretched side of the current bar. A value of **−3.0** means roughly 3 ATR below.
---
## Practical use
* **Trend continuation**
* Sustained readings near or above **+1σ** together with a rising MA often signal healthy momentum.
* **Mean reversion**
* Spikes into **±2σ** or **±3σ** can identify stretched conditions for fade setups in range or late-trend environments.
* **Regime awareness**
* The **median** moves slowly. When median drifts positive for many months, the market spends more time extended above the MA, which often marks bullish regimes. The opposite applies in bearish regimes.
**Notes**
* The MA can be set to Weekly while ATR remains Daily. This is deliberate, it keeps the normalization stable for most symbols.
* On very short intraday charts, the extension remains meaningful since it references the session’s extreme against a higher-timeframe MA and a daily ATR.
* Symbols with short histories may not fill the lookback window. Bands will adapt as data accrues.
---
## Table overlay
Enable **Table → Show** to see:
* “ATR from \”
* Current **median** and **sigma** of the extension series for your lookback
---
## Recommended settings
* **Swing equities**: 50 EMA on Daily, 5 to 7 years
* **Index trend work**: 200 EMA on Daily, 10 years
* **Position trading**: 20 or 50 EMA on Weekly MA, 5 to 10 years
---
## Interpretation examples
* Reading **+2.7** with price above a rising 50 EMA, near prior highs
* Strong trend extension, consider pyramiding in trend systems or waiting for a pullback if you are a mean-reverter.
* Reading **−2.2** into multi-month support with flattening MA
* Stretch to the downside that often mean-reverts, size entries based on your system rules.
---
## Credits
The concept of measuring stretch from a moving average in ATR units has a rich community history. This implementation and its presentation draw on ideas popularized by **Jeff Sun**, **SugarTrader**, and **Steve D Jacobs**. Thanks to each for their contributions to ATR-based extension thinking.
---
## License
This script and description are distributed under **MPL-2.0**, consistent with the header in the source code.
---
## Changelog
* **v1.0**: Initial public release. Daily ATR normalization, EMA or SMA on D or W timeframe, robust median and sigma bands, optional table.
---
## Disclaimer
This tool is for educational use only. It is not financial advice. Always test on your own data and strategies, then manage risk accordingly.
ORB with Golden Zone FIB targets, Any Timeframe by TenAMTraderDescription:
This indicator is designed to help traders identify key price levels using Fibonacci extensions and retracements based on the Opening Range Breakout (ORB). The levels are visualized as “Golden Zones”, which can serve as potential targets for trades.
Features:
Customizable ORB Timeframe: By default, the ORB is set from 9:30 AM to 9:45 AM EST, but any timeframe can be configured in the settings to fit your trading style.
Golden Zones as Targets: Fibonacci levels are intended to be used as potential profit-taking zones or areas to monitor for reversals, providing a structured framework for intraday and swing trading.
Adjustable Chart Settings: Color-coded levels make it easy to interpret at a glance, and all lines can be customized for personal preference.
Versatile Application: The indicator works across any timeframe, enabling traders to analyze both intraday and multi-day price action.
How to Use:
Ensure Regular Trading Hours (RTH) is enabled on your chart for accurate level calculation.
Observe price action near Golden Zones: a confirmed breakout may indicate continuation, while a pullback could signal a reversal opportunity.
Use the Golden Zones as reference targets for managing risk and planning exits.
Adjust the ORB timeframe and display settings to match your preferred trading style.
Legal Disclosure:
This indicator is provided for educational purposes only and is not financial advice. Trading carries a substantial risk of loss. Users should always perform their own analysis and consult a licensed financial professional before making any trading decisions. Past performance is not indicative of future results.
EMA Touch & Bounce Counter
Simple Indicator that allows you to see how many times price has touched an EMA line and bounced off of it without crossing it. The indicator tells you the amount of times it bounced off it in a bullish and bearish trend and also gives you the total amount of bounces to both trends.
This indicator was to just help you identify how respected a given EMA line is in case you decide to go long or short based on the trend.
How to avoid repainting when using security() - viewing optionsHow to avoid repainting when using the security() - Edited PineCoders FAQ with more viewing options
This may be of value to a limited few, but I've introduced a set of Boolean inputs to PineCoders' original script because viewing all the various security lines at once was giving me a brain cramp. I wanted to study each behavior one-by-one. This version (also updated to PineScript v6) will allow users to selectively display each, or any combination, of the security plots. Each plot was updated to include a condition tied to its corresponding input, ensuring it only appears when explicitly enabled. The label-rendering logic only displays when its related plot is active; however, I've also added an input that allows you to remove all labels, enabling you to see the price action more clearly (the labels can sometimes obscure what you want to see). Run this script in replay mode to view the nuanced differences between the 12 methods while selecting/deselecting the desired plots (selecting all at once can be overcrowded and confusing).
All thanks and credit to PineCoders--these changes I made only provide more control over what’s shown on the chart without altering the core structure or intent of the original script. It helped me, so I thought I should share it. If I inadvertently messed something up, please let me know, and I will try to fix it.
I set the defaults for viewing monthly security functions on the daily timeframe. Only the first 2 security functions plot with the default settings, so change the settings as needed. Be sure to read the original notes and detailed explanations in the PineCoders posting "How to avoid repainting when using security() - PineCoders FAQ."
Bottom line, you should use one of the two functions: f_secureSecurity or f_security, depending on what you are trying to do. Hopefully, this script will make it a little easier for the visual learner to understand why (use replay mode or watch live price action on a lower timeframe).
EMA Percentile Rank [SS]Hello!
Excited to release my EMA percentile Rank indicator!
What this indicator does
Plots an EMA and colors it by short-term trend.
When price crosses the EMA (up or down) and remains on that side for three subsequent bars, the cross is “confirmed.”
At the moment of the most recent cross, it anchors a reference price to the crossover point to ensure static price targets.
It measures the historical distance between price and the EMA over a lookback window, separately for bars above and below the EMA.
It computes percentile distances (25%, 50%, 85%, 95%, 99%) and draws target bands above/below the anchor.
Essentially what this indicator does, is it converts the raw “distance from EMA” behavior into probabilistic bands and historical hit rates you can use for targets, stop placement, or mean-reversion/continuation decisions.
Indicator Inputs
EMA length: Default is 21 but you can use any EMA you prefer.
Lookback: Default window is 500, this is length that the percentiles are calculated. You can increase or decrease it according to your preference and performance.
Show Accumulation Table: This allows you to see the table that shows the hits/price accumulation of each of the percentile ranges. UCL means upper confidence and LCL means lower confidence (so upper and lower targets).
About Percentiles
A percentile is a way of expressing the position of a value within a dataset relative to all the other values.
It tells you what percentage of the data points fall at or below that value.
For example:
The 25th percentile means 25% of the values are less than or equal to it.
The 50th percentile (also called the median) means half the values are below it and half are above.
The 99th percentile means only 1% of the values are higher.
Percentiles are useful because they turn raw measurements into context — showing how “extreme” or “typical” a value is compared to historical behavior.
In the EMA Percentile Rank indicator, this concept is applied to the distance between price and the EMA. By calculating percentile distances, the script can mark levels that have historically been reached often (low percentiles) or rarely (high percentiles), helping traders gauge whether current price action is stretched or within normal bounds.
Use Cases
The EMA Percentile Rank indicator is best suited for traders who want to quantify how far price has historically moved away from its EMA and use that context to guide decision-making.
One strong use case is target setting after trend shifts: when a confirmed crossover occurs, the percentile bands (25%, 50%, 85%, 95%, 99%) provide statistically grounded levels for scaling out profits or placing stops, based on how often price has historically reached those distances. This makes it valuable for traders who prefer data-driven risk/reward planning instead of arbitrary point targets. Another use case is identifying stretched conditions — if price rapidly tags the 95% or 99% band after a cross, that’s an unusually large move relative to history, which could signal exhaustion and prompt mean-reversion trades or protective actions.
Conversely, if the accumulation table shows price frequently resides in upper bands after bullish crosses, traders may anticipate continuation and hold positions longer . The indicator is also effective as a trend filter when combined with its EMA color-coding : only taking trades in the trend’s direction and using the bands as dynamic profit zones.
Additionally, it can support multi-timeframe confluence (if you align your chart to the timeframes of interest), where higher-timeframe trend direction aligns with lower-timeframe percentile behavior for higher-probability setups. Swing traders can use it to frame pullbacks — entering near lower percentile bands during an uptrend — while intraday traders might use it to fade extremes or ride breakouts past the median band. Because the anchor price resets only on EMA crosses, the indicator preserves a consistent reference for ongoing trades, which is especially helpful for managing swing positions through noise .
Overall, its strength lies in transforming raw EMA distance data into actionable, probability-weighted levels that adapt to the instrument’s own volatility and tendencies .
Summary
This indicator transforms a simple EMA into a distribution-aware framework: it learns how far price tends to travel relative to the EMA on either side, and turns those excursions into percentile bands and historical hit rates anchored to the most recent cross. That makes it a flexible tool for targets, stops, and regime filtering, and a transparent way to reason about “how stretched is stretched?”—with context from your chosen market and timeframe.
I hope you all enjoy!
And as always, safe trades!
(Fixed-Range) Anchored VWAPThis "Fixed-Range Anchored VWAP" indicator allows traders full control over where the VWAP calculation begins and ends. VWAP combines both price and volume to reflect the true average price paid, often serving as a benchmark for gauging value, sentiment, and trend strength.
With this tool, traders can anchor VWAP to any candle, optionally define an end point, or keep it running forward with a single toggle. Up to three bands can be added around VWAP, either as standard deviations or percentage offsets.
How to Use
The indicator is particularly useful for analyzing VWAP around significant events, like earnings announcements or sharp price swings, to identify support, resistance, and mean-reversion opportunities.
Add the indicator and select a candle to set the Anchor.
Choose an End point or enable Cancel End for an open-ended VWAP.
Pick Std Dev or Percent for band mode.
Turn on up to three bands, adjust multipliers, and set fill colors.
Use VWAP and its bands to evaluate extensions, trend context, and fair value zones.
SMA-Based Candle Color 60The Trend SMA colors the moving average green when sloping upward and red when sloping downward. Candles are also colored based on whether price is above (green) or below (red) the SMA, making trends easy to spot.