MACD trend heatmap (by ChartArt)This is an overlay indicator which uses the classic period settings and signals from the MACD (Moving Average Convergence/Divergence) indicator to overlay a heatmap using all the information the MACD generates with its three periods (12,26,9).
The first two moving averages which the MACD uses (12 and 26) can be plotted on the chart like usual EMAs.
In addition to the background color function (the heatmap) and the EMAs, there is an optional bar color alert when the uptrend or the downtrend as measured by the MACD appears to be very strong.
Cari skrip untuk "北京地铁3号线和12号线线路图"
Stoch_VX2Nothing New about a Stochastic but maybe in how you use them ( Other than Over bought / Sold cross over & divergence signals )
Running 3 bands
Standard stoch & tops & bottoms swing band
Optimised variables 12, 5 , 3 or fib 13, 5, 3 / - 12 / 3 / 3 a little bit tighter to combine both smoothness & accuracy. These are my own personal setting inc. Strategy.
MACD Color Trawler (by ChartArt)This version of the MACD indicator is 'trawling' (checking) if the MACD histogram and the zero line crossing with the MACD line are both positive or negative. The idea behind this is to show areas with higher or lower risk.
Features:
1. Enable the bar color
2. Enable the background color
3. Change zero line value
FYI:
"The MACD-Histogram is an indicator of an indicator. In fact, MACD is also an indicator of an indicator. This means that the MACD-Histogram is the fourth derivative of price."
First derivative: 12-day EMA and 26-day EMA
Second derivative: MACD (12-day EMA less the 26-day EMA)
Third derivative: MACD signal line (9-day EMA of MACD)
Fourth derivative: MACD-Histogram (MACD less MACD signal line)
Source: stockcharts.com
Quantum Market Analyzer X7Quantum Market Analyzer X7 - Complete Study Guide
Table of Contents
1. Overview
2. Indicator Components
3. Signal Interpretation
4. Live Market Analysis Guide
5. Best Practices
6. Limitations and Considerations
7. Risk Disclaimer
________________________________________
Overview
The Quantum Market Analyzer X7 is a comprehensive multi-timeframe technical analysis indicator that combines traditional and modern analytical methods. It aggregates signals from multiple technical indicators across seven key analysis categories to provide traders with a consolidated view of market sentiment and potential trading opportunities.
Key Features:
• Multi-Indicator Analysis: Combines 20+ technical indicators
• Real-Time Dashboard: Professional interface with customizable display
• Signal Aggregation: Weighted scoring system for overall market sentiment
• Advanced Analytics: Includes Order Block detection, Supertrend, and Volume analysis
• Visual Progress Indicators: Easy-to-read progress bars for signal strength
________________________________________
Indicator Components
1. Oscillators Section
Purpose: Identifies overbought/oversold conditions and momentum changes
Included Indicators:
• RSI (14): Relative Strength Index - momentum oscillator
• Stochastic (14): Compares closing price to price range
• CCI (20): Commodity Channel Index - cycle identification
• Williams %R (14): Momentum indicator similar to Stochastic
• MACD (12,26,9): Moving Average Convergence Divergence
• Momentum (10): Rate of price change
• ROC (9): Rate of Change
• Bollinger Bands (20,2): Volatility-based indicator
Signal Interpretation:
• Strong Buy (6+ points): Multiple oscillators indicate oversold conditions
• Buy (2-5 points): Moderate bullish momentum
• Neutral (-1 to 1 points): Balanced conditions
• Sell (-2 to -5 points): Moderate bearish momentum
• Strong Sell (-6+ points): Multiple oscillators indicate overbought conditions
2. Moving Averages Section
Purpose: Determines trend direction and strength
Included Indicators:
• SMA: 10, 20, 50, 100, 200 periods
• EMA: 10, 20, 50 periods
Signal Logic:
• Price >2% above MA = Strong Buy (+2)
• Price above MA = Buy (+1)
• Price below MA = Sell (-1)
• Price >2% below MA = Strong Sell (-2)
Signal Interpretation:
• Strong Buy (6+ points): Price well above multiple MAs, strong uptrend
• Buy (2-5 points): Price above most MAs, bullish trend
• Neutral (-1 to 1 points): Mixed MA signals, consolidation
• Sell (-2 to -5 points): Price below most MAs, bearish trend
• Strong Sell (-6+ points): Price well below multiple MAs, strong downtrend
3. Order Block Analysis
Purpose: Identifies institutional support/resistance levels and breakouts
How It Works:
• Detects historical levels where large orders were placed
• Monitors price behavior around these levels
• Identifies breakouts from established order blocks
Signal Types:
• BULLISH BRK (+2): Breakout above resistance order block
• BEARISH BRK (-2): Breakdown below support order block
• ABOVE SUP (+1): Price holding above support
• BELOW RES (-1): Price rejected at resistance
• NEUTRAL (0): No significant order block interaction
4. Supertrend Analysis
Purpose: Trend following indicator based on Average True Range
Parameters:
• ATR Period: 10 (default)
• ATR Multiplier: 6.0 (default)
Signal Types:
• BULLISH (+2): Price above Supertrend line
• BEARISH (-2): Price below Supertrend line
• NEUTRAL (0): Transition period
5. Trendline/Channel Analysis
Purpose: Identifies trend channels and breakout patterns
Components:
• Dynamic trendline calculation using pivot points
• Channel width based on historical volatility
• Breakout detection algorithm
Signal Types:
• UPPER BRK (+2): Breakout above upper channel
• LOWER BRK (-2): Breakdown below lower channel
• ABOVE MID (+1): Price above channel midline
• BELOW MID (-1): Price below channel midline
6. Volume Analysis
Purpose: Confirms price movements with volume data
Components:
• Volume spikes detection
• On Balance Volume (OBV)
• Volume Price Trend (VPT)
• Money Flow Index (MFI)
• Accumulation/Distribution Line
Signal Calculation: Multiple volume indicators are combined to determine institutional activity and confirm price movements.
________________________________________
Signal Interpretation
Overall Summary Signals
The indicator aggregates all component signals into an overall market sentiment:
Signal Score Range Interpretation Action
STRONG BUY 10+ Overwhelming bullish consensus Consider long positions
BUY 4-9 Moderate to strong bullish bias Look for long opportunities
NEUTRAL -3 to 3 Mixed signals, consolidation Wait for clearer direction
SELL -4 to -9 Moderate to strong bearish bias Look for short opportunities
STRONG SELL -10+ Overwhelming bearish consensus Consider short positions
Progress Bar Interpretation
• Filled bars indicate signal strength
• Green bars: Bullish signals
• Red bars: Bearish signals
• More filled bars = stronger conviction
________________________________________
Live Market Analysis Guide
Step 1: Initial Assessment
1. Check Overall Summary: Start with the main signal
2. Verify with Component Analysis: Ensure signals align
3. Look for Divergences: Identify conflicting signals
Step 2: Timeframe Analysis
1. Set Appropriate Timeframe: Use 1H for intraday, 4H/1D for swing trading
2. Multi-Timeframe Confirmation: Check higher timeframes for trend context
3. Entry Timing: Use lower timeframes for precise entry points
Step 3: Signal Confirmation Process
For Buy Signals:
1. Oscillators: Look for oversold conditions (RSI <30, Stoch <20)
2. Moving Averages: Price should be above key MAs
3. Order Blocks: Confirm bounce from support levels
4. Volume: Check for accumulation patterns
5. Supertrend: Ensure bullish trend alignment
For Sell Signals:
1. Oscillators: Look for overbought conditions (RSI >70, Stoch >80)
2. Moving Averages: Price should be below key MAs
3. Order Blocks: Confirm rejection at resistance levels
4. Volume: Check for distribution patterns
5. Supertrend: Ensure bearish trend alignment
Step 4: Risk Management Integration
1. Signal Strength Assessment: Stronger signals = larger position size
2. Stop Loss Placement: Use Order Block levels for stops
3. Take Profit Targets: Based on channel analysis and resistance levels
4. Position Sizing: Adjust based on signal confidence
________________________________________
Best Practices
Entry Strategies
1. High Conviction Entries: Wait for STRONG BUY/SELL signals
2. Confluence Trading: Look for multiple components aligning
3. Breakout Trading: Use Order Block and Trendline breakouts
4. Trend Following: Align with Supertrend direction
Risk Management
1. Never Risk More Than 2% Per Trade: Regardless of signal strength
2. Use Stop Losses: Place at invalidation levels
3. Scale Positions: Stronger signals warrant larger (but still controlled) positions
4. Diversification: Don't rely solely on one indicator
Market Conditions
1. Trending Markets: Focus on Supertrend and MA signals
2. Range-Bound Markets: Emphasize Oscillator and Order Block signals
3. High Volatility: Reduce position sizes, widen stops
4. Low Volume: Be cautious of breakout signals
Common Mistakes to Avoid
1. Signal Chasing: Don't enter after signals have already moved significantly
2. Ignoring Context: Consider overall market conditions
3. Overtrading: Wait for high-quality setups
4. Poor Risk Management: Always use appropriate position sizing
________________________________________
Limitations and Considerations
Technical Limitations
1. Lagging Nature: All technical indicators are based on historical data
2. False Signals: No indicator is 100% accurate
3. Market Regime Changes: Indicators may perform differently in various market conditions
4. Whipsaws: Possible in choppy, sideways markets
Optimal Use Cases
1. Trending Markets: Performs best in clear trending environments
2. Medium to High Volatility: Requires sufficient price movement for signals
3. Liquid Markets: Works best with adequate volume and tight spreads
4. Multiple Timeframe Analysis: Most effective when used across different timeframes
When to Use Caution
1. Major News Events: Fundamental analysis may override technical signals
2. Market Opens/Closes: Higher volatility can create false signals
3. Low Volume Periods: Signals may be less reliable
4. Holiday Trading: Reduced participation affects signal quality
________________________________________
Risk Disclaimer
IMPORTANT LEGAL DISCLAIMER FROM aiTrendview
WARNING: TRADING INVOLVES SUBSTANTIAL RISK OF LOSS
This Quantum Market Analyzer X7 indicator ("the Indicator") is provided for educational and informational purposes only. By using this indicator, you acknowledge and agree to the following terms:
No Investment Advice
• The Indicator does NOT constitute investment advice, financial advice, or trading recommendations
• All signals generated are based on historical price data and mathematical calculations
• Past performance does not guarantee future results
• No representation is made that any account will achieve profits or losses similar to those shown
Risk Acknowledgment
• TRADING CARRIES SUBSTANTIAL RISK: You may lose some or all of your invested capital
• LEVERAGE AMPLIFIES RISK: Margin trading can result in losses exceeding your initial investment
• MARKET VOLATILITY: Financial markets are inherently unpredictable and volatile
• TECHNICAL ANALYSIS LIMITATIONS: No technical indicator is infallible or guarantees profitable trades
User Responsibility
• YOU ARE SOLELY RESPONSIBLE for all trading decisions and their consequences
• CONDUCT YOUR OWN RESEARCH: Always perform independent analysis before making trading decisions
• CONSULT PROFESSIONALS: Seek advice from qualified financial advisors
• RISK MANAGEMENT: Implement appropriate risk management strategies
No Warranties
• The Indicator is provided "AS IS" without warranties of any kind
• aiTrendview makes no representations about the accuracy, reliability, or suitability of the Indicator
• Technical glitches, data feed issues, or calculation errors may occur
• The Indicator may not work as expected in all market conditions
Limitation of Liability
• aiTrendview SHALL NOT BE LIABLE for any direct, indirect, incidental, or consequential damages
• This includes but is not limited to: trading losses, missed opportunities, data inaccuracies, or system failures
• MAXIMUM LIABILITY is limited to the amount paid for the indicator (if any)
Code Usage and Distribution
• This indicator is published on TradingView in accordance with TradingView's house rules
• UNAUTHORIZED MODIFICATION or redistribution of this code is prohibited
• Users may not claim ownership of this intellectual property
• Commercial use requires explicit written permission from aiTrendview
Compliance and Regulations
• VERIFY LOCAL REGULATIONS: Ensure compliance with your jurisdiction's trading laws
• Some trading strategies may not be suitable for all investors
• Tax implications of trading are your responsibility
• Report trading activities as required by law
Specific Risk Factors
1. False Signals: The Indicator may generate incorrect buy/sell signals
2. Market Gaps: Overnight gaps can invalidate technical analysis
3. Fundamental Events: News and economic data can override technical signals
4. Liquidity Risk: Some markets may have insufficient liquidity
5. Technology Risk: Platform failures or connectivity issues may prevent order execution
Professional Trading Warning
• THIS IS NOT PROFESSIONAL TRADING SOFTWARE: Not intended for institutional or professional trading
• NO REGULATORY APPROVAL: This indicator has not been approved by any financial regulatory authority
• EDUCATIONAL PURPOSE: Designed primarily for learning technical analysis concepts
FINAL WARNING
NEVER INVEST MONEY YOU CANNOT AFFORD TO LOSE
Trading financial instruments involves significant risk. The majority of retail traders lose money. Before using this indicator in live trading:
1. Practice on paper/demo accounts extensively
2. Start with small position sizes
3. Develop a comprehensive trading plan
4. Implement strict risk management rules
5. Continuously educate yourself about market dynamics
By using the Quantum Market Analyzer X7, you acknowledge that you have read, understood, and agree to this disclaimer. You assume full responsibility for all trading decisions and their outcomes.
Contact: For questions about this disclaimer or the indicator, contact aiTrendview through official TradingView channels only.
________________________________________
This study guide and indicator are published on TradingView in compliance with TradingView's community guidelines and house rules. All users must adhere to TradingView's terms of service when using this indicator.
Document Version: 1.0
Last Updated: September 2025
Publisher: aiTrendview
________________________________________
Disclaimer from aiTrendview.com
The content provided in this blog post is for educational and training purposes only. It is not intended to be, and should not be construed as, financial, investment, or trading advice. All charting and technical analysis examples are for illustrative purposes. Trading and investing in financial markets involve substantial risk of loss and are not suitable for every individual. Before making any financial decisions, you should consult with a qualified financial professional to assess your personal financial situation.
DBG X WOLONG
Overview
DBG X Wolong is a feature-rich Pine Script v5 indicator/strategy designed to provide a systematic, configurable approach to detecting trade opportunities and managing positions. This free edition combines trend detection, momentum confirmation, volatility sizing and an adaptive grid/TP system into a single workflow that is intended to add practical value beyond a simple indicator mashup
What makes this script original & useful
Integrated workflow (not a mere mashup): indicators are assigned clear roles in a pipeline — trend → momentum → volatility → scaling/exit — so their outputs interact deterministically to form signals.
Adaptive grid + ATR sizing: grid spacing and stop/TP levels adapt to market volatility via ATR, reducing arbitrary parameter dependence.
MA cloud & Braid filter: the multi-MA cloud (supporting many MA types) is used as a structural trend/range detector; the Braid filter suppresses noise and confirms stronger trend regimes.
Multi-timeframe dashboard: compact view of trend across many TFs to avoid single-TF false signals.
Conceptual workflow (how it works, high level)
Trend detection: SuperTrend + MA cloud determine the primary bias (bull/bear).
Momentum confirmation: RSI and MACD histogram confirm momentum direction or reversals.
Volatility sizing: ATR is used to calculate stop levels and to scale position sizing and grid spacing (higher ATR → wider stops & grid)
Signal gating / filter: Braid filter and multi-TF confirmation reduce false entries and ensure higher-probability setups..
Grid / TP engine: when a signal triggers, the system can scale into positions across predefined grid steps and compute TP1/TP2/TP3 based on measured move (VWAP/regression or pivot logic), with labels on chart.
Visual outputs: colorized candles, entry/stop/take labels, pullback marks and a configurable table/dashboards.
Key components & role (concise)
SuperTrend: primary trend filter and main signal trigger.
MA Cloud / Ribbon (many MA types available): structure, support/resistance, trend validation
Braid Filter: noise suppression and signal confirmation.
FRAMA / JMA / advanced MA routines: adaptive smoothing options for different market regimes.
ATR: volatility measure for dynamic stops and grid spacing.
TP Engine / Regression-VWAP logic: adaptive take profit placement and multi-level exits.
Dashboard / Multi-TF checks: present TF consensus to avoid contradictory signals.
How signals are generated (conceptual)
Primary buy: SuperTrend flips bullish + price above short SMA + braid filter confirms + multi-TF bias mostly bullish.
Primary sell: SuperTrend flips bearish + price below short SMA + braid filter confirms + multi-TF bias mostly bearish.
Reversal/pullback markers: RSI crossing thresholds with additional confirmations.
(Exact thresholds and gating are configurable in inputs.).
Inputs summary (important ones to show in the publish dialog)
Sensitivity (SuperTrend tuning): 1–20 (default 6)
MA cloud cycles & ribbon choices (8 cycle settings)
Braid filter type & strength (percent)
ATR length & ATR risk multiplier (for SL and sizing).
Dashboard: enable/position/size, show/hide signals, pullback toggles.
TP mode (pivot/regression), TP multiplier and lengths
Recommended usage & presets
Sensitivity (SuperTrend tuning): 1–20 (default 6)
MA cloud cycles & ribbon choices (8 cycle settings)
Braid filter type & strength (percent)
ATR length & ATR risk multiplier (for SL and sizing).
Dashboard: enable/position/size, show/hide signals, pullback toggles.
TP mode (pivot/regression), TP multiplier and lengths
Recommended usage & presets
Scalping: TF 1–5 minutes; sensitivity higher (8–12); use only SuperTrend + Braid filters; TP1 only.
Intraday: TF 15–60 minutes; sensitivity medium (6–8); use full grid with ATR-based stops.
Swing: TF H1–D1; sensitivity lower (4–6); enable full indicators and multi-TF confirmations.
Always backtest and demo-trade settings before using live.
Limitations & safeguards
Market conditions (thin liquidity, news) can still produce false signals; use multi-TF filter and turn off signals near major events.
This free edition is intended for learning; advanced/premium variants may include additional proprietary optimizations.
Not investment advice — use proper money management and test before trading real capital.
Backtesting & validation
Backtest over multiple symbols and regimes (trending vs ranging) to find robust settings..
Use the dashboard to visualize TF alignment and exclude signals when mismatch occurs.
Keep trade frequency reasonable to avoid overfitting small sample sets.
Publishing notes (for moderators/reviewers)
This description explains how indicators combine in a defined workflow and why each component is used; it demonstrates originality (adaptive grid + ATR-based sizing + MA cloud + Braid filter as a cohesive strategy), not just a superficial mashup.
The code exposes configurable inputs and visual outputs; the long description gives sufficient conceptual detail for users and moderators to evaluate the script without exposing proprietary implementation details.
Commodity Channel Index DualThe CCI Dual is a custom TradingView indicator built in Pine Script v5, designed to help traders identify potential buy and sell signals using two Commodity Channel Index (CCI) oscillators. It combines a shorter-period CCI (default: 14) for quick momentum detection with a longer-period CCI (default: 50) for confirmation, focusing on mean-reversion opportunities in overbought or oversold conditions.
This setup is particularly suited for volatile markets like cryptocurrencies on higher timeframes (e.g., 3-day charts), where it highlights reversals by requiring both CCIs to cross out of extreme zones within a short window (default: 3 bars).
The indicator plots the CCIs, customizable bands (inner: 100, OB/OS: 175, outer: 200), dynamic fills for visual emphasis, background highlights for signals, and alert conditions for notifications.
How It Works
The indicator calculates two CCIs based on user-defined lengths and source (default: close price):
CCI Calculation: CCI measures price deviation from its average, using the formula: CCI = (Typical Price - Simple Moving Average) / (0.015 * Mean Deviation). The short CCI reacts faster to price changes, while the long CCI provides smoother, trend-aware confirmation.
Overbought/Oversold Levels: Customizable thresholds define extremes (Overbought at +175, Oversold at -175 by default). Bands are plotted at inner (±100), mid (±175 dashed), and outer (±200) levels, with gray fills for the outer zones.
Dynamic Fills: The longer CCI is used to shade areas beyond OB/OS levels in red (overbought) or green (oversold) for quick visual cues.
Signals:
Buy Signal: Triggers when both CCIs cross above the Oversold level (-175) within the signal window (3 bars). This suggests a potential upward reversal from an oversold state.
Sell Signal: Triggers when both cross below the Overbought level (+175) within the window, indicating a possible downward reversal.
Visuals and Alerts: Buy signals highlight the background green, sells red. Separate alertconditions allow setting TradingView alerts for buys or sells independently.
Customization: Adjust lengths, levels, and window via inputs to fit your timeframe or asset—e.g., higher OB/OS for crypto volatility.
This logic reduces noise by requiring dual confirmation, but like all oscillators, it can produce false signals in strong trends where prices stay extended.
To mitigate false signals (e.g., in trending markets), layer the CCI Dual with MACD (default: 12,26,9) and RSI (default: 14) for multi-indicator confirmation:
With MACD: Only take CCI buys if the MACD line is above the signal line (or histogram positive), confirming bullish momentum. For sells, require MACD bearish crossover. This filters counter-trend signals by aligning with trend strength—e.g., ignore CCI sells if MACD shows upward momentum.
With RSI: Confirm CCI oversold buys only if RSI is below 30 and rising (or shows bullish divergence). For overbought sells, RSI above 70 and falling. This adds overextension validation, reducing whipsaws in crypto trends.
I made this customizable for you to find what works best for your asset you are trading. I trade the 6 hour and 3 day timeframe mainly on major cryptocurrency pairs. I hope you enjoy this script and it serves you well.
Algo + Trendlines :: Medium PeriodThis indicator helps me to avoid overlooking Trendlines / Algolines. So far it doesn't search explicitly for Algolines (I don't consider volume at all), but it's definitely now already not horribly bad.
These are meant to be used on logarithmic charts btw! The lines would be displayed wrong on linear charts.
The biggest challenge is that there are some technical restrictions in TradingView, f. e. a script stops executing if a for-loop would take longer than 0.5 sec.
So in order to circumvent this and still be able to consider as many candles from the past as possible, I've created multiple versions for different purposes that I use like this:
Algo + Trendlines :: Medium Period : This script looks for "temporary highs / lows" (meaning the bar before and after has lower highs / lows) on the daily chart, connects them and shows the 5 ones that are the closest to the current price (=most relevant). This one is good to find trendlines more thoroughly, but only up to 4 years ago.
Algo + Trendlines :: Long Period : This version looks instead at the weekly charts for "temporary highs / lows" and finds out which days caused these highs / lows and connects them, Taking data from the weekly chart means fewer data points to check whether a trendline is broken, which allows to detect trendlines from up to 12 years ago! Therefore it misses some trendlines. Personally I prefer this one with "Only Confirmed" set to true to really show only the most relevant lines. This means at least 3 candle highs / lows touched the line. These are more likely stronger resistance / support lines compared to those that have been touched only twice.
Very important: sometimes you might see dotted lines that suddenly stop after a few months (after 100 bars to be precise). This indicates you need to zoom further out for TradingView to be able to load the full line. Unfortunately TradingView doesn't render lines if the starting point was too long ago, so this is my workaround. This is also the script's biggest advantage: showing you lines that you might have missed otherwise since the starting bars were outside of the screen, and required you to scroll f. e back to 2015..
One more thing to know:
Weak colored line = only 2 "collision" points with candle highs/lows (= not confirmed)
Usual colored line = 3+ "collision" points (= confirmed)
Make sure to move this indicator above the ticker in the Object Tree, so that it is drawn on top of the ticker's candles!
More infos: www.reddit.com
Algo + Trendlines :: Long PeriodThis indicator helps me to avoid overlooking Trendlines / Algolines. So far it doesn't search explicitly for Algolines (I don't consider volume at all), but it's definitely now already not horribly bad.
These are meant to be used on logarithmic charts btw! The lines would be displayed wrong on linear charts.
The biggest challenge is that there are some technical restrictions in TradingView, f. e. a script stops executing if a for-loop would take longer than 0.5 sec.
So in order to circumvent this and still be able to consider as many candles from the past as possible, I've created multiple versions for different purposes that I use like this:
Algo + Trendlines :: Medium Period : This script looks for "temporary highs / lows" (meaning the bar before and after has lower highs / lows) on the daily chart, connects them and shows the 5 ones that are the closest to the current price (=most relevant). This one is good to find trendlines more thoroughly, but only up to 4 years ago.
Algo + Trendlines :: Long Period : This version looks instead at the weekly charts for "temporary highs / lows" and finds out which days caused these highs / lows and connects them, Taking data from the weekly chart means fewer data points to check whether a trendline is broken, which allows to detect trendlines from up to 12 years ago! Therefore it misses some trendlines. Personally I prefer this one with "Only Confirmed" set to true to really show only the most relevant lines. This means at least 3 candle highs / lows touched the line. These are more likely stronger resistance / support lines compared to those that have been touched only twice.
Very important: sometimes you might see dotted lines that suddenly stop after a few months (after 100 bars to be precise). This indicates you need to zoom further out for TradingView to be able to load the full line. Unfortunately TradingView doesn't render lines if the starting point was too long ago, so this is my workaround. This is also the script's biggest advantage: showing you lines that you might have missed otherwise since the starting bars were outside of the screen, and required you to scroll f. e back to 2015..
One more thing to know:
Weak colored line = only 2 "collision" points with candle highs/lows (= not confirmed)
Usual colored line = 3+ "collision" points (= confirmed)
Make sure to move this indicator above the ticker in the Object Tree, so that it is drawn on top of the ticker's candles!
More infos: www.reddit.com
gfg//@version=5
indicator("Lux Gainz Style Algo", overlay=true)
// User Inputs
fastLen = input.int(12, "Fast MA Length", minval=1)
slowLen = input.int(26, "Slow MA Length", minval=1)
rsiLen = input.int(14, "RSI Length", minval=1)
rsiOverbought = input.float(70, "RSI Overbought Level")
rsiOversold = input.float(30, "RSI Oversold Level")
sensitivity = input.float(1.5, "Signal Sensitivity", minval=0.1, step=0.1)
// Moving Averages for Trend
fastMA = ta.ema(close, fastLen)
slowMA = ta.ema(close, slowLen)
// RSI for Momentum
rsi = ta.rsi(close, rsiLen)
// Trend Conditions
bullTrend = fastMA > slowMA
bearTrend = fastMA < slowMA
// Confirmation Signals
longSignal = ta.crossover(fastMA, slowMA) and rsi < rsiOversold * sensitivity
shortSignal = ta.crossunder(fastMA, slowMA) and rsi > rsiOverbought / sensitivity
// Plot Moving Averages
plot(fastMA, color=color.new(color.green, 0), title="Fast EMA")
plot(slowMA, color=color.new(color.red, 0), title="Slow EMA")
// Candle Coloring for Trend Strength
barcolor(bullTrend ? color.new(color.green, 70) : bearTrend ? color.new(color.red, 70) : color.gray)
// Plot Buy/Sell Signals
plotshape(longSignal, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.labelup, size=size.small)
plotshape(shortSignal, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.labeldown, size=size.small)
// Alerts
alertcondition(longSignal, title="Long Entry", message="Lux Gainz Algo: Long Entry Signal")
alertcondition(shortSignal, title="Short Entry", message="Lux Gainz Algo: Short Entry Signal")
Divergence & Volume ThrustThis document provides both user and technical information for the "Divergence & Volume Thrust" (DVT) Pine Script indicator.
Part 1: User Guide
1.1 Introduction
The DVT indicator is an advanced tool designed to automatically identify high-probability trading setups. It works by detecting divergences between price and key momentum oscillators (RSI and MACD).
A divergence is a powerful signal that a trend might be losing strength and a reversal is possible. To filter out weak signals, the DVT indicator includes a Volume Thrust component, which ensures that a divergence is backed by significant market interest before it alerts you.
🐂 Bullish Divergence: Price makes a new low, but the indicator makes a higher low. This suggests selling pressure is weakening.
🐻 Bearish Divergence: Price makes a new high, but the indicator makes a lower high. This suggests buying pressure is weakening.
1.2 Key Features on Your Chart
When you add the indicator to your chart, here's what you will see:
Divergence Lines:
Bullish Lines (Teal): A line will be drawn on your chart connecting two price lows that form a bullish divergence.
Bearish Lines (Red): A line will be drawn connecting two price highs that form a bearish divergence.
Solid lines represent RSI divergences, while dashed lines represent MACD divergences.
Confirmation Labels:
"Bull Div ▲" (Teal Label): This label appears below the candle when a bullish divergence is detected and confirmed by a recent volume spike. This is a high-probability buy signal.
"Bear Div ▼" (Red Label): This label appears above the candle when a bearish divergence is detected and confirmed by a recent volume spike. This is a high-probability sell signal.
Volume Spike Bars (Orange Background):
Any price candle with a faint orange background indicates that the volume during that period was unusually high (exceeding the average volume by a multiplier you can set).
1.3 Settings and Configuration
You can customize the indicator to fit your trading style. Here's what each setting does:
Divergence Pivot Lookback (Left/Right): Controls the sensitivity of swing point detection. Lower numbers find smaller, more frequent divergences. Higher numbers find larger, more significant ones. 5 is a good starting point.
Max Lookback Range for Divergence: How many bars back the script will look for the first part of a divergence pattern. Default is 60.
Indicator Settings (RSI & MACD):
You can toggle RSI and MACD divergences on or off.
Standard length settings for each indicator (e.g., RSI Length 14, MACD 12, 26, 9).
Volume Settings:
Use Volume Confirmation: The most important filter. When checked, labels will only appear if a volume spike occurs near the divergence.
Volume MA Length: The lookback period for calculating average volume.
Volume Spike Multiplier: The core of the "Thrust" filter. A value of 2.0 means volume must be 200% (or 2x) the average to be considered a spike.
Visuals: Customize colors and toggle the confirmation labels on or off.
1.4 Strategy & Best Practices
Confluence is Key: The DVT indicator is powerful, but it should not be used in isolation. Look for its signals at key support and resistance levels, trendlines, or major moving averages for the highest probability setups.
Wait for Confirmation: A confirmed signal (with a label) is much more reliable than an unconfirmed divergence line.
Context Matters: A bullish divergence in a strong downtrend might only lead to a small bounce, not a full reversal. Use the signals in the context of the overall market structure.
Set Alerts: Use the TradingView alert system with this script. Create alerts for "Confirmed Bullish Divergence" and "Confirmed Bearish Divergence" to be notified of setups automatically.
How to avoid repainting when using security() - viewing optionsHow to avoid repainting when using the security() - Edited PineCoders FAQ with more viewing options
This may be of value to a limited few, but I've introduced a set of Boolean inputs to PineCoders' original script because viewing all the various security lines at once was giving me a brain cramp. I wanted to study each behavior one-by-one. This version (also updated to PineScript v6) will allow users to selectively display each, or any combination, of the security plots. Each plot was updated to include a condition tied to its corresponding input, ensuring it only appears when explicitly enabled. The label-rendering logic only displays when its related plot is active; however, I've also added an input that allows you to remove all labels, enabling you to see the price action more clearly (the labels can sometimes obscure what you want to see). Run this script in replay mode to view the nuanced differences between the 12 methods while selecting/deselecting the desired plots (selecting all at once can be overcrowded and confusing).
All thanks and credit to PineCoders--these changes I made only provide more control over what’s shown on the chart without altering the core structure or intent of the original script. It helped me, so I thought I should share it. If I inadvertently messed something up, please let me know, and I will try to fix it.
I set the defaults for viewing monthly security functions on the daily timeframe. Only the first 2 security functions plot with the default settings, so change the settings as needed. Be sure to read the original notes and detailed explanations in the PineCoders posting "How to avoid repainting when using security() - PineCoders FAQ."
Bottom line, you should use one of the two functions: f_secureSecurity or f_security, depending on what you are trying to do. Hopefully, this script will make it a little easier for the visual learner to understand why (use replay mode or watch live price action on a lower timeframe).
Future Value ProjectionFuture Value Projection with Actual CAGR
This indicator calculates the future value (FV) of the current ticker’s price using its historical Compound Annual Growth Rate (CAGR). It measures how much the price has grown over a chosen lookback period, derives the average annual growth rate, and then projects the current price forward into the future.
Formulae:
CAGR:
CAGR = ( PV_now / PV_past )^(1 / t) - 1
Future Value:
FV = PV_now × ( 1 + CAGR / n )^( n × T )
Where:
PV_now = Current price
PV_past = Price t years ago
t = Lookback period (years)
CAGR = Compound Annual Growth Rate
n = Compounding periods per year (1=annual, 12=monthly, 252=daily, etc.)
T = Projection horizon (years forward)
How it works:
Select a lookback period (e.g., 3 years).
The script finds the price from that time and computes the CAGR.
It then projects the current price forward by T years using the CAGR.
The chart shows:
Current price (blue)
Projected FV target (green)
A table with CAGR and projection details
Use case:
Helps investors and traders visualize long-term growth projections if the ticker continues growing at its historical pace.
HawkEye EMA Cloud
# HawkEye EMA Cloud - Enhanced Multi-Timeframe EMA Analysis
## Overview
The HawkEye EMA Cloud is an advanced technical analysis indicator that visualizes multiple Exponential Moving Average (EMA) relationships through dynamic color-coded cloud formations. This enhanced version builds upon the original Ripster EMA Clouds concept with full customization capabilities.
## Credits
**Original Author:** Ripster47 (Ripster EMA Clouds)
**Enhanced Version:** HawkEye EMA Cloud with advanced customization features
## Key Features
### 🎨 **Full Color Customization**
- Individual bullish and bearish colors for each of the 5 EMA clouds
- Customizable rising and falling colors for EMA lines
- Adjustable opacity levels (0-100%) for each cloud independently
### 📊 **Multi-Layer EMA Analysis**
- **5 Configurable EMA Cloud Pairs:**
- Cloud 1: 8/9 EMAs (default)
- Cloud 2: 5/12 EMAs (default)
- Cloud 3: 34/50 EMAs (default)
- Cloud 4: 72/89 EMAs (default)
- Cloud 5: 180/200 EMAs (default)
### ⚙️ **Advanced Customization Options**
- Toggle individual clouds on/off
- Adjustable EMA periods for all timeframes
- Optional EMA line display with color coding
- Leading period offset for cloud projection
- Choice between EMA and SMA calculations
- Configurable source data (HL2, Close, Open, etc.)
## How It Works
### Cloud Formation
Each cloud is formed by the area between two EMAs of different periods. The cloud color dynamically changes based on:
- **Bullish (Green/Custom):** When the shorter EMA is above the longer EMA
- **Bearish (Red/Custom):** When the shorter EMA is below the longer EMA
### Multiple Timeframe Analysis
The indicator provides a comprehensive view of trend strength across multiple timeframes:
- **Short-term:** Clouds 1-2 (faster EMAs)
- **Medium-term:** Cloud 3 (intermediate EMAs)
- **Long-term:** Clouds 4-5 (slower EMAs)
## Trading Applications
### Trend Identification
- **Strong Uptrend:** Multiple clouds stacked bullishly with price above
- **Strong Downtrend:** Multiple clouds stacked bearishly with price below
- **Consolidation:** Mixed cloud colors indicating sideways movement
### Entry Signals
- **Bullish Entry:** Price breaking above bearish clouds turning bullish
- **Bearish Entry:** Price breaking below bullish clouds turning bearish
- **Confluence:** Multiple cloud confirmations strengthen signal reliability
### Support/Resistance Levels
- Cloud boundaries often act as dynamic support and resistance
- Thicker clouds (higher opacity) may provide stronger S/R levels
- Multiple cloud intersections create significant price levels
## Customization Guide
### Color Schemes
Create your own visual style by customizing:
1. **Bullish/Bearish colors** for each cloud pair
2. **Rising/Falling colors** for EMA lines
3. **Opacity levels** to layer clouds effectively
### Recommended Settings
- **Day Trading:** Focus on Clouds 1-2 with higher opacity
- **Swing Trading:** Use Clouds 1-3 with moderate opacity
- **Position Trading:** Emphasize Clouds 3-5 with lower opacity
## Technical Specifications
- **Version:** Pine Script v6
- **Type:** Overlay indicator
- **Calculations:** Real-time EMA computations
- **Performance:** Optimized for all timeframes
- **Alerts:** Configurable long/short alerts available
## Risk Disclaimer
This indicator is for educational and informational purposes only. Always combine with proper risk management and additional analysis before making trading decisions. Past performance does not guarantee future results.
---
*Enhanced and customized version of the original Ripster EMA Clouds by Ripster47. This modification adds comprehensive color customization and enhanced user control while preserving the core analytical framework.*
KAMA Trend Flip with Snap & Follow - SightLing Labs🔭 OVERVIEW
KAMA Snap Follow is a customized adaptation of the Kaufman Adaptive Moving Average (KAMA) that overlays a trend-tracking line on the chart. It computes an adaptive smoothing constant from the efficiency ratio, then incorporates conditional enhancements: a "snap" mechanism to boost responsiveness on significant counter-trend bars surpassing an ATR-based threshold, and a temporary "follow" mode after trend flips to intensify adaptation for a user-defined number of bars. This allows the line to hug price more closely during early reversal phases before returning to standard smoothing for noise filtration. The line colors green for upward trends (rising KAMA), red for downward (falling KAMA), and gray for neutral, with optional alerts on trend changes. If the structure invalidates (e.g., via excessive lag or unconfirmed flips), no automatic cleanup occurs—users manage via settings tweaks and backtesting.
🔭 CONCEPTS
* Adaptive smoothing core: Builds on KAMA's efficiency ratio to dynamically adjust between fast and slow constants, gliding over minor volatility while aiming to react to directional shifts.
* Snap trigger: Detects potential reversals via large bar changes opposing the prior trend, exceeding a multiplier of ATR; this temporarily amplifies the smoothing constant (capped at 1.0) to pull KAMA toward price.
* Follow mode activation: Post-flip, engages a boosted adaptation phase for a fixed bar count, forcing tighter shadowing in the new direction to reduce lag on true turns, then reverts to absorber mode.
* Trend detection: Simple comparison of current vs. prior KAMA values defines up/down/neutral, with no embedded signals—purely for visual trend context.
* Risk-aware design: No guarantees; focuses on lag reduction in simulations (e.g., 38-54% trough lag cuts on synthetic volatile series), but real-market performance varies—backtest thoroughly.
🔭 FEATURES
* Custom KAMA calculation with manual efficiency ratio and smoothing powers for baseline adaptation.
* ATR-integrated snap for reversal sensitivity, with adjustable multiplier and boost.
* Post-flip follow mode with configurable period and boost to enhance new-trend hugging.
* Trend coloring and flip alerts: Green/red/gray line with conditions for up/down/neutral; alerts on changes.
* User controls:
Source (e.g., close).
Efficiency Ratio Length (pivot-like sensitivity).
Fast/Slow Powers (adaptation speed).
ATR Length (volatility measure).
Snap Multiplier/Boost (reversal threshold/amplification).
Follow Period/Boost (post-flip duration/intensity).
* Efficient execution: Lightweight, no heavy buffers—suitable for intraday charts via backtested tweaks.
🔭 HOW TO USE
* Tune sensitivity: Shorten Efficiency Ratio Length on lower timeframes for quicker reactions; lengthen on higher for smoother trends. Test ATR Length against asset volatility.
* Monitor flips: Use green/red shifts as trend context—combine with your strategy (e.g., crossovers, support/resistance) for potential entries; alerts notify changes.
* Leverage modes: Snap helps catch sharp turns; follow mode tightens tracking post-reversal—observe on historical data to gauge lag reduction (e.g., 30-57% miss cuts on 0.20 moves in tests).
* Apply MTF: Spot broader trends on 5m; refine on 30s/1m near flips. Backtest configurations to avoid over-optimization.
* Integrate confluence: Pair with volume, RSI, or your filters; never rely solely—markets evolve, so validate via simulations and live observation.
🔭 CONCLUSION
KAMA Snap Follow evolves standard KAMA by adding snap and follow mechanics to combat reversal lag while filtering bumps, offering a visual tool for trend analysis in volatile intraday setups. Developed to address traditional adaptive averages' delays without introducing excessive whipsaw (e.g., zero added in noisy flats per tests), it provides adjustable parameters for customization. No performance promises—results hinge on backtesting and market fit; use as a framework for scenario evaluation, not automated trading.
Example Configurations (derived from synthetic tests on SOFI-like intraday volatility; backtest and adjust):
- For 30s charts (high noise, rapid shifts): Efficiency Ratio Length=20, Fast Power=1, Slow Power=15, ATR Length=10, Snap Multiplier=1.2, Snap Boost=2.0, Follow Period=5, Follow Boost=2.5—yields ~40% lag reduction on turns, filtering 85% of <0.01 fluctuations.
- For 1m charts (moderate volatility): Efficiency Ratio Length=30, Fast Power=2, Slow Power=20, ATR Length=14, Snap Multiplier=1.5, Snap Boost=2.5, Follow Period=8, Follow Boost=3.0—achieves ~30% lower reversal misses (e.g., 0.08 vs. 0.12 on 0.20 swings), stable in 50-bar chops.
- For 5m charts (trendier flows): Efficiency Ratio Length=50, Fast Power=3, Slow Power=40, ATR Length=20, Snap Multiplier=1.8, Snap Boost=3.0, Follow Period=12, Follow Boost=3.5—boosts post-flip hug by 25%, ignoring 90% of ±0.05 noise across 100 bars.
Optimized Trend-Momentum SignalsThis indicator combines trend, momentum, and volume-strength factors into a single buy/sell signal system. It integrates:
SMA 200 → Identifies the long-term trend (price above = bullish bias, below = bearish bias).
MACD (12,26,9) → Confirms momentum direction with line crossovers.
RSI (7) → Filters strength (above 50 = bullish, below 50 = bearish).
ROC (45) → Validates positive or negative rate of change.
Signal Logic:
Buy Signal → Price above SMA 200, MACD bullish, RSI > 50, and ROC > 0.
Sell Signal → Price below SMA 200, MACD bearish, RSI < 50, and ROC < 0.
Features:
Clear arrows for BUY and SELL signals.
Long-term SMA plotted for trend visualization.
Alerts built-in for real-time notifications.
This tool helps traders filter out noise and act only when all major confirmation factors align, reducing false signals and improving decision-making.
Persistence# Persistence
## What it does
Measures **price change persistence**, defined as the percentage of bars within a lookback window that closed higher than the prior close. A high value means the instrument has been closing up frequently, which can indicate durable momentum. This mirrors Stockbee’s idea: *select stocks with high price change persistence*, and then combine **momentum plus persistence**.
## Can be used for scanning in PineScreener
## Calculation
* `isUp` is true when `close > close `.
* `countUp` counts true instances over the last `len` bars.
* `pctUp = 100 * countUp / len`, bounded between 0 and 100.
* A 50% level is a natural baseline. Above 50% suggests more up closes than down closes in the window.
## Inputs
* **Lookback bars (`len`)**: default 252 for roughly one trading year on a daily chart. On weekly charts use something like 52, on monthly charts use 12.
## How to use
1. **Screen for persistence**
Sort a watchlist by the plotted value, higher is better. Many momentum traders start looking above 58 to 65 percent, then layer a trend filter.
2. **Combine with momentum**
Examples, pick tickers with:
* `pctUp > 60`, and price above a rising EMA50 or EMA100.
* `pctUp rising` and weekly ROC positive.
3. **Switch timeframe to change the horizon**
* Daily chart with `len = 252` approximates one year.
* Weekly chart with `len = 52` approximates one year.
* Monthly chart with `len = 12` approximates one year.
## TC2000 equivalence
Stockbee’s TC2000 expression:
```
CountTrue(c > c1, 252)
```
## Interpretation guide
* **70 to 90**: very strong persistence; often trend leaders, check for extensions and risk controls.
* **60 to 70**: constructive persistence; good hunting ground for swing setups that also pass momentum filters.
* **50**: neutral baseline; around random up vs down frequency.
* **Below 50**: persistent weakness; consider only for mean reversion or short strategies.
## Practical tips
* **Event effects**: ex-dividend gaps can reduce persistence on high yield names. Earnings gaps can swing the value sharply.
* **Survivorship bias**: when backtesting on curated lists, persistence can look cleaner than in live scans.
* **Liquidity**: thin names may show noisy persistence due to erratic prints.
## Reference to Stockbee
* “One way to select stocks for swing trading is to find those with high price change persistence.”
* “Persistence can be calculated on a daily, monthly, or weekly timeframe.”
* TC2000 function: `CountTrue(c > c1, 252)`
* Example noted in the tweet: CVNA had very high one-year price persistence at the time of that post.
* Takeaway: **look for momentum plus persistence**, not persistence alone.
🚀⚠️ Aggressive + Confirmed Long Strategy (v2)//@version=5
strategy("🚀⚠️ Aggressive + Confirmed Long Strategy (v2)",
overlay=true,
pyramiding=0,
initial_capital=10000,
default_qty_type=strategy.percent_of_equity,
default_qty_value=10, // % of equity per trade
commission_type=strategy.commission.percent,
commission_value=0.05)
// ========= Inputs =========
lenRSI = input.int(14, "RSI Length")
lenSMA1 = input.int(20, "SMA 20")
lenSMA2 = input.int(50, "SMA 50")
lenBB = input.int(20, "Bollinger Length")
multBB = input.float(2, "Bollinger Multiplier", step=0.1)
volLen = input.int(20, "Volume MA Length")
smaBuffP = input.float(1.0, "Margin above SMA50 (%)", step=0.1)
confirmOnClose = input.bool(true, "Confirm signals only after candle close")
useEarly = input.bool(true, "Allow Early entries")
// Risk
atrLen = input.int(14, "ATR Length", minval=1)
slATR = input.float(2.0, "Stop = ATR *", step=0.1)
tpRR = input.float(2.0, "Take-Profit RR (TP = SL * RR)", step=0.1)
useTrail = input.bool(false, "Use Trailing Stop instead of fixed SL/TP")
trailATR = input.float(2.5, "Trailing Stop = ATR *", step=0.1)
moveToBE = input.bool(true, "Move SL to breakeven at 1R TP")
// ========= Indicators =========
// MAs
sma20 = ta.sma(close, lenSMA1)
sma50 = ta.sma(close, lenSMA2)
// RSI
rsi = ta.rsi(close, lenRSI)
rsiEarly = rsi > 45 and rsi < 55
rsiStrong = rsi > 55
// MACD
= ta.macd(close, 12, 26, 9)
macdCross = ta.crossover(macdLine, signalLine)
macdEarly = macdCross and macdLine < 0
macdStrong = macdCross and macdLine > 0
// Bollinger
= ta.bb(close, lenBB, multBB)
bollBreakout = close > bbUpper
// Candle & Volume
bullishCandle = close > open
volCondition = volume > ta.sma(volume, volLen)
// Price vs MAs
smaCondition = close > sma20 and close > sma50 and close > sma50 * (1 + smaBuffP/100.0)
// Confirm-on-close helper
useSignal(cond) =>
confirmOnClose ? (cond and barstate.isconfirmed) : cond
// Entries
confirmedEntry = useSignal(rsiStrong and macdStrong and bollBreakout and bullishCandle and volCondition and smaCondition)
earlyEntry = useSignal(rsiEarly and macdEarly and close > sma20 and bullishCandle) and not confirmedEntry
longSignal = confirmedEntry or (useEarly and earlyEntry)
// ========= Risk Mgmt =========
atr = ta.atr(atrLen)
slPrice = close - atr * slATR
tpPrice = close + (close - slPrice) * tpRR
trailPts = atr * trailATR
// ========= Orders =========
if strategy.position_size == 0 and longSignal
strategy.entry("Long", strategy.long)
if strategy.position_size > 0
if useTrail
// Trailing Stop
strategy.exit("Exit", "Long", trail_points=trailPts, trail_offset=trailPts)
else
// Normal SL/TP
strategy.exit("Exit", "Long", stop=slPrice, limit=tpPrice)
// Move SL to breakeven when TP1 hit
if moveToBE and high >= tpPrice
strategy.exit("BE", "Long", stop=strategy.position_avg_price)
// ========= Plots =========
plot(sma20, title="SMA 20", color=color.orange, linewidth=2)
plot(sma50, title="SMA 50", color=color.new(color.blue, 0), linewidth=2)
plot(bbUpper, title="BB Upper", color=color.new(color.fuchsia, 0))
plot(bbBasis, title="BB Basis", color=color.new(color.gray, 50))
plot(bbLower, title="BB Lower", color=color.new(color.fuchsia, 0))
plotshape(confirmedEntry, title="🚀 Confirmed", location=location.belowbar,
color=color.green, style=shape.labelup, text="🚀", size=size.tiny)
plotshape(earlyEntry, title="⚠️ Early", location=location.belowbar,
color=color.orange, style=shape.labelup, text="⚠️", size=size.tiny)
// ========= Alerts =========
alertcondition(confirmedEntry, title="🚀 Confirmed Entry", message="🚀 {{ticker}} confirmed entry on {{interval}}")
alertcondition(earlyEntry, title="⚠️ Early Entry", message="⚠️ {{ticker}} early entry on {{interval}}")
kalabis indickatorklasika ukazuje opening range od 12am do 12,30 ,
a taky am opening 9,30am do 10am.
Session Open Candle MarkerThe "Session Open Candle Marker" is a Pine Script indicator designed for forex and futures traders using Smart Money Concepts (SMC) and RP Profits-inspired strategies. It marks the 15-minute opening range candles for the Asia, London, and NY sessions, where institutional "big players" often gather liquidity. Each session’s range is drawn as a rectangle with a customizable midpoint line, ideal for spotting breakouts, retests, and liquidity sweeps.
Features
Session Open Ranges: Plots rectangles for the 15m open candles of Asia (03:00 EEST), London (10:00 EEST), and NY (15:00 EEST), corresponding to 01:00, 08:00, and 13:00 GMT+1.
Customizable Visualization:
Toggle each session (Asia, London, NY) on/off.
Independent high/low label toggles for each session.
Adjustable rectangle color, midpoint line color, style (solid/dashed/dotted), and width.
Customizable rectangle duration (default: 96 bars, ~24 hours on 15m).
Timezone Flexibility: Default times are set for EEST (UTC+3). Adjust session inputs for your chart’s timezone (e.g., GMT+1: Asia 01:00, London 08:00, NY 13:00; UTC: Asia 00:00, London 07:00, NY 12:00).
Clean Design: Rectangles and labels update dynamically, with proper cleanup to avoid clutter.
Usage:
Setup: Add to a 15m chart (e.g., EURUSD, ES1!). Check your chart’s timezone (Chart Settings > Symbol > Timezone) and adjust session times if needed.
Settings:
Toggle sessions and labels to focus on desired ranges (e.g., London and NY for high volatility).
Customize colors, midpoint line style/width, and rectangle duration.
Trading:
Breakouts/Retests: Trade breakouts above/below the rectangle high/low, with retests back to the range or midpoint (aligned with RP Profits scalping).
Liquidity Sweeps: Watch for price sweeping session highs/lows, reversing for entries (SMC concept).
[Top] Simple ATR TP/SLSimple TP/SL from ATR (Locked per Bar) - Advanced Position Management Tool
What This Indicator Does:
Automatically calculates and displays Take Profit (TP) and Stop Loss (SL) levels based on Average True Range (ATR)
Locks ATR values and direction signals at the start of each bar to prevent repainting and provide consistent levels
Offers multiple direction detection modes including real-time candle-based positioning for dynamic trading approaches
Displays entry, TP, and SL levels as clean horizontal lines that extend from the current bar
Original Features That Make This Script Unique:
Bar-Locked ATR System: ATR values are captured and frozen at bar open, ensuring levels remain stable throughout the bar's progression
Multi-Modal Direction Detection: Four distinct modes for determining TP/SL positioning - Trend Following (EMA-based), Bullish Only, Bearish Only, and real-time Candle Based
Real-Time Candle Flipping: In Candle Based mode, TP/SL levels flip immediately when the current candle changes from bullish to bearish or vice versa
Persistent Line Management: Uses efficient line object management to prevent ghost lines and maintain clean visual presentation
Flexible Base Price Selection: Choose between Open (static), Close (dynamic), or midpoint (H+L)/2 for entry level calculation
How The Algorithm Works:
ATR Calculation: Captures ATR value at each bar open using specified length parameter, maintaining consistency throughout the bar
Direction Determination: Uses different methods based on selected mode - EMA crossover for trend following, or real-time candle color for dynamic positioning
Level Calculation: TP level = Base Price + (Direction × TP Multiplier × ATR), SL level = Base Price - (Direction × SL Multiplier × ATR)
Visual Management: Creates persistent line objects once, then updates their positions every bar for optimal performance
Direction Modes Explained:
Trend Following: Uses 5-period and 12-period EMA relationship to determine trend direction (locked at bar open)
Bullish Only: Always places TP above and SL below entry (traditional long setup)
Bearish Only: Always places TP below and SL above entry (traditional short setup)
Candle Based: Dynamically adjusts based on current candle direction - flips in real-time as candle develops
Key Input Parameters:
ATR Length: Period for ATR calculation (default 14) - longer periods provide smoother volatility measurement
TP Multiplier: Take profit distance as multiple of ATR (default 1.0) - higher values target larger profits
SL Multiplier: Stop loss distance as multiple of ATR (default 1.0) - higher values allow more room for price movement
Base Price: Reference point for level calculations - Open for static entry, Close for dynamic tracking
Direction Mode: Method for determining whether TP goes above or below entry level
How To Use This Indicator:
For Position Sizing: Use the displayed SL distance to calculate appropriate position size based on your risk tolerance
For Entry Timing: Wait for price to approach the entry level before taking positions
For Risk Management: Set your actual stop loss orders at or near the displayed SL level
For Profit Taking: Use the TP level as initial profit target, consider scaling out at this level
Mode Selection: Choose Candle Based for scalping and quick reversals, Trend Following for swing trading
Visual Style Customization:
Line Colors: Customize TP line color (default teal) and SL line color (default orange) for easy identification
Line Widths: Adjust TP/SL line thickness (1-5) and entry line thickness (1-3) for visibility preferences
Clean Display: Lines extend 3 bars forward from current bar and update position dynamically
Best Practices:
Use on clean charts without multiple overlapping indicators for clearest visual interpretation
Combine with volume analysis and key support/resistance levels for enhanced decision making
Adjust ATR length based on your trading timeframe - shorter for scalping, longer for position trading
Test different TP/SL multipliers based on the volatility characteristics of your chosen instruments
Consider using Trend Following mode during strong trending periods and Candle Based during ranging markets
Apex Edge - London Open Session# Apex Edge - London Open Session Trading System
## Overview
The London Open Session indicator captures institutional price action during the first hour of the London forex session (8:00-9:00 AM GMT) and identifies high-probability breakout and retest opportunities. This system tracks the session's high/low range and generates precise entry signals when price breaks or retests these key institutional levels.
## Core Strategy
**Session Tracking**: Automatically identifies and marks the London Open session boundaries, creating a trading zone from the first hour's price range.
**Dual Entry Logic**:
- **Breakout Entries**: Triggers when price closes beyond the session high/low and continues in that direction
- **Retest Entries**: Activates when price returns to test the broken level as new support/resistance
**Performance Analytics**: Built-in win rate tracking displays real-time performance statistics over user-defined lookback periods, enabling data-driven optimization for each currency pair.
## Key Features
### Automated Zone Detection
- Precise London session timing with timezone offset controls
- Visual session boundaries with customizable colours
- Automatic high/low range calculation and display
### Smart Entry System
- Breakout confirmation requiring candle close beyond zone
- Retest detection with configurable pip distance tolerance
- Separate risk/reward ratios for breakout vs retest entries
- Visual entry arrows with clear trade direction labels
### Performance HUD
- Real-time win rate calculation over customizable periods (7-365 days)
- Total trades tracking with win/loss breakdown
- Average risk-reward ratio display
- Color-coded performance metrics (green >70%, yellow >50%, red <50%)
### PineConnector Integration
- Direct MT4/MT5 execution via PineConnector alerts
- Proper forex pip calculations for all currency pairs
- Customizable risk percentage per trade
- Symbol override capability for broker compatibility
- Automatic SL/TP level calculation in pips
## Critical Usage Requirements
### Pair-Specific Optimization
Each currency pair requires individual optimization due to varying volatility characteristics, institutional participation levels, and typical price ranges during London hours. The performance HUD is essential for identifying optimal settings before live trading.
**Recommended Testing Process**:
1. Apply indicator to desired currency pair and timeframe
2. Experiment with session timing - while 8:00-9:00 AM GMT is standard, some pairs may show improved performance with alternative hourly windows (e.g., 7:00-8:00 AM or 9:00-10:00 AM)
3. Adjust Stop Loss distances, Risk/Reward ratios, and Retest distances
4. Monitor win rate over 30+ day periods using the performance HUD
5. Only proceed with live alerts once consistent 60%+ win rates are achieved
6. Create separate optimized chart setups for each profitable pair/timeframe combination
### Timeframe Specifications
This indicator is specifically designed and tested for:
- **1-minute charts**: Optimal for capturing immediate institutional reactions
- **5-minute charts**: Balanced approach between noise reduction and opportunity frequency
Higher timeframes generally produce inferior results due to increased noise and reduced institutional edge during the London session window.
## Settings Configuration
### Session Timing
- **London Open/Close Hours**: Adjust for your chart's timezone
- **Rectangle End Time**: Set to 4:30 PM to stop signals before NY session close
- **Timezone Offset**: Ensure accurate London session capture
### Entry Parameters
- **Retest Distance**: 3-8 pips depending on pair volatility
- **Stop Loss Pips**: Separate settings for breakouts (10-15 pips) and retests (8-12 pips)
- **Risk/Reward Ratios**: Independent ratios for different entry types
### PineConnector Setup
- **License ID**: Your PineConnector license key
- **Symbol Override**: MT4/MT5 symbol names if different from TradingView
- **Risk Percentage**: Position size as percentage of account balance
- **Prefix/Comment**: Organize trades in terminal
## Manual Trading Limitations
Without PineConnector automation, traders face significant practical challenges:
**Settings Management**: Each currency pair requires different optimized parameters. Switching between charts means manually adjusting multiple settings each time, creating potential for errors and missed opportunities.
**Timing Sensitivity**: London Open signals can occur rapidly during high-volatility periods. Manual execution may result in slippage or missed entries.
**Multi-Pair Monitoring**: Tracking 4-11 currency pairs simultaneously while manually adjusting settings for each switch becomes impractical for most traders.
**Parameter Consistency**: Risk of using suboptimal settings when quickly switching between pairs, potentially compromising the careful optimization work.
## Recommended Workflow
1. **Historical Testing**: Use win rate HUD to identify profitable pairs and optimal parameters
2. **Demo Automation**: Test PineConnector alerts on demo accounts with optimized settings
3. **Live Implementation**: Deploy alerts only on proven profitable pair/timeframe combinations
4. **Ongoing Monitoring**: Regular review of performance metrics to maintain edge
## Risk Disclaimer
This indicator provides analysis tools and automation capabilities but does not guarantee profitable trading outcomes. Past performance does not predict future results. Users should thoroughly backtest and demo trade before risking live capital. The London session strategy works best during specific market conditions and may underperform during low volatility or unusual market environments.
## Support Requirements
Successful implementation requires:
- Basic understanding of London session market dynamics
- PineConnector subscription for automation features
- Patience for proper optimization process
- Realistic expectations about win rates and drawdown periods
This system is designed for serious traders willing to invest time in proper optimization and risk management rather than plug-and-play solutions.
VWMA MACD Trend Grinder Buy/Sell SignalsDescription:
This indicator combines a VWMA-based MACD with volume and trend filters to reduce false buy and sell signals.
It is designed to give more reliable entry and exit points in trending markets while avoiding low-volume noise.
Features:
1. VWMA MACD:
- MACD is calculated using Volume-Weighted Moving Averages (VWMA) instead of standard EMAs.
- Histogram shows the difference between MACD and its signal line.
2. Volume Filter:
- Signals are only triggered when current volume exceeds a multiple of its moving average.
- Reduces false signals in low-volume periods.
3. Trend Filter:
- Only triggers buy signals when price is above a long-term VWMA (uptrend).
- Only triggers sell signals when price is below the long-term VWMA (downtrend).
- Helps avoid counter-trend trades.
4. Plots:
- MACD (blue), Signal (orange), Histogram (green/red)
- Trend VWMA (purple)
- Buy and Sell arrows in the indicator pane (green/red)
5. Alerts:
- Configurable alerts for buy and sell signals filtered by volume and trend.
Inputs:
- Fast Length: VWMA period for the fast MACD line (default 12)
- Slow Length: VWMA period for the slow MACD line (default 26)
- Signal Length: EMA period for the MACD signal line (default 9)
- Volume MA Length: Length for volume moving average filter (default 20)
- Volume Threshold Multiplier: Multiplier for volume filter (default 1.2)
- Trend VWMA Length: Period for long-term trend VWMA (default 50)
- Price Source: Close, HL2, HLC3, OHLC4
Usage:
- Use as a confirmation tool along with other analysis techniques.
- Buy when the green triangle appears (MACD crossover, above trend VWMA, sufficient volume).
- Sell when the red triangle appears (MACD crossunder, below trend VWMA, sufficient volume).
- Trend VWMA helps visually confirm the market trend.
JL - Market HeatmapThis indicator plots a static table on your chart that displays any tickers you want and their % change on the day so far.
It updates in real time, changes color as it updates, and has several custom functions available for you:
1. Plot up to 12 tickers of your choice
2. Choose a layout with 1-4 rows
3. Display % Change or Not
4. Choose your font size (Tiny, Small, Normal, Large)
5. Up/Down Cell Colors (% change dependent)
6. Up/Down Text Colors (high contrast to your color choices)
The purpose of the indicator is to quickly measure a broad basket of market instruments to paint a more context-rich perspective of the chart you are looking at.
I hope this indicator can help you (and me) accomplish this task in a simple, clean, and seamless manner.
Thanks and enjoy - Jack