💣 Rounded Top Short Signal💣R3KT is your scalp short assassin — locking on to rounded tops and detonating precision sell signals with zero lag. Built to expose weak highs before they collapse, it combines 3-bar swing top detection with a bearish momentum cross, then marks the kill zone with a clean 💣 emoji.
No clutter. No lag. Just surgical entries where the bulls die slow.
🔍 Signal Criteria:
3-bar rounded top structure
Bearish WaveTrend crossunder
Bomb emoji plotted — no background, sniper-ready
🧠 Optimized for Heikin Ashi:
💣R3KT performs with maximum accuracy on Heikin Ashi candles, where smoothed price action enhances signal clarity, trend momentum, and rounded top formation.
Use HA for signal detection, and standard candles for entry and execution.
Scalp sharp. Hit fast. 💣R3KT doesn’t warn — it executes.
المؤشرات والاستراتيجيات
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
Future Pro Script (RSI, MACD, BOLL, VOL, KDJ)thien is the most handsome man in the world, but he is wanting to find money to have a beautiful gf, so he decided to create this script as a dedicator to describe when he will have a adorable gf
EMA Crossover con VWAP y señales Buy/SellGenerates sell signals when EMA 12 crosses downwards below EMA 30.
Wavy Tunnel con señales Buy/Sell, VWAP y EMA200 + BacktestingBuy/sell signals are generated only when the tunnel (34 EMA low and 34 EMA high) is completely above or below the VWAP, and the price crosses the tunnel (as before).
The 200 EMA is drawn on the chart only as a visual reference; it does not affect the signals or act as a filter.
Fibo_Ma with Toggleable 200 EMA FilterPlease keep in mind, I use this indicator most with my TV_ MCDX.
If you use it in lower Timeframe like 15sec, 1min, use a Higher Background Timeframe like 15min or 1H
📈 Fibo_Ma with Toggleable 200 EMA Filter
Fibo_MA is a comprehensive multi-functional indicator designed to enhance your trend analysis, breakout detection, and signal confirmation strategy.
🔍 Core Logic Overview
📊 Background Color Highlights
The script dynamically colors the chart background based on price action relative to a customizable smoothing line (smooth1).
🟩 Green background appears when the open price is above the smooth1, signaling potential bullish conditions.
🟥 Red background shows when the open price is below the smooth1, suggesting bearish pressure.
📏 200 EMA Filter
A built-in 200-period Exponential Moving Average (EMA) acts as a long-term trend filter.
The 200 EMA line changes color to reflect momentum:
🟢 Green when trending upward
🔴 Red when trending downward
🎯 Signal Alerts
Receive buy alerts when the open crosses above smooth1.
Receive sell alerts when the open crosses below smooth1.
Alert conditions are filterable and customizable for precise notifications.
⚙️ Custom Features and Flexibility
Choose from various moving average types for smooth1: EMA, SMA, WMA, VWMA, ALMA, SWMA, and even VWAP.
Configure alert conditions for:
EMA 200 crossovers with smoothing line
Trend crossovers using Fibonacci-based EMA selections
Breakout and breakdown formations with custom pivot logic
Optional ATR and Volume filters for refining entry quality.
Built-in VWAP, EMA 14 (color-coded), and multi-timeframe support for high-precision analysis.
🔔 Alerts Included
✅ Price crosses above or below smoothing line (smooth1)
✅ Breakout and breakdown patterns
✅ EMA 200 crossovers
✅ Custom trend-following EMA cross labels
This script is ideal for traders who want to combine trend strength, volume confirmation, and technical breakouts with intuitive visual cues. Perfect for intraday or swing trading strategies.
ℹ️ Use this tool in conjunction with your trading strategy. Always backtest before live trading.
ICT Killzones Toolkit [LuxAlgo] (Auto-Daylight Time Mod)This script was originally created by @LuxAlgo ( ), and has been modified here to add automating updating for Daylight Savings Time. No other changes have been made, and this script may not (likely will not) be maintained in sync with the original script from LuxAlgo.
Volume Weighted Average Price Dynamic Slope [sgbpulse]VWAP Dynamic Slope: A Comprehensive Indicator for Trend Identification and Smart Trading
Introducing VWAP Dynamic Slope, an innovative TradingView indicator that harnesses the power of Volume Weighted Average Price (VWAP) and enhances it with immediate visual feedback. The indicator colors the VWAP line based on its slope, allowing you to quickly and easily identify the direction and strength of the current trend for the asset, providing advanced tools for in-depth analysis.
What is VWAP and Why is it so Important?
VWAP (Volume Weighted Average Price) is an indicator that represents the average price at which an asset has traded, weighted by the volume traded at each price level. Unlike a simple moving average, VWAP gives greater weight to trades executed with high volume, making it a reliable measure of the asset's "true" or "fair" price within a given period. Many institutional traders use VWAP as a central reference point for evaluating the effectiveness of entries and exits. An asset trading above its VWAP is considered to have bullish momentum, and below it – bearish momentum.
How it Works: Dynamic VWAP Slope Analysis
VWAP Dynamic Slope analyzes the inclination of the VWAP line and displays it using an intuitive color scheme:
Positive Slope (Uptrend): When the VWAP points upwards, signaling positive momentum, the default color will be green.
Negative Slope (Downtrend): When the VWAP points downwards, signaling negative momentum, the default color will be orange.
Trend Change (CHG): When a change in the VWAP's trend direction occurs, a "CHG" label will be displayed. The label's color will be green if the change is to an uptrend, and orange if the change is to a downtrend.
Identifying Steep Slopes for Increased Momentum:
The indicator's uniqueness lies in its ability to identify "steep" slopes – rapid and particularly strong changes in the VWAP's direction. This indicates exceptionally strong momentum:
Steep Positive Slope: The VWAP color will change to dark green, indicating significant buying pressure.
Steep Negative Slope: The VWAP color will change to dark red, indicating significant selling pressure.
Dynamic Momentum Strength Label: In situations of steep slope (positive or negative), a dynamic label will be displayed with the change value of the VWAP at that point. This label allows you to monitor momentum strength, intensification, or weakening in real-time.
Advanced Analytical Tools for Complete Control
VWAP Dynamic Slope provides you with unprecedented flexibility through a variety of customizable tools:
Multiple VWAP Anchors and Visual Marking:
Common Time Anchors: Choose whether the VWAP resets at the beginning of each Session (daily), Week, Month, Quarter, Year, Decade, or Century.
Advanced Intraday Anchors: Within the Session, you can choose to calculate VWAP specifically for Pre-Market, Regular Hours, and Post-Market hours. This option is particularly crucial for intraday traders.
Important Event Anchors: The indicator allows for VWAP resets at significant milestones such as Earnings, Dividends, and Splits, for analyzing the market's immediate reaction.
Visual Anchor Marking: To enhance clarity and orientation, a Label ⚓ can be displayed at each selected anchor point, helping to immediately identify the start point of the VWAP calculation in the chosen context.
Customizable Bands (Up to Three on Each Side):
Add up to three Bands above and below the VWAP to identify areas of deviation and excursion from the average price. You have two calculation options:
Standard Deviation: Based on volatility and statistical distance from the VWAP.
Percentage: Defines fixed percentage-based bands from the VWAP.
Key Pre-Market Levels (Pre-Market High/Low):
Display the Pre-Market High and Low levels as separate lines on the chart. These lines often serve as important psychological support and resistance zones, allowing you to see how the VWAP behaves near them.
Full Customization and Precise Control:
VWAP Source Selection: Determine which price data type will be used for the VWAP calculation. The default is HLC3 (average of High, Low, and Close), but any other relevant data source available in TradingView can be selected.
Offset: Set an offset for the VWAP line, allowing you to shift it left or right on the time axis by a chosen number of bars.
Customizable Colors: Choose your preferred colors for each slope state, Pre-Market High/Low lines, and Bands.
Setting the "Steepness" Threshold (Per-mille Price Change Per Minute ‱/min with Auto-Adjustment): Determine the sensitivity for identifying a steep slope by setting the required change threshold in VWAP in terms of per-mille price change per minute (‱/min). The indicator performs smart adjustment for any timeframe you select on the chart (e.g., 30 seconds, 1 minute, 5 minutes, 10 minutes, etc.), ensuring that the "steepness" setting maintains consistency and relevance.
Examples for Setting the Steepness Threshold:
Suppose you set the steepness threshold to 0.3‱/min (per-mille price change per minute).
On a 30-second chart: The indicator will check if the VWAP changed by 0.15 ‱/min (half of the per-minute threshold) within a single bar. If so, the slope will be considered steep. Explanation: Since 30 seconds is half a minute, the indicator looks for a change that is half of the threshold set for a full minute.
On a 1-minute chart: The indicator will check if the VWAP changed by 0.3 ‱/min (the full per-minute threshold) within a single bar. If so, the slope will be considered steep. Explanation: Here, the bar represents a full minute, so we check the full threshold.
On a 5-minute chart: The indicator will check if the VWAP changed by 1.5 ‱/min (5 times the per-minute threshold) within a single bar. If so, the slope will be considered steep. Explanation: A 5-minute bar contains 5 minutes, so the cumulative change in VWAP needs to be 5 times greater to be considered "steep" on the same scale.
In summary, this setting allows you to precisely and uniformly control the sensitivity of steep slope detection across all timeframes, providing immense flexibility in analyzing the asset's momentum.
Advantages of Using Per-mille Price Change Per Minute (‱/min)
Using per-mille price change per minute (‱/min) offers several key advantages for your indicator:
Normalized and Objective Measurement: It provides a uniform scale for the VWAP's rate of change, regardless of the asset's price or nominal value. A 0.1 per-mille change per minute always carries the same relative significance.
Comparison Across Different Asset Prices: Using per-mille allows for direct comparison of VWAP movement strength between assets trading at very different prices (e.g., a $100 asset versus a $1 asset), enabling an understanding of true momentum without bias from the nominal price.
Smart Timeframe Agnostic Adjustment: This is a critical capability. The indicator automatically adjusts the per-mille per minute threshold you set to any chart timeframe (30 seconds, 1 minute, 5 minutes, etc.), maintaining consistency in "steepness" detection without manual recalibration.
Precise Momentum Identification: This measurement precisely identifies when the VWAP's rate of change becomes significant, and when momentum strengthens or weakens, contributing to more informed trading decisions.
In short, per-mille change per minute (‱/min) provides accuracy, consistency, and flexibility in identifying VWAP momentum changes, with smart adaptation across all timeframes.
Who is this Indicator For?
VWAP Dynamic Slope is a powerful tool for:
Intraday Traders: For quick identification of intraday trend directions and momentum across any timeframe, with specific consideration for Pre-Market, Regular Hours, or Post-Market VWAP, and incorporating key pre-market levels.
Swing Traders and Long-Term Investors: For analyzing longer-term trends based on periodic and event-driven VWAP anchors.
Beginner Traders: As an excellent visual aid for understanding the relationship between price, volume, and trend direction, and how different anchor points, pre-market levels, and data sources influence price behavior.
Experienced Traders: For integration with existing strategies, gaining additional confirmation for trend strength identification, and highly precise and flexible parameter calibration.
VWAP Dynamic Slope provides a rich, multi-dimensional layer of information about the VWAP, helping you make more informed trading decisions in real-time, within the context of your chosen asset.
Fin Viraj Setup - Clean ArrowsSimple to use
Useful for Nifty & Bank Nifty
5 min & 15 min time frame
Best to Short CE or PE than buying them
Timeframe LoopThe Timeframe Loop publication aims to visualize intrabar price progression in a new, different way.
🔶 CONCEPTS and USAGE
I got inspiration from the Pressure/Volume loop, which is used in Mechanical Ventilation with Critical Care patients to visualize pressure/volume evolution during inhalation/exhalation.
The main idea is that intrabar prices are visualized by a loop, going to the right during the first half and returning to the left towards its closing point. Here, the main chart timeframe (CTF) is 4 hours, and we see the movements of eight 30-minute lower timeframe (LTF) periods, highlighted by four yellow dots/lines (first 2 hours -> "Right") and four blue dots/lines (last 2 hours <- "Left"):
🔹 BTF
If "Show Lowest TF" is enabled, the LTF is split into another lower TF (BTF - "Base TF"); in this case, the 30-minute LTF is split into 10 parts of 3 minutes (BTF):
Enabling "Loop Lowest TF" will enable the BTF to react similarly to the largest loop; from halfway, it will return to its startpoint:
Here is a more detailed example:
🔹 Mini-Candles
The included option "Mini-Candles" will bring even more detail, showing the LTF as Japanese candlesticks with user-defined colors and adjustable body width; in this example, the mini-candles associated with the first half (yellow lines/dots) are green/red, while blue/fuchsia in the second half (blue lines/dots):
CTF 10 minutes, LTF 1 minute, BTF 5 seconds
One can see the detailed intrabar price progression in one glance.
CTF 5 minutes, LTF 1 minute, BTF 5 seconds
If the LTF/BTF ratio, divided by two, results in a non-integer number, the right side will be a vertical line instead of just a turning point. In that case, the smaller, most right blue loop will be situated at the right of that line.
10 minutes / 1 minute = 10 -> 10 / 2 = 5 parts
5 minutes / 1 minute = 5 -> 5 / 2 = 2.5 parts
🔶 SETTINGS
🔹 Timeframes
Lower Timeframe 1
Lower Timeframe 2
No need to worry about the order of both timeframes; BTF will be the lowest TF of the 2, LTF the highest; both have to be lower than the main chart TF (CTF); otherwise, it will result in the error: "`Lower Timeframes` should be lower than current chart timeframe".
The ratio LTF / BTF should be equal or higher than 2; otherwise, this error will show: "`Lower Timeframe` should minimally be twice the `Base (smallest) Timeframe`"
Lastly, the ratio CTF / BTF should be lower than 500; otherwise, this error will pop up: "`Current Chart timeframe` / `Lower Timeframe` should be less than 500."
I have tried to capture runtime errors as best I could. If one should be triggered (red exclamation mark next to the title), it is best to increase the lowest TF.
🔹 Options
Show Lowest TF: Show BTF progression.
Loop Lowest TF: Enabling will let the BTF line return halfway.
Show Mini-Candles
Show Steps
"Show Steps" can be useful to see how the script works, where the location of the current price is compared against the position of the left (L) and right (R) labels:
🔹 Style
MM + MACD [RSI Filter]MM + MACD Trend Follower with RSI Filter
Pedro Canto - Portfolio Manager | CGA/CGE
OVERVIEW
The MM + MACD Trend Follower with RSI Filter is a multi-layered trend-following indicator designed to help traders identify high-probability trend continuation setups while avoiding low-quality entries caused by overbought or oversold market conditions.
This tool combines the power of Moving Averages (MA), the MACD Histogram, and a visual RSI-based filter to validate both trend direction and timing for entries. Its goal is simple: filter out noise and highlight only the most technically relevant buy and sell signals based on objective momentum and trend criteria.
USE CASES
- Identifying trend continuation setups
- Filtering false signals during consolidation phases
- Avoiding trades in overbought or oversold zones
- Enhancing entry timing for both swing and intraday strategies
- Providing visual confirmation of trend strength and momentum alignment
KEY FEATURES
1. Dual Moving Average Setup
The indicator allows full customization of two moving averages (MA1 and MA2), supporting both EMA and SMA types. The slope of the longer MA (MA2) acts as an essential trend filter, ensuring signals are only generated when the market shows clear directional bias.
2. MACD Histogram Trend Confirmation
A classic MACD Histogram calculation is used to validate the momentum of the prevailing trend.
- Bullish Trend: Histogram > 0
- Bearish Trend: Histogram < 0
This step filters out counter-trend signals and ensures trades are aligned with momentum.
3. Intrabar Price Trigger
Unlike standard crossover systems, this indicator waits for intrabar price action to trigger entries:
- Buy Signal: Price crosses below one of the MAs during an uptrend (dip-buy logic)
- Sell Signal: Price crosses above one of the MAs during a downtrend (rally-sell logic)
This intrabar trigger improves entry timing and helps capture retracement-based opportunities.
4. RSI Visual Filter
A short-term RSI is plotted and color-coded to visually highlight overbought and oversold conditions, acting as a discretionary filter for users to avoid low-probability trades during exhaustion points.
5. Dynamic Coloring System
Bar Colors:
- Blue: Bullish trend
- Red: Bearish trend
- Orange: RSI Overbought/Oversold zones
MA Colors:
- Blue for bullish conditions
- Red for bearish conditions
- Gray for neutral/no-trend phases
6. Signal Markers and Alerts
Clear visual buy and sell markers are plotted directly on the chart.
Additionally, the indicator includes real-time alerts for both Buy and Sell signals, helping traders stay informed even when away from the screen.
INPUTS AND CUSTOMIZATION OPTIONS
- Moving Average Types: EMA or SMA for both MA1 and MA2.
- MACD Settings: Customizable fast, slow, and signal periods.
- RSI Settings: Source, length, and overbought/oversold levels fully adjustable.
- Color Customization: Adjust RSI zone colors to suit your chart theme.
---
DISCLAIMER
This indicator is a technical analysis tool designed for educational and informational purposes only. It should not be used as a standalone trading system. Always combine it with sound risk management, price action analysis, and, where applicable, fundamental context.
Past performance does not guarantee future results.
PPC Green Candle Dot Markerit will show a white dot below the daily candle when the candle range is more than the average candle range of lats 50 candles as well as when teh volume of that particular candle is more than 50 days average candle volume
Stochastic Momentum TrackerStochastic momentum Oscillator with accurate settings to show overbought and oversold regions of price action, with a conditionally colored background that shows overbought(RED) and oversold(green).
EWMA Volatility EstimatorThis script calculates EWMA Volatility (Exponentially Weighted Moving Average Volatility).
Commonly used model in financial risk management.
It estimates recent price volatility by applying more weight to the most recent returns, capturing volatility clustering while remaining responsive to fast market shifts.
The method uses a decay factor (λ) of 0.94, the standard value used in models like RiskMetrics, and converts the variance estimate into annualized volatility in percentage terms.
This is not a forecasting tool. It’s an estimator that reflects the magnitude of recent price moves in a statistically robust way.
It can be helpful for:
Understanding regime shifts in market behavior
Designing position sizing rules based on recent volatility
Filtering entries during high or low volatility phases
How It Works
Computes log returns of the closing price.
Squares the returns to get a proxy for variance.
Applies an exponential moving average to the squared returns using an equivalent EMA period based on λ = 0.94.
Converts the result to volatility by taking the square root and scaling to a percentage.
Key Characteristics
Backward-looking estimator
Reacts faster than standard rolling-window volatility
Smooths noise while still being sensitive to recent spikes
This script is educational and informational. It is not financial advice or a guarantee of performance. Always test any tool as part of a broader strategy before using it in live markets.
Support & Resistance External/Internal & BoS [sgbpulse]Market Structure Support & Resistance External/Internal & BoS
Overview: Smart & Fast Market Structure Analysis
The Market Structure "Support & Resistance External/Internal & BoS " indicator is designed to empower your technical analysis by automatically and precisely identifying significant support and resistance levels. It achieves this by pinpointing high and low Pivot Points, plus key Pre-Market High/Low levels.
Its unique strength lies in its dynamic adaptability to any timeframe and any asset you choose. This tool analyzes the relevant market structure for the current timeframe and asset, providing you with accurate and relevant levels in real-time. The indicator maintains a clean chart and swiftly displays all support, resistance, and Pre-Market levels for any asset, saving valuable analysis time and enabling you to get a clear and quick snapshot of the market.
How the Indicator Works
The indicator identifies and displays three critical types of key levels:
External Pivots: These are more significant pivot points, indicating important reversal points across a broader range of price movement, considering the current timeframe. The indicator draws dark green support lines (for low pivots) and dark red resistance lines (for high pivots) from these points.
Internal Pivots: These are shorter-term pivot points, signifying smaller corrections or reversals within the overall structure of the current timeframe. These lines provide additional areas of interest within the ranges of the External Pivots.
Pre-Market High/Low Levels: The indicator displays the High and Low reached during pre-market hours as distinct lines on the chart. Please note: These levels will only appear when the selected timeframe is lower than one day (e.g., 1-hour, 15-minute) and provided that the "Session extended trading hours" option is enabled in your TradingView chart settings. These levels are crucial for identifying potential opening ranges and critical support/resistance areas upon regular market open, especially for intraday trading.
Break of Structure (BoS) Identification
A key feature of this indicator is its ability to identify Break of Structure (BoS). When a support or resistance line is breached, the indicator changes the line's color to gray and displays a "Break of Structure" label, indicating a potential trend change or continuation:
External BoS: When an external support/resistance line is broken, a "BoS" label in red will appear. This is a strong signal for a potential shift in the primary market structure or a strong trend continuation.
Internal BoS: When an internal support/resistance line is broken, an "iBoS" label in green will appear. This indicates a break within the existing market structure, which can be used to confirm direction or identify shorter-term entry/exit opportunities.
Full Indicator Customization
The indicator provides maximum flexibility to suit any trading style and timeframe:
Number of Lines Displayed: You can choose how many support and resistance lines you want to see on your chart. The default is 15 lines, but you can increase or decrease this number according to your needs and desired level of detail.
External Pivot Settings: Define the number of bars before and after a pivot point required for External Pivot identification.
Internal Pivot Settings: Define the number of bars before and after a pivot point required for Internal Pivot identification.
Color Customization: Full control over colors! You can change the colors of the support and resistance lines, the colors of the Pre-Market levels, and also the colors of the BoS and iBoS labels to create a visual appearance that perfectly matches your personal preferences.
This flexibility allows you to adapt the indicator to your trading style and any timeframe you operate in, without needing to manually change settings each time.
Recommended Uses
Clean Chart & Quick Analysis: The indicator displays important levels clearly, enabling quick identification of areas of interest without visual clutter on the chart. This significantly saves analysis time and allows you to make faster decisions.
Critical Levels for Any Timeframe & Asset: Get precise and adaptive support and resistance, plus essential Pre-Market levels (in relevant timeframes), for any timeframe and on any asset you choose.
Trend Direction Identification: Clear support and resistance lines help understand market structure.
Breakout Confirmation: The BoS label provides visual confirmation of key level breaches, helping to confirm potential trend changes.
Locating Entry & Exit Points: Use these levels as potential areas of interest for trades, after confirming a breakout or reversal.
Finding Stop-Loss & Take-Profit Points: Strategically place protective stops and profit targets around these support and resistance levels.
Important Note
Like any technical indicator, Market Structure "Support & Resistance External/Internal & BoS " is a supplementary tool. It's highly recommended to use it in conjunction with additional analysis methods (such as price action analysis, other indicators, and fundamental analysis) for informed trading decisions. Financial markets are dynamic, and trading always carries inherent risk.
Stochastic Momentum TrackerStochastic Momentum Indicator with colored background highlighting overbought (red) and Oversold (green) with the conditionally colored background. Great for gauging Momentum pivots for price action.
Percent Change of Range Candles - FullPercent Change of Range Candles – Full (PCR Full)
Description:
PCR Full is a custom momentum indicator that measures the percentage price change relative to a defined range, offering traders a unique way to evaluate strength, direction, and potential reversals in price movement.
How it works:
The main value (PCR) is calculated by comparing the price change over a selected number of candles (length) to the range between the highest high and lowest low in the same period.
This percentage change is normalized and visualized with dynamic candles on the subgraph.
Reference levels at +100, +50, 0, -50, and -100 serve as key zones to indicate potential overbought/oversold conditions, continuation, or neutrality.
How to read the indicator:
1. Trend continuation:
When PCR breaks above +50 and holds, it often confirms a strong bullish move.
Similarly, values below -50 and staying low signal a bearish continuation.
2. Wick behavior (volatility insight):
Long wicks on PCR candles suggest uncertainty or failed breakout attempts.
Short or no wicks with strong body color show stable momentum and conviction.
On the chart, multiple long wicks near -50 suggest bulls are attempting to push price upward, but lack the strength — until a confirmed breakout.
3. Polarity transition (Bearish to Bullish or vice versa):
A transition from negative PCR values to above zero shows that the market is possibly turning.
Especially if PCR climbs gradually and stabilizes above zero, it indicates a developing bullish phase.
Components:
Main PCR line: Color-coded (green for rising, red for falling).
Open Average (gray line): Smooths recent PCR values, indicating balance.
High/Low adaptive bands: Adjust dynamically to PCR polarity.
PCR Candles: Visualize OHLC of PCR data for enhanced interpretation.
Suggested use cases:
Enter trend trades when PCR crosses +50 or -50 with volume or price confirmation.
Watch for reversal signs near ±100 if PCR fails to break further.
Use 0 line as a neutral zone — markets hovering near 0 are often in consolidation.
Combine with price action or oscillators like RSI/MACD for additional signals.
Customization:
The length input allows users to define the range for PCR calculations, making it adjustable to various timeframes and strategies (scalping, intraday, swing).
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
lib_core_utilsLibrary "lib_core_utils"
Core utility functions for Pine Script strategies
Provides safe mathematical operations, array management, and basic helpers
Version: 1.0.0
Author: NQ Hybrid Strategy Team
Last Updated: 2025-06-18
===================================================================
safe_division(numerator, denominator)
safe_division
@description Performs division with safety checks for zero denominators and invalid values
Parameters:
numerator (float) : (float) The numerator value
denominator (float) : (float) The denominator value
Returns: (float) Result of division, or 0.0 if invalid
safe_division_detailed(numerator, denominator)
safe_division_detailed
@description Enhanced division with detailed result information
Parameters:
numerator (float) : (float) The numerator value
denominator (float) : (float) The denominator value
Returns: (SafeCalculationResult) Detailed calculation result
safe_multiply(a, b)
safe_multiply
@description Performs multiplication with safety checks for overflow and invalid values
Parameters:
a (float) : (float) First multiplier
b (float) : (float) Second multiplier
Returns: (float) Result of multiplication, or 0.0 if invalid
safe_add(a, b)
safe_add
@description Performs addition with safety checks
Parameters:
a (float) : (float) First addend
b (float) : (float) Second addend
Returns: (float) Result of addition, or 0.0 if invalid
safe_subtract(a, b)
safe_subtract
@description Performs subtraction with safety checks
Parameters:
a (float) : (float) Minuend
b (float) : (float) Subtrahend
Returns: (float) Result of subtraction, or 0.0 if invalid
safe_abs(value)
safe_abs
@description Safe absolute value calculation
Parameters:
value (float) : (float) Input value
Returns: (float) Absolute value, or 0.0 if invalid
safe_max(a, b)
safe_max
@description Safe maximum value calculation
Parameters:
a (float) : (float) First value
b (float) : (float) Second value
Returns: (float) Maximum value, handling NA cases
safe_min(a, b)
safe_min
@description Safe minimum value calculation
Parameters:
a (float) : (float) First value
b (float) : (float) Second value
Returns: (float) Minimum value, handling NA cases
safe_array_get(arr, index)
safe_array_get
@description Safely retrieves value from array with bounds checking
Parameters:
arr (array) : (array) The array to access
index (int) : (int) Index to retrieve
Returns: (float) Value at index, or na if invalid
safe_array_push(arr, value, max_size)
safe_array_push
@description Safely pushes value to array with size management
Parameters:
arr (array) : (array) The array to modify
value (float) : (float) Value to push
max_size (int) : (int) Maximum array size
Returns: (bool) True if push was successful
safe_array_unshift(arr, value, max_size)
safe_array_unshift
@description Safely adds value to beginning of array with size management
Parameters:
arr (array) : (array) The array to modify
value (float) : (float) Value to add at beginning
max_size (int) : (int) Maximum array size
Returns: (bool) True if unshift was successful
get_array_stats(arr, max_size)
get_array_stats
@description Gets statistics about an array
Parameters:
arr (array) : (array) The array to analyze
max_size (int) : (int) The maximum allowed size
Returns: (ArrayStats) Statistics about the array
cleanup_array(arr, target_size)
cleanup_array
@description Cleans up array by removing old elements if it's too large
Parameters:
arr (array) : (array) The array to cleanup
target_size (int) : (int) Target size after cleanup
Returns: (int) Number of elements removed
is_valid_price(price)
is_valid_price
@description Checks if a price value is valid for trading calculations
Parameters:
price (float) : (float) Price to validate
Returns: (bool) True if price is valid
is_valid_volume(vol)
is_valid_volume
@description Checks if a volume value is valid
Parameters:
vol (float) : (float) Volume to validate
Returns: (bool) True if volume is valid
sanitize_price(price, default_value)
sanitize_price
@description Sanitizes price value to ensure it's within valid range
Parameters:
price (float) : (float) Price to sanitize
default_value (float) : (float) Default value if price is invalid
Returns: (float) Sanitized price value
sanitize_percentage(pct)
sanitize_percentage
@description Sanitizes percentage value to 0-100 range
Parameters:
pct (float) : (float) Percentage to sanitize
Returns: (float) Sanitized percentage (0-100)
is_session_active(session_string, timezone)
Parameters:
session_string (string)
timezone (string)
get_session_progress(session_string, timezone)
Parameters:
session_string (string)
timezone (string)
format_price(price, decimals)
Parameters:
price (float)
decimals (int)
format_percentage(pct, decimals)
Parameters:
pct (float)
decimals (int)
bool_to_emoji(condition, true_emoji, false_emoji)
Parameters:
condition (bool)
true_emoji (string)
false_emoji (string)
log_debug(message, level)
Parameters:
message (string)
level (string)
benchmark_start()
benchmark_end(start_time)
Parameters:
start_time (int)
get_library_info()
get_library_version()
SafeCalculationResult
SafeCalculationResult
Fields:
value (series float) : (float) The calculated value
is_valid (series bool) : (bool) Whether the calculation was successful
error_message (series string) : (string) Error description if calculation failed
ArrayStats
ArrayStats
Fields:
size (series int) : (int) Current array size
max_size (series int) : (int) Maximum allowed size
is_full (series bool) : (bool) Whether array has reached max capacity
Simple Sessions & LevelsSimple Sessions & Levels
This indicator highlights the 15-minute opening range and prior day levels (high, halfback, and low) for any instrument and timeframe.
Features:
15-Minute Range: Plots the high and low of a customizable 15-minute window after market open.
Prior Day Levels: Shows the previous day’s high, midpoint (halfback), and low.
Individual toggles to show or hide each label and each level line independently.
Customizable colors and toggles for each level and label.
Usage:
Use this tool to quickly reference session ranges and key levels for intraday or swing trading. All parameters can be adjusted for your preferred session start time and display preferences.
AlphaTradeAlphaTrade - Smart Trend & Volume Signal Indicator
AlphaTrade is a powerful combination of Zero Lag Trend and Volumatic VIDYA to help traders make smarter entries and exits.
This script provides:
Accurate Buy/Sell Labels: Based on Zero Lag Trend crossover logic with adaptive volatility bands.
Volume-Based Zones: Highlights key liquidity areas with real-time volume annotations.
VIDYA Trend Shading: Adaptive VIDYA-based cloud colored by volume momentum and trend direction.
Multi-Timeframe Table: Displays the trend status on 5, 15, 60, 240 minutes and 1D timeframes.
Delta Volume Label: Live buy/sell volume comparison and percentage delta.
Auto Liquidity Lines: Automatically draws recent high/low levels with volume at that level.
Alerts Ready: Receive "ALIM" (Buy) and "SATIM" (Sell) alerts instantly.
Ideal for traders who want trend precision, volume confirmation, and visual clarity — all in one tool.
For best results, apply on high-liquidity assets and adjust ZLEMA/VIDYA settings to your strategy.