Bitcoin Power Law [LuxAlgo]The Bitcoin Power Law tool is a representation of Bitcoin prices first proposed by Giovanni Santostasi, Ph.D. It plots BTCUSD daily closes on a log10-log10 scale, and fits a linear regression channel to the data.
This channel helps traders visualise when the price is historically in a zone prone to tops or located within a discounted zone subject to future growth.
🔶 USAGE
Giovanni Santostasi, Ph.D. originated the Bitcoin Power-Law Theory; this implementation places it directly on a TradingView chart. The white line shows the daily closing price, while the cyan line is the best-fit regression.
A channel is constructed from the linear fit root mean squared error (RMSE), we can observe how price has repeatedly oscillated between each channel areas through every bull-bear cycle.
Excursions into the upper channel area can be followed by price surges and finishing on a top, whereas price touching the lower channel area coincides with a cycle low.
Users can change the channel areas multipliers, helping capture moves more precisely depending on the intended usage.
This tool only works on the daily BTCUSD chart. Ticker and timeframe must match exactly for the calculations to remain valid.
🔹 Linear Scale
Users can toggle on a linear scale for the time axis, in order to obtain a higher resolution of the price, (this will affect the linear regression channel fit, making it look poorer).
🔶 DETAILS
One of the advantages of the Power Law Theory proposed by Giovanni Santostasi is its ability to explain multiple behaviors of Bitcoin. We describe some key points below.
🔹 Power-Law Overview
A power law has the form y = A·xⁿ , and Bitcoin’s key variables follow this pattern across many orders of magnitude. Empirically, price rises roughly with t⁶, hash-rate with t¹² and the number of active addresses with t³.
When we plot these on log-log axes they appear as straight lines, revealing a scale-invariant system whose behaviour repeats proportionally as it grows.
🔹 Feedback-Loop Dynamics
Growth begins with new users, whose presence pushes the price higher via a Metcalfe-style square-law. A richer price pool funds more mining hardware; the Difficulty Adjustment immediately raises the hash-rate requirement, keeping profit margins razor-thin.
A higher hash rate secures the network, which in turn attracts the next wave of users. Because risk and Difficulty act as braking forces, user adoption advances as a power of three in time rather than an unchecked S-curve. This circular causality repeats without end, producing the familiar boom-and-bust cadence around the long-term power-law channel.
🔹 Scale Invariance & Predictions
Scale invariance means that enlarging the timeline in log-log space leaves the trajectory unchanged.
The same geometric proportions that described the first dollar of value can therefore extend to a projected million-dollar bitcoin, provided no catastrophic break occurs. Institutional ETF inflows supply fresh capital but do not bend the underlying slope; only a persistent deviation from the line would falsify the current model.
🔹 Implications
The theory assigns scarcity no direct role; iterative feedback and the Difficulty Adjustment are sufficient to govern Bitcoin’s expansion. Long-term valuation should focus on position within the power-law channel, while bubbles—sharp departures above trend that later revert—are expected punctuations of an otherwise steady climb.
Beyond about 2040, disruptive technological shifts could alter the parameters, but for the next order of magnitude the present slope remains the simplest, most robust guide.
Bitcoin behaves less like a traditional asset and more like a self-organising digital organism whose value, security, and adoption co-evolve according to immutable power-law rules.
🔶 SETTINGS
🔹 General
Start Calculation: Determine the start date used by the calculation, with any prior prices being ignored. (default - 15 Jul 2010)
Use Linear Scale for X-Axis: Convert the horizontal axis from log(time) to linear calendar time
🔹 Linear Regression
Show Regression Line: Enable/disable the central power-law trend line
Regression Line Color: Choose the colour of the regression line
Mult 1: Toggle line & fill, set multiplier (default +1), pick line colour and area fill colour
Mult 2: Toggle line & fill, set multiplier (default +0.5), pick line colour and area fill colour
Mult 3: Toggle line & fill, set multiplier (default -0.5), pick line colour and area fill colour
Mult 4: Toggle line & fill, set multiplier (default -1), pick line colour and area fill colour
🔹 Style
Price Line Color: Select the colour of the BTC price plot
Auto Color: Automatically choose the best contrast colour for the price line
Price Line Width: Set the thickness of the price line (1 – 5 px)
Show Halvings: Enable/disable dotted vertical lines at each Bitcoin halving
Halvings Color: Choose the colour of the halving lines
Ciclos
BTC Dominance Zones (For Altseason)Overview
The "BTC Dominance Zones (For Altseason)" indicator is a visual tool designed to help traders navigate the different phases of the altcoin market cycle by tracking Bitcoin Dominance (BTC.D).
It provides clear, color-coded zones directly on the BTC.D chart, offering an intuitive roadmap for the progression of alt season.
Purpose & Problem Solved
Many traders often miss altcoin rotations or get caught at market tops due to emotional decision-making or a lack of a clear framework. This indicator aims to solve that problem by providing an objective, historically informed guide based on Bitcoin Dominance, helping users to prepare before the market makes its decisive moves. It distils complex market dynamics into easily digestible sections.
Key Features & Components
Color-Coded Horizontal Zones: The indicator draws fixed horizontal bands on the BTC.D chart, each representing a distinct phase of the altcoin market cycle.
Descriptive Labels: Each zone is clearly labeled with its strategic meaning (e.g., "Alts are dead," "Danger Zone") and the corresponding BTC.D percentage range, positioned to the right of the price action for clarity.
Consistent Aesthetics: All text within the labels is rendered in white for optimal visibility across the colored zones.
Symbol Restriction: The indicator includes an automatic check to ensure it only draws its visuals when applied specifically to the CRYPTOCAP:BTC.D chart. If applied to another chart, it displays a helpful message and remains invisible to prevent confusion.
Methodology & Interpretation
The indicator's methodology is based on the historical behavior of Bitcoin Dominance during various market cycles, particularly the 2021 bull run. Each zone provides a specific interpretation for altcoin strategy:
Grey Zone (BTC.D 60-70%+): "Alts Are Dead"
Interpretation: When Bitcoin Dominance is in this grey zone (typically above 60%), Bitcoin is king, and capital remains concentrated in BTC. This indicates that alt season is largely inactive or "dead". This phase is generally not conducive for aggressive altcoin trading.
Blue Zone (BTC.D 55-60%): "Alt Season Loading"
Interpretation: As BTC.D drops into this blue zone (below 60%), it signals that the market is "heating up" for altcoins. This is the time to start planning and executing your initial positions in high-conviction large-cap and strong narrative plays, as capital begins to look for more risk.
Green Zone (BTC.D 50-55%): "Alt Season Underway"
Interpretation: Entering this green zone (below 55%) signifies that "real momentum" is building, and alt season is genuinely "underway". Money is actively flowing from Ethereum into large and mid-cap altcoins. If you've positioned correctly, your portfolio should be showing strong gains in this phase.
Orange Zone (BTC.D 45-50%): "Alt Season Ending"
Interpretation: As BTC.D dips into this orange zone (below 50%), it suggests that altcoin dominance is reaching its peak, indicating the "ending" phase of alt season. While euphoria might be high, this is a critical warning zone to prepare for profit-taking, as it's a phase of "peak risk".
Red Zone (BTC.D Below 45%): "Danger Zone - Alts Overheated"
Interpretation: This red zone (below 45%) is the most critical "DANGER ZONE". It historically marks the point of maximum froth and risk, where altcoins are overheated. This is the decisive signal to aggressively take profits, de-risk, and exit positions to preserve your capital before a potential sharp correction. Historically, dominance has gone as low as 39-40% in this phase.
How to Use
Open TradingView and search for the BTC.D symbol to load the Bitcoin Dominance chart and view the indicator.
Double click the indicator to access settings.
Inputs/Settings
The indicator's zone boundaries are set to historically relevant levels for consistency with the Alt Season Blueprint strategy. However, the colors of each zone are fully customizable through the indicator's settings, allowing users to personalize the visual appearance to their preference. You can access these color options in the indicator's "Settings" menu once it's added to your chart.
Disclaimer
This indicator is provided for informational and educational purposes only. It is not financial advice. Trading cryptocurrencies involves substantial risk of loss and is not suitable for every investor. Past performance is not indicative of future results. Always conduct your own research and consult with a qualified financial professional before making any investment decisions.
About the Author
This indicator was developed by Nick from Lab of Crypto.
Release Notes
v1.0 (June 2025): Initial release featuring color-coded horizontal BTC.D zones with descriptive labels, based on Alt Season Blueprint strategy. Includes symbol restriction for correct chart application and consistent white text.
Market Structure + VIX long & shortThis script is an indicator related to VIX short and long positions.
I tried to closely follow the put call ratio calculated by CNN. I referred to the CPC chart and the USDI PCCE chart. The VIX long position is quite risky, so I hope you consider it as a signal to start thinking when it appears. On the other hand, the VIX short signal consists of strong signals and mild signals. The mild signal is risky but occurs at points where CNN's put call ratio is above 0.8 and the VIX is above 30. The strong short signal is a very powerful short signal.
I hope you find it useful.
God bless you traders.
[alert-custome] direction-ema-dca-rsi-security
Below is a detailed description of the Pine Script v5 strategy titled direction-ema-dca-rsi-security. This strategy automates Long or Short trading on cryptocurrency pairs (e.g., BTCUSDT.P), leveraging technical indicators such as EMA, RSI, and ATR, combined with a Dollar Cost Averaging (DCA) approach. It integrates with OKX via alerts for automated trading execution.
Overview
Strategy Name: direction-ema-dca-rsi-security
Objective: Automate Long or Short trades using EMA, RSI, and ATR signals, with DCA to improve average position price when the market moves against the position. The strategy allows customization of trade direction (Long or Short) and integrates with OKX for automated execution.
Type: Supports both Long and Short trades, using leverage and flexible capital management.
Target Market: Designed for high-volatility cryptocurrency markets, particularly perpetual futures pairs like BTCUSDT.P.
Key Features:
Uses Fast and Slow EMAs to identify trends and entry points.
Combines RSI from the current timeframe and a user-defined timeframe (security RSI) to detect overbought/oversold conditions.
Implements DCA to add to positions when prices move unfavorably.
Integrates with OKX via JSON alerts for automated trading.
Supports Take Profit (TP) and Stop Loss (SL) based on ATR or percentage values.
Structure and Key Components
1. Strategy Configuration
Basic Settings:
Initial Capital: $1,000.
Leverage: Default 6x, adjustable from 1x to 10x.
Order Type: Cash-based, with a default quantity of 10.
Commission: 0.1% per trade.
Pyramiding: Allows up to 100 concurrent orders.
Slippage: 3 pips.
Backtest Fill Limits Assumption: 3 pips, ensuring limit orders are filled within a price range.
Calculate on Order Fills: Enabled (calc_on_order_fills = true).
Use Bar Magnifier: Enabled for detailed candle data calculations.
Fill Orders on Standard OHLC: Enabled, ensuring orders match standard open, high, low, close prices.
2. Input Parameters
The strategy offers customizable inputs, grouped as follows:
Strategy:
Fast/Slow EMA Length: Fast EMA (default 9), Slow EMA (default 21) for trend detection.
ATR Length: Default 14 for volatility measurement.
RSI Length: Default 14 for overbought/oversold detection.
RSI Security Timeframe: Default 15 minutes (options: 5m, 15m, 30m, 1h, 4h, D, W, M).
Direction Security Timeframe: Default daily (options: 4h, D, W, M).
Strategy Size:
Init Webhook Balance ($): Initial balance for webhook (default 0, uses strategy balance if unset).
Leverage: Financial leverage (default 6x).
Init Size Equity (%): Initial position size as a percentage of equity (default 2%).
Size Increase (%): Position size increase per DCA order (default 15%).
Max DCA Orders: Maximum DCA orders (default 15).
Strategy DCA:
Init Percent to DCA (%): Initial price drop/rise for DCA (default 2%).
Increase Step Percent to DCA (%): Incremental DCA price adjustment (default 1%).
Decrease DCA with ATR: ATR multiplier for DCA price (default 0, disabled).
Strategy DCA RSI:
RSI to DCA: RSI threshold for DCA (default 50, below for Long, above for Short).
Security RSI to DCA: RSI threshold for security timeframe (default 50).
Strategy Delay:
Off-Time Delays / Order (s): Delay between orders (default 1000 seconds).
Off-Time Active Stop Loss (Hour): Delay for activating Stop Loss (default 0, disabled).
Strategy TPSL (Take Profit/Stop Loss):
ATR Multiplier TP: ATR multiplier for Take Profit (default 2x).
Init TP (%): Initial Take Profit percentage (default 2%).
ATR Multiplier SL: ATR multiplier for Stop Loss (default 0, disabled).
Init SL (%): Initial Stop Loss percentage (default 0%, disabled).
Strategy Direction:
Trade Direction: Trade direction (default Long, options: Long, Short).
Strategy OKX:
OKX Signal Key: Signal key for OKX API integration.
3. Market Data
Technical Indicators:
EMA: Fast EMA (9) and Slow EMA (21) on the current timeframe for trend identification.
RSI: RSI (14) on the current timeframe and a user-defined timeframe (rsiSecurityTimeframe) for overbought/oversold signals.
ATR: ATR (14) for volatility-based calculations of TP, SL, and DCA prices.
External Library: Uses jason5480/chrono_utils/6 for time-related functions.
4. Entry Conditions
Long Position:
Condition 1: Fast EMA crosses above Slow EMA (ta.crossover(fastMA, slowMA)), or
Condition 2: RSI ≤ rsiTrigger (default 50), Fast EMA ≤ Slow EMA, and RSI security ≤ rsiSecurityTrigger (default 50).
Short Position:
Condition 1: Fast EMA crosses below Slow EMA (ta.crossunder(fastMA, slowMA)), or
Condition 2: RSI ≥ rsiTrigger, Fast EMA ≥ Slow EMA, and RSI security ≥ rsiSecurityTrigger.
Constraints:
Entries are allowed only if tradeDirection matches the signal (Long or Short).
Open trades ≤ maxDCAOrders (default 15).
Current price meets DCA conditions (if positions exist).
Time since last order ≥ offTimeMsOpen (default 1000 seconds).
5. Dollar Cost Averaging (DCA)
DCA Conditions:
Long: Current price ≤ DCA price, calculated as:
strategy.position_avg_price - (atrValue * decreaseDCAWithATR), or
strategy.position_avg_price * (1 - currentUnderPercentDCA) (default 2%, increasing by 1% per DCA).
Short: Current price ≥ DCA price, calculated similarly but for price increases.
DCA Management:
Position size increases by 15% per DCA (stepSizePercent).
DCA price distance increases by 1% per order (stepDecreasePercentDCA).
Maximum 15 DCA orders (maxDCAOrders).
6. Position Management
Position Size:
Initial size: 2% of equity (initSizeEquity).
Increases by 15% per DCA order.
Limited by leverage and current balance (currentBalance).
Current Balance:
If webhookInitBalance = 0, uses initial_capital + netprofit + openprofit.
If webhookInitBalance > 0, uses this value plus net and open profits.
Order Delay: Ensures a minimum gap of 1000 seconds between orders (offTimeMsOpen).
7. Exit Conditions
Take Profit (TP):
Long: strategy.position_avg_price + (atrValue * atrMultiplierTP) (default 2x ATR), or strategy.position_avg_price * (1 + initTP) (default 2%).
Short: strategy.position_avg_price - (atrValue * atrMultiplierTP), or strategy.position_avg_price * (1 - initTP).
Stop Loss (SL):
Long: strategy.position_avg_price - (atrValue * atrMultiplierSL), or strategy.position_avg_price * (1 - initSL).
Short: strategy.position_avg_price + (atrValue * atrMultiplierSL), or strategy.position_avg_price * (1 + initSL).
Currently, atrMultiplierSL and initSL = 0, meaning Stop Loss is disabled.
Exit Execution:
Uses strategy.order for Long TP and strategy.exit for Short TP, closing the entire position when TP is reached.
Sends OKX alerts for exits (EXIT_LONG or EXIT_SHORT).
8. Visualization
Plots:
Fast EMA: Red.
Slow EMA: Aqua.
Take Profit Price: Lime.
Position Average Price: Gray.
Background Color: Commented out, but can display green for Long or red for Short.
9. OKX Integration
Alerts:
Sends JSON alerts for entries (ENTER_LONG, ENTER_SHORT) and exits (EXIT_LONG, EXIT_SHORT), including:
Market position, size, order type (market), and investment percentage.
OKX signal key (okxSignalKeyInput) for API integration.
How the Strategy Works
Market Analysis:
Uses EMA (9, 21) for trend detection (crossover/crossunder).
Combines RSI from the current and security timeframes to confirm overbought/oversold conditions.
ATR measures volatility for TP, SL, and DCA price calculations.
Entry:
Long: Triggers on EMA crossover or RSI in oversold territory with a bearish trend.
Short: Triggers on EMA crossunder or RSI in overbought territory with a bullish trend.
Entries are restricted by tradeDirection setting.
DCA:
Adds positions when price moves against the trade (down for Long, up for Short) based on RSI or ATR conditions.
Increases position size and DCA price distance per order.
Exit:
Closes positions when price hits TP (ATR or percentage-based).
Stop Loss is currently disabled, posing a risk.
Risk Management:
Limits DCA orders to 15.
Enforces time delays between orders.
Caps leverage at 10x.
Strengths
Flexible Direction: Supports both Long and Short trades.
Effective DCA: Improves average position price in volatile markets.
OKX Integration: Automates trading via OKX API.
Multi-Timeframe Analysis: Uses RSI from a secondary timeframe for confirmation.
Customizable Capital Management: Adjustable position sizes and leverage.
Weaknesses
No Stop Loss: Disabled SL increases risk of large losses.
OKX Dependency: Requires accurate API configuration.
Simple Conditions: Relies primarily on EMA and RSI, potentially lacking depth.
Fixed Timeframes: Commented-out EMA security logic limits trend analysis flexibility.
Practical Applications
Target Market: High-volatility crypto markets, especially perpetual futures like BTCUSDT.P.
Trading Style: Suitable for short- to medium-term traders using DCA for risk management.
Optimization: Adjust fastMALen, slowMALen, rsiTrigger, or maxDCAOrders for specific markets.
Improvement Suggestions
Enable Stop Loss: Set atrMultiplierSL or initSL > 0 to protect capital.
Use EMA Security: Uncomment fastDirectionEMA and slowDirectionEMA code to enhance trend accuracy.
Optimize Parameters: Use TradingView’s optimization tool to fine-tune rsiTrigger, atrMultiplierTP, or maxDCAOrders.
Add Indicators: Incorporate Volume, ADX, or other indicators for robust entry signals.
Leverage Alerts: Add warnings for high-leverage risks in volatile conditions.
If you need further analysis, code optimization, or additional strategy development, let me know!
[FS] Time & Cycles Time & Cycles
A comprehensive trading session indicator that helps traders identify and track key market sessions and their price levels. This tool is particularly useful for forex and futures traders who need to monitor multiple trading sessions.
Key Features:
• Multiple Session Support:
- London Session
- New York Session
- Sydney Session
- Asia Session
- Customizable TBD Session
• Session Visualization:
- Clear session boxes with customizable colors
- Session labels with adjustable visibility
- Support for sessions crossing midnight
- Timezone-aware calculations
• Price Level Tracking:
- Daily High/Low levels
- Weekly High/Low levels
- Previous session High/Low levels
- Customizable history depth for each level type
• Customization Options:
- Adjustable colors for each session
- Customizable border styles
- Label visibility controls
- Timezone selection
- History level depth settings
• Technical Features:
- High-performance calculation engine
- Support for multiple timeframes
- Efficient memory usage
- Clean and intuitive visual display
Perfect for:
• Forex traders monitoring multiple sessions
• Futures traders tracking market hours
• Swing traders identifying key session levels
• Day traders planning their trading hours
• Market analysts studying session patterns
The indicator helps traders:
- Identify active trading sessions
- Track session-specific price levels
- Monitor market activity across different time zones
- Plan trades based on session boundaries
- Analyze price action within specific sessions
Note: This indicator is designed to work across all timeframes and is optimized for performance with minimal impact on chart loading times.
Indicador de Trading AvançadoIndicator for trading operations in Forex, cryptocurrencies, stocks and indices of the dollar and the Brazilian stock exchange, such as the mini index (b3) in the M1, M2, M3, M5, M15, M30 and D1 fractals.
This indicator sends signals in the form of a buy and sell arrow to the TradingViev analysis platform. Green for buy and red for sell. Enter the name "BUY" for buy operations and "SELL" for sell operations.
Its function is to be used in situations of breakout, reversal and retraction of structures and for each time fractal, mentioned above.
It should always prioritize the macro and micro trend (Support and Resistance, Prior Cut Adjustment, Automatic Volume Profile among others, aiming for the best possible confluence. The objective is 85% assertiveness.
This indicator uses the combination of trend, momentum, volatility, price logic, price action and SMC indicators.
This indicator aims to provide the command to operate in the direction of the next arrow-shaped candlestick .
Nenhum indicador substituirá o seu conhecimento. Utilize-o como confluência para seu operacional!
Singh Divergence SignalsThis indicator detects potential trend reversals by combining candle strength and volume momentum. It signals when candle value and Price Volume Trend (PVT) oscillator diverge, marking bullish and bearish reversal points directly on the price chart with arrows. Alerts notify you of these key divergence signals to help improve trade timing.
CANX Rules© CanxStix
A simple table that can be customized to have your trading rules/plan on screen at all times.
This should help you stick to your trading plan and have no excuse for not following your own set of rules.
Like always, Keep it simple!
© CanxStix
Last Candle Std Dev BandsSTandard deviation candles, very basic not much, can build into a larger mean reversion strategy
Anchored VWAP & STD BandsAnchoring VWAP with optional bands.
Use the settings to adjust the point you want the VWAP to always reset on. This allows you to not have to for example set a VWAP every morning at NY open, it will just be there.
Optional bands are available and configurable to whatever standard deviation you wish to have. Please try to keep them in ascending order if you turn on multiple. Bands can fill between bands, so band 3 will fill between band 2 and 3, but not 1 and 3. If you don't care for the color filling set the transparency on the fill color for the band you want no fill on.
Some cycle examples:
Every day at 6PM:
Year: off
Month: off
Day: off
Hour: 18
Every Month:
Year: off
Month: off
Day: 1
Hour: off
ICT Killzones Toolkit [LuxAlgo]killzone with alert order block, you can add alarm to your trading view according the apperance of the order block or the fair value gab from the indicator , so you don't have to watch the charts all the time
🔥 EMA9/WMA45 + MACD Smart Signal + TP/SLbản mới update về ema9 và wma 45, hy vọng thành công, chúng là kết hợp macd và rsi nữa
牛熊周期 (Crypto Bull/Bear Cycle)Indicator: Crypto Bull/Bear Cycle Pro Max
Overview
This indicator is a powerful visualization tool designed to help traders understand and analyze the long-term cyclical nature of the cryptocurrency market, which is widely believed to follow a four-year pattern.
It automatically colors the chart's background to provide an immediate macro perspective, distinguishing between pre-configured "Bull Market" years (green) and "Bear Market" years (red). Beyond simple coloring, this all-in-one tool includes a fully customizable countdown timer to the next cycle transition, annual separator lines, and extensive options to tailor the visuals to your personal preference.
Key Features
* **Automatic Cycle Coloring:** The chart background is automatically shaded green for bull years and red for bear years, giving you an instant sentiment check.
* **Cycle Transition Countdown:** A non-intrusive info box displays the exact number of days remaining until the next cycle is set to begin (e.g., from a bear to a bull period).
* **Annual Separator Lines:** Draws a clean vertical line at the beginning of each year, making it easy to compartmentalize and analyze yearly price action.
* **Highly Customizable:** Nearly every visual element is under your control. Adjust colors, transparency, text sizes, line styles, and fine-tune the positioning of the info box to perfectly fit your chart layout.
* **Future-Proof:** The cycle years are stored in an array within the code, which can be easily edited to add future years or adjust to your own cycle theory.
How to Use
* **Macro Perspective:** Use the green (bull) and red (bear) backgrounds to quickly assess the historical market sentiment for the period you are analyzing.
* **Long-Term Planning:** Keep an eye on the countdown timer to stay aware of major potential turning points in the market, which can be crucial for long-term portfolio strategy.
* **Yearly Analysis:** Utilize the vertical separator lines to easily measure and compare performance on a year-by-year basis.
Settings and Customization
You can access the following settings by clicking the **Gear Icon (⚙️)** next to the indicator's name on your chart.
**1. Cycle Background Colors**
* **Bull Market Color:** Sets the color and transparency for the background during bull years.
* **Bear Market Color:** Sets the color and transparency for the background during bear years.
**2. Countdown Timer**
* **Show Countdown Timer:** A master switch to turn the info box on or off.
* **Style (Background Color, Text Color, Text Size):** Full control over the appearance of the info box and its text.
* **Position Fine-Tuning (X & Y Offset):**
* **X-Axis Offset (Horizontal):** A larger number pushes the info box further to the **left** from the right edge of the chart.
* **Y-Axis Offset (Vertical):** A larger number pushes the info box further **down** from the top edge of the chart.
**3. Year Separator Lines**
* **Show Year Separator Lines:** A switch to turn the vertical lines on or off.
* **Line Style (Separator Color, Style, Width):** Customize the appearance of the annual lines, including their color, style (Solid, Dashed, Dotted), and thickness.
---
**Note:** The bear years are predefined in the script's code on the line starting with `var int bear_years_array = ...`. By default, they are set to `2014, 2018, 2022, 2026,` etc. You can easily edit this line in the Pine Editor to add more years or modify the list if your cycle theory differs.
Bearish Divergence Detector v6This Indicator is a combination of the Bearish divergence combined with the MACD and RSI signal it shows the divergence pattern at all time frames
M2 Growth Rate vs Borrowing RateHave you ever wondered how fast M2 is actually growing? Have you ever wanted to compare its percentage growth rate to the actual cost of borrowing? Are you also, like me, a giant nerd with too much time on your hands?
M2 Growth Rate vs Borrowing Rate
This Pine Script indicator analyzes the annualized growth rate of M2 money supply and compares it to key borrowing rates, providing insights into the relationship between money supply expansion and borrowing costs. Users can select between US M2 or a combined M2 (aggregating US, EU, China, Japan, and UK money supplies, adjusted for currency exchange rates). The M2 growth period is customizable, offering options from 1 month to 5 years for flexible analysis over different time horizons. The indicator fetches monthly data for US M2, EU M2, China M2, Japan M2, UK M2, and exchange rates (EURUSD, CNYUSD, JPYUSD, GBPUSD) to compute the combined M2 in USD terms.
It plots the annualized M2 growth rate alongside borrowing rates, including US 2-year and 10-year Treasury yields, corporate bond effective yield, high-yield bond effective yield, and 30-year US mortgage rates. Borrowing rates are color-coded for clarity: red if the rate exceeds the selected M2 growth rate, and green if below, highlighting relative dynamics. Displayed on a separate pane with a zero line for reference, the indicator includes labeled plots for easy identification.
This tool is designed for informational purposes, offering a visual framework to explore economic trends without providing trading signals or financial advice.
Lagged M2 Money SupplyDescription:
This indicator plots the U.S. M2 Money Supply (FRED:M2SL) with an optional time lag applied, enabling macroeconomic correlation analysis with lagging assets such as Bitcoin (BTC) or equities.
Source: Federal Reserve Economic Data (FRED)
Update Frequency: Weekly (as per FRED:M2SL data)
Lag Control: Default lag is 12 weeks; this can be modified in the script
Visualization:
Original M2 plotted in gray
Lagged M2 plotted in orange
Use Case: Identify delayed correlations between monetary expansion and asset performance (e.g., BTC price reactions to liquidity growth)
Note: As the M2 dataset is macroeconomic and updates infrequently, this indicator is best used on weekly timeframes or higher.
Trigger Code Play – GOD TRADE IgnitionTrigger Code Play – GOD TRADE Ignition
Unlock the ignition sequence behind one of the most powerful market moves: the Trigger Code Play.
This script identifies the key pre-trend timing window that precedes what we call the "GOD TRADE" — a macro move that often defines the direction of the entire trading day. By anchoring at the 6:45 PM EST high or low, and entering at 8:22 PM EST, this tool helps you visualize and engage the true institutional setup before it unfolds.
What this script does:
Highlights the 6:45 PM EST high or low as the anchor trap range
Plots an entry signal at 8:22 PM EST where the macro move typically initiates
Plots an exit signal at 9:11 PM EST, allowing you to close before the market reverses
Shades the trap zone window from 6:45 to 8:22 PM to help you visually anticipate structure
How to use it:
Load the script on any chart (optimized for Forex and Indices)
Observe how the market sets the trap at 6:45 PM EST
Prepare for an entry when price revisits the anchor level around 8:22 PM
Exit before 9:11 PM EST to capture the impulse cleanly
Combine with other Sniper System confluences like RSI, 12AM bias candle, dealer range, or liquidity sweeps
This tool is designed for traders who want to time entries based on structure, session logic, and market-maker behavior.
RSI Divergence by BAPI MONDALPure RSI Divergence indicator which tells you in the chart buy and sell position immediately
Marubozu Candle IdentifierRIdentify Marubu candles effortlessly, ensuring accessibility for who requires swift analysis.
Mark4ex vWapMark4ex VWAP is a precision session-anchored Volume Weighted Average Price (VWAP) indicator crafted for intraday traders who want clean, reliable VWAP levels that reset daily to match a specific market session.
Unlike the built-in continuous VWAP, this version anchors each day to your chosen session start and end time, most commonly aligned with the New York Stock Exchange Open (9:30 AM EST) through the market close (4:00 PM EST). This ensures your VWAP reflects only intraday price action within your active trading window — filtering out irrelevant overnight moves and providing clearer mean-reversion signals.
Key Features:
Fully configurable session start & end times — adapt it for NY session or any other market.
Anchored VWAP resets daily for true session-based levels.
Built for the New York Open Range Breakout strategy: see how price interacts with VWAP during the volatile first 30–60 minutes of the US market.
Plots a clean, dynamic line that updates tick-by-tick during the session and disappears outside trading hours.
Designed to help you spot real-time support/resistance, intraday fair value zones, and liquidity magnets used by institutional traders.
How to Use — NY Open Range Breakout:
During the first hour of the New York session, institutional traders often define an “Opening Range” — the high and low formed shortly after the bell. The VWAP in this zone acts as a dynamic pivot point:
When price is above the session VWAP, bulls are in control — the level acts as a support floor for pullbacks.
When price is below the session VWAP, bears dominate — the level acts as resistance against bounces.
Breakouts from the opening range often test the VWAP for confirmation or rejection.
Traders use this to time entries for breakouts, retests, or mean-reversion scalps with greater confidence.
⚙️ Recommended Settings:
Default: 9:30 AM to 4:00 PM New York time — standard US equities session.
Adjust hours/minutes to match your target market’s open and close.
👤 Who is it for?
Scalpers, day traders, prop traders, and anyone trading the NY Open, indices like the S&P 500, or highly liquid stocks during US cash hours.
🚀 Why use Mark4ex VWAP?
Because a properly anchored VWAP is a trader’s real-time institutional fair value, giving you better context than static moving averages. It adapts live to volume shifts and helps you follow smart money footprints.
This indicator will reconfigure every day, anchored to the New York Open, it will also leave historical NY Open VWAP for study purpose.
DR SessionsDR/IDR concept sessions with multiple ways to view the session to best suit your needs.
Each session, ADR, ODR, RDR can be turned on/off, and displayed 3 different ways. Lines, will highlight each DR and IDR line, and will color the side that breaks out. Zones, will fill in the gap between the DR and the IDR lines and will color the breakout side. Finally range will fill the entire range from DR to DR with a single color that will change to the breakout color once price closes outside of the range.