Bulltrapp.com - KEY LEVELSBulltrapp.com - KEY LEVELS
A comprehensive all-in-one key levels indicator designed for serious traders who want to see the most important price levels at a glance.
📊 Features:
Daily Levels
Previous Day High/Low (PDH/PDL)
Daily Open (DO)
Weekly Levels
Current & Previous Week High/Low
Weekly Open (WO)
Monday Range
Monday High/Low - essential for weekly range analysis
Monthly Levels
Current & Previous Month High/Low
Monthly Open (MO)
Quarterly & Yearly Levels
Quarterly Open (QO)
Yearly High/Low/Open with Previous Year levels
Session Levels
Asian, London & New York session High/Low
Customizable session times (UTC based)
Opening Range
NY Opening Range (first 15 min)
London Opening Range (first 15 min)
Automatic Support/Resistance Detection
Pivot-based S/R detection with customizable lookback
Shows levels with the most touches (strongest zones)
Automatic merging of nearby levels to reduce clutter
Configurable sensitivity and history length
⚙️ Customization:
Fully customizable colors for each level type
Adjustable line width and style (Solid/Dashed/Dotted)
Label size options
Toggle each level group on/off independently
Works correctly with Heikin Ashi charts (uses real OHLC data)
📱 Built by Bulltrapp.com
This indicator is brought to you by Bulltrapp.com - your ultimate crypto portfolio tracker!
🚀 Track your entire portfolio across multiple exchanges and wallets in one place
📈 Real-time P&L tracking with detailed analytics
💰 Tax reporting made easy
🔔 Smart alerts for price movements and portfolio changes
Visit bulltrapp.com to take your trading to the next level!
If you find this indicator useful, please give it a ⭐ and leave a comment!
Cari skrip untuk "crypto"
Fusion Signals Pro [Apicode]# Fusion Signals Pro
**Technical Documentation**
## 1. Overview
**Fusion Signals Pro** is a multi-indicator, multi-timeframe confirmation system developed in **Pine Script v6**.
Its primary goal is to **identify high-probability long and short entries** by requiring alignment across several momentum, trend, and oscillator indicators.
The indicator combines:
* Momentum (RPM, MACD)
* Oscillators (RSI, Stochastic, CCI, BBO)
* Trend-following logic (SuperTrend, EMA + T3 smoothing)
* A proprietary Heiken-Ashi–based trend module (**HACOLT**)
When all components align, the system generates **entry signals**, visual confirmations, and alerts.
---
## 2. Indicator Characteristics
| Property | Value |
| ------------------ | ----------------------------- |
| Script Version | Pine Script™ v6 |
| Overlay | Yes (candles, EMAs, signals) |
| Main Panel | Oscillator-style status panel |
| Repainting Control | Configurable per indicator |
| Market Types | Crypto, Stocks, ETFs |
| Timeframes | 15m, 30m, 1H, 2H and higher |
---
## 3. Architecture Summary
The indicator consists of **five major modules**:
1. **Multi-Timeframe Data Engine**
2. **Indicator Calculation Engine**
3. **Scoring & State Engine**
4. **Signal & Alert Engine**
5. **Trendline & HACOLT Engine**
---
## 4. Multi-Timeframe Data Engine
### `getSecurityData()`
This function safely retrieves higher- or alternate-timeframe data while controlling repainting behavior.
**Key features:**
* Supports real-time vs historical bar handling
* Optional repainting toggle per indicator
* Uses `request.security()` internally
```pinescript
getSecurityData(src, resolution, allowRepainting)
```
---
## 5. Indicator Components
### 5.1 RPM (Rate of Price Momentum)
**Purpose:**
Measures cumulative percentage price change over a defined period.
**Logic:**
* Calculates bar-to-bar % change
* Sums the change over `RPM Period`
**Signal Logic:**
* `> 0` → Bullish
* `< 0` → Bearish
---
### 5.2 BBO (Bull–Bear Oscillator)
**Custom oscillator combining:**
* Candle price structure
* RSI confirmation
* Super Smoother filter
**Output values:**
* `+100` → Bullish impulse
* `-100` → Bearish impulse
* `0` → Neutral
Smoothed using a **Super Smoother Moving Average**.
---
### 5.3 MACD
**Configurable elements:**
* Fast EMA
* Slow EMA
* Signal line
* Histogram or MACD line selection
**Signal Logic:**
* Positive value → Bullish
* Negative value → Bearish
Supports independent timeframe and repainting control.
---
### 5.4 RSI (Relative Strength Index)
**Standard RSI logic (14-period default)**
**Signal Threshold:**
* `> 50` → Bullish
* `< 50` → Bearish
---
### 5.5 Stochastic Oscillator
**Calculation:**
* %K → smoothed by SMA
* Uses configurable smoothing parameters
**Signal Threshold:**
* `> 50` → Bullish
* `< 50` → Bearish
---
### 5.6 CCI (Commodity Channel Index)
**Signal Logic:**
* `> 0` → Bullish
* `< 0` → Bearish
---
### 5.7 SuperTrend
**Parameters:**
* ATR Period
* Multiplier Factor
**Trend Logic:**
* Price above SuperTrend → Bullish
* Price below SuperTrend → Bearish
---
## 6. Visual Status Panel (Fusion Matrix)
Each indicator is plotted as a **horizontal square block**, color-coded:
* **Green** → Bullish
* **Red** → Bearish
### Indicator Order (Top to Bottom):
1. RPM
2. MACD
3. RSI
4. Stochastic
5. CCI
6. BBO
7. SuperTrend
8. HACOLT
Labels dynamically update on the last bar.
---
## 7. Scoring System
Each indicator contributes **1 point** when bullish.
| Indicator | Condition |
| ---------- | ----------- |
| RPM | `> 0` |
| MACD | `> 0` |
| RSI | `> 50` |
| Stochastic | `> 50` |
| CCI | `> 0` |
| BBO | `> 0` |
| SuperTrend | Price above |
**Score Range:** `0 → 7`
### Color Mapping
* **7** → Strong Green (Full alignment)
* **5–6** → Light Green
* **4** → Neutral (Gray)
* **1–3** → Light Red
* **0** → Strong Red
This score controls:
* Candle color
* Bar color
* Visual confidence level
---
## 8. Entry Logic
### Long Entry
All bullish conditions must be met:
```text
RPM > 0
MACD > 0
RSI > 50
Stochastic > 50
CCI > 0
BBO > 0
SuperTrend bullish
```
### Short Entry
All bearish conditions must be met (inverse logic).
---
## 9. Position State Machine
The indicator tracks trade direction using an internal state:
| State | Meaning |
| ----- | ---------- |
| `1` | Long bias |
| `-1` | Short bias |
| `0` | Neutral |
**Signals trigger only on state transitions**, reducing false signals and repeated entries.
---
## 10. Alerts
### Available Alerts
* Long Entry
* Short Entry
* Generic Entry (Long or Short)
* HACOLT Trend Change
Alerts include:
* Symbol
* Price
* Direction
---
## 11. Trendline Engine (EMA + T3)
### Features:
* Multi-timeframe EMA calculation
* T3 smoothing for noise reduction
* Auto / Multiplier / Manual timeframe selection
### Logic:
* EMA1 (fast) vs EMA2 (slow)
* Filled area changes color on crossover
* Acts as a **trend bias filter**
---
## 12. HACOLT Module (Advanced Trend Filter)
**HACOLT** is a proprietary trend detection system based on:
* Heiken-Ashi logic
* TEMA smoothing
* Candle structure analysis
* State persistence logic
### States:
* `1` → Bullish trend
* `-1` → Bearish trend
### Uses:
* Additional confirmation
* Early trend detection
* Visual trend persistence
---
## 13. Repainting Control
Each major component includes:
* Independent timeframe
* Independent repainting toggle
This allows:
* Backtesting accuracy
* Real-time responsiveness
* Hybrid confirmation setups
---
## 14. Intended Use
**Fusion Signals Pro is designed for:**
* Trend-following strategies
* Confirmation-based entries
* Multi-timeframe analysis
* Crypto and equity markets
⚠️ It is **not** intended as a standalone trading system without risk management.
---
## 15. Conclusion
Fusion Signals Pro is a **high-confluence trading indicator** that merges momentum, oscillators, and trend-following logic into a unified decision framework.
Its strength lies in **signal alignment**, **state tracking**, and **visual clarity**, making it suitable for both discretionary and systematic traders.
Cinematic Session Fade [Pro]🎬 Cinematic Session Fade — A Clean Way to See Market Mood
This indicator is designed to enhance visual clarity, not clutter your chart.
Instead of adding more lines, boxes, or signals, it uses soft cinematic session shading to show how market behavior naturally changes throughout the day.
🌍 Session-Based Market Atmosphere
Asia Session (Calm Blue)
Represents balance, low volatility, and range-building conditions.
London Session (Warm Gold)
Highlights the transition phase where momentum often starts to build.
New York Session (Deep Red)
Emphasizes decision-making hours, volatility, and directional moves.
The session colors fade smoothly in the background, creating a professional and distraction-free viewing experience.
🎨 Why This Indicator Looks Clean & Professional
No indicators stacked on price
No buy/sell arrows or noisy labels
Soft, eye-friendly background shading
Clean candle colors for clear price focus
Optimized for dark mode charts
This makes the chart easy to read, easy on the eyes, and visually attractive for both analysis and screenshots.
🧠 How Traders Use It
Identify which session the market is in at a glance
Adjust expectations for volatility and behavior
Combine with your own strategy (structure, SMC, trend, or price action)
Perfect for education, market commentary, and clean chart presentations
📈 Best Markets
Forex
Gold (XAUUSD)
Bitcoin & Crypto
Indices
🎯 Final Note
This tool does not predict price.
It simply provides context and atmosphere, helping traders stay aligned with market rhythm while keeping charts elegant and professional.
If you value clarity over clutter, this indicator is built for you.
Stock ScreenerMissing great trade opportunities is annoying, and unless you have 12 screens or only trade one market, you are missing a lot of trades. To fix that, we created this stock screener so you get notified instantly of potential great trading conditions in real time, right on your chart.
You get notified of trading benchmarks being met by the value being displayed on the scanner as well as a color change so that it grabs your attention and makes you aware that you should take a look at the other market and look for a potential trade. It also has built in alerts so you can have an alert notification go off when any of your trading conditions are met instead of needing to watch the scanner for color changes.
The screener will change the ticker symbol background color to red green when price is above or below the previous daily range and above or below both VWAPs. This signals that the ticker is trending, which typically means it is a great time to trade that market and follow the trend.
This stock screener allows you to scan up to 10 different markets at the same time for various different conditions so you always know what is going on with your favorite trading symbols. If you want to scan more tickers, just add the indicator to your chart again and change the table position to the other side of the screen and update the tickers on the 2nd screener, allowing you to have 20 tickers at a time.
The scanner can be fully customized by changing the markets that it screens and turning on or off as many of them as you would like. You can also turn on or off any of the different data sets so that you only get information about trading conditions that matter to you.
The screener can provide data on any type of market, such as stocks, crypto, futures, forex and more. Each ticker can be adjusted to whatever market you would like it to scan for data in the settings panel, the only limitation is that it will not provide data for the VWAP and volume trend score if the ticker you are screening does not provide volume data.
Screener Features
The scanner will provide the following types of data for each ticker that is turned on:
Volume - Provides a volume score compared to the average volume and notifies you of higher than normal volume and volume spikes on individual bars by changing colors.
Volatility - Provides a volatility score compared to the average volatility and notifies you of higher than normal volatility by changing colors.
Oscillator - Choose between the RSI or CCI. The value of that oscillator will be displayed and will notify you when values are in extreme ranges such as overbought or oversold conditions according to the threshold values you enter in the settings panel. When those thresholds have been breached, you will be notified by it changing color.
Big Candles - Compares the current candle to average previous candle sizes, and changes color to notify you of big candles including a big top wick, big bottom wick, big candle body and big candle high to low range.
Daily Level Touches & Trends - Calculates and displays various daily candle and intraday open price levels that act as support and resistance. Notifies you when price is touching any of the daily levels that are turned on. The levels you can have on are as follows: previous day high, previous day low or previous day open. It also will notify you when price is touching the current day’s open, NY 930am open, Asia 8pm open, London 2am open and NY midnight 12am open. It will also say “Above” if price is above the previous day’s high or it will say “Below” if price is below the previous day’s low. The color of the cell will also change when a level touch is happening or price is above the previous day high or below the previous day low.
VWAP - Choose from 2 different VWAP lengths, default settings are daily and weekly VWAPs. You will get notified if price touches either of the VWAPs and they will also say “Above” or “Below” if price is currently above or below each VWAP.
How To Use The Screener To Help You Trade
The main purpose of the screener is to scan other markets and notify you of potential good trading opportunities such as price bouncing off of the daily levels or VWAPs. It can also be used to know when price is trending according to the VWAPs and daily levels. Lastly, you can use it to know how the volume and volatility trends are currently which gives you more confidence in taking a trade with this data when volume and volatility are present.
Volume Score
When volume is high, this represents a good time to trade because there are many market participants and price is likely to be volatile while there is high volume which can present a lot of good trade setups for you to take.
The volume score shown on the screener measures the current volume trend compared to previous volume trends and calculates that into a score based on 100 being the same as the previous volume trend. So any value above 100 means it is high volume and any value less than 100 means it is lower volume than normal.
In the settings panel, you can adjust the volume threshold that needs to be met for a volume notification to show up. The default setting is at 120, so you will get notified when the current volume trend score is 120 or higher or you can adjust that threshold value to whatever value you prefer.
It also will notify you when there is a volume spike on the current bar. This is determined by calculating an average of the recent volume totals and then checking to see if the current bar is greater than or equal to that average multiplied by 3. So if a single bar has volume that is greater than 3 times what the average volume is, then you will get a notification that says “Spike” to make you aware of that volume spike.
The volume trend threshold, volume spike multiplier and lookback length for the average volume used in volume spike calculations can all be adjusted in the settings panel to fit your desired preferences.
Volatility Score
High volatility can mean it is a great time to trade because the market is moving quickly and providing large enough movements that you can get in and out in a short amount of time, while still accruing decent sized trade PnL.
The volatility score will calculate the current volatility for each market compared to previous conditions and then divide the current volatility by the average volatility to give you a volatility score. Anything over 100 means the market is decently volatile and you should look at that market to find potential trade setups to execute on. Anything below 100 means the market is not very volatile and it is usually best to just wait until volatility returns before you start trading again.
The screener will notify you when the volatility score is above the threshold you set. The default value is set to 90, but can be adjusted to your preference. Pay attention to any market that shows an alert and take a look at that chart because the high volatility may present a good trade setup for you in the near future.
Oscillator Score
The oscillator data can be switched between Relative Strength Index(RSI) and Commodity Channel Index(CCI).
The RSI provides a value between 0 and 100 that indicates the momentum and strength of the recent price action. Many traders use the extremes of the 0-100 range to signal overbought or oversold conditions and use that as a sign to look for price to reverse in the near future. The typical values used for this and the default settings to provide notifications are: 70 for overbought and 30 for oversold. The scanner will notify you when the RSI value is considered overbought or oversold so you know to take a look at the chart and analyze if it is ready for a trade to be taken.
The CCI provides a value that can be used to determine the trend strength of the underlying asset when the oscillator moves above 100 or below -100. These extreme values are outside of the normal accumulation range and signify that price is moving strongly in that direction so it may be a good time to take a trade in the direction of the trend. The scanner will show you the value of the CCI for each market and notify you if that value is above 100 or below -100.
Both RSI and CCI settings can be adjusted in the settings panel to your desired settings so you have the exact oscillator settings you prefer to use as well as the exact values that you want to use for being notified.
Big Candles
Big candles can mean that many traders are buying or selling at the same time and many times indicate a good signal to trade in that same direction. That is why we included this calculation in the screener, so you are always aware when a large candle prints.
It calculates the average size of the recent candles and then uses that average as the benchmark to determine if the current candle is considered big and worthy of notifying you to take a look at that chart.
You can adjust the multiplier used for the big candle threshold to whatever you desire, but the default setting is 3 which means the candle will be considered big and notify you if it is 3 times as large as an average candle.
The big candles data will track the following candle values and notify you with these labels:
High to Low candle size = HL
Candle Body from open to close candle size = OC
Top Wick size = TW
Bottom Wick size = BW
Daily Level Touches & Trend
Daily level touches are excellent levels to watch for price to bounce because they often act as support and resistance levels for intraday trading. The scanner will track each market and notify you when the current candle is touching any of the daily levels that you have turned on in the settings panel.
The main levels that are turned on by default and are useful for all markets and how they will be labeled on the scanner are as follows:
Previous Day High = High
Previous Day Low = Low
Previous Day Open = < Open
Previous Day Close = Close
Current Day Open = Open
We also included some extra levels that are useful for futures traders. They are as follows:
NY 930am Open = 930am
NY 12am Midnight Open = 12am
Asia Open at 8pm NY time = Asia
London Open at 2am NY Time = London
Watch how price reacts to these levels and then trade the bounces off of these levels if the price action confirms that it is going to respect that level.
When price is currently above the previous day high, the scanner will say “Above” and show a green color, indicating a bullish trend and that price is above the previous daily candle’s high.
When price is currently below the previous day low, the scanner will say “Below” and show a red color, indicating a bearish trend and that price is below the previous daily candle’s low.
Pay attention to when price is trending above or below the previous daily candle as those trends can provide excellent trend trading opportunities.
The daily levels that you have turned on in the settings will also show as lines on the chart and include a label next to them, identifying each level so you know what each line represents. You can turn on or off all of the lines shown on the chart in the main settings or turn them off one by one in the style panel of the settings. Labels can also be turned on or off for all of the lines in the main settings panel. You can adjust the label positioning in the Label Offset section of the settings panel.
VWAP Touches & Trend
VWAP stands for volume weighted average price and is a very popular tool that traders use to determine trend direction based on volume as well as an excellent level to trade price bounces off of.
The typical VWAP time period used is Daily, which means the volume weighted average price will reset at the beginning of a new day. We set the first VWAP to be the daily VWAP by default and the second one to be the weekly VWAP. You can adjust both of the time periods to be any of the provided time lengths that you choose.
The screener will show “Above” with a green background color when price is above the VWAP, indicating a bullish trend. It will show “Below” with a red background color when price is below the VWAP, indicating a bearish trend. When both VWAPs are showing Above or Below, you can expect price to trend in that direction, so look for pullbacks you can trade in the direction of the trend. If the VWAPs are showing different directions, then you should expect to bounce back and forth between the VWAPs, but be careful and watch out for price to break beyond either one and start a trend.
When the current candle is touching the VWAP, the scanner will change colors and say VWAP to notify you that price is touching the VWAP and you should look at that chart and analyze the market for a potential bounce off of the VWAP to trade.
Trending Market Signals
Strong trends are excellent markets to trade and can many times provide excellent trading opportunities that don’t require expert price action reading skills to be able to take winning trades from. That is why we included a signal to notify you of a strong trending market.
The strong trending market will show up as a green or red background color for the ticker name. If the color of the ticker name is green, it is notifying you that the price is above the previous daily high, above VWAP 1 and above VWAP 2 and is a good market to look for bullish trend trades. If the color of the ticker name is red, it is notifying you that the price is below the previous daily low, below VWAP 1 and below VWAP 2 and is a good market to look for bearish trend trades.
Changing The Tickers It Scans
To change the tickers that the indicator scans, scroll near the bottom of the settings panel and select the ticker symbol you want to update and then search for the exact symbol you want to use. If you want to scan less tickers, then just turn some of the tickers off that you don’t need.
Scanning More Than 10 Tickers
If you want to scan more than 10 tickers, you can add the scanner to your chart again and then just change the table position to the other side of the screen. This will allow you to scan 10 more tickers that will show up separately. Then if you want even more, just add the indicator to your chart again and update the table position until you have as many markets as you want. The table position setting can be found at the bottom of the main settings panel.
Alerts
The screener has alerts that can be used to notify you when any of the data set thresholds have been met or if price is touching one of the levels. You can set alerts for the following events:
Bullish Trend Alert - Price is above the previous daily high and above both VWAPs.
Bearish Trend Alert - Price is below the previous daily low and below both VWAPs.
High Volume Alert - Volume is higher than the threshold or a volume spike is detected.
High Volatility Alert - Volatility is higher than the threshold.
Oscillator Is Extended Alert - Oscillator value has exceeded the upper or lower threshold.
Big Candle Alert - A big candle has been detected.
Daily Level Touch Alert - One of the daily levels that is turned on is being touched.
VWAP Touch Alert - One of the 2 VWAPs are being touched.
An alert will trigger when any one of tickers on your scanner meets the alert conditions, so when you see the alert, you will need to go to your chart and look at the scanner to see which ticker it was and then navigate to that chart to look for potential trade setups.
The alerts will use the exact same settings you have configured in the settings panel to send you alert notifications. With normal settings, this could give you a lot of alerts, so if you only want alerts to fire when abnormal conditions are being met, try setting up a second screener on your chart that has very high threshold values and only has the most important level touches on. Then turn the setting "Do Not Show The Screener On The Chart" to off so the calculations will still run and fire alerts, but won't clog up your charts. This way you can only get alert notifications when major events happen but still have your normal screener settings available on your chart.
Markets This Can Be Used On
This screener uses the price action and volume data so you can use it to scan any type of market you would like as long as the ticker you are scanning has price and volume data feeds. If a market does not have volume data, then it will just show NaN in the volume row and the VWAP rows will not show anything.
MVRV Ratio Indicator [captainua]MVRV Ratio Indicator - Market Value to Realized Value Ratio
Overview
This professional indicator calculates and visualizes the MVRV (Market Value to Realized Value) ratio (raw, non-Z-score) with optional MVRV-Z overlay, comparing current market capitalization to realized capitalization to help identify potential market tops and bottoms for cryptocurrency markets.
Unlike MVRV-Z which normalizes the ratio using standard deviation (creating a Z-score), the raw MVRV ratio provides direct comparison between market cap and realized cap. This indicator enhances the raw ratio with historical percentile bands, percentile rank calculation, divergence detection, historical event logging, dynamic color gradients, enhanced visualization options, optional MVRV-Z comparison, and NEW advanced metrics including Risk Score, MVRV Momentum, Time in Zone tracking, and Price Target calculations.
NEW Features in This Version:
• Risk Score (0-100): Composite indicator based on MVRV level and percentile rank for instant risk assessment
• MVRV Momentum: Rate of change indicator showing trend direction (↑ Increasing, ↓ Decreasing, → Flat)
• Time in Zone: Tracks how long MVRV has been in the current zone (top/bottom/neutral) in bars
• Price Targets: Calculates price levels at key MVRV thresholds (fair value, top, bottom)
• Input Validation: Warns about invalid parameter combinations (e.g., extreme thresholds out of order)
• Multiple Smoothing Options: SMA, EMA, WMA, RMA for noise reduction
• Performance Optimized: Cached request.security() calls, ta.percentrank() for efficiency
• Human-Readable Timestamps: Event log now shows dates (YYYY-MM-DD) instead of bar indices
Core Calculations
MVRV Ratio Calculation:
The script calculates MVRV ratio using the standard formula: MVRV Ratio = Market Cap / Realized Cap. This formula provides a direct ratio without normalization, showing how many times the current market cap exceeds (or falls below) the realized cap.
Market Capitalization (Market Cap): The total market value of all coins in circulation, calculated as current price × circulating supply. This represents the market's current valuation of the asset.
Realized Capitalization (Realized Cap): The sum of the value of each coin when it last moved on-chain, representing the average cost basis of all coins.
Raw Ratio Interpretation:
- Ratio > 3.5: Extreme overvaluation (market cap significantly above realized cap)
- Ratio 2.5-3.5: Moderate overvaluation
- Ratio 1.0-2.5: Fair value to moderate overvaluation
- Ratio 0.8-1.0: Fair value to moderate undervaluation
- Ratio < 0.8: Undervaluation (market cap close to or below realized cap)
Risk Score (NEW):
Composite risk indicator ranging from 0-100:
- 80-100: Very High Risk (extreme overvaluation)
- 60-80: High Risk (overvaluation)
- 40-60: Moderate Risk (fair value range)
- 20-40: Low Risk (undervaluation)
- 0-20: Very Low Risk (extreme undervaluation)
The risk score uses percentile rank when available, or normalizes MVRV ratio to the 0-100 scale based on configured thresholds.
MVRV Momentum (NEW):
Rate of change indicator showing trend direction:
- ↑ Increasing: MVRV ratio rising (momentum > 0.01)
- ↓ Decreasing: MVRV ratio falling (momentum < -0.01)
- → Flat: MVRV ratio stable
- Displays percentage change over configurable period (default: 14 bars)
Time in Zone (NEW):
Tracks duration in current zone:
- Top Zone: Bars spent above top threshold (3.5)
- Bottom Zone: Bars spent below bottom threshold (0.8)
- Neutral Zone: Bars spent between thresholds
- Resets when zone changes
- Helps identify prolonged extreme conditions
Price Targets (NEW):
Calculates price levels at key MVRV thresholds:
- Price @ Fair Value: Price when MVRV = 1.0
- Price @ Top Threshold: Price when MVRV = 3.5
- Price @ Bottom Threshold: Price when MVRV = 0.8
- Based on estimated realized price (current price / MVRV ratio)
Data Source Selection:
The indicator supports multiple data source options for maximum flexibility:
Glassnode (Recommended):
- Uses Glassnode Market Cap data
- Calculates MVRV from Market Cap / Realized Cap
- Symbol format: GLASSNODE:{TOKEN}_MARKETCAP
- Requires Glassnode data subscription
- Also requires CoinMetrics for Realized Cap
- Best for comprehensive analysis with MVRV-Z comparison
IntoTheBlock:
- Direct MVRV ratio data from IntoTheBlock
- Simplest option - no calculations required
- Works for BTC and other supported tokens
- Symbol format: INTOTHEBLOCK:{TOKEN}_MVRV
- Requires IntoTheBlock data subscription on TradingView
Historical Percentile Bands:
The indicator calculates rolling percentile bands over a configurable period (default: 500 bars):
- 5th Percentile: Very low historical values (extreme undervaluation range)
- 25th Percentile: Lower quartile (undervaluation range)
- 50th Percentile: Median (fair value center)
- 75th Percentile: Upper quartile (overvaluation range)
- 95th Percentile: Very high historical values (extreme overvaluation range)
Percentile bands use ta.percentile_nearest_rank() for efficient calculation.
Percentile Rank:
Percentile rank shows where the current MVRV ratio sits in the historical distribution (0-100%):
- 0-25%: Bottom quartile (undervaluation)
- 25-50%: Lower half (moderate undervaluation to fair value)
- 50-75%: Upper half (fair value to moderate overvaluation)
- 75-100%: Top quartile (overvaluation)
Now uses efficient ta.percentrank() instead of array-based calculation.
Input Validation (NEW):
The indicator validates input parameters and displays warnings for:
- Extreme High Threshold should be > Top Threshold
- Extreme Low Threshold should be < Bottom Threshold
- Min Lookback Range must be < Max Lookback Range
- Top Threshold should be > Moderate Overvalued
- Moderate Overvalued should be > Fair Value
- Fair Value should be > Bottom Threshold
- Rapid Increase Threshold should be > 0
- Rapid Decrease Threshold should be < 0
Smoothing Options (Enhanced):
Multiple smoothing types available:
- SMA: Simple Moving Average (equal weight)
- EMA: Exponential Moving Average (more weight to recent)
- WMA: Weighted Moving Average (linear weight)
- RMA: Running Moving Average (Wilder's smoothing)
Reference Levels
Overvalued (Potential Top) - 3.5:
The 3.5 level indicates potentially extreme overvaluation. When MVRV ratio exceeds this threshold:
- Market cap is significantly above realized cap
- Potential selling opportunities for profit-taking
- Risk of market corrections or reversals
- Risk Score typically >80 (Very High Risk)
Moderately Overvalued - 2.5:
The 2.5 level indicates moderate overvaluation:
- Market cap is above realized cap but not extreme
- Caution warranted but not necessarily sell signal
- Risk Score typically 60-80 (High Risk)
Fair Value - 1.0:
The 1.0 level indicates fair valuation:
- Market cap equals realized cap
- Balanced market conditions
- Risk Score typically 40-60 (Moderate Risk)
Undervalued (Potential Bottom) - 0.8:
The 0.8 level indicates potentially undervalued conditions:
- Market cap is close to or below realized cap
- Potential buying opportunities for accumulation
- Risk Score typically <40 (Low Risk)
Visual Features
MVRV Ratio Line:
The main indicator line displays the calculated MVRV ratio with dynamic color gradient:
- Bright Red: Extreme overvaluation (ratio ≥ top threshold + 0.5)
- Orange: High overvaluation (ratio ≥ top threshold)
- Cornflower Blue: Neutral/Fair value (around fair value level)
- Deep Sky Blue: Low/Undervaluation (ratio ≤ bottom threshold)
- Bright Green: Extreme undervaluation (ratio ≤ bottom threshold - 0.1)
Can also be displayed as histogram/bar chart.
Historical Percentile Bands:
Five percentile bands with optional fills:
- 5th Percentile (Blue): Very low historical range
- 25th Percentile (Blue): Lower quartile
- 50th Percentile (Gray): Historical median
- 75th Percentile (Orange): Upper quartile
- 95th Percentile (Red): Very high historical range
Reference Lines:
Horizontal reference lines at key levels (all customizable):
- Top Threshold (default 3.5): Purple/violet
- Moderate Overvalued (default 2.5): Orange
- Fair Value (1.0): Gray
- Bottom Threshold (default 0.8): Blue
Background Highlights:
Optional background color highlights:
- High Zone (Maroon/Red): MVRV ratio ≥ top threshold
- Low Zone (Green): MVRV ratio ≤ bottom threshold
Divergence Detection:
Advanced divergence detection between price and MVRV ratio:
- Regular Bullish Divergence: Price lower low + MVRV higher low
- Regular Bearish Divergence: Price higher high + MVRV lower high
- Hidden Bullish Divergence: Price higher low + MVRV lower low
- Hidden Bearish Divergence: Price lower high + MVRV higher high
- Visual markers with icons (🐂/🐻) and connecting lines
Historical Event Log (Enhanced):
Comprehensive event tracking:
- Tracks zone entries/exits, extreme values, cross events
- Now displays human-readable dates (YYYY-MM-DD) instead of bar indices
- Color-coded events (red for top/high, green for bottom/low)
- Configurable log size (5-50 events)
Information Table (Enhanced):
Comprehensive on-chart table with NEW metrics:
Current Values:
- MVRV Ratio: Current ratio value
- Percentile Rank: Position in historical distribution (0-100%)
- Risk Score (NEW): Composite risk indicator (0-100) with risk level
- Market Status: Current market condition
- Signal: Trading signal (Strong Buy/Buy/Hold/Sell/Strong Sell)
- MVRV Momentum (NEW): Trend direction with percentage change
- Time in Zone (NEW): Current zone and duration in bars
Price Information (Enhanced):
- Current Price: Current market price
- Est. Realized Price: Estimated realized price
- Price @ Fair Value (NEW): Price when MVRV = 1.0
- Price @ Top Threshold (NEW): Price when MVRV = 3.5
- Price @ Bottom Threshold (NEW): Price when MVRV = 0.8
Other Metrics:
- Percentile Bands: Range from 5th to 95th percentile
- MVRV-Z Score: Z-score value (when comparison enabled)
- Change (1D/1W/1M): Ratio change over timeframes
- To Top/Bottom: Percentage distance to key levels
- Historical Range: Percentage below ATH / above ATL
- 30D Volatility: Standard deviation
Historical Event Log:
- Recent events with dates and values
- Color-coded for quick identification
Alert System
Comprehensive alerting capabilities:
Zone Alerts:
- Top Zone Entry/Exit
- Bottom Zone Entry/Exit
Cross Alerts:
- Cross Above/Below Top Threshold
- Cross Above/Below Fair Value (1.0)
Extreme Value Alerts:
- Extreme High (configurable, default: 4.5)
- Extreme Low (configurable, default: 0.7)
Rate of Change Alerts:
- Rapid Increase/Decrease
Divergence Alerts:
- Bullish/Bearish Divergence
- Hidden Bullish/Bearish Divergence
All alerts support cooldown to prevent spam.
Usage Instructions
Getting Started:
1. Select data source (Glassnode recommended)
2. Enable Risk Score for composite risk assessment (0-100)
3. Enable MVRV Momentum to track trend direction
4. Enable Time in Zone to see zone duration
5. Enable Price Targets to see price levels at key thresholds
6. Use weekly timeframe for cleaner signals
Risk-Based Position Sizing:
Use Risk Score to guide position sizing:
- Risk Score >80 (Very High Risk): Reduce/exit positions
- Risk Score 60-80 (High Risk): Smaller positions, caution
- Risk Score 40-60 (Moderate Risk): Normal positions
- Risk Score 20-40 (Low Risk): Larger positions opportunity
- Risk Score <20 (Very Low Risk): Strong accumulation zone
Momentum-Based Analysis:
Use MVRV Momentum for trend confirmation:
- ↑ Increasing + High MVRV: Late bull market, caution
- ↑ Increasing + Low MVRV: Recovery phase, bullish
- ↓ Decreasing + High MVRV: Distribution, potential top
- ↓ Decreasing + Low MVRV: Capitulation, accumulation opportunity
Zone Duration Analysis:
Use Time in Zone for context:
- Extended time in Top Zone: Late cycle, increased reversal risk
- Extended time in Bottom Zone: Accumulation opportunity
- Quick zone transitions: Higher volatility regime
Price Target Usage:
Use Price Targets for planning:
- Price @ Fair Value: Natural equilibrium level
- Price @ Top Threshold: Potential distribution target
- Price @ Bottom Threshold: Potential accumulation target
Technical Specifications
- Pine Script Version: v6
- Indicator Type: Non-overlay (displays in separate panel)
- Repainting Behavior: Minimal - calculations based on confirmed bar data
- Performance: Optimized with cached request.security() calls and ta.percentrank()
- Input Validation: Validates parameter combinations with warnings
- Compatibility: Works on all timeframes (data sources provide daily resolution)
- Edge Case Handling: Zero-division protection, NA value handling, boundary checks
Performance Optimizations:
- Cached request.security() calls for Market Cap, Realized Cap, and IntoTheBlock data
- Efficient ta.percentrank() replaces array-based percentile calculation
- Consolidated duplicate code (color functions, state tracking)
- Single-line ternary expressions for Pine Script compatibility
Constants:
- MAX_HISTORY_BARS = 5000 (TradingView's limit)
- PERCENTILE_EXTREME_HIGH = 90.0
- PERCENTILE_HIGH = 75.0
- PERCENTILE_MID = 50.0
- PERCENTILE_LOW = 25.0
- MIN_PERCENTILE_SAMPLES = 10
- DEFAULT_VOLATILITY_HIGH = 0.1
Known Limitations
- Data availability: Requires valid data subscription (IntoTheBlock, Glassnode, or CoinMetrics)
- Token support: Works with tokens supported by the selected data source
- Historical data: Percentile calculations require sufficient history (200+ bars recommended)
- Timeframe: Always uses daily resolution data from providers; works on all chart timeframes
- History limit: All lookback periods capped at 5000 bars
Changelog
Latest Version:
- Added Risk Score (0-100) composite indicator
- Added MVRV Momentum with trend direction
- Added Time in Zone tracking
- Added Price Target calculations
- Added Input Validation with warnings
- Added multiple smoothing options (SMA, EMA, WMA, RMA)
- Improved performance with cached security calls
- Replaced array-based percentile with ta.percentrank()
- Human-readable timestamps in event log (YYYY-MM-DD)
- Fixed hline() conditional value bug
- Consolidated duplicate code
- Updated indicator name for clarity
For detailed usage instructions, see the script comments.
Short-Term Weekly Refuges (Shelters)## // Introduction //
══════════════
Short-Term Weekly Refuges (Shelters) (WR or RS) is a structural analysis indicator designed to track price action during the current week. It combines a configurable ZigZag with Fibonacci retracements anchored to recent phases, using the Weekly Opening Price (W.O.P.) as a key reference level.
This indicator is optimized for 4H timeframe but also works on 1H and 15min charts.
## // Theoretical Foundation of the Indicator //
═══════════════════════════════
The WR (RS) indicator provides a structural framework for following price action during the current trading week.
The core concept: Recent ZigZag phases, combined with the Weekly Opening Price, create dynamic support and resistance levels that institutional traders often monitor and use for intraweek positioning. The indicator allows you to select which recent phase (1-10) serves as the Fibonacci anchor.
## // Indicator Objectives //
══════════════════
1) Display a configurable ZigZag showing recent price structure with numbered phases (1 = most recent). Users should configure the ZigZag parameters based on whether they are analyzing a Major Degree Pattern (larger swings, less noise) or a Minor Degree Pattern (smaller swings, more detail), following standard Elliott Wave terminology. Configure the ZigZag to match the degree of your analysis: use higher Depth values for Major Degree Patterns, or lower values for Minor Degree Patterns.
2) Draw Fibonacci retracements on a user-selected phase, with two modes:
• "On ZigZag": Traditional Fibonacci on the selected phase.
• "Relative to W.O.P.": Fibonacci from phase anchor (i0) to Weekly Opening Price.
3) Show Weekly Opening Price lines as horizontal references, with the current week's line extended into the future.
4) Provide Pivot Up/Down markers for additional confirmation of local highs and lows.
5) Support multiple simultaneous indicator loads with visual identifier labels to distinguish between different analysis degrees (e.g., "Major Degree Pattern" vs "Minor Degree Pattern").
6) Optional Embedded Indicator: Enable Intraday Shelters (RID) - percentage-based support/resistance levels calculated from the Daily Opening Price, useful for 1H and 15min trading.
## // Key Features //
══════════════
• **Flexible ZigZag**: Adjustable Depth, Deviation, and Backstep parameters to adapt to any asset's volatility.
• **Phase Selection**: Choose from the 10 most recent phases for Fibonacci anchoring.
• **Dual Fibonacci Modes**: Trace on the ZigZag phase itself, or relative to the Weekly Opening Price.
• **New Age Color Palette**: Professional Fibonacci color scheme used by old school experienced traders.
• **Weekly Opening Price (W.O.P.)**: Historical weekly opens plus current week projection.
• **"Show Only W.O.P." Mode**: Isolate just the Weekly Opening Price line for cleaner charts on non-4H timeframes.
• **Optional Intraday Shelters (RID)**: 11 percentage levels (±0.382%, ±1%, ±1.5%, ±2%, ±2.5%) based on Daily Opening Price.
• **Multi-Load Support**: Visual identifier tags and Large Label for running multiple indicator instances simultaneously.
## // Recommended Workflow //
═════════════════════
1) Load the indicator on a 4H chart.
2) Adjust ZigZag parameters (Depth, Deviation) until the phases match your visual analysis of recent price structure.
3) Select the phase you want to use as Fibonacci anchor (typically Phase 2, 3 or higher).
4) Choose Fibonacci mode: "On ZigZag" for phase analysis, or "Relative to W.O.P." for analysis based on weekly opening price context.
5) Monitor how price interacts with the Fibonacci levels and Weekly Opening Price throughout the week.
6) Optionally enable RID for intraday precision on 1H or 15min charts.
## // Integration with Other Refuge Indicators //
════════════════════════════════
WR (RS) is part of a complete refuge-based analysis ecosystem:
• LTR (RLP) (Long-Term Refuges): For automatic determination of the predominant phase of a ZigZag, which institutional investors choose as the basis for a Fibo whose levels calculate the projection for order placement over the following months and years.
• LTRS (RLPS) (Simple Long-Term Refuges): Simplified version of LTR in which the known coordinates of the predominant phases (obtained with the LTR indicator) of one or up to five assets are easily captured for permanent long-term operation.
• WR (RS) (Short-Term Weekly Refuges): (This indicator) For short-term tactical analysis (4H, 1H) based on chosen phases of a ZigZag that define Fibo levels generated during the near past week(s) and probably effective in the present week.
• IDR (RID) (Intra-Day Refuges): For daily operations relying on intraday levels on timeframes of 1H or less. Ideal for scalping traders.
By combining LTR, LTRS, WR and IDR, you obtain a multi-level framework that allows you to operate with clarity at any time horizon, from intraday positions to investments spanning months and years.
## // Additional Notes //
════════════════
1) Default parameters are optimized for volatile assets (crypto, tech stocks). For forex or less volatile instruments, consider reducing Deviation to 3-8%.
2) The "Phase in Development" (dashed line) shows the tentative current ZigZag segment that may still change as new bars form.
3) Bug reports, improvement proposals for the ZigZag generator, pattern determination, or Fibo composition, etc., will be greatly appreciated and taken into account for a future version. Best regards and happy hunting.
(Sorry: Spanish translation erased trying to avoid confusing publishing banning rules).
MACD-V (Volatility Normalized MACD)Award-Winning Momentum Indicator by Alex Spiroglou (CMT Charles Dao Award & NAAIM Founders Award, 2022)
The classic MACD has powered trading decisions for decades, but it suffers from five major limitations that undermine consistency:
1- Readings are not comparable over time (absolute price dependency causes massive scale differences across decades)
2- Not comparable across markets or assets (e.g., stocks vs. forex vs. crypto)
3- No universal overbought/oversold levels
4- Excessive whipsaws in low-momentum/range-bound conditions
5- Lagging signals in high-momentum reversals (e.g., missing big chunks of V-shaped recoveries)
MACD-V solves all five issues by normalizing momentum against volatility instead of price.
Core Formula
MACD-V = (EMA(12) - EMA(26)) / ATR(26) × 100
This expresses momentum in units of Average True Range (ATR), creating a volatility-adjusted oscillator that remains mathematically meaningful and comparable:
-Analysts can use MACD-V across any timeframe:
-Across any asset class (stocks, forex, commodities, bonds, crypto)
-Over decades of history
Key Features & Benefits
Time-stable & cross-market comparable: A +100 reading today has the same meaning as +100 in the past years, regardless of asset or price level.
Universal extremes: ±150 captures ~95% of all readings across markets → extreme/stretched momentum.
Momentum Lifecycle Roadmap (objective framework):
+150 or < -150: Extreme / overstretched (high reversal risk)
+50 to +150 or -50 to -150: Strong directional momentum (rallying, retracing, rebounding, reversing)
-50 to +50: Neutral / low momentum / ranging (avoid most signals — high whipsaw zone)
Range Rules for regime context: In bullish regimes (price > 200 EMA), -50 to -150 becomes the practical oversold zone; readings below -100 are rare and often powerful buy setups. Opposite in bearish regimes.
Improved signal quality: Filter whipsaws in neutral zone, anticipate lag in extremes, prioritize high-probability crosses in strong-momentum bands.
MACD-V Histogram (MACD-VH): Normalized short-term momentum with extremes at ±40 for fast reversal detection.
Backtesting & strategy-friendly: Enables reliable historical analysis, cross-asset relative strength, and systematic rules
MACD-V transforms momentum from subjective art into objective, repeatable science — giving you consistent, actionable insights no matter what you're trading.
Use it standalone or layer with trend filters (e.g., 200 EMA), volume, or price action for even stronger edges.
Developer: Alex Spiroglou
Open-source versions inspired by his work — feel free to fork and improve!
Happy trading! 🚀
Bitcoin Halving Cycles [DotGain]Halving Cycles
A lightweight, time-anchored Bitcoin halving cycle visualizer built for clean charting, repeatable process planning, and simple profit/DCA timing references.
This Code was heavily inspired by KevinSvenson_ who created Bitcoin Halving Cycle Profit .
What this indicator does
This script plots the key “cycle landmarks” relative to each halving date:
Halving (⛏) – the cycle anchor
Profit START – marks the beginning of the post-halving profit window (default: 40 weeks )
Profit END / Last Call – marks the final phase of the profit window (default: 77 weeks )
DCA START – marks the point where long-term accumulation becomes the focus again (default: 135 weeks )
How to read it
Vertical lines = the exact cycle milestones
Bottom labels = description of each milestone aligned to its line (keeps the chart clean)
Green background (optional) = active Profit Zone on existing bars
Red background (optional) = optional warning zone after Profit END
HUD Panel (top-right)
The HUD gives you a fast “where are we in the cycle?” view with two modes:
Current Cycle
Shows: Halving date, Weeks since, and time remaining to Profit START / Last Call / DCA START within the current cycle.
Next Halving (Projection)
Shows: Countdown to the next enabled future halving, plus the projected weeks from today to Profit START / Last Call / DCA START after that future halving.
Future Halvings (manual)
You can manually add up to 3 future halving dates (Halving #1–#3).
This is useful for forward planning and cycle projection even before the event happens.
Enable Halving #1 / #2 / #3
Set Year / Month / Day for each
Optional: show/hide future markers & projections
Note: background zones only shade existing bars . Future projections are shown via lines/labels.
Settings overview
Show all cycles – plots every enabled cycle (historical + optional future). If disabled, only the current cycle is drawn.
Show Profit Zone background – green shading during the active profit window (current cycle only).
Show vertical markers + labels – toggles all milestone lines + labels.
Show HUD – toggles the HUD panel.
HUD Mode – switch between Current Cycle and Next Halving (Projection).
Cycle Logic – edit offsets in weeks (Profit START / Profit END / DCA START).
Optional Warning Zone – show a post-profit warning shading for a chosen number of weeks.
Have fun :)
Disclaimer
This Halving Cycles indicator is provided for informational and educational purposes only. It does not, and should not be construed as, financial, investment, or trading advice.
This indicator is an independent implementation of a time-based Bitcoin halving cycle visualization tool and is not affiliated with, or endorsed by, any third-party trading systems, strategies, protocols, or trademarked methodologies. The cycle zones, milestone markers, and countdown values displayed by this indicator are generated by a predefined set of algorithmic rules based on historical halving dates and user-defined time offsets. They do not constitute a direct recommendation to buy, sell, or hold any financial instrument or digital asset.
All trading and investing in financial markets involves a substantial risk of loss. You may lose part or all of your invested capital. Past performance does not guarantee future results. This indicator highlights historical and projected time-based market cycles and may produce false, lagging, incomplete, or misleading signals. Market behavior is influenced by many external factors and can deviate significantly from historical patterns or expectations.
The creator DotGain assumes no responsibility or liability for any financial losses, damages, or decisions made based on the use of this indicator or the information it provides. You are solely responsible for your own trading and investment decisions. Always conduct your own research (DYOR), use proper risk management, validate insights with additional tools or analysis, and consider your personal financial situation and risk tolerance before making any financial decision.
Mean-Reversion Strategy (RSI + ATR) v1
Entry: Wait for RSI(10) to cross 35 (bullish) or 65 (bearish)
Stop-loss: 2.5 times current ATR away from entry
Take-profit: 4 times current ATR away from entry
Risk: 2% of account per trade
Skip trades if price moved >5% recently or volume is below average
Risk/Reward: You risk $1 to make $1.60 (1:1.6 ratio)
That's the complete strategy. Simple, rules-based, volatility-adjusted for crypto.
Apexflow PRO: Anchored Fair Value + Regime Readiness [v6]## Apexflow PRO — Anchored Fair Value Cloud + Regime Readiness (Non-Repaint Signals)
**Apexflow PRO** is an overlay indicator built to answer one core trading question:
**“Is price currently cheap, fair, or expensive — and is the market in a regime where that matters?”**
Instead of throwing random signals at you, Apexflow PRO combines **anchored fair value**, **market regime detection**, **flow participation**, and **optional cross-market confirmation** into a single, easy-to-read system with a **Readiness Score (0–100)** and clean, non-spam alerts.
---
# What you see on the chart
### 1) Anchored Fair Value Cloud (the “tunnel”)
This is the heart of the indicator.
* **Midline = Anchored VWAP fair value**
* Resets by **Day / Week / Month** (you choose).
* **Cloud = 3-layer adaptive tunnel**
* **Core (blue)** = “fair pricing zone”
* **Upper red layers** = increasingly stretched/expensive
* **Lower teal layers** = increasingly stretched/cheap
**Interpretation (beginner-simple):**
* **Inside blue core** → “priced fairly”
* **Below the tunnel** → “cheap / discounted”
* **Above the tunnel** → “expensive / premium”
* **Outer layers** → “extreme stretch” zones (higher snap-back risk)
### 2) Regime label (context filter)
Apexflow labels the market environment as:
* **TRENDING**
* **CHOP/RANGE**
* **VOLATILE**
* **BREAKOUT**
This prevents “using the right tool in the wrong market.”
Example: mean reversion works better in chop; trend continuation works better in trend/breakout regimes.
### 3) Readiness Score (0–100)
This is the **strength of confluence** between the engines.
* Low score = mixed signals / noise
* High score = alignment / higher-quality conditions
### 4) BUY / SELL signals (non-spam)
Signals trigger only when:
* **Readiness crosses above your threshold** (first bar only)
* **Regime filter agrees**
* **Structure agrees** (reclaim midline / lose midline OR location within the tunnel)
* **Cooldown** prevents rapid repeats
---
# What’s behind it (advanced, but readable)
Apexflow PRO uses four engines:
## A) Anchored Fair Value Engine (core)
A true anchored VWAP-style accumulator:
* Aggregates **price × volume** and **volume**
* Resets on your chosen anchor period
* Produces a stable “fair value spine”
### Stable Mode (important)
When **Stable Mode = ON**, Apexflow **does not drift intrabar** on live candles.
The anchored midline and tunnel update on confirmed bar closes to avoid the classic “wiggling anchor” problem.
## B) Regime Engine (Trend/Chop/Breakout/Volatile)
Uses multiple independent measures (not just one):
* **ADX** = trend strength
* **Efficiency Ratio (ER)** = trend efficiency vs chop
* **BB Width %Rank** = compression / squeeze context
* **ATR %Rank** = volatility regime context
This produces both a **regime label** and a **regime confidence score** used in the composite.
## C) Flow Engine (participation + intent proxy)
A blended participation model:
* **Signed candle pressure** (body vs range scaled by volume)
* **Wick rejection bias** (rejection strength)
* **RVOL** (relative volume lift)
This helps distinguish “real moves” from low-quality drifts.
## D) Cross-Market Confirmation (optional)
A light macro filter to reduce false positives:
* **Equities:** VIX (inverse risk)
* **Forex:** DXY (inverse USD pressure)
* **Crypto:** BTC.D (risk tone proxy)
If the cross-market symbol is unavailable, the script **falls back gracefully** and automatically reduces its weight.
---
# How to use (simple rules)
## Trend Following mode (default)
Best when you want to ride directional moves.
**BUY idea:**
* Readiness crosses above threshold
* Regime is **TRENDING** or **BREAKOUT**
* Price is reclaiming the midline OR is occurring from the lower half of tunnel
**SELL idea:**
* Same logic in reverse (lose midline / upper half)
**Practical beginner rule:**
> In Trend mode, treat the midline like “bias.”
> If price is above the midline and score is strong → favor longs.
> If below and score is strong → favor shorts.
## Reversion mode
Best in chop/range markets.
* Signals are biased toward **mean reversion**
* Use tunnel extremes as “stretch zones”
* Targets often gravitate back toward the **midline / inner bands**
---
# Best settings & timeframes (starting points)
These are practical defaults (not magic):
### Crypto
* 15m / 1H / 4H
* Anchor Reset: **Week**
* Threshold: **60–70**
### Equities / Indices
* 5m / 15m / 1H
* Anchor Reset: **Day or Week**
* Threshold: **60–75**
### Forex
* 15m / 1H
* Anchor Reset: **Day**
* Threshold: **60–75**
If signals feel too frequent: raise **Threshold** or increase **Cooldown**.
If signals feel too rare: lower **Threshold** slightly or reduce **Cooldown**.
---
# Alerts
Included:
* **Apexflow PRO Long**
* **Apexflow PRO Short**
These fire only when the indicator triggers a confirmed, threshold-cross event (designed for clean alerting).
---
# Notes & limitations (honest)
* This is not a “predict the future” tool — it’s a **context + fair value + confluence** system.
* Cross-market filters are helpful, but not universal. If you trade niche assets, consider turning cross-market OFF or customizing the reference symbol.
* Always use risk management. A strong score is not a guarantee.
Monte Carlo Simulation BandsMonte Carlo Simulation v2.4.2
Plots a one-bar-ahead price distribution band built from many simulated paths. The green band shows empirical percentiles of simulated final prices—these are distribution bounds, not a confidence interval of the mean.
What It Does
Simulates many one-bar price paths using a directional random walk with volatility scaling (uniform shocks, not Gaussian GBM).
Plots Mean Forecast, Median Forecast, and configurable percentile bounds (default 5th/95th).
Optional rolling HTF-days mean line (yellow) for trend context.
Optional labels and forward projection lines.
Alerts when the confirmed close breaks above or below the percentile band.
Non-Repainting & HTF Behavior (Fail-Closed)
All calculations are gated to confirmed bars only via explicit no_repaint_ok gate (barstate.isconfirmed).
If you select an HTF Resolution, the script uses a strict request.security(..., lookahead_off, gaps_off) pipeline.
If HTF data is unavailable, outputs are na—no silent fallback to chart timeframe.
A separate "HTF Alignment (lagged)" plot shows the prior HTF close (htf_price ) as visual proof of no look-ahead.
Volatility Source & Scaling
If "Use Historical Volatility" is enabled, volatility is estimated from log returns on the selected resolution (HTF if set, otherwise chart).
Annualization adapts to session type:
Equities: 6.5 hours/day, 252 trading days/year
Crypto: 24 hours/day, 365 days/year
Substeps increase path smoothness within the same one-bar horizon—they do not extend the forecast to multiple bars.
Key Inputs
• Prob Up / Prob Down — Must satisfy Prob Up + Prob Down ≤ 1.0. If violated, simulation is skipped and table shows "✗ PROB>1".
• # Simulations / # Substeps — Higher = smoother/more stable, but slower. Default 100×100 is a good balance.
• Lower/Upper Percentile — Define the band width (e.g., 5 and 95 for a 90% distribution band).
• Run On Last Bar Only — Performance mode (recommended). Skips historical computation; updates on each new confirmed bar.
• Resolution (HTF) — Leave blank for chart timeframe, or set to Weekly/Monthly for HTF-aligned simulation.
• Crypto 24/7 Session? — Enable for crypto markets to use correct annualization (365d, 24h).
How to Use (Quickstart)
Start with defaults and keep Run On Last Bar Only = true for speed.
Set Prob Up and Prob Down so their sum ≤ 1.0 (e.g., 0.5 + 0.5 = 1.0 for neutral).
Enable "Use Historical Volatility" and set a Volatility Lookback (e.g., 20 bars) for data-driven vol.
Set Resolution (HTF) if you want the model to run on higher timeframe data (e.g., 1W). Expect updates only when a new HTF interval starts.
Choose percentiles (e.g., 5 and 95) to define your distribution band width.
Enable alerts for "Price Above Upper Percentile" or "Price Below Lower Percentile" to get notified of breakouts.
Limitations & Disclosures
Forecast horizon is one bar only. Substeps do not create a multi-bar forecast.
Model uses uniform shocks with direction chosen from Prob Up/Down. This is not Geometric Brownian Motion (GBM) and is not calibrated to any option-implied distribution.
Bounds are percentiles of final simulated prices, not a statistical confidence interval of the mean.
HTF mode updates at the start of a new HTF interval (first chart bar where the HTF timestamp changes), so the band appears "step-like" in realtime.
Historical volatility requires enough bars for the selected lookback; until then, values may be na.
Performance depends on Sims × Substeps; extreme settings (e.g., 500×500) can be slow.
This indicator does not predict direction—it shows a probabilistic range based on your inputs.
Consolidation zones + BreakoutThis Pine Script v6 indicator is designed to detect consolidation zones and mark breakout entries (long or short) when price exits those zones.
Indicator purpose
Identify periods where price moves in a tight range for several consecutive bars (consolidation).
Highlight those zones on the chart with a yellow shaded area between the local high and low.
Mark potential LONG and SHORT entries when price breaks out of a consolidation zone.
Core consolidation logic
The indicator measures whether the market is “compressed” by comparing the price range of recent bars with volatility measured via ATR:
It computes the highest high and lowest low of the last lookback bars:
rangeHigh = ta.highest(high, lookback)
rangeLow = ta.lowest(low, lookback)
It calculates the current range:
rng = rangeHigh - rangeLow
It calculates ATR over atrLen bars as a volatility benchmark:
atrVal = ta.atr(atrLen)
It defines a compressed range (base consolidation) when the range is smaller than a multiple of ATR:
baseConso = rng < atrVal * atrMult
Here, atrMult controls how tight the range must be. Lower values (0.8–1.0) require strong compression; higher values (1.5–2.0) are more permissive.
Minimum bars in consolidation
To avoid calling a very short pause a consolidation, the script enforces a minimum duration:
It uses ta.barssince(not baseConso) to count how many bars have passed since the last time the consolidation condition was false.
If that count is greater than or equal to minBars, the market is considered to be in consolidation:
text
isConsolidating = ta.barssince(not baseConso) >= minBars
This prevents 2–3 sideways bars from being treated as a full consolidation zone. The minBars input lets you adapt the duration to your timeframe and trading style.
Plotting the consolidation zone
When isConsolidating is true, the script shades the consolidation area:
It plots two invisible series for the zone’s high and low:
text
pHigh = plot(rangeHigh, display = display.none)
pLow = plot(rangeLow, display = display.none)
It creates a yellow semi‑transparent fill between those lines only while in consolidation:
text
fillColor = isConsolidating ? color.new(#ffeb3b, 80) : color.new(#ffeb3b, 100)
fill(pHigh, pLow, color = fillColor, title = "Consolidation Zone")
Outside consolidation, the color becomes almost fully transparent so the shaded zone disappears. This keeps the chart clean and focuses attention on the actual ranges.
Breakout detection (LONG / SHORT)
The script then looks for breakouts when price leaves a consolidation zone:
It checks if the previous bar was inside consolidation:
wasConso = isConsolidating
A bullish breakout (LONG) occurs when:
The current bar is no longer in consolidation (not isConsolidating).
The previous bar was in consolidation (wasConso).
The close breaks above the previous consolidation high (close > rangeHigh ):
text
breakLong = not isConsolidating and wasConso and close > rangeHigh
A bearish breakout (SHORT) occurs when:
The current bar is no longer in consolidation.
The previous bar was in consolidation.
The close breaks below the previous consolidation low (close < rangeLow ):
text
breakShort = not isConsolidating and wasConso and close < rangeLow
On each breakout, a label is drawn at the breakout bar:
text
if breakLong
label.new(bar_index, low, "LONG",
style = label.style_label_up,
textcolor = color.white,
color = color.new(color.teal, 0),
size = size.tiny)
if breakShort
label.new(bar_index, high, "SHORT",
style = label.style_label_down,
textcolor = color.white,
color = color.new(color.red, 0),
size = size.tiny)
These labels highlight where price transitions from sideways action to a potential directional move.
User inputs and tuning
lookback (Bars for range)
Number of bars used to compute the consolidation high/low. Higher values produce wider, less frequent zones; lower values detect shorter consolidations.
minBars (Minimum bars in consolidation)
Minimum number of consecutive bars that must meet the compression condition. On 15‑minute charts, values between 6 and 12 often work, but this depends on the asset.
atrLen and atrMult
Control how strict the compression rule is.
atrLen: ATR period.
atrMult: maximum allowed range as a multiple of ATR.
Increasing atrMult finds more zones; decreasing it makes the filter stricter.
showText
Optional helper label with a short description, useful when sharing the script with other users on the TradingView community.
Practical usage
Apply the indicator to your preferred timeframe (for example, 15‑minute crypto charts).
Tweak lookback, minBars, and atrMult until the yellow zones match the consolidations you would mark manually.
Use the LONG and SHORT labels as areas of interest for studying range breakouts and building your own entry/exit rules, always combining them with risk management and a complete trading strategy.
This way, the script turns a visual concept—sideways consolidation followed by breakout—into a systematic, testable signal in Pine Script v6.
EstongA* Bot Alerts ProV1*Here’s a consolidated list of warnings and advice for traders, whether you're just starting or are experienced:
⚠️ Critical Warnings
1. You can lose all your capital – Trading is not a get-rich-quick scheme. Never trade with money you can’t afford to lose.
2. Avoid leverage until you fully understand it – Leverage amplifies both gains and losses. Many traders get wiped out by over-leveraging.
3. Beware of "guaranteed profit" systems – If it sounds too good to be true, it is. No strategy works all the time.
4. Emotional trading is a career killer – Fear, greed, and revenge trading destroy accounts.
5. Don’t follow tips or "hot leads" blindly – Do your own analysis. Many influencers are secretly unloading positions onto followers.
📚 Essential Advice
Mindset & Psychology
• Treat trading like a business, not gambling. Have a plan for every trade.
• Develop patience – Wait for high-probability setups; don’t force trades.
• Accept losses as part of the game – Even the best traders have losing streaks. The key is risk management.
• Keep a trading journal – Record every trade: entry/exit reasoning, emotional state, outcome. Review weekly.
Risk Management (Non-Negotiable)
• Risk only 1-2% of your capital per trade – This protects you from ruin during a losing streak.
• Always use stop-losses – Decide your stop-loss BEFORE entering a trade.
• Never add to a losing position ("averaging down") – This is how small losses become catastrophes.
• Have a risk/reward ratio of at least 1:2 – Aim for potential profit to be at least double your potential loss.
Strategy & Education
• Master one market/strategy at a time – Don’t jump between forex, stocks, crypto, and options simultaneously.
• Backtest and forward-test any strategy before using real money.
• Understand market context – Are you in a trending or ranging market? Adjust your strategy accordingly.
• Continuously educate yourself – Markets evolve. Stay updated, but avoid constantly switching strategies.
Practical Habits
• Start with a demo account – Prove you can be consistently profitable before using real money.
• When moving to real money, start small – The psychology changes with real money on the line.
• Set trading hours and stick to them – Avoid overtrading and burnout.
• Regularly withdraw profits – Secure gains and reinforce the reality of your earnings.
🚨 Red Flags in Yourself
• Chasing losses – Trying to immediately recoup a loss leads to bigger losses.
• Overconfidence after wins – Leads to taking oversized, reckless trades.
• Ignoring your trading plan – If you’re making exceptions, you don’t have a plan.
• Blaming the market or others – You are responsible for every trade. Take ownership.
🔍 Choosing a Broker/Platform
• Regulation is crucial – Ensure they are licensed by a reputable authority (FCA, SEC, ASIC, etc.).
• Understand all fees – Spreads, commissions, overnight financing, withdrawal fees.
• Test customer support – You need them in a crisis.
• Start with a well-known, established broker – Avoid obscure platforms with offers that seem too good.
💡 Final Wisdom
• Preservation of capital is more important than making profits. Survive to trade another day.
• The market will always be there – Missing an opportunity is better than taking a bad trade.
• Trading is a marathon of consistency, not a sprint for mega-returns.
• If you're consistently losing, stop, step back, and re-evaluate. Sometimes the best trade is no trade.
Remember, approximately 90% of retail traders lose money. To be in the successful 10%, you need discipline, continuous learning, and emotional control more than a "perfect" strategy. Good luck.
FXShare HotspotsThis is another small concept I’ve been playing with while watching price behavior more than indicators.
The idea is simple:
price often tells you something before it turns, not with indicators, but with shape + effort.
This script compares:
• Candle body size
• Wick dominance (rejection)
• Relative volume spike
When those line up, it marks what I call a Hotspot - a place where price put in effort (volume) but failed to continue in the same direction (small body, long wick).
Very often, these areas precede reactions, pauses, or reversals.
I intentionally made all the math adjustable:
• volume multiplier
• body vs wick ratios
• minimum wick dominance
• optional EMA-based trend filter
Nothing is hard-coded, because markets, symbols, and timeframes behave differently. You can tune it for crypto, forex, indices or rip parts of it for your own experiments.
There are no zones, no boxes, no clutter, just clean markings where the condition happened, so it’s easy to read and easy to build on. It’s more like a visual highlighter for moments where price/volume behavior becomes interesting.
XRP Athey Mitchnick Implied Price (Ramp + Analytical 2030 Label)This indicator implements a fundamental valuation framework for XRP based on the Athey–Mitchnick cryptoasset valuation model. Unlike traditional technical indicators (RSI, MACD, etc.), this tool is not designed to predict short-term price movements. Instead, it models what XRP should be worth over time under explicit adoption and demand assumptions.
It answers the question:
If XRP becomes a real settlement rail and a long-term store of value, what price would be required for the system to function?
What This Indicator Adds
This implementation extends the static Athey–Mitchnick model by introducing a time-based ramp:
1. Adoption grows over time
You specify:
TV CAGR (%)
SoV CAGR (%)
These values compound annually from a start date to an end date (e.g., 2030), producing a dynamic implied valuation curve.
2. Terminal 2030 price is computed analytically
The indicator explicitly computes the implied price at the target year (e.g., 2030) and displays it as:
“2030 Implied Price = $X”
This is done analytically, so the chart does not need to extend to 2030 for you to see the terminal valuation.
3. This is not a trading indicator
This model is not designed for:
Scalping
Breakouts
Entry timing
Momentum trading
It is designed for:
Long-term valuation anchoring
Scenario modeling
Macro thesis testing
Adoption-based forecasting
Narrative vs fundamentals comparison
How to Read the Chart
Market Price (Close)
This is the actual XRP market price. It reflects:
Speculation
Liquidity
Leverage
Narrative
Emotion
Implied Price (Ramp)
This is the fundamental valuation curve.
It shows what XRP’s price would need to be at each point in time for your adoption and store-of-value assumptions to be true.
Bands (Optional)
The ±% bands are valuation tolerance zones. They are not volatility bands.
They help visualize:
Overvaluation
Undervaluation
Reversion zones
2030 Label
The label:
2030 Implied Price = $X
represents the terminal valuation implied by your assumptions. This is the most important output of the model.
What Makes the Price Go Higher
To increase the implied 2030 price, one or more of these must change:
1. Higher Transaction Adoption (TV)
Inputs:
TV0
TV CAGR %
This reflects real-world economic usage.
Higher TV means XRP is settling more real value per day.
Examples:
Cross-border payments
Tokenized assets
Treasury settlement
Interbank liquidity rails
2. Higher Store-of-Value Demand (SoV)
Inputs:
SoV0
SoV CAGR %
This reflects long-term holding demand.
This is the most powerful driver of long-term price.
It models:
Institutional holdings
Strategic reserves
Collateral usage
Long-term investor behavior
3. Lower Velocity
Input:
Velocity V
Lower velocity means XRP must be held longer to support the same transaction volume.
This implies:
Reserve-like behavior
Collateralization
Treasury holding
Structural stickiness
Price is inversely proportional to velocity.
4. Lower Effective Supply
Inputs:
Supply0
Supply CAGR
Supply cap
If XRP becomes locked, escrowed, staked, or structurally held, the effective circulating supply shrinks, increasing price.
Why This Matters
Most crypto price models are:
Technical
Reflexive
Narrative-driven
Non-falsifiable
This one is:
Structural
Adoption-based
Testable
Falsifiable
If XRP never achieves the adoption implied by your inputs, the model will not justify high prices.
This indicator is a forward-looking valuation engine, not a trading tool.
It shows:
What XRP’s price must be for your beliefs about its future to be true.
It forces clarity.
It forces discipline.
And it converts stories into structure.
Cash-and-Carry Yield (APR)This indicator calculates and visualizes the annualized rate of return for Cash-and-Carry arbitrage strategies by comparing a specific Futures contract against its underlying Spot price. By automatically projecting the current price spread (basis) based on the exact time remaining until expiration, it allows traders to instantly assess the potential "risk-free" yield available in the market.
The script is engineered to support both continuous 24/7 crypto markets and traditional CME futures. It features a smart "Gap Handling" setting that allows users to choose between a strict view that respects market closes (showing "Market Closed" during weekends) or a filled view that carries over the last known price for a seamless chart experience.
Visually, the indicator displays the annualized yield as a histogram; green columns indicate a Contango market (positive yield), while red columns signal Backwardation. A Simple Moving Average (SMA) is overlaid to help identify the broader yield trend amidst volatility. An integrated dashboard table in the corner provides a real-time summary of the Spot Price, Future Price, absolute spread, and the precise number of days left until expiration. Please ensure the Futures Ticker and the corresponding Expiration Date are correctly entered in the settings for accurate time-weighted calculations.
Swing Structure Bands [ChartPrime]⯁ OVERVIEW
Swing Structure Bands is a structure-based trend and reaction indicator that builds adaptive price bands directly from swing highs and swing lows.
Instead of using fixed-length moving averages, the bands dynamically adjust their length based on how long price has been forming higher highs or lower lows, allowing the indicator to naturally align with real market structure.
This makes the tool especially effective for identifying swing-based support and resistance, trend continuation zones, and exhaustion reactions.
⯁ CORE CONCEPT
The indicator continuously tracks:
The most recent swing high and swing low over a configurable swing window.
How long price has been developing since each swing point.
Dynamic moving averages whose length grows with the swing itself.
As long as price respects the current swing direction, the bands extend and adapt.
When structure breaks, the system resets and starts forming new swing-based bands.
⯁ SWING DETECTION LOGIC
A Swing High is detected when price forms a local maximum relative to the swing lookback.
A Swing Low is detected when price forms a local minimum relative to the swing lookback.
Direction flips when price transitions from forming highs to forming lows, or vice versa.
Each confirmed swing is marked on the chart, giving clear structural context.
⯁ ADAPTIVE BAND CONSTRUCTION
Upper bands are derived from swing highs.
Lower bands are derived from swing lows.
Band length dynamically increases as the swing develops.
Multiple MA types can be used (SMA, EMA, SMMA/RMA, WMA, VWMA).
ATR is applied as an offset to create upper and lower envelopes around each band, forming a volatility-aware structure channel.
⯁ VOLATILITY FILTERING
If the band moves too aggressively relative to ATR, it is temporarily disabled.
This prevents unstable or noisy bands during sudden expansions.
Bands only remain active when price structure is stable.
This logic keeps the indicator focused on meaningful swings rather than short-term spikes.
⯁ REACTION & SIGNAL LOGIC
Sell signals appear when price crosses down from the upper swing band after sufficient stabilization.
Buy signals appear when price crosses up from the lower swing band after sufficient stabilization.
Cooldown logic prevents signal clustering.
Signals are designed as structure reactions , not momentum breakouts.
⯁ VISUAL STRUCTURE CLARITY
Separate bullish and bearish bands with customizable colors.
Optional band envelopes for visual depth.
Clear swing labels marking structural turning points.
Diamond markers highlight reaction zones.
The visualization emphasizes where price reacts to structure rather than where it accelerates.
⯁ HOW TO USE
Use upper bands as dynamic resistance during bearish or corrective phases.
Use lower bands as dynamic support during bullish phases.
Combine band reactions with higher-timeframe trend direction.
Look for confirmations near bands rather than mid-range entries.
The indicator works best as a structure framework rather than a standalone signal generator.
⯁ IDEAL MARKET CONDITIONS
Trending markets with clear swing development.
Markets transitioning from impulse to correction.
Crypto, forex, indices, and liquid stocks.
⯁ CONCLUSION
Swing Structure Bands offers a structurally grounded alternative to traditional moving average channels.
By anchoring bands to real swing behavior and adapting dynamically over time, it provides traders with a clearer view of where price is reacting, pausing, or potentially reversing within the broader market structure.
ATR Volatility RegimeATR Volatility Regime
A volatility classification indicator that uses ATR (Average True Range) percentile ranking to identify LOW , NORMAL , HIGH , or EXTREME volatility conditions.
Displayed as a separate pane oscillator (0–100 scale) with colored zones.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 WHY THIS INDICATOR?
Most volatility indicators show raw ATR — a number without context. Is ATR = 50 high or low? Depends on the asset and recent history.
This indicator answers: "Is current volatility high or low for THIS asset, right now?"
What it adds over standard ATR:
Percentile context — Compares current ATR to its own history
Regime classification — Actionable labels instead of raw numbers
Visual zones — Instant read without interpretation
Optional MTF — Lock to a fixed timeframe while viewing another
Auto-adapts — Works on any asset without manual threshold tuning
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📐 CORE CONCEPTS
ATR (Average True Range)
Measures volatility in price units — how much an asset typically moves per bar. Directionless (magnitude only, not direction).
Calculation:
True Range = the greatest of:
High − Low (current bar's range)
|High − Previous Close| (gap up captured)
|Low − Previous Close| (gap down captured)
ATR = Moving average of True Range over N bars (default: 14)
Percentile Rank (Pctl)
Answers: "What percentage of historical values is the current value greater than?"
Pctl = 0% → Lowest ATR in lookback period (extreme compression)
Pctl = 50% → Median ATR (typical volatility)
Pctl = 100% → Highest ATR in lookback period (extreme expansion)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 WHAT IT DOES
Classifies current volatility into four regimes:
LOW (< 25th percentile) — Compression, breakout likely brewing
NORMAL (25th–50th percentile) — Typical market conditions
HIGH (50th–75th percentile) — Elevated volatility, use caution
EXTREME (> 75th percentile) — Rare expansion, tighten stops or stay flat
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 DISPLAY COMPONENTS
Oscillator Line (0–100)
ATR percentile rank over time. Color matches regime:
Blue = LOW
Gray = NORMAL
Orange = HIGH
Red = EXTREME
Zone Backgrounds
Colored bands at threshold levels for instant visual reference.
Status Label
VOL — Current regime
ATR — Raw ATR value (for stop sizing)
Pctl — Percentile rank (0–100%)
TF — Active timeframe (chart or fixed)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 HOW TO USE
LOW Volatility (Pctl < 25%):
Market compressed — "calm before the storm"
Watch for breakout setups
Pctl = 0% often precedes significant moves
NORMAL Volatility (Pctl 25–50%):
Typical conditions
Standard position sizing and stops
HIGH Volatility (Pctl 50–75%):
Elevated movement — reduce size
Widen stops to avoid noise
EXTREME Volatility (Pctl > 75%):
Rare, intense conditions
Avoid new entries or tighten risk
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ SETTINGS
ATR Settings:
ATR Length (default: 14) — Period for ATR calculation
Percentile Lookback (default: 100) — Bars for percentile ranking
Timeframe:
Use Fixed Timeframe (default: off) — Lock calculation to specific TF
Fixed Timeframe (default: D) — TF to use when fixed mode enabled
Thresholds:
Low Threshold (default: 25)
High Threshold (default: 50)
Extreme Threshold (default: 75)
Display:
Show Zone Background — Toggle colored fills
Show Status Label — Toggle info label
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📋 SUGGESTED LOOKBACK BY ASSET
Crypto — 100 bars (fast regime shifts)
Stocks — 252 bars (one trading year)
Forex — 100–150 bars
Commodities — 150–200 bars (seasonal patterns)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 ALERTS
Vol → EXTREME
Vol → HIGH
Vol → LOW
Vol exits HIGH
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 PRACTICAL APPLICATIONS
Stop-Loss Sizing:
Use raw ATR for stops. Example: Stop = Entry − (1.5 × ATR)
Position Sizing:
Reduce size when percentile is HIGH or EXTREME.
Entry Filtering:
LOW regime = prepare for breakout
EXTREME regime = avoid new entries
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 NOTES
Works on any timeframe — adapts to chart or locks to fixed TF
ATR is non-directional — magnitude only
Percentile auto-adapts to each asset's volatility profile
Not a standalone signal — combine with trend/regime filters
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🏷️ TAGS
volatility, ATR, average-true-range, percentile, regime, risk-management, position-sizing, swing-trading, MTF
Weekly Regime Filter - Trend + Momentum + Structure (MTF)A multi-timeframe weekly regime indicator that classifies market conditions into BULL , BEAR , or CHOP using three components: trend, momentum, and market structure.
Works on any timeframe while always referencing weekly data — no repainting.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 WHAT IT DOES
Answers one question: What is the weekly regime?
• Trend — EMA hierarchy (Price > EMA Fast > EMA Slow)
• Momentum — DI+ vs DI- with optional ADX filter
• Structure — Break of Structure (BOS) and Change of Character (CHOCH)
BULL = All three bullish
BEAR = All three bearish
CHOP = Mixed signals
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ KEY FEATURES
• Multi-Timeframe (MTF) — View on 1H, 4H, Daily; regime stays consistent
• Auto-Detect Asset Type — Automatically applies optimized settings for Crypto, Stocks, Forex, Gold, Silver, Oil, Commodities
• BOS/CHOCH Labels — Visual market structure breaks on chart
• Live Status Panel — Shows regime, components, and active parameters
• Non-Repainting — Uses confirmed weekly closes only
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 ASSET PRESETS
• Crypto — EMA 50/200, ADX Off, Pivot 2
• Stocks/Indices — EMA 50/200, ADX >20, Pivot 3
• Forex — EMA 30/100, ADX >25, Pivot 2
• Gold — EMA 40/150, ADX >20, Pivot 3
• Silver — EMA 40/150, ADX >22, Pivot 3
• Oil — EMA 30/100, ADX >25, Pivot 2
• Commodities — EMA 40/120, ADX >20, Pivot 3
Select "Custom" to use your own values.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 HOW TO USE
For Swing Trading:
• Set chart to Daily
• Use Auto-Detect or select preset
• Long only when BULL, short only when BEAR
• Reduce size or avoid when CHOP
Structure Signals:
• CHOCH ↑ after bear regime = Early reversal signal
• CHOCH ↓ after bull regime = Tighten stops
• BOS in regime direction = Trend continuation
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 ALERTS
• Regime → BULL
• Regime → BEAR
• CHOCH → Bull
• CHOCH → Bear
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ SETTINGS
Preset: Auto-Detect, Crypto, Stocks, Forex, Gold, Silver, Oil, Commodities, Custom
Custom Settings (when Custom selected):
• EMA Fast/Slow lengths
• ADX Length & Threshold
• ADX Filter toggle
• Pivot Left/Right
Display:
• Plot Weekly EMAs
• Show BOS/CHOCH Labels
• Show Regime Background
• Background Opacity
• Show Status Label
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 NOTES
• Needs ~200 weeks of history for full calculation
• Weekly signals are slower by design — filters noise
• Not a standalone system — combine with entries and risk management
• When using presets, Custom input fields won't visually update (Pine limitation) — status label shows actual values
EEQI [Environment Quality Index] PyraTime The Problem: Why Good Strategies Fail
The number one reason traders lose capital is not a lack of strategy—it is forced execution in poor environments.
Most indicators (RSI, MACD, Stochastic) are continuously active, generating signals even when the market is dead, choppy, or chaotic. A breakout strategy that prints money in a trend will destroy your account in a consolidation range. A mean-reversion system that works in chop will fail during a parabolic expansion.
The Solution: PyraTime EEQI The Execution Environment Quality Index (EEQI) is a "Gatekeeper" layer for your trading. It does not tell you what to buy or sell; it tells you if you should be trading at all.
By aggregating Volatility, Price Structure, and Efficiency into a single composite score, the EEQI answers the most critical question in discretionary trading: "Is the market efficient enough to deploy capital right now?"
How It Works: The 3 Core Engines
The EEQI calculates a raw "Environment Score" (from -2 to +4) by analyzing three distinct dimensions of price action.
1. Volatility Engine (Usability)
The Logic: Measures the "Alive-ness" of the market using ATR Percentiles.
The Filter: It detects "Dead Zones" (where price is too flat to hit targets) and "Chaos Zones" (where volatility is too dangerous).
Smart Feature (Parabolic Override): If price moves significantly (>2x ATR) in a single candle, the engine recognizes this as "High Momentum" rather than chaos, unlocking Green signals during breakouts.
2. Structure Engine (Bar Quality)
The Logic: Analyzes the relationship between candle bodies, wicks, and overlap.
The Filter: It penalizes "Barbed Wire" price action—candles with long wicks and high overlap—which indicate indecision and algo-chop.
The Goal: We want to trade during "Clean Flow," where candle bodies are large and overlap is low.
3. Efficiency Engine (Directional Flow)
The Logic: Compares Net Displacement (start-to-finish distance) vs. Total Distance Traveled.
The Filter: Identifies "Whipsaw" conditions where price moves a lot but goes nowhere.
Smart Feature (Velocity Lock): If price travels a massive distance quickly, the efficiency requirement is relaxed to catch explosive moves that might otherwise look "messy."
The "Smart Gatekeepers"
Even if the Core Engines look good, the EEQI applies three final safety checks before granting a PRIME status.
Regime Persistence (Stability Check): The market must hold a high score for a set number of bars (default: 1) before the signal turns Green. This prevents "fake-outs" where a single anomaly candle tricks you into entering a bad trend.
Volume Validation (Liquidity Check): Price movement without participation is a trap. The EEQI checks Relative Volume (RVOL). If volume is below average (e.g., lunch hour, holidays, or late-night sessions), the score is capped at "Fair" or "Low Vol," preventing execution in thin liquidity.
Macro Context (HTF Filter): You cannot trade against the higher timeframe. The EEQI checks the trend and volatility of the Higher Timeframe (default: Weekly). If the macro view is compressed or dead, the local signal is vetoed.
How to Read the HUD
The Dashboard (Bottom Right) gives you an instant read on the market state.
🟢 PRIME (+4): Execution Optimal. The market is trending, efficient, and backed by volume. This is the "Green Light" for your strategy.
🔵 FAIR (+1 to +3): Tradeable. Conditions are decent, but one factor (e.g., volume or structure) is imperfect. Exercise caution.
⚪ NEUTRAL (0): Indecision. The market is transitioning. Stand aside.
🟡 BUILDING: Wait. The market is good, but hasn't proven itself yet (Persistence Check).
🟠 POOR / LOW VOL: Chop. Price is messy or lacking participation.
🔴 AVOID (-2): Danger Zone. The market is either dead flat or violently chaotic. Do not trade.
Settings & Customization
The indicator comes with calibrated presets for different asset classes:
Crypto: Tolerates higher volatility and requires stronger efficiency confirmation.
Forex: Stricter dead-zone filters to handle ranging sessions.
Indices: Balanced settings for standard equity hours.
Disclaimer
This tool is designed for environment analysis only. It does not provide buy or sell signals, entry prices, or stop-losses. It is intended to be used as a filter to improve the performance of your own discretionary strategies.
ARPAKET_FLOW_CRYPTOArpaket_FLOW - TradingView Script
---
## 📝 Short Description (for subtitle)
```
Advanced Money Flow Indicator with Multi-Asset Support, Whale Detection & Multi-Timeframe Analysis
```
---
## 📄 Full Description (copy below this line)
---
### 🌊 ARPAKET_FLOW - Smart Money Flow Indicator
**Arpaket_FLOW** is a comprehensive money flow indicator designed to help traders visualize whether smart money is flowing INTO or OUT of the market, along with the intensity of that flow. This indicator combines multiple proven technical analysis methods into a single, easy-to-read tool for making informed buy/sell decisions.
---
### 🎯 What Does This Indicator Do?
This indicator answers the most critical question in trading: **"Is money flowing into or out of this asset?"**
By combining volume analysis with price action, Arpaket_FLOW calculates a **Flow Score (0-100)** that tells you:
- **Above 70**: Strong money inflow → Bullish bias
- **50-70**: Moderate inflow → Cautiously bullish
- **30-50**: Neutral zone → Wait for confirmation
- **Below 30**: Strong money outflow → Bearish bias
---
### 🔬 How It Works
Arpaket_FLOW combines **6 powerful indicators** into one unified score:
| Component | Weight | Purpose |
|-----------|--------|---------|
| **Volume Ratio** | 25% | Detects unusual volume activity |
| **Money Flow Index (MFI)** | 20% | Measures buying/selling pressure with volume |
| **Chaikin Money Flow (CMF)** | 20% | Identifies accumulation/distribution |
| **On-Balance Volume (OBV)** | 15% | Tracks volume flow direction |
| **RSI Momentum** | 10% | Confirms price momentum |
| **VWAP Deviation** | 10% | Institutional price reference |
---
### ✨ Key Features
#### 🎛️ Multi-Asset Adaptation
- **Crypto Mode**: Higher volatility thresholds + Whale detection
- **Low Liquidity Stocks**: Adjusted sensitivity for thin markets (SET Index, Small Caps)
- **High Liquidity Markets**: Standard settings for Forex, Major Indices
#### ⏱️ Multiple Trading Styles
- **Scalping** (1-5 min): Ultra-fast signals with noise filtering
- **Day Trading** (15min-1H): Balanced speed and reliability
- **Swing Trading** (4H-Daily): Multi-timeframe confirmation
- **Position Trading** (Weekly+): Long-term flow analysis
#### 🐋 Whale Detection (Crypto)
Automatically detects unusual large-volume activity that may indicate whale accumulation or distribution. When volume exceeds 3x the average, a whale marker (🐋) appears on the chart.
#### 📊 Multi-Timeframe Panel
For Swing and Position traders, view flow direction across 4 timeframes (1H, 4H, Daily, Weekly) simultaneously to ensure alignment before entering trades.
#### 📋 Real-Time Dashboard
A clean dashboard displaying:
- Flow Direction (Inflow/Outflow/Neutral)
- Flow Score (0-100)
- Flow Strength (Weak/Moderate/Strong/Extreme)
- Volume Status (Normal/Surge/Whale)
- MFI & CMF readings
- Overall Signal (Buy/Sell/Neutral)
#### ⚠️ Divergence Detection
Automatically identifies bullish and bearish divergences between price and money flow, providing early reversal warnings.
---
### 📖 How To Use
#### Basic Usage:
1. **Select your Market Type** in settings (Crypto/Low Liquidity/High Liquidity)
2. **Select your Trading Style** (Scalping/Day Trading/Swing/Position)
3. **Watch the histogram**:
- Green bars = Money flowing IN (bullish)
- Red bars = Money flowing OUT (bearish)
- Bar height = Flow intensity
#### Signal Interpretation:
| Signal | Meaning | Suggested Action |
|--------|---------|------------------|
| 🟢 Green Triangle | Strong buy signal | Consider long entry |
| 🔴 Red Triangle | Strong sell signal | Consider short/exit |
| 🐋 Whale Icon | Large player activity | Watch for direction |
| DIV Label | Divergence detected | Potential reversal |
#### Best Practices:
- Use **higher timeframes** for trend direction
- Use **lower timeframes** for entry timing
- Wait for **MTF alignment** (3+ timeframes agreeing) for higher probability trades
- Combine with support/resistance levels for optimal entries
---
### ⚙️ Settings Guide
#### General Settings
- **Market Type**: Match to your traded asset
- **Trading Style**: Match to your timeframe
- **Sensitivity**: Conservative (fewer signals) → Aggressive (more signals)
#### Period Settings
- **Fast Period**: Short-term calculation (default: 7)
- **Slow Period**: Long-term calculation (default: 21)
- **Signal Smoothing**: Reduces noise (default: 5)
#### Alert Settings
- **Buy Threshold**: Score level for buy signals (default: 70)
- **Sell Threshold**: Score level for sell signals (default: 30)
- **Volume Surge Multiplier**: Volume spike detection (default: 2.0x)
- **Whale Multiplier**: Whale detection threshold (default: 3.0x)
---
### 🔔 Available Alerts
1. **Strong Buy/Sell Signal** - When confirmed signals trigger
2. **Enter Buy/Sell Zone** - When score crosses thresholds
3. **Whale Activity** - Accumulation or distribution detected
4. **Bullish/Bearish Divergence** - Price/flow divergence
5. **Volume Surge** - Unusual volume spike
6. **MTF Alignment** - Multiple timeframes agree
7. **Extreme Conditions** - Score above 90 or below 10
8. **Flow Reversal** - Direction change confirmed
---
### 📈 Recommended Combinations
This indicator works best when combined with:
- **Support/Resistance levels** for entry points
- **Trend lines** for direction confirmation
- **Moving Averages** (EMA 20/50/200) for trend context
- **Price Action patterns** for timing
---
### ⚠️ Disclaimer
This indicator is a tool to assist in trading decisions, not a guarantee of profits. Always:
- Use proper risk management
- Never risk more than you can afford to lose
- Backtest before live trading
- Consider multiple factors before entering trades
Past performance does not guarantee future results. Trading involves substantial risk of loss.
---
### 🙏 Credits & Acknowledgments
This indicator combines concepts from:
- Money Flow Index (Gene Quong & Avrum Soudack)
- Chaikin Money Flow (Marc Chaikin)
- On-Balance Volume (Joe Granville)
- Volume-Weighted Average Price (Institutional standard)
---
### 💬 Feedback
If you find this indicator helpful, please leave a comment or like! Your feedback helps improve future updates.
For questions or suggestions, feel free to comment below.
**Happy Trading!** 🚀
---
## 🏷️ Suggested Tags (for TradingView)
```
moneyflow, volume, smartmoney, whaledetection, crypto, stocks, forex, mfi, cmf, obv, vwap, multitimeframe, buysellindicator, flowanalysis, accumulation, distribution
```
---
## 📸 Suggested Screenshots to Include
1. **Main Chart View** - Show the indicator with histogram and dashboard
2. **Buy Signal Example** - Zoom in on a successful buy signal
3. **Whale Detection** - Show crypto chart with whale markers
4. **MTF Panel** - Display multi-timeframe alignment
5. **Settings Panel** - Show available customization options
RSI Open-Source IndicatorA simple open-source RSI indicator
using default settings.
No signals.
No predictions.






















