Indicators and strategies
Liquidity Sweep Detector – PDH/PDL LevelsPrevious Day High/Low Liquidity Sweep Detector (Intraday Accurate)
This indicator tracks the previous day's high and low using intraday data, rather than the daily candle, ensuring precise sweep detection across lower timeframes (15m to 4H).
It monitors for liquidity sweeps—moments when price briefly moves above the previous high or below the previous low—and visually marks these events on the chart.
Key Features
Intraday-accurate PDH/PDL tracking
Real-time sweep detection
On-chart labels marking sweep events
Toggleable table showing sweep status
Alert conditions for PDH/PDL sweep triggers
Best For
Traders who use Smart Money Concepts (SMC), liquidity-based strategies, or look for stop hunts and reversal zones tied to key prior-day levels.
Works well across FX, crypto, and indices on 15m, 1H, and 4H charts.
BTC Fair Value via Global Liquidity📈 BTC Fair Value via Global Liquidity
This indicator estimates Bitcoin's fair value based on a regression model using Global Liquidity (GLI) data from major central banks.
🔍 How it works:
Fair Value Line (orange): Calculated using a power-law model: Fair Value = e^b * (GLI)^a, where a and b are user-defined parameters based on historical regression.
Global Liquidity (GLI): Combines liquidity metrics from central banks (Fed, ECB, PBoC, BoJ, etc.), including adjustments for the RRP and TGA.
Deviation Bands (green/red dashed): Optional upper and lower bands showing % deviation from fair value (default ±25%). These help identify overbought/oversold conditions.
Delta Plot (gray dots): Displays the % deviation of BTC’s price from its modeled fair value.
⚙️ How to use:
Tune a and b for better model fitting (e.g., via log-log regression).
Use the deviation bands to identify potential entry/exit zones or periods of market inefficiency.
Ideal for macro-level BTC valuation and long-term strategic analysis.
Automated Trading Session: New York KillzoneAutomated Trading Session: New York Killzone (Timezone & DST Aware)
This indicator tracks the New York Killzone session using intraday data and real-time timezone adjustments. It draws high/low boxes after the session ends and highlights the active session on your chart, making it ideal for traders focused on U.S. market volatility.
Key Features
Timezone & DST Support
Accurately reflects session timing based on your selected timezone and daylight saving settings.
Custom Session Input
Set your preferred New York Killzone hours (default: 08:00–09:30 New York time).
Visual Session Boxes
High/low ranges of the session are boxed on the chart for quick reference.
End-of-Session Alert
Get notified when the session closes, supporting both manual and automated workflows.
On-Chart Info Table
Displays active session time and timezone directly on the chart.
WebhookGeneratorLibrary "WebhookGenerator"
Generates Json objects for webhook messages.
GenerateOT(license_id, symbol, action, order_type, trade_type, size, price, tp, sl, risk, trailPrice, trailOffset)
CreateOrderTicket: Establishes a order ticket.
Parameters:
license_id (string) : Provide your license index
symbol (string) : Symbol on which to execute the trade
action (string) : Execution method of the trade : "MRKT" or "PENDING"
order_type (string) : Direction type of the order: "BUY" or "SELL"
trade_type (string) : Is it a "SPREAD" trade or a "SINGLE" symbol execution?
size (float) : Size of the trade, in units
price (float) : If the order is pending you must specify the execution price
tp (float) : (Optional) Take profit of the order
sl (float) : (Optional) Stop loss of the order
risk (float) : Percent to risk for the trade, if size not specified
trailPrice (float) : (Optional) Price at which trailing stop is starting
trailOffset (float) : (Optional) Amount to trail by
Returns: Return Order string
50 & 200 SMA Death CrossSimple 50 and 200 Simple Moving Average Script with customizations. You can use these on the Daily Timeframe to confirm the "Death Cross" when trading Bitcoin. Right before the "Death Cross" happens the price usually dumps, and Right as they cross the price usually pumps. (Bitcoin must be in a bull market already)
Created by: Dan Heilman (www.youtube.com)
Minh Phan VWAP Pullback Long SignalThe “Minh Phan VWAP Pullback Long Signal” indicator is designed to detect high-probability long entries based on a combination of VWAP pullbacks, EMA trend confirmation, and RSI strength. It targets momentum traders looking to join the trend after a minor retracement.
The logic begins with price trading above the VWAP, indicating bullish control. A pullback is confirmed when price returns close to the VWAP within a 1% range, suggesting a potential bounce zone. Next, EMA 9 must be greater than EMA 21, confirming an upward trend structure. Finally, RSI must be above 65, showing strong bullish momentum and filtering out weak setups.
When all conditions align, the script plots a green triangle under the candle, signaling a potential long trade. The indicator also includes visual plots of VWAP, EMA 9, and EMA 21, allowing traders to monitor structure and confluence. An optional RSI plot is displayed in the sub-pane for deeper analysis.
This tool is particularly effective for intraday or swing traders in crypto, forex, and stocks. It also includes an alertcondition to notify traders in real time when a long setup appears, making it useful for both manual trading and automation.
Livelli di Sconto da All Time HighInspired by the philosophy of the discount buy, this indicator give the discount levels from all time. In the last times, in which there's a massive amount money flowing in the market due to massive use of etf. Ther usual metrics to buy assets are difficult to use. In my opinion, after a strong correction, the prices usualy goes up again, except for some strong macro event.
So, I hope this indicator could hepl, for some trending growing market, to help to take decisions for extra buy in pac/dca plan.
TMC - THE MAGICAL CORD by MrCryptoBTCTMC - THE MAGICAL CORD By MrCryptoBTC (Not For Sale - FREE)
The "TMC - THE MAGICAL CORD" indicator by MrCryptoBTC is a simple trend-following tool designed for TradingView, utilizing Volume-Weighted Average Price (VWAP) crossovers to identify market trends and generate trading signals. It plots two VWAP lines—a fast VWAP and a slow VWAP—and uses their relationship to determine trend direction. The indicator provides "BUY" signals for entering bullish trends and "SELL" signals for entering bearish trends. The VWAP lines are dynamically coloured to reflect the trend, and alerts are included to notify traders of trend changes.
How It Works
1. Trend Identification:
* The indicator calculates two VWAPs: a fast VWAP (fast_length) and a slow VWAP (slow_length), both weighted by volume using the rma (Running Moving Average) function applied to the product of hlc3(average of high, low, and close) and volume, divided by the rma of volume.
* A Buy trend is identified when the fast VWAP crosses above the slow VWAP, triggering a "BUY" signal with a cyan label above the candle.
* A Sell trend is identified when the fast VWAP crosses below the slow VWAP, triggering a "SELL" signal with a red label below the candle.
* The VWAP lines are plotted with dynamic coloring: green during an uptrend (fast VWAP > slow VWAP), red during a downtrend (fast VWAP < slow VWAP), and silver when neutral.
2. Visualization:
* The fast and slow VWAP lines are plotted on the chart, with a filled area between them to visually highlight the trend direction.
* "BUY" and "SELL" labels are placed at the high or low of the candle where the crossover occurs, providing clear entry signals.
3. Alerts:
* Alerts are set up for "BUY" and "SELL" signals, notifying traders of trend changes with messages like "VWAP GREEN - Buy Signal" and "VWAP RED - Sell Signal."
Recommended Setup
* Timeframes:
* Scalping/Day Trading: Use on lower timeframes like 5-minute or 15-minute charts for quicker signals.
* Swing Trading: Use on higher timeframes like 1-hour or 4-hour charts for more reliable trends.
Automated Trading Session: London KillzoneAutomated Trading Session: London Killzone (Timezone & DST Aware)
This indicator automatically tracks the London Killzone session using intraday data and real-time timezone adjustments. Designed for traders who use session-based strategies, it draws the high/low box of the session and highlights it visually on the chart.
Key Features
Timezone & DST Support
Automatically adjusts to your selected timezone, accounting for daylight saving time changes to ensure accurate session timing.
Custom Session Input
Allows you to define the start and end time of the London Killzone to suit your trading style.
Visual Session Boxes
Draws a dynamic box marking the session's high and low after it ends, with optional background coloring and session labeling.
Alert Trigger
Built-in alert condition that notifies you when the session ends—helpful for automation or manual review.
Info Table Overlay
Displays the active session time and timezone directly on the chart for quick reference.
Suggested Use
This tool is useful for identifying significant market ranges formed during the London Killzone, which is often associated with institutional activity and early market volatility.
Tolga's EMA Scalper – Buy / SellEMA line – Calculates a 20‑period Exponential Moving Average (EMA) of the chosen price series (close by default) and plots it in blue.
8‑bar range – Finds the highest and lowest closing prices over the last 8 bars and plots them as a red upper band and a green lower band, giving you a mini‑range reference.
Buy / Sell signals –
Sell: When price crosses the EMA and the current close is lower than the previous close, a red “Sell” arrow appears above the bar.
Buy: When price crosses the EMA and the current close is higher than the previous close, a green “Buy” arrow appears below the bar.
Alerts – Two alertcondition rules let TradingView fire alerts whenever a buy or sell signal is generated.
Trend Lines with LabelsThis Pine Script indicator, titled "Trend Lines with Labels", is designed to automatically detect and plot uptrend and downtrend lines on the chart based on recent price action over a user-defined lookback period. The user can adjust the lookback value (default is 40) to control how far back the script searches for significant highs and lows.
The script identifies the highest high and lowest low within the lookback window, along with the bars on which they occur (highest_bar, lowest_bar). If a new high or low is detected compared to the previous bar, it calculates the slope (or gradient) of the trend line and uses line.new() to draw a new trend line from the past pivot point to the current one. Each new line replaces the old one to keep the chart clean.
Additionally, the script places dynamic labels on the chart when a new uptrend or downtrend level is detected. These labels show the type of trend and the corresponding price value. The labels are color-coded for clarity—green for uptrend and red for downtrend—and are automatically deleted and redrawn to prevent clutter.
This tool is useful for visually identifying short-term trend reversals.
MCMXCIX Sessions### **Trading Sessions**
Intraday trading is marked by clear time frames that
mark areas of increased volatility:
TMC - THE MAGICAL CORD by MrCryptoBTCTMC - THE MAGICAL CORD By MrCryptoBTC (Not For Sale - FREE)
The "TMC - THE MAGICAL CORD" indicator by MrCryptoBTC is a simple trend-following tool designed for TradingView, utilizing Volume-Weighted Average Price (VWAP) crossovers to identify market trends and generate trading signals. It plots two VWAP lines—a fast VWAP and a slow VWAP—and uses their relationship to determine trend direction. The indicator provides "BUY" signals for entering bullish trends and "SELL" signals for entering bearish trends. The VWAP lines are dynamically coloured to reflect the trend, and alerts are included to notify traders of trend changes.
How It Works
1. Trend Identification:
* The indicator calculates two VWAPs: a fast VWAP (fast_length) and a slow VWAP (slow_length), both weighted by volume using the rma (Running Moving Average) function applied to the product of hlc3(average of high, low, and close) and volume, divided by the rma of volume.
* A Buy trend is identified when the fast VWAP crosses above the slow VWAP, triggering a "BUY" signal with a cyan label above the candle.
* A Sell trend is identified when the fast VWAP crosses below the slow VWAP, triggering a "SELL" signal with a red label below the candle.
* The VWAP lines are plotted with dynamic coloring: green during an uptrend (fast VWAP > slow VWAP), red during a downtrend (fast VWAP < slow VWAP), and silver when neutral.
2. Visualization:
* The fast and slow VWAP lines are plotted on the chart, with a filled area between them to visually highlight the trend direction.
* "BUY" and "SELL" labels are placed at the high or low of the candle where the crossover occurs, providing clear entry signals.
3. Alerts:
* Alerts are set up for "BUY" and "SELL" signals, notifying traders of trend changes with messages like "VWAP GREEN - Buy Signal" and "VWAP RED - Sell Signal."
Recommended Setup
* Timeframes:
* Scalping/Day Trading: Use on lower timeframes like 5-minute or 15-minute charts for quicker signals.
* Swing Trading: Use on higher timeframes like 1-hour or 4-hour charts for more reliable trends.
Close Price - EMA Distance (10, 21, 50)this is script to show differnce between price and three moving average i.e 10, 21, and 50on closing basis
SessionBarThis PineScript is designed to display various visual elements on a chart to help traders track session activity within the lower time frames, specifically for the USA main session. Here's a breakdown of the script's functionality:
Session Tracking
The script tracks the USA main session, defined as 9:30 AM to 4:00 PM ET, Monday through Friday.
Visual Elements
The script displays various visual elements, including:
1. Session Open and Close Lines: Lines marking the open and close of the USA main session.
2. Session High and Low Lines: Lines marking the high and low of the USA sessions.
3. Active Session Bar: A Realtime Candle as the current session bar.
4. Overnight Session Bar: A Realtime Candle as the overnight session bar.
5. Session Timer: A label displaying the time left until the next session.
6. Background Colors: Colors indicating different session periods, such as pre-market, post-market, and active session.
Customization
The script allows users to customize various aspects, including:
1. Session Time: Users can adjust the session time.
2. Colors: Users can choose colors for different visual elements.
3. Display Options: Users can toggle the display of various visual elements.
Overall, this script provides a educational tool for traders to track session activity and visualize key market data.
Buy Signal: Match TV Envelope & 52W LowThis indicator shows buy signals when price touches both the 52-week low and the 25% envelope band (EMA 200). Built for long term value entries.
Improved MinhPhan EMA VWAP RSI StrategyThis enhanced Pine Script, "Improved MinhPhan EMA VWAP RSI Strategy," is a sophisticated trend-following system that combines EMA crossover, VWAP confirmation, and RSI filtering to increase trade precision. It’s ideal for traders who want high-probability entries filtered by both momentum and volume-based market positioning.
The strategy enters a long trade when the fast EMA crosses above the slow EMA, the price is above the VWAP, and RSI is below the overbought threshold, indicating early trend confirmation without being overextended. Conversely, it opens short trades when the fast EMA crosses below the slow EMA, price is under VWAP, and RSI is above the oversold level.
The script also features customizable stop loss and take profit levels in ticks (default: 100 SL, 200 TP) and uses RSI-based exits to cut trades when momentum becomes overbought/oversold. VWAP resets daily, weekly, or monthly depending on your preference, allowing better adaptability to market structure.
Visual cues for entry points (green/red triangles) and plotted indicators (EMA and VWAP) provide clarity for manual or semi-automated trading.
This strategy is well-suited for crypto, forex, or stock intraday and swing trading, offering both precision and flexibility for backtesting and optimization.