Session Gap Fill [LuxAlgo]The Session Gap Fill tool detects and highlights filled and unfilled price gaps between regular sessions. It features a dashboard with key statistics about the detected gaps.
The tool is highly customizable, allowing users to filter by different types of gaps and customize how they are displayed on the chart.
🔶 USAGE
By default, the tool detects all price gaps between sessions. A price gap is defined as a difference between the opening price of one session and the closing price of the previous session. In this case, the tool uses the opening price of the first bar of the session against the closing price of the previous bar.
A bullish gap is detected when the session open price is higher than the last close, and a bearish gap is detected when the session open price is lower than the last close.
Gaps represent a change in market sentiment, a difference in what market participants think between the close of one trading session and the open of the next.
What is useful to traders is not the gap itself, but how the market reacts to it.
Unfilled gaps occur when prices do not return to the previous session's closing price.
Filled gaps occur when prices come back to the previous session's close price.
By analyzing how markets react to gaps, traders can understand market sentiment, whether different prices are accepted or rejected, and take advantage of this information to position themselves in favor of bullish or bearish market sentiment.
Next, we will cover the Gap Type Filter and Statistics Dashboard.
🔹 Gap Type Filter
Traders can choose from three options: display all gaps, display only overlapping gaps, or display only non-overlapping gaps. All gaps are displayed by default.
An overlapping gap is defined when the first bar of the session has any price in common with the previous bar. No overlapping gap is defined when the two bars do not share any price levels.
As we will see in the next section, there are clear differences in market behavior around these types of gaps.
🔹 Statistics Dashboard
The Statistics Dashboard displays key metrics that help traders understand market behavior around each type of gap.
Gaps: The percentage of bullish and bearish gaps.
Filled: The percentage of filled bullish and bearish gaps.
Reversed: The percentage of filled gaps that move in favor of the gap
Bars Avg.: The average number of bars for a gap to be filled.
Now, let's analyze the chart on the left of the image to understand those stats. These are the stats for all gaps, both overlapping and non-overlapping.
Of the total, bullish gaps represent 55%, and bearish ones represent 44%. The gap bias is pretty balanced in this market.
The second statistic, Filled, shows that 63% of gaps are filled, both bullish and bearish. Therefore, there is a higher probability that a gap will be filled than not.
The third statistic is reversed. This is the percentage of filled gaps where prices move in favor of the gap. This applies to filled bullish gaps when the close of the session is above the open, and to filled bearish gaps when the close of the session is below the open. In other words, first there is a gap, then it fills, and finally it reverses. As we can see in the chart, this only happens 35% of the time for bullish gaps and 29% of the time for bearish gaps.
The last statistic is Bars Avg., which is the average number of bars for a gap to be filled. On average, it takes between one and two bars for both bullish and bearish gaps. On average, gaps fill quickly.
As we can see on the chart, selecting different types of gaps yields different statistics and market behavior. For example, overlapping gaps have a greater than 90% chance of being filled, whereas non-overlapping gaps have a less than 40% chance.
🔶 SETTINGS
Gap Type: Select the type of gap to display.
🔹 Dashboard
Dashboard: Enable or disable the dashboard.
Position: Select the location of the dashboard.
Size: Select the dashboard size.
🔹 Style
Filled Bullish Gap: Enable or disable this gap and choose the color.
Filled Bearish Gap: Enable or disable this gap and choose the color.
Unfilled Gap: Enable or disable this gap and choose the color.
Max Deviation Level: Enable or disable this level and choose the color.
Open Price Level: Enable or disable this level and choose the color.
Padrões gráficos
Hardik INDICATORS - All in One🧭 About the Indicator:
This custom indicator merges the power of four proven trading tools into one simplified and intelligent system.
It helps traders identify trend direction, momentum, and potential reversal points with high accuracy.
Automatically plots daily, weekly, and monthly pivot points.
Helps identify key support and resistance zones where price often reacts.
Useful for setting targets and stop-loss areas.
Detects trend strength and entry signals based on price action logic.
Highlights potential buy/sell opportunities using candle patterns and confirmation filters.
Reduces false signals by aligning with overall trend momentum.
Tracks short-term market momentum using the 5-period Exponential Moving Average (EMA).
When the price crosses above the 5 EMA → indicates bullish momentum.
When the price crosses below → indicates bearish momentum.
Works best for intraday and swing trading setups.
Combines signals from the other three systems to create strong confirmation entries.
When all conditions align → it marks high-probability trade zones.
Designed to minimize noise and improve trade accuracy.
AI Predictive Market Movement ProAI Predictive Market Movement Pro is a next-generation, data-driven trading strategy designed to analyze trend strength, momentum, and volatility in real time to forecast potential market direction. Using advanced normalization and weighted scoring, this strategy generates a Predictive Score that identifies optimal BUY and SELL opportunities with visual clarity.
It dynamically adapts to market conditions through adjustable parameters for trend, momentum, and volatility, combined with customizable Take-Profit (TP) and Stop-Loss (SL) levels. The AI-inspired algorithm detects market reversals and continuation points with high precision, helping traders stay on the right side of price movement.
Key Features:
📈 Intelligent Predictive Scoring (trend, momentum, volatility weighted blend)
⚡ Auto-generated Buy/Sell signals with visual markers
🎯 Customizable Take-Profit and Stop-Loss percentages
🧩 Adjustable sensitivity for more conservative or aggressive trading styles
🌈 Dynamic color visualization for market bias (green = bullish, red = bearish)
🔔 Integrated TradingView alerts for real-time notifications
Ideal For:
Scalpers, day traders, and swing traders who want a smart, adaptive, and visually intuitive AI-powered trading companion.
Stochastic & RSI Oscillator with Signals (Custom by TitikSona)📊 Overview
The Dual Stochastic RSI Oscillator is an advanced trading tool that combines two Stochastic oscillators with RSI filtering to generate high-probability trading signals. This professional-grade indicator is designed to help traders identify precise entry and exit points with multiple confirmation layers.
⚙️ Core Components
Dual Stochastic System
Fast Stochastic: K=12, D=3, Slowing=20 (short-term momentum)
Slow Stochastic: K=100, D=8, Slowing=8 (long-term trend)
Provides both immediate and sustained momentum perspectives
RSI Convergence Filter
26-period RSI with 30-70 threshold levels
Acts as a quality filter to eliminate false signals
Ensures trades are taken in optimal market conditions
🎯 Trading Signals
BUY Conditions:
✅ Both Stochastic oscillators in OVERSOLD zone (≤20)
✅ RSI trading between 30-70 (optimal range)
✅ Green Triangle appears in lower oscillator area
SELL Conditions:
✅ Both Stochastic oscillators in OVERBOUGHT zone (≥80)
✅ RSI trading between 30-70 (optimal range)
✅ Red Triangle appears in upper oscillator area
📊 Visual Features
Multi-color Display:
Blue & Orange: Fast Stochastic (K and D lines)
Green & Red: Slow Stochastic (K and D lines)
Purple: RSI momentum line
Dashed lines: Key levels (20, 50, 80, RSI 30/70)
Dynamic Background:
🔴 Red tint: Overbought territory
🟢 Green tint: Oversold territory
🔔 Advanced Features
Real-time Monitoring:
Live value table with all indicator readings
Current signal status and market condition
Automated alerts for all trading signals
Customization Options:
Adjustable parameters for all components
Customizable colors and styles
Flexible signal positioning
💪 Key Benefits
Multiple Confirmations - Dual Stochastic + RSI convergence
Clear Visualization - Distinct colors for easy interpretation
Precision Timing - Signals only in optimal RSI ranges
Instant Notifications - Never miss a trading opportunity
Multi-Timeframe - Works across all chart timeframes
🚀 How to Use
Look for GREEN triangles in lower zone for BUY entries
Watch for RED triangles in upper zone for SELL entries
Confirm RSI is between 30-70 levels
Check value table for detailed indicator readings
Enable alerts for instant signal notifications
🎯 Ideal For
Swing Traders - Capturing medium-term momentum moves
Position Traders - Identifying major trend reversals
Day Traders - Finding high-probability intraday setups
All Experience Levels - From beginners to professional traders
⚠️ Risk Management
Use in conjunction with other analysis techniques
Adjust parameters to match your trading style
Always use proper position sizing
Test thoroughly in demo environment first
Combine with price action and market structure analysis
🆓 Free & Open
This indicator is completely free to use and modify. We believe in providing quality tools to help the trading community make better decisions.
⭐ If you find this indicator helpful, please give it a like and leave a review! Your support helps us create more free trading tools.
🔔 Don't forget to click the 'Follow' button to stay updated on our latest indicators and updates!
Happy Trading! 📈✨
Koh Triple Pivot IndicatorKoh pivot points, apparently does not repaint.
Trading view asking me to put more information down or it won't allow me to publish so I am rambling.
Billionaire Gold ClubBillionaire Gold Club
Obey the rules, and you will always win.
Overview
Use Billionaire Gold Club when trading Gold (XAUUSD).
Follow the long-term bullish bias of gold and focus only on Buy opportunities.
Do not look for Sell signals — this tool is built to tell you when to enter and when to wait.
Instructions
Plot 7MA and 200MA on your chart.
When 7MA crosses above 200MA, treat it as a BUY signal. Enter long positions.
When 7MA crosses below 200MA, mark it as Stand by. Do not sell. Wait for the next BUY signal.
Usage Rules
Trade only on 15-minute or higher timeframes.
If you use it on timeframes below 15 minutes, treat it as day trading and close your trade within the same day. Do not hold overnight.
Aim for long-term holding. Keep your lot size small and protect your account.
Signal Guide
🟢 BUY Signal → Enter the trend.
🟠 Stand by Signal → Stop buying. Wait patiently.
Alerts
Set an alert on BUY Signal to know when a Golden Cross is confirmed.
Set an alert on Stand by Signal to know when a Death Cross is confirmed.
Always set alerts to Once per bar close.
Billionaire Gold Club はゴールド(XAUUSD)専用に設計されたトレード支援インジケーターです。
ゴールドの長期的な上昇バイアスを前提とし、Buy シグナルのみを重視します。
Sell シグナルは排除し、「仕込み」と「様子見」に特化しています。
ルールを守れば必ず勝てるというとてもシンプルなコンセプトで構築されています。
仕組み
7MA(短期移動平均線) と 200MA(長期移動平均線) を表示
ゴールデンクロス(7MAが200MAを上抜け)
→ BUY サイン(緑背景・BUYラベル)
デッドクロス(7MAが200MAを下抜け)
→ Stand by サイン(オレンジ背景・Stand byラベル)
使い方
推奨時間足:15分足以上(特に4時間足・日足・週足が最適)
短期足(15分未満)での使用:持ち越さずデイトレードでの使用をしましょう
長期保有を目的とした設計のため、ロットサイズには十分注意してください
このルールを守れば、かなり高い確率で勝つことができます
シグナル解釈
🟢 BUY サイン
→ 長期トレンド再開の仕込みポイント
🟠 Stand by サイン
→ 調整フェーズ。「次の買い場待ち」を意味します
アラート機能
BUY Signal:ゴールデンクロス確定時に通知
Stand by Signal:デッドクロス確定時に通知
アラートは「バー確定ごと(Once per bar close)」で設定してください
健闘を祈ります。頑張りましょう
AI Predictive Market + FVG + MSS v6AI Predictive Market + FVG + MSS v6
This powerful TradingView indicator combines advanced AI predictive scoring with market structure and price action analysis to provide clear trading insights. Designed for traders who want both signals and visualization, it helps identify potential market reversals, trend continuations, and key levels with precision.
Key Features:
- AI Predictive Score: Calculates a normalized predictive score based on trend, momentum, and volatility for real-time market bias.
- Buy/Sell Signals with Take-Profit Labels: Highlights actionable entries along with dynamic ATR-based target levels for clarity.
- Fair Value Gap (FVG) Detection: Shows bullish and bearish price gaps for potential reversal or continuation zones.
- Market Structure Shift (MSS): Marks higher highs, higher lows, lower highs, and lower lows for structural trend analysis.
- Multi-Timeframe EMA Filters: Confirms trends using higher and macro timeframe EMAs to reduce false signals.
- Optional MACD Confirmation: Adds additional momentum validation for buy/sell decisions.
- Background & Bar Coloring: Quickly identifies bullish, bearish, or neutral market conditions.
- Dynamic Thresholds: Visual threshold lines for predictive score to gauge signal strength.
- Performance HUD: Displays real-time bias, predictive score, and trend strength.
- Safe & Optimized for Pine v6: Fully compatible with TradingView’s latest Pine Script v6, with label-safe implementation and zero errors.
Who is this for:
Traders who want a comprehensive visual trading tool that combines AI scoring, market structure, and price action analysis for clearer decision-making. Ideal for intraday and swing trading.
Usage Tips:
- Use signals in conjunction with multi-timeframe trend analysis.
- Combine FVG and MSS insights for potential reversal or continuation trades.
- Adjust ATR multipliers and sensitivity to match your preferred risk/reward and market conditions.
Institutional Activity DetectorInstitutional Activity Detector - Complete Tutorial
Table of Contents
Installation
Understanding the Indicator
Signal Interpretation
Settings Configuration
Trading Strategies
Best Practices
Common Mistakes to Avoid
1. Installation {#installation}
Step-by-Step Setup:
Step 1: Access TradingView
Go to TradingView.com
Log in to your account (free account works fine)
Step 2: Open Pine Editor
Click on "Pine Editor" at the bottom of the chart
If you don't see it, go to the top menu and select "Pine Editor"
Step 3: Add the Script
Click "New" to create a new indicator
Delete any default code
Copy the entire Institutional Activity Detector code
Paste it into the editor
Step 4: Save and Apply
Click "Save" (give it a name like "Inst Detector")
Click "Add to Chart"
The indicator will now appear on your chart
2. Understanding the Indicator {#understanding}
What It Detects:
This indicator identifies institutional traders (banks, hedge funds, market makers) by analyzing:
Volume Analysis
Detects unusual volume spikes that indicate large players entering
Compares current volume to 20-period average
Institutional trades create volume 2-5x normal levels
Order Flow
Delta: Difference between buying and selling volume
Positive delta = More buying pressure
Negative delta = More selling pressure
Institutions leave "footprints" in order flow
Price Action Patterns
Bullish Rejection Wicks:
| <- Small upper wick
|
███ <- Small body
███
|
|
| <- Large lower wick (rejection)
Indicates institutions bought aggressively at lower prices
Bearish Rejection Wicks:
|
|
| <- Large upper wick (rejection)
|
███ <- Small body
███
| <- Small lower wick
Indicates institutions sold aggressively at higher prices
Liquidity Grabs
Institutions often:
Push price above resistance or below support
Trigger stop losses (grab liquidity)
Reverse direction and trade the other way
Dark Pool Activity
Large block trades executed off-exchange:
High volume with minimal price movement
Indicates institutional accumulation/distribution without moving price
3. Signal Interpretation {#signals}
Signal Types:
🟢 INSTITUTIONAL BUY Signal
Appears as green triangle below candle with strength number (2-5)
What it means:
Institutions are actively accumulating (buying)
Higher strength = More confirmation factors
Strength Levels:
2-3: Moderate confidence - Wait for confirmation
4: High confidence - Strong institutional interest
5: Maximum confidence - Multiple factors aligned
🔴 INSTITUTIONAL SELL Signal
Appears as red triangle above candle with strength number (2-5)
What it means:
Institutions are actively distributing (selling)
Higher strength = More confirmation factors
🟠 Dark Pool (DP) Marker
Small orange diamond
What it means:
Large block trade executed
Accumulation/distribution happening quietly
Often precedes significant moves
Liquidity Zones
Red boxes above price = Resistance/sell liquidity
Green boxes below price = Support/buy liquidity
Institutions target these zones to trigger stops
4. Settings Configuration {#settings}
Recommended Settings by Asset Type:
For Stocks (SPY, AAPL, TSLA):
Volume Spike Multiplier: 2.0
Volume Average Period: 20
Delta Threshold: 70%
Minimum Signal Strength: 3
Timeframe: 5m, 15m, 1H
For Forex (EUR/USD, GBP/USD):
Volume Spike Multiplier: 1.5
Volume Average Period: 30
Delta Threshold: 65%
Minimum Signal Strength: 3
Timeframe: 15m, 1H, 4H
For Crypto (BTC, ETH):
Volume Spike Multiplier: 2.5
Volume Average Period: 20
Delta Threshold: 70%
Minimum Signal Strength: 4
Timeframe: 15m, 1H, 4H
For Futures (ES, NQ):
Volume Spike Multiplier: 2.0
Volume Average Period: 20
Delta Threshold: 75%
Minimum Signal Strength: 3
Timeframe: 5m, 15m, 30m
Parameter Explanations:
Volume Spike Multiplier (1.0 - 10.0)
Lower = More sensitive (more signals, some false)
Higher = Less sensitive (fewer signals, more reliable)
Start with 2.0 and adjust based on your asset's volatility
Delta Threshold % (50 - 100)
Measures buying vs selling pressure
70% = Strong institutional bias required
Lower for ranging markets, higher for trending
Minimum Signal Strength (2 - 5)
Number of factors that must align for a signal
2 = Very sensitive (many signals)
5 = Very conservative (rare signals)
Recommended: 3-4 for balance
5. Trading Strategies {#strategies}
Strategy 1: Liquidity Grab Reversal
Setup:
Price approaches a liquidity zone (green/red box)
Price penetrates the zone briefly
Institutional BUY/SELL signal appears
Price reverses away from the zone
Entry:
Enter on the signal candle close
Or wait for next candle confirmation
Stop Loss:
Below the liquidity grab low (for buys)
Above the liquidity grab high (for sells)
Take Profit:
2:1 or 3:1 risk/reward ratio
Or next opposing liquidity zone
Example:
Price drops below support → Triggers stops →
Institutional BUY signal (4-5 strength) →
Enter LONG → Price rallies
Strategy 2: Trend Continuation
Setup:
Identify the trend (higher highs/higher lows for uptrend)
Wait for pullback to support in uptrend
Institutional BUY signal appears during pullback
Confirms institutions are adding to positions
Entry:
Enter on signal with strength ≥ 4
Or next candle after signal
Stop Loss:
Below the pullback low + small buffer
Take Profit:
Previous swing high
Or trailing stop using ATR
Strategy 3: Dark Pool Accumulation
Setup:
Dark Pool (DP) markers appear multiple times
Price consolidates in tight range
Institutional BUY signal with high strength appears
Breakout occurs
Entry:
Enter on breakout candle after signal
Or on retest of breakout level
Stop Loss:
Below consolidation range
Take Profit:
Measured move (height of consolidation projected)
Strategy 4: Divergence Play
Setup:
Price makes lower low
MFI/RSI makes higher low (bullish divergence)
Institutional BUY signal appears
Volume confirms with spike
Entry:
Enter on signal candle or next
Stop Loss:
Below the divergence low
Take Profit:
Previous swing high or resistance
6. Best Practices {#best-practices}
✅ DO's:
1. Use Multiple Timeframes
Check higher timeframe for trend direction
Trade signals that align with higher timeframe
Example: 15m signals in direction of 1H trend
2. Combine with Key Levels
Support/resistance
Supply/demand zones
Previous day high/low
Round numbers (psychological levels)
3. Wait for Confirmation
Don't rush into trades
Let the signal candle close
Watch next candle for follow-through
4. Check the Metrics Table
Look at Relative Volume (should be >2.0)
Check Delta % (should be strong positive/negative)
Verify Order Flow aligns with signal
5. Consider Market Context
News events can override signals
Low liquidity times (lunch, overnight) less reliable
Major economic releases need caution
6. Paper Trade First
Test the indicator for 2-4 weeks
Learn how it behaves on your chosen assets
Develop confidence before using real money
Best Times to Trade:
Stock Market Hours:
9:30-11:30 AM EST (high volume, strong moves)
2:00-4:00 PM EST (institutional positioning)
Avoid: 11:30 AM-2:00 PM (lunch, low volume)
Forex:
London Open: 3:00-6:00 AM EST
New York Open: 8:00-11:00 AM EST
London/NY Overlap: 8:00 AM-12:00 PM EST
Crypto:
24/7 market, but highest volume during US/European hours
Watch for weekend low liquidity
7. Common Mistakes to Avoid {#mistakes}
❌ DON'T:
1. Trade Every Signal
Not all signals are equal
Focus on strength 4-5 signals
Wait for optimal setups
2. Ignore Market Structure
Don't buy into strong downtrends (catch falling knife)
Don't sell into strong uptrends (fight the tape)
Respect major support/resistance
3. Use Too Small Timeframes
1m and 2m charts are too noisy
Minimum recommended: 5m for scalping
Better: 15m, 30m, 1H for reliability
4. Overtrade
Quality over quantity
2-5 good trades per day is excellent
Forcing trades leads to losses
5. Ignore Risk Management
Always use stop losses
Risk only 1-2% per trade
Don't revenge trade after losses
6. Trade During Low Volume
Signals less reliable with low volume
Check Relative Volume metric (should be >1.5)
Avoid pre-market/after-hours for stocks
7. Misread Liquidity Grabs
Not every wick is a liquidity grab
Need volume confirmation
Must have institutional signal
Advanced Tips:
Filtering False Signals:
Use Signal Strength Filter:
Minimum strength 3 = Balanced
Minimum strength 4 = Conservative (recommended)
Minimum strength 5 = Ultra conservative
Confluence Checklist:
Signal strength ≥ 4
Relative volume > 2.0
At key support/resistance
Aligns with higher timeframe trend
Delta % strongly positive/negative
Clean price action setup
If 4+ boxes checked = High probability trade
Setting Up Alerts:
Click the three dots on the indicator
Select "Create Alert"
Choose condition:
"Institutional Buy Signal"
"Institutional Sell Signal"
"Dark Pool Activity"
Set up notification (email, SMS, app)
Save alert
Alert Strategy:
Set minimum strength to 4 for fewer, better alerts
Use for assets you can't watch constantly
Don't rely solely on alerts - check chart context
Practice Exercise:
Week 1-2: Observation
Add indicator to your favorite assets
Watch how signals develop
Note which ones lead to profitable moves
Don't trade yet - just observe
Week 3-4: Paper Trading
Use TradingView's paper trading
Trade only strength 4-5 signals
Record results in a journal
Note: entry, exit, profit/loss, what worked/didn't
Week 5+: Small Live Positions
Start with smallest position size
Trade only your best setups
Gradually increase size as you gain confidence
Keep detailed journal
Quick Reference Card:
Signal Quality Ranking:
🔥 Best Setups (Take These):
Strength 5 + Liquidity grab + Key level
Strength 4-5 + Volume >3.0 + Trend alignment
Dark Pool markers + Strength 4+ signal
✅ Good Setups:
Strength 4 at support/resistance
Strength 3-4 with strong delta
Liquidity grab + Strength 3+
⚠️ Caution (Wait for More):
Strength 2-3 in middle of nowhere
Against higher timeframe trend
Low volume (Rel Vol <1.5)
❌ Avoid:
Strength 2 only
During major news
Low liquidity hours
Against strong trend
Troubleshooting:
"Too many signals"
→ Increase Minimum Signal Strength to 4
→ Increase Volume Spike Multiplier to 2.5-3.0
"Too few signals"
→ Decrease Minimum Signal Strength to 2-3
→ Decrease Volume Spike Multiplier to 1.5
"Signals not working"
→ Check if you're trading during low volume hours
→ Verify you're using recommended timeframes
→ Make sure signals align with market structure
"Can't see liquidity zones"
→ Enable "Show Liquidity Zones" in settings
→ Adjust Swing Detection Length (try 7-15)
Resources for Further Learning:
Concepts to Study:
Order Flow Trading
Market Profile / Volume Profile
Smart Money Concepts (SMC)
Liquidity Sweeps and Stop Hunts
Institutional Order Flow
Wyckoff Method
Volume Spread Analysis (VSA)
Recommended Practice:
Study past signals on chart
Replay market using TradingView's bar replay feature
Join trading communities to share setups
Keep a detailed trading journal
Final Thoughts:
This indicator is a tool, not a crystal ball. It identifies high-probability setups where institutions are active, but still requires:
Proper risk management
Market context understanding
Patience and discipline
Continuous learning
Success Formula:
Right Tool + Proper Training + Risk Management + Discipline = Consistent Profits
Start slow, master the basics, and gradually increase complexity as you gain experience.
Good luck and trade smart! 📊📈
OB + EMA100/200 + FVG [INTRADING]A powerful all-in-one tool for Smart Money Concepts (SMC) and price action traders, combining three core market structure elements into a clean, customizable visual framework:
Order Blocks (OB): Automatically detects bullish and bearish order blocks after fractal breaks (3-bar or 5-bar). Choose to display blocks based on candle body or wick, and optionally filter only those followed by a Fair Value Gap.
Fair Value Gaps (FVG): Highlights imbalance zones as semi-transparent rectangles with percentage-based filtering. Gaps are automatically removed once price returns to fill them.
EMA 100 & EMA 200: Built-in trend filters (yellow and blue) to help align trades with the broader market direction.
🔹 Fully customizable: adjust line style, color, thickness, and length
🔹 Optional fractal markers for clearer structure identification
🔹 Auto-cleanup: OB lines and FVG zones disappear after being filled
🔹 Watermark-free chart space with subtle author credit
Perfect for traders using ICT, SMC, or institutional order flow strategies who need precise, uncluttered visuals to spot high-probability reversal and continuation zones.
Author: @Denis_IT_Trade
🎯 🥇 RMBS Smart Detector [FREE] - Trend Filter# RMBS Smart Detector - Trend Filter
## 📊 What It Does
A technical analysis tool that identifies potential market reversals using ADX-based trend filtering. Designed to help traders understand market structure and momentum shifts through visual markers on the chart.
## 🎯 Key Features
• **Trend Detection**: Identifies potential directional changes in price action
• **ADX Filtering**: Eliminates low-conviction setups during ranging conditions (default threshold: 25)
• **Alternating Markers**: Displays clear visual transitions between uptrend and downtrend detection
• **No Repainting**: All markers are finalized on bar close - what you see is what you get
• **Multi-Asset**: Compatible with Forex pairs, Cryptocurrencies, Stocks, and Indices
## ⚙️ Technical Approach
The detector combines multiple analytical components:
1. **Momentum Analysis**: RSI-based calculations to identify potential exhaustion points
2. **Trend Strength**: ADX (Average Directional Index) to filter out weak market conditions
3. **State Logic**: Ensures alternating detection patterns for clarity
4. **Volume Awareness**: Incorporates volume data when available (crypto/stocks)
## 🔧 Customizable Settings
• ADX Threshold (default: 25)
• RSI Period (default: 14)
• Signal Display Options
• Color Schemes
• Alert Preferences
📚 Educational Purpose
This indicator serves as an analytical companion for:
Studying price action patterns
Understanding momentum dynamics
Practicing technical analysis skills
Backtesting trading concepts
Learning trend identification methods
Perfect for both beginners learning chart analysis and experienced traders seeking confirmation tools.
🖥️ How to Use
Add indicator to your chart
Adjust ADX threshold based on your market (higher = stricter filtering)
Observe markers appearing on confirmed bar closes
Use markers as one component of your broader analysis
Combine with your preferred risk management approach
📈 Best Timeframes
Forex: 15m, 1H, 4H
Crypto: 15m, 1H, 4H (best with volume data)
Stocks: 1H, 4H, Daily
Indices: 1H, 4H, Daily
Lower timeframes generate more frequent detections; higher timeframes provide stronger context.
⚠️ Important Notes
This is an analytical tool for educational purposes
Performs best on trending assets vs. choppy/ranging markets
ADX filter helps reduce false detections but no tool is perfect
Always practice proper risk management
Past performance does not guarantee future results
This indicator does not provide financial advice
🔄 Version Comparison
FREE Version (This Indicator):
✓ Core trend detection algorithm
✓ ADX filtering
✓ Basic customization
✓ All essential features
Premium Version (Upcoming):
✓ Everything in FREE, plus:
✓ Advanced risk level calculations
✓ Enhanced volume filtering for crypto
✓ Performance tracking dashboard
✓ Multi-timeframe synchronization
✓ Additional confirmation layers
💬 Support & Community
Questions? Suggestions?
Feel free to comment below or reach out via TradingView messages.
GRG/RGR Signal, MA, Ranges and PivotsThis indicator is a combination of several indicators.
It is a combination of two of my indicators which I solely use for trading
1. EMA 10-20-50-200, Pivots and Previous Day/Week/Month range
2. 3/4-Bar GRG / RGR Pattern (Conditional 4th Candle)
You can use them individually if you already have some of them or just use this one. Belive me when I say, this is all you need, along with market structure knowlege and even if you don’t have that, this indicator has been doing wonders for me. This is all I use. I do not use anything else.
**Note - Do checkout the indicators individually as I have added valuable information in the comment section.
It contains the following,
1. 10 EMA/SMA - configurable
2. 20 EMA/SMA - configurable
3. 50 EMA/SMA - configurable
4. 200 EMA/SMA - configurable
5. Previous Day's Range
6. Previous Week's Range
7. Previous Month's Range
8. Pivots
9. Buy Sell Signal
The Moving Averages
It is a very important combination and using it correctly with price action will strengthen your entries and exits.
The ema's or sma's added are the most powerful ones and they do definitely act as support and resistance.
The Daily/Weekly/Monthly Ranges
The Daily/Weekly/Monthly ranges are extremely important for any trader and should be used for targets and reversals.
Pivots
Pivots can provide support and resistance level. R5 and S5 can be used to check for over stretched conditions. You can customise them however you like. It is a full pivot indicator.
It is defaulted to show R5 and S5 only to reduce noise in the chart but it can be customised.
The 3/4 RGR or GRG Signal Generator
Combined with a 3/4 RGR or GRG setup can be all a trader needs.
You don't need complex strategies and SMC concepts to trade. Simple EMAs, ranges and RGR/GRG setup is the most winning combination.
This indicator can be used to identify the Green-Red-Green or Red-Green-Red pattern.
It is a price action indicator where a price action which identifies the defeat of buyers and sellers.
If the buyers comprehensively defeat the sellers then the price moves up and if the sellers defeat the buyers then the price moves down.
In my trading experience this is what defines the price movement.
It is a 3 or 4 candle pattern, beyond that i.e, 5 or more candles could mean a very sideways market and unnecessary signal generation.
How does it work?
Upside/Green signal
1. Say candle 1 is Green, which means buyers stepped in, then candle 2 is Red or a Doji, that means sellers brought the price down. Then if candle 3 is forming to be Green and breaks the closing of the 1st candle and opening of the 2nd candle, then a green arrow will appear and that is the place where you want to take your trade.
2. Here the buyers defeated the sellers.
3. Sometimes candle 3 falls short but candle 4 breaks candle 1's closing and candle 2's opening price. We can enter on candle 4.
4. Important - We need to enter the trade as soon as the price moves above the candle 1 and 2's body and should not wait for the 3rd or 4th candle to close. Ignore wicks.
5. But for a more optimised entry I have added an option to use candle’s highs and lows instead of open and close. This reduces lot of noise and provides us with more precise entry. This setting is turned on by default.
6. I have restricted it to 4 candles and that is all that is needed. More than that is a longer sideways market.
7. I call it the +-+ or GRG pattern or Green-Red-Green or Buyer-Seller-Buyer or Seller defeated or just Buyer pattern.
8. Stop loss can be candle 2's mid for safe traders (that includes me) or candle 2's body low for risky traders.
9. Back testing suggests that body low will be useless and result in more points in loss because for the bigger move this point will not be touched, so why not get out faster.
Downside/Red signal
1. Say candle 1 is Red, which means sellers stepped in, then candle 2 is Green or a Doji, that means buyers took the price up. Then if candle 3 is forming to be Red and breaks the closing of the 1st candle and opening of the 2nd candle then a Red arrow will appear and that is the place where you want to take your trade.
2. Sometimes candle 3 falls short but candle 4 breaks candle 1's closing and candle 2's opening price. We can enter on candle 4.
3. We need to enter the trade as soon as the price moves below the candle 1 and 2's body and should not wait for the 3rd or 4th candle to close.
4. But for a more optimised entry I have added an option to use candle’s highs and lows instead of open and close. This reduces lot of noise and provides us with more precise entry. This setting is turned on by default.
5. I have restricted it to 4 candles and that is all that is needed. More than that is a longer sideways market.
6. I call it the -+- or RGR pattern or Red-Green-Red or Seller-Buyer-Seller or Buyer defeated or just Seller pattern.
7. Stop loss can be candle 2's mid for safe traders ( that includes me) or candle 2's body high for risky traders.
8. Back testing suggests that body high will be useless and result in more points in loss because for the bigger move this point will not be touched, so why not get out faster.
Important Settings
1. Include 4th Candle Confirmation - You can enable or disable the 4th candle signal to avoid the noise, but at times I have noticed that the 4th candle gives a very strong signal or I can say that the strong signal falls on the 4th candle. This is mostly a coincidence.
2. Bars to check (default 10) - You can also configure how many previous bars should the signal be generated for. 10 to 30 is good enough. To backtest increase it to 2000 or 5000 for example.
3. Use Candle High/Low for confirmation instead of Candle Open/Close - More optimized entry and noise reduction. This option is now defaulted to false.
4. Show Green-Red-Green (bull) signals - Show only bull entries. Useful when I have a predefined view i.e, I know market is going to go up today.
5. Show Red-Green-Red (bear) signals - Show only bear entries. Useful when I have a predefined view i.e, I know market is going to go down today.
6. 3rd candle should be a Strong candle before considering 4th candle - This will enforce additional logic in 4 candle setup that the 3rd candle is the candle in our direction of breakout. This means something like GRGG is mandatory, which is still the default behaviour. If disabled, the 3rd candle can be any candle and 4th candle will act as our breakout candle. This behaviour has led to breakouts and breakdowns as times, hence I added this as a separate feature. Vice-versa for a RGGR.
For a 4 candle setup till now we were expecting GRGG or RGRR but we can let the system ignore the 3rd candle completely if needed.
This will result in additional signals.
7. Three intraday ranges added for index and stock traders - 1 min, 5 min and 15 min ranges will be displayed. These are disabled by default except 15 min. These are very important ranges and in sideways days the price will usually move within the 15 min. A breakout of this range and a positive signal can be a very powerful setup.
Safe traders can avoid taking a trade in this range as it can lead to fakeouts.
The line style, width, color and opacity are configurable.
Pointers/Golden Rules
1. If after taking the trade, the next candle moves in your direction and closes strong bullish or bearish, then move SL to break even and after that you can trail it.
2. If a upside trade hits SL and immediately a down side trade signal is generated on the next candle then take it. Vice versa is true.
3. Trades need to be taken on previous 2 candle's body high or low combined and not the wicks.
4. The most losses a trader takes is on a sideways day and because in our strategy the stop loss is so small that even on a sideways day we'll get out with a little profit or worst break even.
5. Hold trades for longer targets and don't panic.
6. If last 3-4 days have been sideways then there is a good probability that today will be trending so we can hold our trade for longer targets. Inverse is true when the market has been trending for 2-3 days then volatility followed by sideways is coming (DOW theory). Target to hold the trade for whole day and not exit till the day closes.
7. In general avoid trading in the middle of the day for index and stocks. Divide the day into 3 parts and avoid the middle.
8. Use Support/Resistance, 10, 20, 50, 200 EMA/SMA, Gaps, Whole/Round numbers(very imp) for identifying targets.
9. Trail your SL.
10. For indexes I would use 5 min and 15 min timeframe and at times 10 mins.
11. For commodities and crypto we can use higher timeframe as well. Look for signals during volatile time durations and avoid trading the whole day. Signal usually gives good targets on those times.
12. If a GRG or RGR pattern appears on a daily timeframe then this is our time to go big.
13. Minimum Risk to Reward should be 1:2 and for longer targets can be 1:4 to 1:10.
14. Trade with small lot size. Money management will happen automatically.
15. With small lot size and correct Risk-Reward we can be very profitable. Don't trade with big lot size.
16. Stay in the market for longer and collect points not money.
17. Very imp - Watch market and learn to generate a market view.
18. Very imp - Only 3 type of candles are needed in trading -
Strong Bullish (Big Green candle), Strong Bearish (Big Red candle),
Hammer (it is Strong Bullish), Inverse Hammer (it is Strong Bearish)
and Doji (indecision or confusion).
If on daily timeframe I see Strong Bullish candle previous day then I am biased to the upside the next day, if I see Strong Bearish candle the previous day then I am biased to the downside the next day, if I see Doji on the previous day then I am cautious the next day, if there are back to back Dojis forming in daily or weekly then I am preparing for big move so time to go big once I get the signal.
19. Most Important Candlestick pattern - Bullish and Bearish Engulfing
20. The only Chart patterns I need -
a) Falling Wedge Bullish Pattern Uptrend or Bull Flag - Buying - Forming over a couple days for intraday and forming over a couple of weeks for swing
b) Falling Wedge Bullish Pattern Downtrend or Falling Channel - Buying
c) Rising Wedge Bearish Pattern Uptrend or Rising Channel - Selling
d) Rising Wedge Bearish Pattern Downtrend or Bear flag - Selling
e) M and W pattern - Reversal Patterns - They form within the above 4 patterns, usually resulting in the break of trend line
21. How Gaps work -
a) Small Gap up in Uptrend - Market can fill the gap and reverse. The perception is that people are buying. If previous day candle was Strong Bullish then market view is up.
b) Big Gap up in Uptrend - Not news driven - Profit booking will come but may not fill the entire gap
c) Big Gap up in Uptrend - News driven, war related, tax, interest rate - Market can keep going up without stopping.
c) Flat opening in Uptrend - Big chance of market going up. If previous day candle was Strong Bullish then view is upwards, if it was Doji then still upwards.
d) Gap down in Uptrend - Market is surprised. After going down initially it can go up
e) Small Gap down in Downtrend - Market can fill the gap and keep moving down. If previous day candle was Strong Bearish then view is still down.
f) Flat opening in Downtrend - View is down, short today.
g) Big Gap down in Downtrend - Profit booking and foolish buying will come but market view is still down.
h) Gap down with News - Volatility, sideways then down.
22. Go big on bearish days for option traders. Puts are better bought and Calls are better sold.
23. Cluster of green signals can lead to bigger move on the upside and vice versa for red signals.
24. Most of this is what I learned from successful traders (from the top 2%) only the indicator is mine.
Session Boxes & Key Levels (Daily Prev HL)Session Boxes & Key Levels
Draws intraday session ranges and key higher-timeframe levels to aid structure and bias.
Session boxes: Shades the Asia, Europe, and US sessions with live-updating highs/lows. Timezone is user-selectable.
Previous Day levels (PDH/PDL): Plots yesterday’s Daily high and low, auto-extends across the current day.
Previous Week levels (PWH/PWL): Plots last week’s high and low, auto-extends across the current week.
Works on any timeframe and updates in real time; labels are added for quick identification.
Use it to spot session ranges, liquidity sweeps, and reactions at prior day/week extremes.
GOLD SL CANDLEPIPS🟡 GOLD SL Distance + Position Size (500 $ Fixed Risk)
This indicator displays two essential pieces of information directly on the chart:
1. The Stop-Loss distance — measured from the candle close to the end of the wick.
• For long trades, the distance is calculated from the close to the low.
• For short trades, it’s from the high to the close.
• The result is shown as a clean numeric value, placed just above or below each candle, without any lines or labels cluttering the chart.
2. The required position size (in lots) to risk a fixed amount of 500 USD on that distance.
• This script includes a GOLD preset, based on the standard value of 10 USD per point per lot.
• The calculation follows this rule:
Lots = round(500 / (Distance_in_points × 10))
→ Equivalent to Lots = round(50 / Stop_in_points).
• Example:
• If the wick is 5 points, the script shows “5 | 10” → 5 pt stop = 10 lots for a 500 USD risk.
• If the wick is 8 points, it shows “8 | 6”, matching the official GOLD risk table.
⸻
⚙️ Main Features
• Works with Points, Ticks, or Pips (unit selectable).
• Shows both Stop-Loss distance and corresponding lot size near the candle.
• Fully customizable colors, font size, and text transparency.
• Offsets allow you to move the numbers vertically or horizontally on the chart.
• Option to display values for the current candle only, or for the last N candles.
• The GOLD preset can be disabled to use a custom value per unit (e.g., $/pip/lot, $/tick/lot).
⸻
🧠 Ideal Use Case
This tool is designed for Gold (XAU/USD) traders who want to:
• Instantly see their Stop-Loss distance in real time,
• And know exactly how many lots to use to maintain a consistent 500 USD risk per trade.
It’s a clean, minimalist money-management indicator that helps you stay precise, consistent, and disciplined in your risk control — without leaving the chart.
Camarilla Pivots + 20 EMA StrategyThis is an intraday volatility and trend-following system for commodities like Natural Gas, combining dynamic pivot levels (Camarilla) with a trend filter (20-period EMA) to improve risk-reward and reduce false breakouts.
Core Components
1. Camarilla Pivots:
These are special support and resistance levels (H3, H4, L3, L4) calculated each day based on the previous day's high, low, and close.
The pivots adapt to daily volatility, giving more relevant breakout and bounce zones than static lines.
H4: Aggressive resistance (used for breakout LONG entry)
H3: Moderate resistance/support (used for bounce or stoploss)
L4: Aggressive support (used for breakout SHORT entry)
L3: Moderate support/resistance (used for bounce or stoploss)
2. 20 EMA (Exponential Moving Average):
Plotted on the 30-minute chart, this acts as a trend filter.
If the price is above 20 EMA: Only look for long trades (bullish bias).
If below 20 EMA: Only look for short trades (bearish bias).
How the Strategy Works
Setup (30-Min Chart):
Camarilla pivots for the day are drawn on the chart.
20 EMA is also plotted.
Trade Filter:
Bullish: Trade ONLY if price is above 20 EMA.
Bearish: Trade ONLY if price is below 20 EMA.
Entry:
LONG: Enter when price breaks and closes above the H4 pivot AND is above 20 EMA.
SHORT: Enter when price breaks and closes below the L4 pivot AND is below 20 EMA.
Stop Loss:
LONG: Place stoploss at H3 (the next lower Camarilla resistance).
SHORT: Place stoploss at L3 (the next higher Camarilla support).
Target:
Always set a profit target at 2x the distance (risk) between entry and stoploss (strict R:R 2).
For example, if your entry is at H4 and stoploss at H3, your target is entry + 2*(entry - stoploss).
Alerts & Visuals:
The strategy plots entry arrows, stoploss and target lines for immediate visual reference.
Alerts trigger on breakout signals so you never miss a trade.
Why This Works Well for Natural Gas
Adapts to volatility: The pivots change daily, handling wide-ranging and choppy price moves better than fixed breakouts.
Trend filter: EMA prevents counter-trend whipsaws, only trades with market momentum.
Risk control: Every trade must meet strict risk-reward criteria, so losses are contained and winners can outweigh losers.
Daily SMAs & Intraday VWAPDaily SMAs & Intraday VWAP (v1.1)
What it does
This overlay blends higher-timeframe signal lines with intraday execution clarity. It plots three Daily Simple Moving Averages (fast/mid/slow) on any chart timeframe, plus an intraday VWAP that resets each session. The result is a lightweight “map” of multi-day trend structure (the SMAs) and real-time mean/flow (VWAP) in one glance.
How to use it
Trend context: Daily SMAs give you bias and structure on any intraday chart. Price above rising SMAs = supportive trend; below falling SMAs = headwinds.
Execution & risk: VWAP acts as the intraday “fair value.” Pullbacks to VWAP in an uptrend can be quality entries; rejections from VWAP in a downtrend often mark fades.
Confluence: Highest signal quality comes when VWAP behavior aligns with the Daily SMAs (e.g., price above VWAP and above the daily 20/200 = trend-with-support).
Inputs
Daily SMAs: Fast (default 5), Mid (20), Slow (200), each with custom color/width.
VWAP (intraday only): Toggle on/off, color and thickness controls.
Notes
Daily SMAs are pulled via request.security() on the Daily timeframe and displayed on any chart.
VWAP only plots on intraday timeframes (resets at the session open).
Keep your chart clean: adjust line widths/colors to match your theme.
High Volume & Near All-Time HighThe **High Volume & Near All-Time High Screener** is a simple yet powerful Pine Script tool designed to help traders identify stocks showing strong price momentum and trading activity. This screener automatically scans multiple tickers that you define in the settings and highlights those meeting two key conditions — daily trading volume greater than **500,000 shares** and the closing price being **within a set percentage (default 2%) of its all-time high**. The results are displayed in an easy-to-read table directly on your chart, making it ideal for traders who want to quickly spot potential breakout stocks without switching between multiple charts.
**How to Use:**
To use this script, open your **TradingView Pine Editor**, paste the code, and click **“Add to Chart.”** Make sure your chart is set to the **Daily timeframe (1D)**, as the script pulls daily data automatically. You can customize the list of symbols, the minimum volume threshold, and the proximity percentage in the settings panel to match your trading style. Once added, the screener will display a table on the right side of your chart showing each symbol, its latest closing price, and whether it currently meets the breakout conditions. A ✅ mark indicates that the stock meets both criteria. This tool works best for swing traders and momentum investors who want to focus on high-volume stocks nearing new highs for potential entries.
Round Numbers (Plotter) v2The *Round Numbers (Plotter) v2* indicator highlights key psychological price levels on the chart — the so-called *round numbers* (e.g. 1.1000 on EURUSD or23,000 on NASDAQ).
These levels often act as **natural support or resistance zones**, where price tends to react, consolidate, or reverse.
Version 2 introduces the concept of **gravitational zones**, which define a price range surrounding each round level — visualizing how price “gravitates” around these equilibrium areas.
---
### 🧩 **Main Features**
* 🔹 **Dynamic round levels:** plotted automatically based on user-defined *step size* (in points or pips).
* 🔹 **Custom step mode:** switch between “Points” (for indices, commodities, crypto) and “Pips” (for Forex pairs).
* 🔹 **Configurable appearance:** color, width, and line style (solid, dashed, dotted).
* 🔹 **Gravitation zones:** optional secondary lines plotted above and below each round level.
* Distance adjustable as a **percentage of the step size** (default = 25%).
* Help visualize “magnet areas” where price tends to slow down or oscillate before crossing a level.
* 🔹 **Optional fill:** softly shaded area between the upper and lower gravitation lines for clearer visualization of each zone.
* You can enable or disable this with the *“Show gravitation fill”* toggle.
* Fill color and transparency fully customizable.
---
### 📈 **Use Cases**
* Identify **psychological support/resistance** levels on any instrument or timeframe.
* Observe **market equilibrium zones** where price tends to cluster or hesitate before continuing.
* Combine with oscillators or volume indicators to confirm reaction strength near round numbers.
* Use the **gravitational zones** to refine stop-loss or take-profit placement near high-impact levels.
---
### 💡 **Notes**
* The indicator does **not repaint** and updates levels dynamically based on the latest price.
* Works on all asset classes: **Forex, Indices, Crypto, Commodities, Stocks.**
* Designed to be **lightweight** — no accumulation of historical objects.
* Combine this with *Round Number Analyzer* for complete analysis of round numbers level
MultiStochasticThis script shows when 4 Stochastic %D values (9, 14, 30, and 60) are below 20 or above 80.
BTC/ETH RatioThis indicator is designed to provide you with information about the altcoin season. It tells you the balance between Bitcoin and Ethereum.
ATR SL
### 📘 **스크립트 설명 — ATR 기반 스탑로스 표시기 (ATR SL)**
이 스크립트는 **캔들 저가(low)와 ATR(평균 진폭 지표)** 를 활용해
트레이딩 시 **동적인 스탑로스 라인과 라벨**을 자동으로 표시해주는 인디케이터입니다.
---
#### 🔧 **기본 로직**
* **각 봉별 ATR(10)** 을 이용하여 변동성 기반 스탑로스 계산
→ `ATR SL = 저가 - ATR(10) × Multiplier`
* **오늘 봉(실시간)** 은 변동성이 작게 잡히는 것을 방지하기 위해
`오늘 ATR`과 `전일 ATR` 중 **더 큰 값**을 사용
* 과거 봉들은 해당 시점의 **그날 ATR**로 계산되어 고정됨
---
#### 🎯 **표시 요소**
| 항목 | 설명 |
| --------------------- | ----------------------------------- |
| **핑크 라인** | 각 봉별 스탑로스 라인 (`저가 - ATR × m`) |
| **오늘 스탑 라벨** | 현재 캔들 위에 표시되는 오늘 기준 스탑 가격 |
| **최근 5일 중 맥시멈 스탑 라벨** | 최근 5일간 가장 높은 스탑로스 값이 발생한 봉 위에 1개 표시 |
---
#### ⚙️ **주요 설정값**
| 이름 | 설명 | 기본값 |
| ------------ | -------------------------------- | ---- |
| `Length` | ATR 계산 기간 | 10 |
| `Smoothing` | ATR 계산 방식 (RMA/SMA/EMA/WMA 중 선택) | RMA |
| `Multiplier` | ATR 배수 (리스크 여유 조절) | 1.01 |
| `Long Base` | 기준가 (보통 저가 low 사용) | low |
| `Lookback` | 최근 N봉 중 최고 스탑 탐색 구간 | 5 |
---
#### 🎨 **색상**
* 라인: 연핑크 (`rgba(255,105,180,0.3)`)
* 라벨: 진한 핑크 (`rgba(255,105,180,0.1)`)
* 텍스트: 흰색
---
#### 📈 **활용 예시**
* **스탑로스 설정:**
ATR 기반의 변동성 대응형 스탑라인을 즉시 시각화
* **리스크 관리:**
변동성이 줄어들 때도 지나치게 좁은 스탑을 방지 (오늘 봉은 `max(오늘ATR, 전일ATR)` 적용)
* **트레일링 스탑 용도:**
상승 추세에서 최근 5일 중 최고 스탑 라벨 참고 가능
---
#### 🧠 **주의사항**
* 라벨은 항상 **2개만 표시됨**
→ 오늘 스탑 1개 + 최근 5일 맥시멈 스탑 1개
* 하단 보조창이 아니라 **메인 차트 위(`overlay=true`)** 에 표시
* 멀티라인 문법 오류 방지를 위해 모든 `label.new()`는 **한 줄로 작성됨**
---
#### 💬 **요약**
> ATR SL = 변동성을 반영한 실전용 스탑로스 표시기
> → 실시간 ATR 보정(`max(오늘, 어제)`)으로 장 초반 왜곡 방지
> → 최근 5일 최고 스탑과 오늘 스탑을 함께 시각화해 추세 파악 용이
---
필요하면 제목 아래에 이런 문구를 추가해도 좋아👇
> “By turtlekim 🐢 — 변동성 기반 리스크 매니지먼트용 Pine Script”
──────────────────────────────────────────────────────────────
// 📘 ATR SL — 변동성 기반 스탑로스 표시기 (by turtlekim)
//
// This script visualizes a **volatility-based stop loss** line
// using each candle's **Low** and **ATR(10)** value.
// Designed for traders who want adaptive, risk-adjusted stop levels.
//
//──────────────────────────────────────────────────────────────
// 🔧 기본 로직 / Core Logic
// - ATR SL = Low - ATR(10) × Multiplier
// - For historical candles → uses that day's ATR(10)
// - For the current (realtime) candle → uses max(Today’s ATR, Previous ATR)
// to prevent unrealistically small stops when volatility is low early in the session.
//
//──────────────────────────────────────────────────────────────
// 🎯 표시 요소 / Display Elements
// • Pink line → ATR-based stop line per candle
// • Pink label → Today’s stop (current candle)
// • Pink label → Highest stop over the past 5 bars (1 label only)
//
//──────────────────────────────────────────────────────────────
// ⚙️ 주요 설정값 / Key Parameters
// Length : ATR period (default = 10)
// Smoothing : Type of ATR averaging (RMA/SMA/EMA/WMA)
// Multiplier : Adjusts distance from Low (default = 1.01)
// Long Base : Reference price (usually Low)
// Lookback : Number of bars for max stop check (default = 5)
//
//──────────────────────────────────────────────────────────────
// 🎨 색상 / Color Scheme
// • Line : Light pink (rgba(255,105,180,0.3))
// • Labels : Solid pink (rgba(255,105,180,0.1))
// • Text : White
//
//──────────────────────────────────────────────────────────────
// 📈 활용 예시 / How to Use
// - Set your stop-loss visually at the pink line (ATR-based distance).
// - For position sizing, use this stop level to calculate volatility risk.
// - Track both today’s stop and the 5-bar max stop to monitor trailing support.
//
//──────────────────────────────────────────────────────────────
// 🧠 주의사항 / Notes
// • Only two labels are shown: Today’s stop + 5-bar max stop.
// • Works only on main chart (overlay=true).
// • All label.new() statements are written in a single line
// to avoid syntax errors in Pine Script.
//
//──────────────────────────────────────────────────────────────
// 💬 요약 / Summary
// ATR SL = Dynamic, volatility-adjusted stop loss visualizer
// → Prevents premature stopouts in early low-volatility periods
// → Highlights both current and recent 5-bar maximum stops
//
//──────────────────────────────────────────────────────────────
6 SMA Lines (Compact)Description:
This indicator displays up to six Simple Moving Averages (SMA) on the same chart to save indicator slots.
Each SMA period can be customized independently.
Ideal for traders who want to monitor multiple timeframes in a clean, compact way.
Features:
• Up to 6 SMA lines
• Adjustable periods
• Custom colors for each line
• Lightweight and efficient