asami.SmartTrend### **1\. Purpose**
The script fires **Buy/Sell signals** based on an EMA golden/death‑cross, but only when **volatility (ATR & Bollinger width), volume, and short‑term momentum** confirm that market conditions are meaningful. It also self‑tracks win‑rate and average P/L, displaying the stats in a table.
### **2\. Input Parameters**
| Category | Variable(s) | Function |
| :---- | :---- | :---- |
| Trend | `emaFast`, `emaSlow` | Determine EMA crossover direction |
| Oscillator | `rsiLength` | Oversold/overbought context only |
| MACD | `macdFast`, etc. | Extra momentum context (not plotted) |
| Volatility | `atrPeriod`, `atrMultiplier`, `bbLength`, `bbMult` | Measure relative ATR & BB width |
| Threshold | `minVolatilityThreshold` | Minimum % width to call vol “high” |
### **3\. Core Logic**
1. **Trend** – `fastMA > slowMA` is up‑trend, else down.
2. **Signal Generation**
* `crossover(fastMA, slowMA)` → **Buy**
* `crossunder(fastMA, slowMA)` → **Sell**
3. **Volatility & Volume Filter**
* Current ATR vs 100‑bar ATR average.
* Bollinger‑band width (% of middle band).
* Volume \> 1.5 × 20‑bar MA.
* If both conditions pass, table shows “HIGH”.
4. **Momentum Filter** – 3‑bar price %‑change must exceed the same threshold.
5. **Stat Tracking** – On every Buy→Sell pair it logs P/L %, counts total & successful signals, and updates accuracy / average profit.
### **4\. Visual Components**
* **Chart** – Plots fast/slow EMA, ATR‑based dynamic bands, upper/lower BB, plus triangle icons at each signal.
* **Table (top‑right)** – Displays volatility status, BB width %, ATR ratio, current or last signal, plus room to add accuracy/avg P/L lines.
### **5\. Alerts**
Three `alertcondition()` calls let you create TradingView alerts for **Buy**, **Sell**, or **any** signal and forward JSON/Webhooks to external trading bots.
### **6\. Usage Notes**
* The multilayer filter aims to fire only when **trend, volatility, and volume align**, reducing crossover whipsaws.
* Treat the built‑in statistics as a **research aid**; refine parameters (`minVolatilityThreshold`, `atrMultiplier`, etc.) per symbol and timeframe.
* Combine with proper risk management (SL/TP, position sizing) before live deployment.
Cerca negli script per "chart"
EMA Scalping Buy/Sell Labels5-min chart Gold (XAU/USD)
✅ EMA 9 crosses above EMA 21
✅ Price pulls back and touches EMA 21
✅ Bullish engulfing candle appears
✅ Enter long, target quick 10 pips
✅ Stop-loss 5 pips below EMA 21
Dual ATR TargetsATR Distance Markers with Percentage Display
This powerful indicator visually displays dynamic support/resistance levels based on the ATR Trailing Stop, while providing clear percentage-based distance measurements to help traders assess risk/reward ratios at a glance.
Key Features:
🔹 Dual Distance Markers - Track two customizable distance multiples (default: 1.0x and 0.35x ATR)
🔹 Percentage-First Display - Shows percentage distances first (more intuitive for multi-timeframe analysis) with exact price differences in parentheses
🔹 Current + Previous Candle Data - Compare current levels with previous candle's values for trend confirmation
🔹 Clean Visual Presentation - Grey info box with white text for optimal readability
🔹 Customizable Settings - Adjust ATR period, multiplier, colors, and visibility
How Traders Use It:
✅ Identify potential profit targets based on volatility-adjusted distances
✅ Gauge stop-loss placement with percentage-based risk assessment
✅ Compare current vs. previous candle distances for momentum shifts
✅ Maintain consistent risk parameters across different instruments
Input Parameters:
ATR Period (default 14)
ATR Multiplier (default 1.1)
Two fully configurable distance markers
Custom colors for each marker
Perfect For:
• Swing traders looking for volatility-based targets
• Position traders managing risk across timeframes
• Anyone who prefers percentage-based analysis over fixed price distances
The indicator plots circular markers (blue) and cross markers (red) at your specified distances from the ATR trailing stop, while the info box keeps all critical data organized in one corner of your chart.
Pro Tip: Combine with trend analysis tools - the distances become more reliable when trading in the direction of the prevailing trend. The percentage display helps maintain consistent position sizing across different priced instruments.
Aroon Buy & Sell with Customizable Candle Pattern FilterSure! Here's a description of how the script works without the code:
### Overview:
This trading strategy combines the **Aroon indicator** and **candlestick pattern recognition** to generate buy and sell signals. It allows for a more customizable approach by enabling you to filter signals based on the direction of a trend (identified by the Aroon indicator) and specific candlestick patterns that are often seen as indicators of potential reversals or continuation in the market.
### Key Components:
1. **Aroon Indicator**:
* **Aroon Up and Aroon Down** are calculated over a 14-period window. The Aroon Up shows how recently the highest high occurred, while Aroon Down shows how recently the lowest low occurred.
* A crossover between the Aroon Up and Aroon Down lines indicates a change in market trend. When the Aroon Up crosses above the Aroon Down, it's a signal of an uptrend, and when the Aroon Down crosses above the Aroon Up, it's a signal of a downtrend.
* The strategy uses **5-minute** Aroon data to track the overall trend and **1-minute** Aroon data to refine entry signals.
2. **Candlestick Pattern Filters**:
The script allows you to select and use various candlestick patterns to filter the signals:
* **Bullish Engulfing**: A pattern where a bullish candle completely engulfs the previous bearish candle.
* **Bearish Engulfing**: A pattern where a bearish candle completely engulfs the previous bullish candle.
* **Pin Bar**: A candlestick with a small body and a long tail, indicating potential reversal.
* **Doji**: A candlestick with a very small body, showing indecision in the market.
* You can toggle each of these patterns on or off based on your preference.
3. **Signal Generation**:
* **Buy Signal**: A buy signal is triggered when the market is in a bullish trend (as indicated by the Aroon Up crossing over the Aroon Down on the 5-minute chart), the Aroon Down on the 1-minute chart is at 100% (suggesting a low moment for entry), and a valid candlestick pattern (like Bullish Engulfing, Pin Bar, or Doji) occurs.
* **Sell Signal**: A sell signal is triggered when the market is in a bearish trend (as indicated by the Aroon Down crossing over the Aroon Up on the 5-minute chart), the Aroon Up on the 1-minute chart is at 100% (suggesting a potential reversal point), and a valid candlestick pattern (like Bearish Engulfing, Pin Bar, or Doji) occurs.
4. **Cooldown Period**:
* The strategy includes a **cooldown** mechanism to prevent multiple signals from being triggered in a very short period. This helps avoid false signals and ensures that only significant trends or pattern formations are considered for trades.
5. **Signal Plotting**:
* **Buy Signals** are displayed as green "BUY" labels below the price bars.
* **Sell Signals** are displayed as red "SELL" labels above the price bars.
6. **Alerts**:
* Alerts are set up to notify the user when a buy or sell signal is triggered. This can be useful for traders who prefer to be alerted when a valid setup is detected.
### Customization:
* The user can customize which candlestick patterns they want to use in the strategy by turning them on or off.
* The user can also adjust the Aroon settings and other parameters, allowing for flexibility in adapting the strategy to different market conditions and personal preferences.
### Summary:
This strategy blends trend-following (via Aroon) with reversal/continuation signals from candlestick patterns, providing traders with a way to fine-tune their entries and exits based on both trend strength and price action patterns. It aims to reduce noise and filter out weak signals by combining these elements.
PSP [Daye's Theory]//@version=5
indicator("PSP ", overlay=true)
// User input to choose 3 assets
asset1 = input.string("MNQ1!", title="Select Asset 1", options= )
asset2 = input.string("MES1!", title="Select Asset 2", options= )
asset3 = input.string("MYM1!", title="Select Asset 3", options= )
// Automatically select the timeframe from the first asset
asset1_timeframe = timeframe.isintraday ? timeframe.period : "D" // Use the chart's time frame, or fallback to daily for non-intraday
// Checkbox for enabling correlation check between NQ and ES
pairs_check = input.bool(false, title="Check PSP NQ & ES only")
// Declare highlight color globally
highlight_color = input.color(color.red, title="PSP Color")
// Fetch data for all assets (do it outside the conditionals)
asset1_open = request.security(asset1, asset1_timeframe, open)
asset1_close = request.security(asset1, asset1_timeframe, close)
asset2_open = request.security(asset2, asset1_timeframe, open)
asset2_close = request.security(asset2, asset1_timeframe, close)
asset3_open = request.security(asset3, asset1_timeframe, open)
asset3_close = request.security(asset3, asset1_timeframe, close)
// Define the candle color for each asset
asset1_color = asset1_close > asset1_open ? color.green : color.red
asset2_color = asset2_close > asset2_open ? color.green : color.red
asset3_color = asset3_close > asset3_open ? color.green : color.red
// Initialize candle_diff with var to persist its state
var bool candle_diff = false
if (pairs_check)
// Only check correlation between asset1 and asset2
candle_diff := (asset1_color != asset2_color)
else
// Check correlation among all three assets
candle_diff := (asset1_color != asset2_color) or (asset2_color != asset3_color) or (asset1_color != asset3_color)
// Apply the barcolor globally if the condition is met
barcolor(candle_diff ? highlight_color : na)
Reintegration OPR zone 9h30📝 Indicator Description (for TradingView):
Name: Reintegration OPR Zone – 9:30 AM EST (UTC-4)
Purpose:
This indicator is designed for US indices like NAS100, US30, or SPX500. It helps identify potential false breakouts or retests by tracking when the price re-enters the Opening Price Range (OPR) after an initial breakout.
🔍 How it works:
At 9:30 AM New York time (UTC-4), the script captures the high and low of the first 15-minute candle (which is key for the US session open).
It then draws a horizontal box (rectangle) from the high to the low of that candle.
The box extends horizontally for 7 hours (28 candles on a 15-minute chart).
The script tracks if price:
Breaks above or below the OPR zone
Then re-enters the zone (a potential "fakeout" or "retest" signal)
No label or text is displayed on the chart (you requested it to be hidden).
🕒 Timeframe:
Designed for the 15-minute chart (M15)
Assumes New York session open at 9:30 AM EST (UTC-4)
Pattern Entry with Toggles - CleanThis script detects various candlestick patterns on a chart and marks potential entry points when certain conditions are met.
Script Contents:
1. Trend Filter (EMA)
Calculates an exponential moving average (EMA) with an adjustable period (emaPeriod).
Determines whether the market is currently trending up (isUptrend) or down (isDowntrend).
2. Pattern Detection (variable activation)
There are settings to individually activate or deactivate patterns for long (buy) and short (sell) positions:
Long Patterns: Bullish Engulfing, Morning Star, Hammer, Doji
Short Patterns: Bearish Engulfing, Evening Star, Shooting Star, Doji
3. Pattern Detection:
Automatically defined conditions to detect the respective candlestick patterns, e.g.:
Bullish Engulfing: Small red candle followed by a large green candle that "envelops" the previous one.
Morning Star: Third pattern that signals an uptrend.
Doji: Very small candle that indicates uncertainty.
The same applies to the short pattern variants.
4. Signal Generation:
If a pattern is detected and the trend direction is correct, a potential entry price (entry price) is set.
The whole process is limited to at least 5 bars (minBars) to avoid signals that are too close together.
5. Visualization:
Draws a marker ("Entry") on the chart for each valid signal, with the color corresponding to long or short.
What can you adjust in the settings (on/off switch)?
You can individually specify the following in the inputs:
Pattern Function Default Value
Enable Bullish Engulfing Enable for long entries true
Enable Morning Star Enable for long entries true
Enable Hammer Enable for long entries true
Enable Doji Enable for long entries true
Enable Bearish Engulfing Enable for short entries true
Enable Evening Star Enable for short entries true
Enable Shooting Star Enable for short entries true
Enable Doji (Short) Enable for short entries true
If you set one of these options to false, this pattern will no longer be considered when generating signals, regardless of whether it is present or not.
trendline syedA trendline is a straight line drawn on a chart to help visualize the general direction (trend) of a market, security, or asset over time. It is a basic yet powerful tool used in technical analysis.
🔹 Types of Trendlines:
Uptrend Line
Drawn by connecting higher lows.
Indicates a bullish market.
Acts as support.
Downtrend Line
Drawn by connecting lower highs.
Indicates a bearish market.
Acts as resistance.
Horizontal/Sideways Line
Shows a consolidation or range-bound market.
🔹 Purpose of a Trendline:
Identifies direction of the trend (up, down, sideways).
Acts as support/resistance.
Helps in spotting breakout or reversal opportunities.
🔹 Key Points:
The more times a trendline is touched without being broken, the more valid it is.
It should connect at least two significant points, preferably three for stronger reliability.
Trendlines can be applied to any time frame (intraday, daily, weekly, etc.).
3+ Consecutive Higher or Lower Closes (Full Highlight)This indicator identifies 3 or more sequential bars of higher/lower candle closes and highlights them on the chart.
Candle colour is adjustable.
This is the first edition and has a small issue where it only starts highlighting from the 3rd bar in the sequence.
I'll continue working on this to try to debug
2HH2LL [CCE_Charts]Detects the "Two Higher Highs, Two Lower Lows" (2HH2LL) pattern formation and provides strength analysis with trade signals. The indicator displays visual markers, S/R zones, and clear signals for LONG or SHORT positions.
Pattern Description
The 2HH2LL pattern consists of two consecutive higher highs and two consecutive lower lows. This formation can signal potential trend reversals or continuations depending on market context.
Key Features
• Pattern strength analysis using S/R zone and volume confirmation
• Clear LONG or SHORT trade signals
• Visual markers highlighting pattern components
• Support/Resistance zone visualization
• Customizable alerts for real-time notifications
• Detailed information panel
How to Use This Indicator
1. Add the indicator to your chart
2. Configure settings based on your trading style
3. Look for the "2HH2LL" label when a valid pattern forms
4. Check the pattern strength (STRONG, MEDIUM, WEAK)
5. Note the trade direction signal (LONG or SHORT)
6. Verify the pattern with other technical tools
7. Set up alerts for real-time notifications
Settings Guide
Pattern Settings
• Lookback Period: Controls pivot point detection (5-50)
• Minimum Swing Strength: Required percentage change between highs/lows
Confirmation Settings
• S/R Zone Size: Size of support/resistance zone
• Volume Confirmation Threshold: Volume multiple required for confirmation
• Volume Average Period: Bars used for volume average calculation
Visual Settings
• Show H1/H2/L1/L2 Labels: Toggle pattern component labels
• Show S/R Zone: Toggle support/resistance zone display
Signal Settings
• Trade Direction: How trade direction is determined (SHORT, LONG, AUTO)
Alert Settings
• Alert on All Patterns: Trigger alerts for all valid patterns
• Alert on STRONG Patterns Only: Only alert on strong patterns
• Alert on Direction: Filter alerts by trade direction
Pattern Strength Analysis
The indicator classifies pattern strength into three categories:
• STRONG: Both confirmation factors present (S/R test and volume)
• MEDIUM: One confirmation factor present
• WEAK: No confirmation factors present
For best results, use this indicator in combination with other technical tools and always consider the broader market context.
The LBF modelThe LBF Model is a structural pattern detector that highlights potential reversal zones using a specific sequence of pivot points. It identifies both bearish (LL → LH → LL → HH → LH) and bullish (HH → HL → HH → LL → HL) formations, marking moments where price shows signs of exhaustion and directional shift.
Built purely on price action, the LBF Model avoids indicators and focuses on clean structure. It draws patterns directly on the chart, with customizable sensitivity and colors. Whether used on its own or with other tools, it helps traders spot key turning points with clarity and precision.
[blackcat] L3 Magic-9/13 with Reversal Points ConfirmationOVERVIEW
The L3 Magic-9/13 with Reversal Points Confirmation indicator is designed to help traders identify potential reversal points in the market using a sequential approach. This indicator adopts the "buy when fearful, sell when greedy" philosophy, focusing on capturing key reversal moments 📉↗️. It plots labels on the chart to indicate these reversal points and uses custom functions to filter occurrences based on specific conditions.
FEATURES
Identifies consecutive price movements to detect potential reversals.
Plots labels for various sequential patterns:
High Sequentials: 5, 6, 7, 8, 9, 12, 13
Low Sequentials: 5, 6, 7, 8, 9, 12, 13
Uses custom functions to count consecutive occurrences and filter conditions.
Provides visual confirmation of reversal points with colored labels 🏷️.
Allows customization of sequence lengths and lookback periods ⚙️.
HOW TO USE
Add the indicator to your TradingView chart by selecting it from the indicators list.
Observe the plotted labels indicating potential reversal zones:
Green labels for buy signals ('B').
Red labels for sell signals ('S').
Customize the sequence lengths and lookback periods as needed in the settings panel.
Combine this indicator with other tools for confirmation before making trading decisions.
LIMITATIONS
The indicator relies heavily on sequential patterns, which might not capture all market nuances.
False signals can occur in ranging or sideways markets 🌪️.
Users should always confirm signals with other forms of analysis.
NOTES
Ensure that you have sufficient historical data available for accurate calculations.
Test the indicator thoroughly on demo accounts before applying it to live trading 🔍.
Understand the concept of buying at bottoms and selling at tops before using this indicator.
[blackcat] L3 Magic-9 Sequential SetupOVERVIEW
The L3 Magic-9 Sequential Setup indicator is designed to identify potential reversal points in the market using a sequential pattern analysis. This script plots specific labels on the chart based on predefined conditions, helping traders spot key levels where price reversals might occur 📉↗️.
FEATURES
Identifies consecutive occurrences of price movements above or below certain thresholds.
Plots labeled markers on the chart for easy visualization:
Red Labels: Indicate potential sell signals (e.g., '5', '6', '7', etc.).
Green Labels: Indicate potential buy signals (e.g., '5', '6', '7', etc.)
Uses custom functions to filter and count occurrences over specified lookback periods ⚙️.
Changes bar colors based on detected signals for enhanced visual cues 🎨.
Supports extensive customization through input parameters for fine-tuning the setup.
HOW TO USE
Add the indicator to your TradingView chart by selecting it from the indicators list.
Observe the plotted labels ('5', '6', '7', etc.) indicating potential reversal zones.
Pay attention to bar color changes that confirm the identified patterns.
Combine this indicator with other tools for confirmation before making trading decisions.
LIMITATIONS
The indicator relies heavily on sequential patterns, which may not capture all market nuances.
False signals can occur in ranging or sideways markets 🌪️.
Users should always confirm signals with other forms of analysis.
NOTES
Ensure that you have sufficient historical data available for accurate calculations.
Test the indicator thoroughly on demo accounts before applying it to live trading 🔍.
Customize input parameters as needed to fit your trading strategy.
[blackcat] L3 Magic-9 Sequential within HighlightsOVERVIEW
The L3 Magic-9 Sequential within Highlights indicator is designed to identify potential buy and sell signals based on sequential price patterns. This script uses custom functions to detect consecutive occurrences of specific conditions and highlights these patterns on the chart with labels and background colors 📊🔍.
FEATURES
Detects sequential price patterns for both bullish and bearish movements:
High sequences: 5, 6, 7, 8, 9, 12, 13 bars.
Low sequences: 5, 6, 7, 8, 9, 12, 13 bars.
Plots characters ('5', '6', etc.) and shapes (arrows) on the chart to indicate detected sequences 🏷️↗️↘️.
Uses a customizable period for calculating averages of price differences.
Highlights overbought and oversold conditions using background colors 🎨.
Generates buy ('B') and sell ('S') labels based on filtered occurrences and index values.
HOW TO USE
Add the indicator to your TradingView chart by selecting it from the indicators list.
Observe the plotted characters and arrows indicating detected sequential patterns.
Monitor the background color changes to identify overbought and oversold conditions.
Look for generated buy ('B') and sell ('S') labels for potential trading opportunities.
Customize the period and thresholds in the settings panel as needed ⚙️.
LIMITATIONS
The indicator relies heavily on sequential price patterns, which might not capture all market nuances.
False signals can occur in ranging or sideways markets 🌪️.
Users should always confirm signals with other forms of analysis before making trading decisions.
NOTES
Ensure that you have sufficient historical data available for accurate calculations.
Test the indicator thoroughly on demo accounts before applying it to live trading 🔍.
Adjust the period and threshold inputs to fit your preferred trading strategy.
Master Simple IndicatorThe streamlined Pine Script, created by masterbtcltc, is a technical analysis indicator that overlays on a price chart to provide buy and sell signals based on a dynamic 120-day simple moving average (SMA). Here's how it works:
Dynamic Moving Average: Calculates a 120-day SMA (ma_dynamic) using closing prices to smooth out price fluctuations and identify trends.
Buy/Sell Signals:
Buy Signal: Triggered when the closing price crosses above the 120-day SMA (longSignal), indicating potential bullish momentum. A white triangle with "close" text appears below the bar.
Sell Signal: Triggered when the closing price crosses below the 120-day SMA (shortSignal), suggesting bearish momentum. A yellow triangle with "Short" text appears above the bar.
Alerts: Generates alerts for buy (Long Signal Alert) and sell (Short Signal Alert) signals, notifying users when the price crosses the SMA.
Visual Highlights:
Price vs. SMA: The area between the closing price and the 120-day SMA is filled with yellow if the price is above the SMA (bullish) or blue if below (bearish).
50-day vs. 120-day SMA: The area between the 50-day SMA and 120-day SMA is filled green when the 50-day SMA is above the 120-day SMA, indicating a stronger bullish trend.
Created by masterbtcltc, this indicator helps traders identify trend changes and potential entry/exit points based on price interactions with the 120-day SMA, with clear visual cues and alerts for decision-making.
Master Litecoin Network Growth BandsThe "Master Litecoin Network Growth Bands" indicator (Pine Script v5) plots 26 horizontal bands on the Litecoin price chart (VANTAGE:LTCUSD) by dividing IntoTheBlock’s total Litecoin addresses by divisors (400 to 20,000,000). Each band (Band1 to Band26) is drawn with a white, thin line (linewidth=1), showing network growth relative to price to help identify support, resistance, or valuation levels. Note that this indicator does not include addresses on Litecoin’s MWEB (MimbleWimble Extension Blocks).
Master Litecoin Hashrate IndicatorThis script is a custom indicator called "Master Litecoin Hashrate Indicator," designed to track and visualize Litecoin's hashrate trends in the form of both a moving average and raw hashrate data. Here’s a breakdown of how it works:
Overview:
Indicator Type: It’s an overlay set to false, meaning it won’t be plotted directly on the price chart but on a separate pane beneath it.
Litecoin Hashrate: This tracks the computational power used to mine Litecoin, in PH/s (Peta Hashes per second).
Key Components:
Inputs:
ma_length: This is the length of the moving average, calculated as half of 7 (which equals 3.5), to smooth out the hashrate data.
Hashrate Data:
hashrate: The script pulls real-time Litecoin hashrate data using the INTOTHEBLOCK:LTC_HASHRATE security symbol from TradingView.
ma_hashrate: A simple moving average (SMA) is applied to the raw hashrate data over the defined period (ma_length), helping to smooth out short-term fluctuations.
Plotting:
hashrate: The raw hashrate is plotted in yellow with a linewidth of 2.
ma_hashrate: The moving average of the hashrate is plotted in white with a linewidth of 2.
Background Color:
The background color changes dynamically depending on the relationship between the raw hashrate and its moving average:
If the raw hashrate is greater than the moving average, the background turns a yellow color (with 90% transparency).
If the raw hashrate is less than the moving average, the background turns blue (with 90% transparency).
If they are equal, there is no background color change.
Purpose:
This indicator helps to visualize the current hashrate trends and compare them with the longer-term moving average. By doing so, it can highlight periods where the hashrate is either increasing or decreasing significantly, giving traders insights into network activity and mining strength.
Session Highs and Lows IndicatorSession Highs and Lows Indicator
This indicator automatically tracks and displays the High and Low prices for major trading sessions:
London
New York
Asia
New York Close
For each session, it plots:
A label at the highest and lowest price point reached during the session.
A dashed line showing the high and low levels extended to the right (until the current bar), helping traders visualize key support/resistance zones.
You can toggle visibility for each session individually through the settings panel.
Session times are set in GMT+8, but you can adjust them in the code if needed.
Color code:
London: Blue
New York: Red
Asia: Green
New York Close: Orange
All lines and labels are semi-transparent to avoid chart clutter.
Ideal for intraday and session-based trading strategies.
Intraday vs Overnight Change TrackerThis indicator tracks a synthetic price path based on either intraday or overnight return behavior, allowing users to analyze which component of daily price movement is contributing more to long-term performance.
***THIS INDICATOR ONLY WORKS ON THE DAILY TIMEFRAME***
Intraday mode compounds price change from market open to close: close / open
Overnight mode compounds price change from previous close to current open: open / close
The user can select one of these two modes using a dropdown input. The synthetic price series starts from the second bar of the chart and compounds forward bar-by-bar using the selected return type. The result is a line that reflects cumulative return based solely on either intraday or overnight activity.
⚙️ Inputs
Synthetic Price Type: Select between "Intraday" or "Overnight" to visualize the respective compounded price series.
📈 Usage Notes
This indicator is intended for visual comparison of intraday vs. overnight price dynamics over time. It can be useful for identifying behavioral patterns, session-based return anomalies, or testing session bias strategies.
Only one synthetic line is shown at a time based on user selection.
If you want to view both intraday and overnight lines, then you can add the indicator twice, which is shown above.
Master Global Liquidity Shifted 75 DaysThe Global Liquidity Index is a Pine Script (version 5) technical indicator designed to measure and visualize global financial liquidity by aggregating data from various central bank balance sheets and money supply metrics. The indicator is plotted as an overlay on the price chart using the left scale, with the entire line shifted left by 75 days.
Key features:
Data Sources: Incorporates balance sheet data from major central banks including the Federal Reserve (FED), European Central Bank (ECB), People's Bank of China (PBC), Bank of Japan (BOJ), and other central banks, along with optional M2 money supply data from various countries.
Components: Includes options to toggle specific liquidity factors such as FED balance sheet, Treasury General Account (TGA), Reverse Repurchase Agreements (RRP), and regional M2 money supplies, all converted to USD.
75-Day Shift: The indicator's output is shifted left by 75 days on the chart, aligning historical liquidity data with earlier price action, with this shift period adjustable via the "Shift Days Left" input.
Calculations:
Computes a total liquidity value by summing enabled central bank and M2 data (adjusted for RRP and TGA as drains)
Scales the total by dividing by 1 trillion (10^12)
Applies a Simple Moving Average (SMA) and Rate of Change (ROC) with user-defined periods
Final output is either the SMA of ROC or SMA alone, depending on ROC length
Visualization: Plots the shifted result as a yellow line with a linewidth of 2.