Customized ATR Trailing Stop with Fixed ATR DisplayCustomized ATR Trailing Stop with Fixed ATR Display
指標和策略
Custom Time LinesMarks out London and Asia Session open times and close times to help when trading New York Session
Sector SPDR ETFsThis script automatically identifies the SPDR sector ETF that corresponds to the currently viewed US stock ticker. It maps over 500 US-listed stocks to their respective SPDR sector ETFs — such as XLK (Technology), XLF (Financials), XLY (Consumer Discretionary), and others — based on pre-defined symbol lists.
When applied to a chart, the script displays a label below the last candle showing the SPDR sector symbol (e.g., "XLE" for Energy stocks like XOM). This allows traders and investors to quickly understand the sector classification of any stock they analyze.
Key Features:
Maps tickers to SPDR sector ETFs: XLC, XLY, XLP, XLE, XLF, XLV, XLI, XLB, XLRE, XLK, and XLU.
Displays the corresponding sector label on the chart.
Helpful for sector rotation strategies, macro analysis, or thematic investing.
Mein Skript//@version=5
indicator("CAN SLIM Filter", overlay=true)
// Beispielhafte Kriterien
eps_growth = input.float(25, "EPS-Wachstum (%)")
rel_volume = input.float(1.5, "Relatives Volumen")
// Simulierte Beispieldaten
mock_eps_growth = ta.rma(close / close - 1, 90) * 100
mock_rel_volume = volume / ta.sma(volume, 50)
plotshape(mock_eps_growth > eps_growth and mock_rel_volume > rel_volume, title="CAN SLIM Match", location=location.belowbar, color=color.green, style=shape.labelup)
TSEP Dual SMA + Optional BB//@version=5
indicator("50-Day ADTV", overlay=false)
// Calculate 50-day Average Daily Trading Volume
adtv_50 = ta.sma(volume, 50)
// Plot the ADTV as a line
plot(adtv_50, color=color.blue, title="50-Day ADTV", linewidth=2)
// Add a label to display the current ADTV value
label.new(bar_index, adtv_50, text="ADTV: " + str.tostring(adtv_50, "#.##"), color=color.blue, textcolor=color.white, style=label.style_label_down)
TSEP Dual SMA + Optional BB//@version=5
indicator("TSEP – 50-day ADTV & Current Volume", overlay=false)
// Calculate values
currentVol = volume
avgVol50 = ta.sma(volume, 50)
// Format as millions (M)
formatVolume(v) =>
v >= 1e9 ? str.tostring(v / 1e9, "#.##") + "B" :
v >= 1e6 ? str.tostring(v / 1e6, "#.##") + "M" :
v >= 1e3 ? str.tostring(v / 1e3, "#.##") + "K" :
str.tostring(v, "#.##")
// Create output strings
volText = "Current Volume: " + formatVolume(currentVol)
adtvText = "50-day ADTV: " + formatVolume(avgVol50)
// Display in a table
var table t = table.new(position.top_right, 1, 2, border_width = 1)
if bar_index % 5 == 0 // Update every 5 bars to avoid flicker
table.cell(t, 0, 0, adtvText, text_color=color.white, bgcolor=color.new(color.blue, 80))
table.cell(t, 0, 1, volText, text_color=color.white, bgcolor=color.new(color.blue, 80))
TSEP Dual SMA + Optional BB//@version=5
indicator("TSEP Chart Data Overlay", overlay=true)
currentVol = volume
avgVol50 = ta.sma(volume, 50)
currentPrice = close
timestampStr = str.tostring(year) + "-" + str.tostring(month, "00") + "-" + str.tostring(dayofmonth, "00")
// === Format Helpers ===
formatVal(val) =>
val >= 1e9 ? str.tostring(val / 1e9, "#.##") + "B" :
val >= 1e6 ? str.tostring(val / 1e6, "#.##") + "M" :
val >= 1e3 ? str.tostring(val / 1e3, "#.##") + "K" :
str.tostring(val, "#.##")
// === Label Text ===
labelText = "✅ Current Price: $" + str.tostring(currentPrice, "#.##") + " " +
"✅ 50-day ADTV: " + formatVal(avgVol50) + " " +
"✅ Current Volume: " + formatVal(currentVol) + " " +
"✅ Timestamp: " + timestampStr
// === Display Label ===
var label dataLabel = label.new(x=bar_index, y=high, text=labelText,
xloc=xloc.bar_index, yloc=yloc.price, style=label.style_label_left,
textcolor=color.white, size=size.normal, color=color.new(color.blue, 80))
label.set_xy(dataLabel, bar_index, high)
label.set_text(dataLabel, labelText)
TSEP Dual SMA + Optional BB✅ Current Price: $163.44
✅ 50-day ADTV: 21.7M
✅ Current Volume: 19.5M
✅ Timestamp: 2025-07-10
Elliott Wave Helper//@version=5
indicator("Elliott Wave Helper", overlay=true)
// Settings
pivotLength = input.int(5, "Pivot Length")
showLabels = input.bool(true, "Show Wave Labels")
zigzagColor = input.color(color.orange, "Zigzag Line Color")
// Find Pivot Highs and Lows
pivotHigh = ta.pivothigh(high, pivotLength, pivotLength)
pivotLow = ta.pivotlow(low, pivotLength, pivotLength)
// Store pivots
var float pivotPrices = array.new_float()
var int pivotBars = array.new_int()
if not na(pivotHigh)
array.push(pivotPrices, pivotHigh)
array.push(pivotBars, bar_index - pivotLength)
if not na(pivotLow)
array.push(pivotPrices, pivotLow)
array.push(pivotBars, bar_index - pivotLength)
// Draw zigzag line between pivots
for i = 1 to array.size(pivotBars) - 1
x1 = array.get(pivotBars, i - 1)
y1 = array.get(pivotPrices, i - 1)
x2 = array.get(pivotBars, i)
y2 = array.get(pivotPrices, i)
line.new(x1, y1, x2, y2, width=2, color=zigzagColor)
// Label waves as 1-5 or A-C (manual cycling)
if showLabels
waveLabels = array.from("1", "2", "3", "4", "5", "A", "B", "C")
labelText = array.get(waveLabels, (i - 1) % array.size(waveLabels))
label.new(x2, y2, text=labelText, style=label.style_label_up, textcolor=color.white, size=size.small, color=color.blue)
Volume in ₹ (Total Traded Value in Crores)vikram dayal volume indicator with absolute value in crore
Volume VisualizerVolume by Hannsome
The Volume Visualizer is a simple yet effective tool designed to display trading volume in a dedicated panel below the main price chart. Its primary goal is to help you easily identify when trading activity is significantly higher than usual.
The indicator plots two key elements:
Volume Bars: These are standard volume bars showing the amount of trading activity for each period. To draw your attention to important moments, bars with unusually high volume are highlighted in a distinct color (yellow by default).
Average Volume Line: A moving average line (orange by default) is plotted over the volume bars. This line represents the recent average trading volume, giving you a clear baseline to compare the current volume against.
A "significant" volume spike is defined as any period where the volume exceeds the moving average by a certain multiplier. You can adjust both the moving average length and this multiplier in the indicator's settings to fine-tune its sensitivity to what you consider a significant spike in activity.
Custom Median MAThe 50-day moving average (50-DMA) is a popular technical analysis indicator used to identify the intermediate-term trend of a financial asset. It is calculated by averaging the closing prices of the asset over the past 50 trading days. As a lagging indicator, it smooths out price fluctuations and helps traders and investors identify potential support and resistance levels.
When the price is consistently above the 50-DMA, it often signals an uptrend or bullish market sentiment. Conversely, if the price remains below the 50-DMA, it may indicate a downtrend or bearish sentiment. Crossovers involving the 50-DMA are also closely watched. For instance, a "golden cross" occurs when a shorter-term moving average (e.g., 20-day) crosses above the 50-DMA, suggesting potential upward momentum. A "death cross" is the opposite and can signal a downward trend.
The 50-DMA is widely used because it strikes a balance between short-term sensitivity and long-term stability. It is applicable across various markets and timeframes, including stocks, indices, and cryptocurrencies.
WMA(10) Momentum Indicatorshows wma momentum. work in progress. Attempts to capture mementum changes and confirm current trend direction. i will be expanding on this.
Session Overlay - FXMontys dual session overlayDeveloped by FX Monty
This indicator was created for traders who want a cleaner, more structured way to mark their session highs and lows, as well as lower time frame supply and demand zones using volume-based analysis.
🔹 What This Indicator Is For
Designed to complement both the Core Sessions and CM Sessions indicators.
Helps identify key trading sessions: Asia, London, and New York.
Supports traders who blend session structure, liquidity, and LTF price action for more precise setups.
📌 How to Use
Marking Highs & Lows:
Use the Core Sessions Indicator to mark session highs and lows. You can use either a box or a horizontal ray — whichever gives the cleanest visual.
Supply & Demand Zones (LTF):
Use the CM Sessions Indicator for marking LTF supply and demand zones within a session.
➤ Don’t forget to adjust your session times manually, especially for daylight savings.
High/Low of Day (HOD/LOD):
Use the 5-minute timeframe on the CM Sessions chart to mark the day’s highs and lows.
✘ Exclude the Asia session from this when evaluating HOD/LOD.
🧠 Strategy Background
This indicator is rooted in two powerful trading methodologies from my mentors:
TJR's Liquidity Concepts – Which influence how we frame session-based liquidity using the Core Sessions logic.
JordanFX's Session-Based Approach – The inspiration for using session structuring for lower time frame entries.
💙 Rest in peace, Jordan. This is for you.
This tool is part of my personal workflow, and I built it to make complex setups easier to visualize and act on. I hope it provides you with clarity, structure, and confidence in your trades.
Happy trading,
— FX Monty
Gaussian Volatility Adjusted Key Features:Gaussian Smoothing: Applies a Gaussian filter to smooth price data (based on EMA or raw close prices), reducing noise while preserving trend information.
Volatility Adjustment: Uses ATR and standard deviation to create dynamic upper and lower bands around the smoothed price, adapting to market volatility.
Trend Detection: Identifies bullish (price above lower band) or bearish (price below upper band) trends, with additional confirmation using standard deviation thresholds.
Momentum Analysis: Measures momentum by calculating the price difference from key levels (upper band for bullish, Gaussian + standard deviation for bearish).
EMA Confluence: Optionally integrates an EMA of the momentum difference to confirm trend signals, enhancing accuracy.
Visual Output: Plots a zero line and an EMA line colored green (bullish) or red (bearish), with bar coloring to visually indicate trend direction.
Staccked SMA - Regime Switching & Persistance StatisticsThis indicator is designed to identify the prevailing market regime by analyzing the behavior of a "stack" of Simple Moving Averages (SMAs). It helps you understand whether the market is currently trending, mean-reverting, or moving randomly.
Core Concept: SMA Correlation
At its heart, the indicator examines the relationship between a set of nine SMAs with different lengths (3, 5, 8, 13, 21, 34, 55, 89, 144) and the lengths themselves.
In a strong trending market (either up or down), the SMAs will be neatly "stacked" in order of their length. The shortest SMA will be furthest from the longest SMA, creating a strong, almost linear visual pattern. When we measure the statistical correlation between the SMA values and their corresponding lengths, we get a value close to +1 (perfect uptrend stack) or -1 (perfect downtrend stack). The absolute value of this correlation will be very high (close to 1).
In a mean-reverting or sideways market, the SMAs will be tangled and crisscrossing each other. There is no clear order, and the relationship between an SMA's length and its price value is weak. The correlation will be close to 0.
This indicator calculates this Pearson correlation on every bar, giving a continuous measure of how ordered or "trendy" the SMAs are. An absolute correlation above 0.8 is considered strongly trending, while a value between 0.4 and 0.8 suggests a mean-reverting character. Below 0.4, the market is likely random or choppy.
Regime Classification and Statistics
The indicator doesn't just look at the current correlation; it analyzes its behavior over a user-defined lookback window (default is 252 bars) to classify the overall market "regime."
It presents its findings in a clear table:
📊 |SMA Correlation| Regime Table: This main table provides a snapshot of the current market character.
Median: Shows the median absolute correlation over the lookback period, giving a central tendency of the market's behavior.
% > 0.80: The percentage of time the market was in a strong trend during the lookback period.
% < 0.80 & > 0.40: The percentage of time the market showed mean-reverting characteristics.
🧠 Regime: The final classification. It's labeled "📈 Trend-Dominant" if the median correlation is high and it has spent a significant portion of the time trending. It's labeled "🔄 Mean-Reverting" if the median is in the middle range and it has spent significant time in that state. Otherwise, it's considered "⚖️ Random/ Choppy".
📐 Regime Significance: This tells you how statistically confident you can be in the current regime classification, using a Z-score to compare its occurrence against random chance. ⭐⭐⭐ indicates high confidence (99%), while "❌ Not Significant" means the pattern could be random.
Regime Transition Probabilities
Optionally, a second table can be displayed that shows the historical probability of the market transitioning from one regime to another over different time horizons (t+5, t+10, t+15, and t+20 bars).
📈 → 🔄 → ⚖️ Transition Table: This table answers questions like, "If the market is trending now (From: 📈), what is the probability it will be mean-reverting (→ 🔄) in 10 bars?"
This provides powerful insights into the market's cyclical nature, helping you anticipate future behavior based on past patterns. For example, you might find that after a period of strong trending, a transition to a choppy state is more likely than a direct switch to a mean-reverting
Indicator Settings
Lookback Window for Regime Classification: This sets the number of recent bars (default is 252) the script analyzes to determine the current market regime (Trending, Mean-Reverting, or Random). A larger number provides a more stable, long-term view, while a smaller number makes the classification more sensitive to recent price action.
Show Regime Transition Table: A simple toggle (on/off) to show or hide the table that displays the probabilities of the market switching from one regime to another.
Lookback Offset for Starting Regime: This determines the "starting point" in the past for calculating regime transitions. The default is 20 bars ago. The script looks at the regime at this point and then checks what it became at later points.
Step 1, 2, 3, 4 Offset (bars): These define the future time intervals (5, 10, 15, and 20 bars by default) for the transition probability table. For example, the script checks the regime at the "Lookback Offset" and then sees what it transitioned to 5, 10, 15, and 20 bars later.
Significance Filter Settings
Use Regime Significance Filter: When enabled, this filter ensures that the regime transition statistics only count transitions that were "statistically significant." This helps to filter out noise and focus on more reliable patterns.
Min Stars Required (1=90%, 2=95%, 3=99%): This sets the minimum confidence level required for a regime to be included in the transition statistics when the significance filter is on.
1 ⭐: Requires at least 90% confidence.
2 ⭐⭐: Requires at least 95% confidence (default).
3 ⭐⭐⭐: Requires at least 99% confidence.
TRIPLE Moving AveragesThis Pine Script indicator plots three customizable moving averages (MAs) along with an optional composite MA (average of all three). It provides visual cues, alerts, and trend confirmation based on MA crossovers and price positioning relative to the MAs.
🔹 Key Features
1. Multiple Moving Average Types
Supports 7 different MA types for each line:
EMA (Exponential Moving Average)
SMA (Simple Moving Average)
SMMA / RMA (Smoothed / Regular Moving Average)
WMA (Weighted Moving Average)
VWMA (Volume Weighted Moving Average)
HMA (Hull Moving Average)
2. Three Independent MAs
MA1, MA2, MA3 can each be enabled/disabled
Custom lengths (default: 12, 21, 50)
Different price sources (close, open, high, low, etc.)
3. Composite Moving Average (Optional)
Calculates (MA1 + MA2 + MA3) / 3
Acts as a consensus trend filter
4. Visual & Alert Features
✅ Color-Coded Lines (Yellow = Price Above MA, Red = Price Below MA)
✅ Thick Line Width (3) for better visibility
✅ Background Highlights for crossovers/crossunders
✅ Alerts for All Crossover Combinations
🔹 How It Works
📈 MA Crossovers & Trend Signals
Bullish Signal: When a faster MA crosses above a slower MA
Bearish Signal: When a faster MA crosses below a slower MA
Trend Confirmation: All MAs aligned in the same direction (e.g., MA1 > MA2 > MA3 = Strong Uptrend)
🎨 Visual Indicators
Green Background → Bullish crossover detected
Red Background → Bearish crossover detected
Yellow Line → Price is above the MA (bullish)
Red Line → Price is below the MA (bearish)
🔔 Alert Conditions
Alerts are triggered for all possible MA crossover combinations, including:
MA1 crossing MA2
MA1 crossing MA3
MA2 crossing MA3
Any MA crossing the Composite MA
Fear and Greed Indicator [DunesIsland]The Fear and Greed Indicator is a TradingView indicator that measures market sentiment using five metrics. It displays:
Tiny green circles below candles when the market is in "Extreme Fear" (index ≤ 25), signalling potential buys.
Tiny red circles above candles when the market is in "Greed" (index > 75), indicating potential sells.
Purpose: Helps traders spot market extremes for contrarian trading opportunities.Components (each weighted 20%):
Market Momentum: S&P 500 (SPX) vs. its 125-day SMA, normalized over 252 days.
Stock Price Strength: Net NYSE 52-week highs (INDEX:HIGN) minus lows (INDEX:LOWN), normalized.
Put/Call Ratio: 5-day SMA of Put/Call Ratio (USI:PC).
Market Volatility: VIX (VIX), inverted and normalized.
Stochastic RSI: 14-period RSI on SPX with 3-period Stochastic SMA.
Alerts:
Buy: Index ≤ 25 ("Extreme Fear - Potential Buy").
Sell: Index > 75 ("Greed - Potential Sell").
EMA-Pack MTFEMA-Pack MTF
This TradingView Pine Script defines a custom indicator called "EMA-Pack MTF" that overlays various types of moving averages and Bollinger Bands across multiple timeframes on a chart. It begins by importing the built-in technical analysis library and defining a custom ma function that calculates several types of moving averages (SMA, EMA, TEMA, DEMA, HMA, and ALMA) based on user input. The ema function is the core logic, retrieving market data for the specified timeframe and calculating fast, mid, slow, 50, 100, and 200-period moving averages along with Bollinger Band components (basis, upper, and lower bands). The function adjusts values to the nearest valid price tick and returns them.
User input fields allow customization of timeframes, source data, moving average types, and Bollinger Band parameters. The script calls the ema function for each selected timeframe (1 minute, 5 minutes, 15 minutes, 1 hour, 4 hours, and 1 day), storing their respective computed values. It then plots the calculated moving averages and Bollinger Band basis lines on the chart, using different colors and line widths to distinguish between them. Some plots are hidden by default (display.none) to reduce chart clutter. This script is useful for multi-timeframe trend analysis using customizable moving averages and Bollinger Bands.
Intraday Reversal Pro1. CALL (Long/Buy) Setup
Green "CALL" label appears below a candle:
The system thinks a bullish reversal is likely.
This happens when there’s a liquidity sweep (price sweeps below recent lows), an FVG (Fair Value Gap) below price, RSI is oversold, and short-term EMA is above the long-term EMA.
Red dashed line (Stop Loss):
This is your suggested stop loss (for a call/long option) — place it at or just below this line.
Green dashed line (Take Profit):
This is your suggested take profit (for the option) — consider exiting here for a 2:1 reward/risk trade.
2. PUT (Short/Sell) Setup
Red "PUT" label appears above a candle:
The system thinks a bearish reversal is likely.
This happens when there’s a liquidity sweep above recent highs, an FVG above price, RSI is overbought, and short-term EMA is below the long-term EMA.
Red dashed line (Stop Loss):
This is your suggested stop loss (for a put/short option) — place it at or just above this line.
Green dashed line (Take Profit):
This is your suggested take profit (for the put/short option).
How to Trade with It:
Wait for a CALL or PUT label to appear (ideally after a sweep + FVG).
Enter your option position at/near the signal candle close.
Set your stop loss at the red dashed line (for calls, below; for puts, above).
Take profit at the green dashed line.
Optional: Use alerts to be notified when a new signal appears.