20 & 50 EMA + ATR, TR & DATRIndicator Name: 20 & 50 EMA + ATR, TR & DATR
This custom indicator combines trend and volatility analysis into a single tool, helping you make smarter trading decisions with fewer indicators on your chart.
---
1. 20 & 50 Exponential Moving Averages (EMAs)
EMA 20 (Blue Line): A short-term trend indicator that reacts quickly to price changes.
EMA 50 (Orange Line): A medium-term trend indicator that smooths out more of the noise.
How to Use:
Bullish signal: EMA 20 crosses above EMA 50
Bearish signal: EMA 20 crosses below EMA 50
Use crossovers or distance between EMAs to confirm trends or potential reversals
---
2. True Range (TR)
Definition: The greatest of the following:
High - Low
High - Previous Close
Previous Close - Low
Use: Shows how much the asset moved during the candle. Useful for understanding raw price movement.
---
3. Average True Range (ATR)
Definition: The average of the True Range over a 14-bar period
Line color: Red (shown in the status line above your chart)
How to Use:
High ATR = High volatility
Low ATR = Low volatility
Use ATR to help determine stop-loss and take-profit levels, or to avoid low-volatility periods
---
4. Daily ATR (DATR)
Definition: ATR calculated from the daily timeframe, regardless of the chart's current timeframe
Line color: Green (also shown in the status line)
How to Use:
Know how much the asset typically moves in a full day
Helps intraday traders set realistic targets or detect when the market is unusually quiet or active
Indicators and strategies
Aesthetic RSI [AlchimistOfCrypto]🌌 Aesthetic RSI – Unveiling the Fractal Forces of Markets 🌌
Category: Momentum Indicators 📈
"The RSI oscillator, formalized through an advanced mathematical prism, reveals the underlying fractal structures of price movements. This indicator draws inspiration from quantum principles of divergence-convergence where the probability of a return to equilibrium increases proportionally to the distance from the median point. Our implementation employs sophisticated algorithmic smoothing to filter out the stochastic noise inherent in financial markets, allowing visualization of the true momentum forces according to thermodynamic entropy principles applied to trading systems."
📊 Professional Trading Application
The Aesthetic RSI is a visually stunning and mathematically refined take on the classic Relative Strength Index. With customizable settings, advanced smoothing, and eight unique visual palettes, it empowers traders to detect momentum shifts and divergences with unparalleled clarity.
⚙️ Indicator Configuration
- Length 📏
The core parameter (default: 20) that determines the calculation period.
- Lower values (8-14): Increase sensitivity for short-term trading.
- Higher values (21-34): Provide stronger signals for position trading.
- OverBought/OverSold Thresholds 🎯
Customizable boundaries (default: 75/25) to identify extreme market conditions.
- Calibrate based on asset volatility: Higher volatility assets may need wider thresholds (80/20) to reduce false signals.
- Style 🎨
Eight meticulously crafted visual palettes optimized for pattern recognition:
- Miami Vice (default): High-contrast cyan/magenta scheme for spotting divergences.
- Cyberpunk: Yellow/purple combo to highlight momentum shifts.
- Classic: Traditional green/red for conventional analysis.
- High Contrast: Maximum visual separation for traders with visual impairments.
- Specialized palettes (Forest, Ocean, Fire, Monochrome): Tailored for diverse market conditions.
- Mode Selection 🔄
- Full: Displays a complete gradient spectrum across the RSI range, emphasizing momentum transitions between 35-65.
- OverZone: Focuses on actionable extreme zones, reducing noise in ranging markets.
🚀 How to Use
1. Adjust Length ⏰: Set the period based on your trading style (short-term or long-term).
2. Fine-Tune Thresholds 🎚️: Customize overbought/oversold levels to match the asset’s volatility.
3. Select a Palette 🌈: Choose a visual style that enhances your pattern recognition.
4. Choose Mode 🔍: Use "Full" for detailed momentum analysis or "OverZone" for extreme zone focus.
5. Spot Divergences ✅: Look for price-RSI divergences to anticipate reversals.
6. Trade with Precision 🛡️: Combine with other indicators for high-probability setups.
📅 Release Notes (April 2025)
Aesthetic RSI blends quantum-inspired mathematics with artistic visualization, redefining momentum analysis. Stay tuned for future enhancements! ✨
🏷️ Tags
#Trading #TechnicalAnalysis #RSI #Momentum #Divergence #MultiTimeframe #TradingStrategy #RiskManagement #Forex #Stocks #Crypto #Bitcoin #AlgoTrading #DayTrading #SwingTrading #TheAlchimist #QuantumTrading #VisualTrading #PatternRecognition
Liquidity Levels (Smart Swing Lows)Liquidity Levels — Smart Swing Low Detection
Efficient Liquidity Sweep Visualization for Smart Money Traders
This script automatically identifies and plots liquidity-rich swing lows based on pivot logic, filters them to remove redundant levels, and overlays daily highs/lows for added context — giving Smart Money Concept (SMC) traders a clean, actionable map of liquidity.
It’s designed to be minimal yet powerful: perfect for spotting potential liquidity grabs, mitigation zones, and sweep targets with zero chart clutter.
🔍 What This Script Does:
Detects Smart Swing Lows
Uses fixed pivot detection (left = 3, right = customizable) to identify structurally significant swing lows.
Filters out swing lows that are too close together using a percentage-based spacing threshold to reduce noise.
Mitigation Cleanup Logic
Tracks whether recent price action breaches past swing lows.
If breached, the swing level is automatically removed, keeping only relevant, unmitigated liquidity levels on your chart.
Plots Daily Highs and Lows
Each new trading day, horizontal rays mark the prior day’s high and low — useful for identifying resting liquidity and possible sweep zones.
Labeling and Style Customization
Optional labels for swing lows.
Full control over label size, color, and visibility to match any chart aesthetic.
Timeframe Filtering
Runs exclusively on 5m, 10m, and 15m charts to ensure optimal reliability and signal clarity.
⚙️ Customization Features:
Pivot sensitivity (Right side control)
Minimum distance between swing lows (in %)
Label visibility, size, and color
Line width and colors for both swing levels and daily highs/lows
Mitigation cleanup lookback length
💡 How to Use:
Add the script to a qualifying intraday chart (5–15m).
Use the swing low levels to monitor liquidity-rich zones.
Combine with your personal strategy to identify liquidity grabs, potential reversal zones, or entry points following a sweep.
Let the built-in cleanup logic remove any already-mitigated levels so you can focus on active targets.
🚀 What Makes It Unique:
This isn’t just another pivot plotter — it’s a smart, self-cleaning SMC tool designed for modern liquidity-based trading strategies.
A must-have for traders using concepts like liquidity grabs, mitigation blocks, or sweep-to-reverse trade models.
🔗 Best used in combination with:
✅ First FVG — Opening Range Fair Value Gap Detector: Pinpoint the day’s first imbalance zone for intraday setups.
✅ ICT SMC Liquidity Grabs + OB + Fibonacci OTE Levels: Confluence-based entries powered by liquidity logic, order blocks, and premium/discount zones.
Used together, these scripts form a complete Smart Money toolkit — helping you build high-probability setups with confidence, clarity, and clean charts.
Global M2 Liquidity [TheAlchimist]🌍 Global M2 Liquidity – Navigating the Quantum Field of Markets 🌍
Category: Macroeconomic Indicators 📊
"In quantum physics, the observer effect states that the mere act of observation changes the system being observed. Similarly, in financial markets, global liquidity acts as a quantum field that permeates all market states simultaneously. Just as Heisenberg’s uncertainty principle suggests we cannot precisely measure both position and momentum, the M2 money supply’s influence on market dynamics creates a complex web of cause and effect across multiple timeframes."
📈 Overview
The Global M2 Liquidity indicator is a powerful tool that tracks the combined M2 money supply from five major economies (US, EU, China, Japan, UK), converted to USD 💵, offering a panoramic view of global liquidity conditions. With multi-timeframe analysis and a customizable forward-shift feature, it empowers traders to anticipate market movements driven by liquidity trends.
✨ Features
- Global Coverage 🌎: Monitors M2 money supply from 5 major economic regions (US, EU, China, Japan, UK).
- Real-Time Conversion 💱: Converts all data to USD for consistent analysis.
- Multi-Timeframe Analysis ⏰: Tracks liquidity from 15-minute to weekly charts.
- Forward-Shift Capability 🔮: Aligns M2 data with future price action for predictive insights.
- Color-Coded Trends 🎨: Visualizes liquidity trends (🟢 Expansion, 🔴 Contraction).
🚀 How to Use
1. Main Line 📉: Displays total global M2 liquidity in trillions of USD.
2. Golden Moving Average ⭐: Identifies the overall trend direction.
3. Trend Colors 🟢🔴:
- Green: Liquidity expanding above the moving average (bullish for risk assets).
- Red: Liquidity contracting below the moving average (bearish signal).
4. Forward Shift ⏩: Use the shift parameter to align M2 data with price action for predictive analysis.
5. Combine with Price Action 🔍: Correlate liquidity trends with assets like Bitcoin, stocks, or forex for strategic entries/exits.
⚙️ Settings
- MA Period 📏: Length of the moving average (default: 50).
- Shift ⏳: Number of days to shift data forward (default: 60).
🏷️ Tags
#Trading #Macroeconomic #M2Liquidity #GlobalLiquidity #MoneySupply #MultiTimeframe #TrendAnalysis #PredictiveAnalysis #Forex #Stocks #Crypto #Bitcoin #RiskAssets #CentralBanks #USD #TheAlchimist #QuantumTrading #AlgoTrading #DayTrading #SwingTrading
MACD [AlchimistOfCrypto]🌠 MACD Optimized with Python – Decoding the Chaos of Markets 🌠
Category: Trend Analysis 📈
"Like the dynamic systems studied in chaos theory, financial markets appear unpredictable at first glance. Yet, as Edward Lorenz demonstrated, even in apparent chaos reside harmonious mathematical structures. The MACD (Moving Average Convergence Divergence) represents this quest for order within disorder—a mathematical formulation that extracts coherent signals from price noise. By combining moving averages of different periods, this indicator reveals hidden cycles and precise moments when market energy shifts, like a pendulum obeying the immutable laws of physics."
📊 Technical Overview
The MACD Optimized with Python is a revolutionary take on the classic Moving Average Convergence Divergence indicator. Powered by Python-driven optimizations 🐍, it adapts to specific timeframes, delivering razor-sharp signals for traders seeking to navigate the market’s chaos with precision.
⚙️ How It Works
- Python-Optimized Parameters 🔧: Unlike the standard MACD (12,26,9), our version uses mathematically tailored parameters for each timeframe:
- 1H: 11/38/27
- 4H: 9/98/27
- 1D: 45/90/29
- 1W: 9/16/3
- 2W: 5/20/5
- Intuitive Visuals 🎨:
- Crossovers marked by colored dots 🟢🔴 for clear entry/exit signals.
- Histogram with a color gradient 🌈 to show direction and momentum intensity.
- Customizable Signals 🎯: Choose to display long, short, or both signals to match your trading style.
🚀 How to Use This Indicator
1. Select Your Timeframe ⏰: Choose the timeframe aligned with your trading horizon (1H, 4H, 1D, 1W, or 2W).
2. Spot Crossovers 🔍: Watch for the MACD line (green) crossing the signal line (red) to identify potential trend changes.
3. Confirm with Divergence ✅: Combine crossovers with price-MACD divergence for high-probability trend reversal signals.
📅 Release Notes
Unlock the hidden order of markets with this Python-optimized MACD. Stay tuned for future enhancements! ✨
🏷️ Tags
#Trading #TechnicalAnalysis #MACD #TrendAnalysis #Python #MultiTimeframe #Divergence #Momentum #TradingStrategy #RiskManagement #Forex #Stocks #Crypto #ChaosTheory #OptimizedTrading
First FVG Custom Time RangeFirst FVG — Opening Range Fair Value Gap Detector
Smart Money Opening Imbalance Strategy Tool
This script automatically detects and highlights the first Fair Value Gap (FVG) that forms between 9:30 and 10:00 AM Eastern Time (New York session open) — a critical period often referred to as the Opening Range. It’s designed for Smart Money traders looking to isolate early-morning inefficiencies that may influence market behavior throughout the trading day.
🔍 What This Script Does:
Automatically Detects the First FVG in the Opening Range
Scans price action between 9:30 and 10:00 AM ET and identifies the first valid bullish or bearish FVG that forms.
Only one FVG is shown per day — ensuring a clean, focused view.
Draws a Visual Zone
Once detected, the FVG zone is extended forward on the chart (customizable duration).
A labeled zone helps users track how price reacts to it throughout the session.
Optional Retest Alerts
Alerts you when price re-enters the zone — a potential reaction point used by SMC traders.
Customization Options
Set your preferred session time window
Adjust zone duration (in bars)
Customize label font size, colors, and visibility
Enable/disable alert on retest
📈 Why the First FVG Matters:
Time-Sensitive Setup: The first FVG typically forms no earlier than 9:31 AM ET and represents a potential “time distortion” or imbalance zone created by aggressive market participants during the open.
Behavioral Study: Many traders journal how price behaves around this zone each day — whether it acts as support, resistance, or gets traded through later in the session.
Predictive Value: Observing how this zone is respected or broken can provide anticipatory insight into intraday price action, rather than reactive analysis.
Great for New Traders: This opening FVG is often recommended as a starting reference point for building trade models and understanding how institutional imbalances unfold.
🚀 What Makes It Unique:
This tool doesn’t spam your chart with every FVG. It laser-focuses on a single, time-bound zone backed by institutional logic — the first presented imbalance of the day during the opening range.
Use it to:
Monitor price behavior around early inefficiencies
Plan journal entries and pattern recognition
Align intraday setups with a high-probability SMC model
Whether you’re scalping, journaling market structure, or refining entries based on liquidity behavior — this script helps you make the first 30 minutes count.
ICT SMC Liquidity Grabs and OBsICT SMC Liquidity Grabs + OB + Fibonacci OTE Levels
Smart Money Concepts Trading Assistant
This script is built for traders who follow ICT (Inner Circle Trader) and Smart Money Concepts. It intelligently combines three critical components of SMC trading: Liquidity Grabs, Order Blocks, and Fibonacci-based Optimal Trade Entry (OTE) zones — giving traders visual cues for potential high-probability reversals and entry points.
🔍 What This Script Does:
Detects Liquidity Grabs
Identifies swing highs/lows where price sweeps liquidity, then immediately reverses.
Labels them with orange markers when price takes out previous highs/lows but closes back inside.
Draws Order Blocks
After a liquidity grab, the script looks for strong bullish or bearish candles and automatically highlights the OB zone.
These OB zones are visualized with transparent colored boxes extending several bars forward.
Plots Fibonacci OTE Levels
Uses recent swing high/low pivots to dynamically draw customizable OTE retracement levels (e.g., 62% and 75%) for both long and short setups.
Highlights Optimal Entry Zones
Marks valid OTE-based buy/sell opportunities only when:
Liquidity has been taken,
Price enters the OTE zone,
And a strong confirming candle appears.
Adds visual zones, trade labels, and optional alerts for each qualified entry.
Includes Take Profit Targets
Automatically calculates take-profit levels based on previous structure and risk-reward ratios.
TP1 is the previous swing, and TP2 is an extended R-multiple (customizable by user).
⚙️ Customization Options:
Toggle each feature (Liquidity Grabs, OBs, Fibonacci Levels)
Adjust Fibonacci levels (default: 62% and 75%)
Set lookback period for liquidity checks
Customize the R-multiple for TP2 levels
💡 How to Use:
Enable desired features from the input panel.
Watch for Buy/Sell OTE zones highlighted in green/red.
Confirm with liquidity sweep and OB support for stronger signals.
Use the automatically generated TP levels to manage risk.
🚀 What Makes It Unique:
Unlike other open-source mashups, this script synchronizes multiple SMC concepts into a single tool that:
Waits for high-confidence conditions (not just blind fib or OB detection)
Validates entries using multiple confluences
Visually marks actionable setups
Automates trade management zones
Whether you're trend-trading, scalping, or swing trading ICT-style, this tool offers a streamlined, smart-money-aligned workflow directly on your chart.
ICT SMC Liquidity Grabs and OBsICT SMC Liquidity Grabs + OB + Fibonacci OTE Levels
Smart Money Concepts Trading Assistant
This script is built for traders who follow ICT (Inner Circle Trader) and Smart Money Concepts. It intelligently combines three critical components of SMC trading: Liquidity Grabs, Order Blocks, and Fibonacci-based Optimal Trade Entry (OTE) zones — giving traders visual cues for potential high-probability reversals and entry points.
🔍 What This Script Does:
Detects Liquidity Grabs
Identifies swing highs/lows where price sweeps liquidity, then immediately reverses.
Labels them with orange markers when price takes out previous highs/lows but closes back inside.
Draws Order Blocks
After a liquidity grab, the script looks for strong bullish or bearish candles and automatically highlights the OB zone.
These OB zones are visualized with transparent colored boxes extending several bars forward.
Plots Fibonacci OTE Levels
Uses recent swing high/low pivots to dynamically draw customizable OTE retracement levels (e.g., 62% and 75%) for both long and short setups.
Highlights Optimal Entry Zones
Marks valid OTE-based buy/sell opportunities only when:
Liquidity has been taken,
Price enters the OTE zone,
And a strong confirming candle appears.
Adds visual zones, trade labels, and optional alerts for each qualified entry.
Includes Take Profit Targets
Automatically calculates take-profit levels based on previous structure and risk-reward ratios.
TP1 is the previous swing, and TP2 is an extended R-multiple (customizable by user).
⚙️ Customization Options:
Toggle each feature (Liquidity Grabs, OBs, Fibonacci Levels)
Adjust Fibonacci levels (default: 62% and 75%)
Set lookback period for liquidity checks
Customize the R-multiple for TP2 levels
💡 How to Use:
Enable desired features from the input panel.
Watch for Buy/Sell OTE zones highlighted in green/red.
Confirm with liquidity sweep and OB support for stronger signals.
Use the automatically generated TP levels to manage risk.
🚀 What Makes It Unique:
Unlike other open-source mashups, this script synchronizes multiple SMC concepts into a single tool that:
Waits for high-confidence conditions (not just blind fib or OB detection)
Validates entries using multiple confluences
Visually marks actionable setups
Automates trade management zones
Whether you're trend-trading, scalping, or swing trading ICT-style, this tool offers a streamlined, smart-money-aligned workflow directly on your chart.
Prop Firm Business SimulatorThe prop firm business simulator is exactly what it sounds like. It's a plug and play tool to test out any tradingview strategy and simulate hypothetical performance on CFD Prop Firms.
Now what is a modern day CFD Prop Firm?
These companies sell simulated trading challenges for a challenge fee. If you complete the challenge you get access to simulated capital and you get a portion of the profits you make on those accounts payed out.
I've included some popular firms in the code as presets so it's easy to simulate them. Take into account that this info will likely be out of date soon as these prices and challenge conditions change.
Also, this tool will never be able to 100% simulate prop firm conditions and all their rules. All I aim to do with this tool is provide estimations.
Now why is this tool helpful?
Most traders on here want to turn their passion into their full-time career, prop firms have lately been the buzz in the trading community and market themselves as a faster way to reach that goal.
While this all sounds great on paper, it is sometimes hard to estimate how much money you will have to burn on challenge fees and set realistic monthly payout expectations for yourself and your trading. This is where this tool comes in.
I've specifically developed this for traders that want to treat prop firms as a business. And as a business you want to know your monthly costs and income depending on the trading strategy and prop firm challenge you are using.
How to use this tool
It's quite simple you remove the top part of the script and replace it with your own strategy. Make sure it's written in same version of pinescript before you do that.
//--$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$--//--------------------------------------------------------------------------------------------------------------------------$$$$$$
//--$$$$$--Strategy-- --$$$$$$--// ******************************************************************************************************************************
//--$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$--//--------------------------------------------------------------------------------------------------------------------------$$$$$$
length = input.int(20, minval=1, group="Keltner Channel Breakout")
mult = input(2.0, "Multiplier", group="Keltner Channel Breakout")
src = input(close, title="Source", group="Keltner Channel Breakout")
exp = input(true, "Use Exponential MA", display = display.data_window, group="Keltner Channel Breakout")
BandsStyle = input.string("Average True Range", options = , title="Bands Style", display = display.data_window, group="Keltner Channel Breakout")
atrlength = input(10, "ATR Length", display = display.data_window, group="Keltner Channel Breakout")
esma(source, length)=>
s = ta.sma(source, length)
e = ta.ema(source, length)
exp ? e : s
ma = esma(src, length)
rangema = BandsStyle == "True Range" ? ta.tr(true) : BandsStyle == "Average True Range" ? ta.atr(atrlength) : ta.rma(high - low, length)
upper = ma + rangema * mult
lower = ma - rangema * mult
//--Graphical Display--// *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-$$$$$$
u = plot(upper, color=#2962FF, title="Upper", force_overlay=true)
plot(ma, color=#2962FF, title="Basis", force_overlay=true)
l = plot(lower, color=#2962FF, title="Lower", force_overlay=true)
fill(u, l, color=color.rgb(33, 150, 243, 95), title="Background")
//--Risk Management--// *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-$$$$$$
riskPerTradePerc = input.float(1, title="Risk per trade (%)", group="Keltner Channel Breakout")
le = high>upper ? false : true
se = lowlower
strategy.entry('PivRevLE', strategy.long, comment = 'PivRevLE', stop = upper, qty=riskToLots)
if se and upper>lower
strategy.entry('PivRevSE', strategy.short, comment = 'PivRevSE', stop = lower, qty=riskToLots)
The tool will then use the strategy equity of your own strategy and use this to simulat prop firms. Since these CFD prop firms work with different phases and payouts the indicator will simulate the gains until target or max drawdown / daily drawdown limit gets reached. If it reaches target it will go to the next phase and keep on doing that until it fails a challenge.
If in one of the phases there is a reward for completing, like a payout, refund, extra it will add this to the gains.
If you fail the challenge by reaching max drawdown or daily drawdown limit it will substract the challenge fee from the gains.
These gains are then visualised in the calendar so you can get an idea of yearly / monthly gains of the backtest. Remember, it is just a backtest so no guarantees of future income.
The bottom pane (non-overlay) is visualising the performance of the backtest during the phases. This way u can check if it is realistic. For instance if it only takes 1 bar on chart to reach target you are probably risking more than the firm wants you to risk. Also, it becomes much less clear if daily drawdown got hit in those high risk strategies, the results will be less accurate.
The daily drawdown limit get's reset every time there is a new dayofweek on chart.
If you set your prop firm preset setting to "'custom" the settings below that are applied as your prop firm settings. Otherwise it will use one of the template by default it's FTMO 100K.
The strategy I'm using as an example in this script is a simple Keltner Channel breakout strategy. I'm using a 0.05% commission per trade as that is what I found most common on crypto exchanges and it's close to the commissions+spread you get on a cfd prop firm. I'm targeting a 1% risk per trade in the backtest to try and stay within prop firm boundaries of max 1% risk per trade.
Lastly, the original yearly and monthly performance table was developed by Quantnomad and I've build ontop of that code. Here's a link to the original publication:
That's everything for now, hope this indicator helps people visualise the potential of prop firms better or to understand that they are not a good fit for their current financial situation.
CAJA W SMA + UT BOTThis script was made from a friend to friends. I hope is helpful and share good vibes
Trader NocurnoModify the parameters (SMA, ATR, etc.) to optimize your entries and maximize profits.
Activate this indicator's alert with all calls to the alert() function and enable the receive in your email option.
Thanks Night Trader for sharing your strategy with us!
MarketTrend [AlchimistOfCrypto]🌌 MarketTrend – Unveil the Cosmic Harmony of Markets 🌌
"What we call 'trend' is merely an illusion of our limited perception of the space-time continuum of markets. Pivots are points of singularity where potential energy ⚡️ transforms into kinetic energy 🚀. The fourth dimension isn’t just time—it’s the simultaneous awareness of all temporal states. By observing mathematical laws across time scales, we unlock the secrets of the cosmic harmony of markets."
📊 Technical Overview
MarketTrend is a multi-timeframe trend analysis powerhouse 🔥 that tracks market direction across six timeframes simultaneously. It pinpoints pivot points 📍 to classify trends as bullish 🐂, bearish 🐻, or neutral ⚖️, presenting results in a sleek, easy-to-read table.
⚙️ How It Works
- The algorithm scans for pivot highs and pivot lows using a 20-bar lookback period 🔍.
- Bullish Trend 🟢: Price breaks above a previous pivot high.
- Bearish Trend 🔴: Price drops below a previous pivot low.
- Neutral Zone 🟡: Price consolidates until a breakout sparks a new trend.
🚀 How to Use This Indicator
1. Master Multi-Timeframe Analysis 🌍: Spot trend alignment across timeframes for a holistic view.
2. Seek Confluence ✅: Stronger signals emerge when multiple timeframes align.
3. Time Your Entries ⏰: Enter trades when shorter timeframes sync with larger ones for maximum precision.
4. Manage Risk 🛡️: Avoid countertrend trades when timeframes show unified direction.
Midnight (Daily) OpenMidnight (Daily) Open v1.0
Overview
Plots a real‑time horizontal line at the U.S. session “midnight” open (i.e. the daily candle’s open price) on any intraday chart. Optionally displays a label with the exact price, making it easy to see how price reacts to the session open.
Key Benefits
Immediate Context: See at a glance where today’s session began, helping identify support/resistance.
Consistent Reference: Works on any symbol or intraday timeframe.
Customizable Styling: Tweak colors, line thickness, and label appearance to match your chart theme.
Features
Retrieves the daily open via request.security() (Pine v6).
Draws or updates a single horizontal line that extends into the future.
Optional price label on the last bar, with user‑defined text and background colors.
Zero repainting—always shows the true daily open.
RSI + 3 MA SignalsRSI + 3 MA Signals
This indicator combines Relative Strength Index (RSI) crossovers with three customizable moving averages to generate clear Buy and Sell signals.
RSI-based signals trigger when RSI crosses oversold or overbought levels.
Three moving averages (Fast, Mid, Slow) plotted for multi-timeframe trend analysis.
Fully adjustable RSI and Moving Average settings to fit any trading style.
Designed for spotting potential reversals and confirming trend direction.
This tool is ideal for traders looking for cleaner entries and exits based on momentum and trend alignment.
Useful for scalping, day trading, and swing trading strategies across all timeframes.
compare strength
---
Compare Strength – Multi-Timeframe Relative Strength Indicator
**Author:** @martin_alpha
**License:** Mozilla Public License 2.0
**Script version:** Pine Script™ v6
What does this indicator do?
This indicator is designed to **compare the relative strength of any asset against a chosen benchmark**. It provides traders and analysts with a clear visual representation of how one asset is performing compared to another over different time horizons.
Key Features:
- **Benchmark Comparison**: Compares the current asset’s price action against a user-defined symbol (default: `BTCUSDT` from Binance).
- **Relative Strength Ratio**: Calculates a scaled ratio of the asset’s price relative to the benchmark.
- **Multi-EMA Smoothing**: Applies three Exponential Moving Averages (EMAs) with user-defined lengths to smooth the strength ratio and highlight trends.
- **Customizable Inputs**: Allows traders to input their own benchmark symbol and EMA lengths for full flexibility.
How it works:
1. **Relative Ratio Calculation**:
```
ratio = (close / benchmark close) * 1000
```
This gives a scaled value showing how strong the current asset is relative to the benchmark.
2. **EMAs of the Ratio**:
- `ratio_ma1`: Fast smoothing (default length 10)
- `ratio_ma2`: Medium smoothing (default length 20)
- `ratio_ma3`: Long-term smoothing (default length 100)
3. **Plotting**:
- The raw ratio is plotted as a dynamic line.
- The smoothed ratios are plotted in **Red**, **Green**, and **Blue**, respectively.
How to Use:
- Choose any benchmark to compare strength — for example, `BINANCE:ETHUSDT` or a sector ETF like `SPY` if using on stocks.
- Observe **crossovers** between the ratio and its moving averages:
- When the ratio is above the moving averages, it indicates **relative outperformance**.
- When it is below, it may indicate **relative weakness**.
- Great for **pair trading**, **sector rotation**, or identifying **leading assets** in a trend.
Inputs:
- `length` (default 10): EMA length for short-term strength smoothing.
- `length2` (default 20): EMA length for medium-term strength.
- `length3` (default 100): EMA length for long-term trend view.
- `s01`: Symbol to use as a benchmark (default: `BINANCE:BTCUSDT`).
Notes:
- The benchmark is normalized by dividing by 100 to improve visual scaling.
- The final ratio is scaled by 1000 for better chart readability — this has no impact on actual strength interpretation.
- Best used on **higher timeframes** for macro trend comparison or on **shorter timeframes** for intra-day relative strength setups.
---
Trend-Following VWAP + Keltner scalping This indicator is designed for lower timeframes like 1m or 5m.
VWAP (Volume Weighted Average Price):
Green when price is above → bullish bias
Red when price is below → bearish bias
Keltner Channels:
Upper band = potential resistance or breakout zone
Lower band = potential support or breakdown zone
Middle line (basis) = dynamic trend support/resistance (EMA-based)
🟢 Bullish Setup (Buy Scalps):
Price is above VWAP (VWAP is green) → Market is bullish
Price pulls back to Keltner basis or lower band
Look for bullish price action (e.g., engulfing candle, pin bar)
Enter long near the lower band or midline
Target: Upper band or previous high
Stop Loss: Just below the lower band or recent swing low
🔴 Bearish Setup (Sell Scalps):
Price is below VWAP (VWAP is red) → Market is bearish
Price pulls back to Keltner basis or upper band
Look for bearish price action (e.g., bearish engulfing)
Enter short near upper band or midline
Target: Lower band or previous low
Stop Loss: Just above the upper band or recent swing high
Like this indicator? Boost it ♡
SPDR Sectors TableThis script generates an interactive and customizable SPDR Sectors Table designed to monitor and analyze the performance of the 11 main sectors of the S&P 500 via sector-specific ETFs. It offers a dynamic overview of daily or periodic sector movements, making it a valuable tool for traders, analysts, and investors implementing sector rotation strategies.
█ DEFINITIONS
SPDR Sectors ETFs are exchange-traded funds managed by State Street Global Advisors, which divide the S&P 500 into the following 11 sectors:
- Communication Services (XLC)
- Consumer Discretionary (XLY)
- Consumer Staples (XLP)
- Energy (XLE)
- Financials (XLF)
- Health Care (XLV)
- Industrials (XLI)
- Materials (XLB)
- Real Estate (XLRE)
- Technology (XLK)
- Utilities (XLU)
These ETFs aim to replicate the performance of their respective sectors as defined by the Global Industry Classification Standard (GICS). The funds are periodically rebalanced to match changes in the S&P 500 composition, offering an accurate snapshot of sectoral trends.
█ INDICATOR
The table displays each sector's ticker and full name, following official GICS terminology and SPDR color coding. It also shows percentage performance, calculated daily on intraday charts or based on the selected time frame.
Users can sort the table by either percentage performance or the relative weight of each ETF in the S&P 500. The default weight values reflect data updated as of 17 April 2025, and can be manually adjusted based on the most recent sector weightings available on the official SPDR website.