xetra//@version=5
indicator("First Candle Range", overlay=true)
// Налаштування сесії
session = input.session("0930-1030", title="Сесія")
// Визначити, чи поточна свічка — перша у сесії
is_new_session = ta.change(time(session))
// Змінні для збереження значень першої свічки
var float first_high = na
var float first_low = na
var int first_index = na
// Коли настає нова сесія — зберігаємо high та low першої свічки
if is_new_session
first_high := high
first_low := low
first_index := bar_index
// Побудова ліній
if not na(first_index)
line.new(first_index, first_high, bar_index, first_high, color=color.green, width=1, extend=extend.right)
line.new(first_index, first_low, bar_index, first_low, color=color.red, width=1, extend=extend.right)
// (Опційно) Заливка області між high та low
bgcolor(time(session) and bar_index == first_index ? color.new(color.orange, 85) : na)
Indicadores e estratégias
BB-HLThe BB‑HL Indicator is essentially a variation of Bollinger Bands that uses the high‑and‑low range of each bar—instead of the closing price—to calculate volatility bands.
Mogalef BandsThe Mogalef Bands, developed by French trader Eric Lefort, are volatility-adjusted channel bands designed to project the likely future trading range—both center and extremes—based on current price action and market environment.
EMA 11/22/5 + MACD Zero Cross Buy/SellStrategy to identify entry and sell points using EMA 11/22/5 + MACD Zero Cross Buy/Sell
Weighted WCCIWeighted WCCI by Luis Guilherme Damiani.
Wait for the red line to be near 200 / -200 for reliable signals.
Stochastic RSI [Ehlers]The Stochastic RSI is a momentum oscillator that applies the Stochastic formula to the Relative Strength Index (RSI), rather than price. The Ehlers version refers to an enhanced, smoothed variant developed by John F. Ehlers, who is known for using signal processing techniques to reduce lag and noise in indicators.
Customizable Engulfing, Pin Bar, Inside Bar Colorengulfing,pin,inside bar candle which helps to identify these candles for better visualization and understanding
OPR Asia-New-York [Elykia]This Pine Script indicator, called "OPR Asia-New-York ", displays time-based boxes corresponding to two specific trading periods known as OPR (Opening Price Range):
🎯 Purpose of the Indicator:
To visualize two key market time windows (morning and afternoon) as extended boxes, helping with technical analysis around opening ranges.
🕒 Two sessions displayed as boxes:
🔹 Morning OPR:
Default: from 09:00 to 09:15 (configurable)
The box extends until 10:30.
It captures the highest and lowest candle within this interval.
🔸 Afternoon OPR:
Default: from 15:30 to 15:45
The box extends until 17:30.
Follows the same logic as the morning session.
⚙️ Dashboard Options:
Enable or disable the morning or afternoon box individually
Select the timezone (e.g., GMT+2)
Customize all colors (morning/afternoon boxes, median line)
Set your own start/end/extension times for each session
📦 Each box includes:
A colored rectangle showing the price range (high/low)
A dotted median line between the high and low
The box and line extend until the end time defined
🧠 Usefulness for Traders:
Identify liquidity zones or consolidation areas
Trade setups like liquidity grabs, breakouts, or fakeouts around the OPR
Align with ICT methods or scalping strategies based on session behavior
ALP AT + KAMA Crossover This indicator is a powerful combination of two adaptive trend-following concepts: the AlphaTrend by Kivanc Ozbilgic and the Kaufman's Adaptive Moving Average (KAMA), often credited to Perry Kaufman (with the specific implementation based on HPotter's interpretation of KAMA).
The primary goal of this indicator is to provide a robust trend detection and dynamic support/resistance system, adapting to market volatility.
How it Works:
AlphaTrend Component: The green/red line is the AlphaTrend. It dynamically adjusts to market volatility (using ATR) and momentum (using MFI or RSI, configurable). It provides faster signals for trend changes.
KAMA Component: The black line is the Kaufman's Adaptive Moving Average. KAMA is designed to filter out market noise during choppy periods and follow the price closely during trending periods, making it a smoother and more reliable long-term trend indicator.
Color-Coded Trend Zones: The AlphaTrend line is color-coded to visually represent the current market condition based on the price's position relative to both AlphaTrend and KAMA:
Strong Uptrend (Lime Green): Price is above both AlphaTrend and KAMA.
Strong Downtrend (Red): Price is below both AlphaTrend and KAMA.
Uptrend Uncertainty (Orange): Price is above KAMA but below AlphaTrend (suggests consolidation or weakening uptrend).
Downtrend Uncertainty (Blue): Price is below KAMA but above AlphaTrend (suggests consolidation or strengthening downtrend within a downtrend).
Gray: Default/unclassified state.
The underlying logic is based on:
Bullish Crossover (Potential Buy Signal): When the AlphaTrend line crosses above the KAMA line.
Bearish Crossover (Potential Sell Signal): When the AlphaTrend line crosses below the KAMA line.
These crossovers indicate a shift in the adaptive trend momentum.
Customization:
Users can customize various parameters in the indicator's settings, including:
AlphaTrend Multiplier and Common Period.
KAMA Lengths and Alpha values.
All the color codes for different trend zones and lines, allowing for full personalization of the visual output.
Disclaimer:
This indicator is for informational and educational purposes only and should not be considered as financial advice. Trading involves substantial risk, and past performance is not indicative of future results. Always conduct your own thorough research and analysis before making any trading or investment decisions. This indicator is NOT a buy/sell/hold recommendation. Use it as a tool to aid your analysis, not as a sole basis for your trades.
Oscillator SignalsOscillator Signals – Smart Trading with RSI & Stochastic
Stop waiting for false reversals—trade the confirmed moves!
Developed by Marcelo Ulisses Sobreiro Ribeiro
Many traders struggle with the Stochastic Oscillator because it can linger in overbought (OB) or oversold (OS) zones for long periods, leading to premature entries. This script solves that problem by only triggering signals when Stochastic exits these zones, combined with RSI crossovers for higher-confidence trades.
🔹 Key Features:
✅ No More False Alerts – Avoids signals inside OB/OS zones—waits for Stochastic to exit (confirming momentum shift).
✅ RSI + Moving Average Crossovers – Adds a second layer of confirmation when RSI crosses its moving average.
✅ Combined Alerts – Strongest signals occur when:
Stochastic exits oversold (OS) and RSI crosses above its MA (▲ Bullish).
Stochastic exits overbought (OB) and RSI crosses below its MA (▼ Bearish).
✅ Fully Customizable – Adjust lengths, OB/OS levels, and toggle signals.
✅ Built-in Alerts – Never miss a setup.
🔹 Why It Works Better:
Traditional Stochastic signals often fail because price can stay stuck in OB/OS for extended periods. This script ignores entries inside the zones and only acts when:
Stochastic leaves OS (crosses above 20) + RSI confirms uptrend.
Stochastic leaves OB (crosses below 80) + RSI confirms downtrend.
Filters out weak reversals, focusing on high-probability breakouts.
🔹 Ideal For:
Traders tired of "whipsaws" from premature OB/OS entries.
Swing traders seeking confirmed reversals.
Combining with support/resistance for precision.
📌 Pro Tip: Pair this with price action (e.g., breakouts from key levels) for even stronger signals!
Try it now—trade less, profit more! 🚀
Key Improvements:
Problem-Solution Framework: Directly addresses the "Stochastic lingering" issue upfront.
Stronger Emphasis on Confirmation: Highlights how the script waits for OB/OS exits to avoid fakeouts.
Clearer Value Proposition: Positions the script as a filter for higher-quality signals.
Momo MasterA combination of moving averages and macd in one indicator.
Shows trend directionality and momentum.
SMA200 and VWAP are additional indicators that help to quickly assess whether we are in an up or down trend
London Open MarkerThis indicator draws a box on the candle of the London Open (it's designed to account for European time change, so it draws the box at 7am UTC in summer and 8am UTC in winter)
Useful for London session opening drive strategies
US Stocks SPDRsSelect Sector SPDR ETFs - These are unique Exchange Traded Funds (ETFs) that divide the S&P 500 into eleven index funds that trade all day on NYSE Arca.
ADT MSI TableKey Features:
1. Market Smith Methodology
Composite Rating: Combines price and volume strength
Relative Strength Rating: Measures stock performance vs benchmark
Base Pattern Detection: Identifies consolidation patterns
Breakout Signals: Detects valid breakouts with volume confirmation
2. Indian Market Adaptations
INR Currency Formatting: Displays prices in ₹, Lakhs, and Crores
Indian Benchmarks: NIFTY, SENSEX, NIFTY500 options
Market Cap Display: Formatted in Indian currency standards
Trading Hours Compatibility: Works with NSE/BSE data
3. Comprehensive Data Table
Real-time Metrics: Current price, daily change, volume analysis
Technical Indicators: MA positions, RS rating, composite rating
Performance Tracking: 3M, 6M, 12M returns
Signal Generation: BUY/SELL/HOLD recommendations
4. Visual Elements
Multiple Moving Averages: 10, 20, 50, 200 period MAs
Support/Resistance Levels: Dynamic pivot-based levels
Volume Analysis: Color-coded volume bars with surge detection
Trend Background: Color-coded background based on trend strength
Breakout Markers: Visual signals for valid breakouts
5. Customizable Parameters
Adjustable Periods: All timeframes can be modified
Table Positioning: 9 different table positions
Alert System: Customizable breakout and volume alerts
Display Options: Toggle any component on/off
6. Indian Market Specific
No Errors: Fully compatible with Indian stock data
Proper Formatting: All values in Indian currency format
Market Hours: Optimized for Indian trading sessions
Volume Calculations: Adapted for Indian market volume patterns
Multi-SMA (100, 200, 365)This indicator plots three Simple Moving Averages (SMAs) on the chart.
The lengths are fixed at 100, 200, and 365 periods.
It is a good buying zone for Bitcoin
SMA 5/10/30 close🧊
SMA 5/10/30 close
SMA 5/10/30 close
SMA 5/10/30 close
SMA 5/10/30 close
SMA 5/10/30 close
Market Strength Dashboard🚀 What It Does:
The indicator gives you a real-time dashboard showing three things:
✅ Trend Direction
Uses EMA 50 vs EMA 200.
Bullish: EMA 50 is above EMA 200 → Price favors upside swing.
Bearish: EMA 50 is below EMA 200 → Price favors downside swing.
Neutral: EMAs are equal → No clear trend.
✅ Momentum Strength
Uses RSI (Relative Strength Index).
Strong Bullish: RSI > 55 → Buyers in control.
Strong Bearish: RSI < 45 → Sellers in control.
Neutral: RSI between 45–55 → No strong momentum, usually sideways or uncertain.
✅ Volatility State (Expansion/Consolidation)
Uses Bollinger Band Width.
Measures if price is:
Expanding: BB Width increasing → Market opening up, volatility rising, often precedes large moves or breakouts.
Contracting: BB Width shrinking → Market compressing, often leads to tight ranges or consolidation.
Stable: No change in BB Width → Range behavior or calm trend.
🔥 How It Works Behind the Scenes:
EMA Cross Check:
→ Looks at whether the faster EMA (50) is above or below the slower EMA (200).
RSI Scan:
→ Reads current RSI level to determine momentum strength.
Bollinger Band Width Scan:
→ Calculates the distance between the upper and lower Bollinger Bands to detect if price is expanding or compressing.
Dashboard Output:
→ Combines all this into a floating label on the chart like:
“Trend: Bullish | Momentum: Strong Bullish | Volatility: Expanding”
🏆 How to Use It — Simple Rules for Swing or Day Trading:
🔥 Ideal Swing Trade Setup:
→ ✅ Trend: Bullish
→ ✅ Momentum: Strong Bullish
→ ✅ Volatility: Expanding
→ → Take long setups → pullbacks to EMA50 or previous highs → ride the trend.
→ ❌ If Trend is Neutral or Volatility is Contracting, skip the trade — market is chopping.
🔥 Ideal Day Trade Setup:
Look for Volatility Expanding → confirms active session/move.
Pair it with either Trend Bullish + Momentum Bullish for longs
→ Or Trend Bearish + Momentum Bearish for shorts.
🔥 When Not to Trade:
Trend Neutral + Momentum Neutral + Contracting Volatility → Sideways chop → No trade zone.
🔥 Breakout Watch Strategy:
When volatility shifts from Contracting → Expanding, expect a breakout.
→ Look for the first candle that pushes away from the Bollinger squeeze.
📊 How To Combine With Other Setups:
→ ✅ Add this dashboard to any chart to instantly know:
Should I be thinking up, down, or neither?
Is this market about to move big or stay stuck?
Pair it with:
Your price action entries.
Support/resistance levels.
Candle patterns.
Trendline or liquidity breaks.
🧠 Bottom Line:
→ This is a market condition scanner, not a signal generator.
→ It tells you: “Should I trade? What’s the direction? Is the market moving or stuck?”
→ You still choose the entry — this tool tells you when conditions are ideal or not.
Doji Candlestick w/ Volatility & Uninterrupted CyclesTracks Doji formation and provides a rating score of Low Medium and High for stocks.
SMA Crossover Candle Body SizeThis indicator allows you to filter the candle body size of a SMA crossover. This helps to eliminate times when price is consolidating and constantly crossing above or below. By adjusting the candle body size to say something like 15, you'll only receive alerts when significant size candles cross and hold above or below your desired SMA.
EMAs y señales🧠 What does the script do?
It draws the 9-period SMA (blue) and the 21-period SMA (orange).
It generates labels:
✅ “Buy” when the 9 SMA crosses above the 21 SMA.
❌ “Sell” when the 9 SMA crosses below the 21 SMA.
It triggers configurable alerts whenever a crossover occurs.