Moving Average DifferenceThe indicator computes the difference between m-day MA and n-day MA. It can be used to tell the price trend.
Trend Analysis
Advanced Support and Resistance Levels[MAP]Advanced Support and Resistance Levels Indicator
Author
Developed by:
Overview
The "Advanced Support and Resistance Levels" indicator, created, is a sophisticated tool designed for TradingView's Pine Script v6 platform. It identifies and plots key support and resistance levels on a price chart, enhancing technical analysis by incorporating pivot strength, volume weighting, and level decay. The indicator overlays lines, zones, and labels on the chart, providing a visual representation of significant price levels where the market has historically reversed or consolidated.
Purpose
This indicator, authored by , aims to:
Detect significant pivot points (highs and lows) with customizable strength requirements.
Track and rank support/resistance levels based on their recency, volume, and number of touches.
Display these levels as lines and optional zones, with strength-based visual cues (e.g., line thickness and opacity).
Offer flexibility through user-configurable settings to adapt to different trading styles and market conditions.
Features
Pivot Detection:
Identifies high and low pivots using a strength parameter, requiring a specified number of bars on either side where no higher highs or lower lows occur.
Incorporates closing price checks and SMA-based trend confirmation to filter out noise and ensure pivots align with the broader market direction.
Level Management:
Maintains a dynamic array of levels with attributes: price, type (support/resistance), bars since last touch, strength, and volume.
Merges nearby levels within a tolerance percentage, updating prices with a strength-weighted average.
Prunes weaker or older levels when exceeding the maximum allowed, prioritizing those with higher calculated strength.
Strength Calculation:
Combines the number of touches (strength), volume (if enabled), and age decay (if enabled) into a single metric.
Volume weighting uses a logarithmic scale to emphasize high-volume pivots without over-amplifying extreme values.
Age decay reduces the importance of older levels over time, ensuring relevance to current price action.
Visualization:
Draws horizontal lines at each level, with thickness reflecting the number of touches (up to a user-defined maximum).
Optional price zones around levels, sized as a percentage of the price, to indicate areas of influence.
Labels display the level type (S for support, R for resistance), price, and strength score, with position (left or right) customizable.
Line opacity varies with strength, providing a visual hierarchy of level significance.
Plots small triangles at detected pivot points for reference.
Inputs
Lookback Period (lookback, default: 20): Number of bars to consider for trend confirmation via SMA. Range: 5–100.
Pivot Strength (strength, default: 2): Number of bars required on each side of a pivot to confirm it. Range: 1–10.
Price Tolerance % (tolerance, default: 0.5): Percentage range for merging similar levels. Range: 0.1–5.
Max Levels to Show (maxLevels, default: 10): Maximum number of levels displayed. Range: 2–50.
Zone Size % (zoneSizePercent, default: 0.1): Size of the S/R zone as a percentage of the price. Range: 0–1.
Line Width (lineWidth, default: 1): Maximum thickness of level lines. Range: 1–5.
Show Labels (showLabels, default: true): Toggle visibility of level labels.
Label Position (labelPos, default: "Right"): Position of labels ("Left" or "Right").
Level Strength Decay (levelDecay, default: true): Enable gradual reduction in strength for older levels.
Volume Weighting (volumeWeight, default: true): Incorporate volume into level strength calculations.
Support Color (supportColor, default: green): Color for support levels.
Resistance Color (resistColor, default: red): Color for resistance levels.
How It Works
Pivot Detection:
Checks for pivots only after enough bars (2 * strength) have passed.
A high pivot requires strength bars before and after with no higher highs or closes, and a short-term SMA above a long-term SMA.
A low pivot requires strength bars before and after with no lower lows or closes, and a short-term SMA below a long-term SMA.
Level Tracking:
New pivots create levels with initial strength and volume.
Existing levels within tolerance are updated: strength increases, volume takes the maximum value, and price adjusts via a weighted average.
Levels older than lookback * 4 bars with strength below 0.5 are removed.
If the number of levels exceeds maxLevels, the weakest (by calculated strength) are pruned using a selection sort algorithm.
Drawing:
Updates on the last confirmed bar or in real-time.
Lines extend lookback bars left and right from the current bar, with thickness based on touches.
Zones (if enabled) are drawn symmetrically around the level price.
Labels show detailed info, with opacity tied to strength.
Usage
Add to Chart: Apply the indicator to any TradingView chart via the Pine Script editor, as designed by .
Adjust Settings: Customize inputs to match your trading strategy (e.g., increase strength for stronger pivots, adjust tolerance for tighter level merging).
Interpret Levels: Focus on thicker, less transparent lines for stronger levels; use zones to identify potential reversal areas.
Combine with Other Tools: Pair with trend indicators or oscillators for confluence in trading decisions.
Notes
Performance: The indicator uses arrays and sorting, which may slow down on very long charts with many levels. Keep maxLevels reasonable for efficiency.
Accuracy: Enhanced by trend confirmation and volume weighting, making it more reliable than basic S/R indicators, thanks to 's design.
Limitations: Real-time updates may shift levels as new pivots form; historical levels are more stable.
Example Settings
For day trading: lookback=10, strength=1, tolerance=0.3, maxLevels=5.
For swing trading: lookback=50, strength=3, tolerance=0.7, maxLevels=10.
Credits
Author: – Creator of this advanced support and resistance tool, blending precision and customization for traders.
Weekly Expected Move with TableThis indicator simply takes the values that you receive from the published chart from the discord group and places the lines on the chart for tracking along with a table.
Primarily for the NQ and ES.
Simply update the 2 weekly close and EM inputs.
This is to adjust for the differing "Settlement close" vs Trading View's Actual Close.
The Published value is the Exchange Settlement close value
Once you enter in the EM value. the IV from the "Options ATM" table will be reverse calculated and used for the Sigma 2 calculations completing the tables..
Since Options data is not present in Tradingview. we have to enter in the EM value from the chart published.
Looking to expand the indicator for additional symbols if there's interest
The Prediction row that's optional. simply provides a prediction of chance that price will hit the target upper and lowers.
Enjoy!
Market Participation Index [PhenLabs]📊 Market Participation Index
Version: PineScript™ v6
📌 Description
Market Participation Index is a well-evolved statistical oscillator that constantly learns to develop by adapting to changing market behavior through the intricate mathematical modeling process. MPI combines different statistical approaches and Bayes’ probability theory of analysis to provide extensive insight into market participation and building momentum. MPI combines diverse statistical thinking principles of physics and information and marries them for subtle changes to occur in markets, levels to become influential as important price targets, and pattern divergences to unveil before it is visible by analytical methods in an old-fashioned methodology.
🚀 Points of Innovation:
Automatic market condition detection system with intelligent preset selection
Multi-statistical approach combining classical and advanced metrics
Fractal-based divergence system with quality scoring
Adaptive threshold calculation using statistical properties of current market
🚨 Important🚨
The ‘Auto’ mode intelligently selects the optimal preset based on real-time market conditions, if the visualization does not appear to the best of your liking then select the option in parenthesis next to the auto mode on the label in the oscillator in the settings panel.
🔧 Core Components
Statistical Foundation: Multiple statistical measures combined with weighted approach
Market Condition Analysis: Real-time detection of market states (trending, ranging, volatile)
Change Point Detection: Bayesian analysis for finding significant market structure shifts
Divergence System: Fractal-based pattern detection with quality assessment
Adaptive Visualization: Dynamic color schemes with context-appropriate settings
🔥 Key Features
The indicator provides comprehensive market analysis through:
Multi-statistical Oscillator: Combines Z-score, MAD, and fractal dimensions
Advanced Statistical Components: Includes skewness, kurtosis, and entropy analysis
Auto-preset System: Automatically selects optimal settings for current conditions
Fractal Divergence Analysis: Detects and grades quality of divergence patterns
Adaptive Thresholds: Dynamically adjusts overbought/oversold levels
🎨 Visualization
Color-coded Oscillator: Gradient-filled oscillator line showing intensity
Divergence Markings: Clear visualization of bullish and bearish divergences
Threshold Lines: Dynamic or fixed overbought/oversold levels
Preset Information: On-chart display of current market conditions
Multiple Color Schemes: Modern, Classic, Monochrome, and Neon themes
Classic
Modern
Monochrome
Neon
📖 Usage Guidelines
The indicator offers several customization options:
Market Condition Settings:
Preset Mode: Choose between Auto-detection or specific market condition presets
Color Theme: Select visual theme matching your chart style
Divergence Labels: Choose whether or not you’d like to see the divergence
✅ Best Use Cases:
Identify potential market reversals through statistical divergences
Detect changes in market structure before price confirmation
Filter trades based on current market condition (trending vs. ranging)
Find optimal entry and exit points using adaptive thresholds
Monitor shifts in market participation and momentum
⚠️ Limitations
Requires sufficient historical data for accurate statistical analysis
Auto-detection may lag during rapid market condition changes
Advanced statistical calculations have higher computational requirements
Manual preset selection may be required in certain transitional markets
💡 What Makes This Unique
Statistical Depth: Goes beyond traditional indicators with advanced statistical measures
Adaptive Intelligence: Automatically adjusts to current market conditions
Bayesian Analysis: Identifies statistically significant change points in market structure
Multi-factor Approach: Combines multiple statistical dimensions for confirmation
Fractal Divergence System: More robust than traditional divergence detection methods
🔬 How It Works
The indicator processes market data through four main components:
Market Condition Analysis:
Evaluates trend strength, volatility, and price patterns
Automatically selects optimal preset parameters
Adapts sensitivity based on current conditions
Statistical Oscillator:
Combines multiple statistical measures with weights
Normalizes values to consistent scale
Applies adaptive smoothing
Advanced Statistical Analysis:
Calculates higher-order statistical moments
Applies information-theoretic measures
Detects distribution anomalies
Divergence Detection:
Uses fractal theory to identify pivot points
Detects and scores divergence quality
Filters signals based on current market phase
💡 Note:
The Market Participation Index performs optimally when used across multiple timeframes for confirmation. Its statistical foundation makes it particularly valuable during market transitions and periods of changing volatility, where traditional indicators often fail to provide clear signals.
EMA & RSI Trading StrategyIn this strategy EMA 50 crosses EMA 100 from below and the RSI is above 50. It gives us proper buy and short signals. It works better on daily time frame. Back test before applying.
Range Breakout v2
Range breakout based trading strategy.
Best accommodated on smaller time frames.
Builds and inherent moving average based bias.
Bollinger Bands MTF & Kalman Filter | Flux Charts📈 Multi-Timeframe Kalman Filtered Bollinger Bands Indicator
Introducing our MTF Kalman Filtered Bollinger Bands – a powerful multi-timeframe Bollinger Bands (BB) indicator enhanced with Kalman filtering for superior smoothing and trend analysis. This indicator dynamically adapts Bollinger Bands across multiple timeframes while incorporating volume-based gradient transparency to highlight significant price movements. This indicator is better optimized for lower timeframes.
❓ How to Interpret the Bands & Volume Gradient:
Our indicator combines Lower Timeframe (LTF) and Higher Timeframe (HTF) Bollinger Bands to provide a comprehensive trend analysis. It applies Kalman filtering to the LTF bands, ensuring smoother, noise-reduced signals. The color gradient and relative volume-based transparency offer deeper insights into price strength.
🔹 LTF Bollinger Bands: Shorter-period bands filtered with a Kalman smoothing algorithm, reducing lag and noise.
🔹 HTF Bollinger Bands: Traditional Bollinger Bands plotted on a higher timeframe, offering macro trend analysis.
🔹 Volume Gradient Transparency: The bands adjust their opacity based on relative buy/sell volume, allowing traders to assess momentum strength.
📌 How Does It Work?
1️⃣ Multi-Timeframe Bollinger Bands Calculation
The LTF BB uses Kalman filtering for a smoother price representation, helping to reduce false signals.
The HTF BB is EMA-smoothed for improved trend clarity.
2️⃣ Adaptive Gradient Transparency
The opacity of the fill color between the bands is determined by relative buy/sell volume.
Higher buy volume = stronger bullish signal (greener bands).
Higher sell volume = stronger bearish signal (redder bands).
3️⃣ Dynamic Trend Signals & Breakouts
Buy Signal: When price breaks below the HTF lower band and LTF bands start rising.
Sell Signal: When price breaks above the HTF upper band and LTF bands start falling.
⚙️ Settings & Customization:
🛠 LTF and HTF Bollinger Bands Settings:
Multiplier: The multiplier applied to the BB to determine the upper and lower bands
Length: Define the number of bars determines the BB calculations.
Custom Timeframe Selection: Choose from predefined options (e.g., 5m, 15m, 1H, 4H, etc).
🎨 Gradient & Transparency Settings:
Bullish/Bearish Color Options: Customize colors for uptrend and downtrend conditions.
Max & Min Opacity: Adjust the transparency levels based on volume intensity.
Solid vs. Gradient Mode: Choose between a gradient fill or a solid color mode for clarity.
📌 Recommended Settings for Optimal Use:
1️⃣ Timeframe Selection (LTF -> HTF):
1 min -> 5 min
2 min -> 5 min
3 min -> 15 min
5 min -> 15 min
15 min -> 1 hr
1 hr -> 4 hr
4 hr -> 1 day
2️⃣ Multiplier: Use 2.0 for LTF and 2.25 for HTF
3️⃣Length: Use a length of 20 - 30 bars
🚀 Why Use This Indicator?
✅ Multi-Timeframe Bollinger Bands with Kalman Filtering – Ideal for traders looking for reduced lag and clearer trend signals.
✅ Volume-Based Transparency – See momentum shifts instantly with adaptive opacity.
✅ Dynamic Buy & Sell Signals – Alerts based on price action + volume trends.
✅ Customizable for Any Strategy – Adjust colors, timeframes, and filtering options for personalized trading.
Multi Asset Similarity MatrixProvides a unique and visually stunning way to analyze the similarity between various stock market indices. This script uses a range of mathematical measures to calculate the correlation between different assets, such as indices, forex, crypto, etc..
Key Features:
Similarity Measures: The script offers a range of similarity measures to choose from, including SSD (Sum of Squared Differences), Euclidean Distance, Manhattan Distance, Minkowski Distance, Chebyshev Distance, Correlation Coefficient, Cosine Similarity, Camberra Index, Mean Absolute Error (MAE), Mean Squared Error (MSE), Lorentzian Function, Intersection, and Penrose Shape.
Asset Selection: Users can select the assets they want to analyze by entering a comma-separated list of tickers in the "Asset List" input field.
Color Gradient: The script uses a color gradient to represent the similarity values between each pair of indices, with red indicating low similarity and blue indicating high similarity.
How it Works:
The script calculates the source method (Returns or Volume Modified Returns) for each index using the sec function.
It then creates a matrix to hold the current values of each index over a specified window size (default is 10).
For each pair of indices, it applies the selected similarity measure using the select function and stores the result in a separate matrix.
The script calculates the maximum and minimum values of the similarity matrix to normalize the color gradient.
Finally, it creates a table with the index names as rows and columns, displaying the similarity values for each pair of indices using the calculated colors.
Visual Insights:
The indicator provides an intuitive way to visualize the relationships between different assets. By analyzing the color-coded tables, traders can gain insights into:
Which assets are highly correlated (blue) or uncorrelated (red)
The strength and direction of these correlations
Potential trading opportunities based on similarities and differences between assets
Overall, MASM is a powerful tool for market analysis and visualization, offering a unique perspective on the relationships between various assets.
~llama3
Korsbæk 4RKorsbæk 4R Indicator
This is a visualization tool designed to show key Fibonacci levels within the current 4h range. The indicator is not a strategy, but rather provides visual guidance to assist in price action setups.
How it Works:
The indicator calculates the high and low of the current range on the 4-hour chart, and from that range, it draws various Fibonacci levels such as 0%, 25%, 50%, 75%, 1.618, and -0.618. These levels represent important price areas that can guide trading decisions on lower timeframes (LTF) when used for trigger points in conjunction with price action setups.
Purpose:
To visually highlight the key Fibonacci levels within the current range of the selected timeframe.
These levels serve as general reference points for potential support, resistance, or areas of interest in price action trading.
Key Features:
Displays the Fibonacci levels (0%, 25%, 50%, 75%, 1.618, and -0.618) drawn from the high and low of the 4-hour chart.
Allows you to visualize the current range and its relevant Fibonacci levels to assist with price action setups on lower timeframes.
Toggle the visibility of the level labels on the price axis for each Fibonacci level.
Limit the extension of Fibonacci lines to 42 bars into the future for better chart clarity.
How to Use:
Apply the indicator to a 4-hour chart to visualize the range.
Use the Fibonacci levels as general guidance in your price action setups on lower timeframes (LTF) for trigger points.
Toggle the Fibonacci labels and adjust the appearance of each level for easier identification.
Use the indicator in combination with other price action tools for improved decision-making.
Günlük Alış ve Satış Sinyalleri (5 Günlük ve 22 Günlük)//@version=6
indicator('Günlük Alış ve Satış Sinyalleri (5 Günlük ve 22 Günlük)', overlay = true)
// 5 günlük ve 22 günlük hareketli ortalamaların hesaplanması
sma5 = ta.sma(close, 5) // 5 günlük SMA
sma22 = ta.sma(close, 22) // 22 günlük SMA
// Alış ve satış sinyalleri
longCondition = ta.crossover(sma5, sma22) // 5 günlük SMA'nın 22 günlük SMA'yı yukarıdan kesmesi
shortCondition = ta.crossunder(sma5, sma22) // 5 günlük SMA'nın 22 günlük SMA'yı aşağıdan kesmesi
// Sinyalleri grafikte gösterme
plotshape(longCondition, style = shape.labelup, location = location.belowbar, color = color.green, size = size.small, text = 'AL', offset = -1)
plotshape(shortCondition, style = shape.labeldown, location = location.abovebar, color = color.red, size = size.small, text = 'SAT', offset = -1)
// Hareketli ortalamaların grafikte gösterimi
plot(sma5, color = color.orange, title = '5 Günlük SMA', linewidth = 2)
plot(sma22, color = color.blue, title = '22 Günlük SMA', linewidth = 2)
// Fiyattan uzaklığı görselleştirmek için SMA'lar arası mesafenin gösterilmesi
fill(plot(sma5, color = color.orange, title = '5 Günlük SMA'), plot(sma22, color = color.blue, title = '22 Günlük SMA'), color = color.new(color.gray, 90), title = 'SMA Alanı')
Custom Volatility Spike DetectorTitle:
Custom Volatility Spike Detector
Overview:
This advanced indicator identifies significant spikes in price volatility and highlights them by changing the chart's background color. It helps traders quickly pinpoint unusual price surges or drops, which could signal potential breakouts, reversals, or high-risk market conditions. Designed for clarity, it delivers precise signals without cluttering your chart, making it a great addition to any technical analysis toolkit.
Features:
Precise Volatility Spike Detection: Combines Bollinger Bands (standard deviation) with percentile range analysis to dynamically detect significant changes in volatility.
Clean Visual Alerts: Uses a distinct background color change to indicate valid spikes, ensuring signals are immediately noticeable without distracting from other chart elements.
Volume-Based Filtering: Applies a volume filter that considers both average volume and recent volume surges, filtering out unreliable spikes caused by low trading activity.
Minimalistic Design: Avoids unnecessary drawings and labels to keep the chart clean and maintain focus on key market signals.
How It Works:
Statistical Thresholds: The indicator calculates volatility using both a standard Bollinger Bands approach and a percentile-based threshold, ensuring that only statistically significant movements trigger a signal.
Volume Confirmation: It compares current volume against an average and recent high-volume benchmarks to confirm that detected spikes are supported by substantial market activity.
Automated Signal Highlighting: When a valid spike is detected based on both price and volume criteria, the indicator automatically changes the background color of the bar where the spike occurs, drawing immediate attention to the event.
Use Cases:
Identifying Breakout or Reversal Points: Quickly spot periods of high volatility that might indicate potential entry or exit points.
Enhanced Risk Management: Recognize sudden market shifts early, helping you adjust positions or tighten stop losses during periods of increased risk.
Supplementary Analysis Tool: Use alongside other technical indicators to validate market conditions and improve your overall trading strategy.
Disclaimer:
This indicator is not intended to generate direct buy or sell signals.
It should be used as a supplementary tool in conjunction with other analysis techniques.
Always conduct your own testing and validation before relying on any indicator in live trading scenarios.
Credits:
This script is an original development by PakunFX and is not copied from any existing work.
It employs common volatility analysis methods but incorporates a unique algorithm to enhance the accuracy and reliability of spike detection.
Order Blocks-[B.Balaei]Order Blocks -
**Description:**
The Order Blocks - indicator is a powerful tool designed to identify and visualize Order Blocks on your chart. Order Blocks are key levels where significant buying or selling activity has occurred, often acting as support or resistance zones. This indicator supports multiple timeframes (MTF), allowing you to analyze Order Blocks from higher timeframes directly on your current chart.
**Key Features:**
1. **Multi-Timeframe Support**: Choose any timeframe (e.g., Daily, Weekly) to display Order Blocks from higher timeframes.
2. **Customizable Sensitivity**: Adjust the sensitivity to detect more or fewer Order Blocks based on market conditions.
3. **Bullish & Bearish Order Blocks**: Clearly distinguishes between bullish (green) and bearish (red) Order Blocks.
4. **Alerts**: Get notified when price enters a Bullish or Bearish Order Block zone.
5. **Customizable Colors**: Personalize the appearance of Order Blocks to match your chart style.
**How to Use:**
1. Add the indicator to your chart.
2. Select your desired timeframe from the "Multi-Timeframe" settings.
3. Adjust the sensitivity and colors as needed.
4. Watch for Order Blocks to form and use them as potential support/resistance levels.
**Ideal For:**
- Swing traders and position traders looking for key levels.
- Traders who use multi-timeframe analysis.
- Anyone interested in understanding market structure through Order Blocks.
**Note:**
This indicator is for educational and informational purposes only. Always conduct your own analysis before making trading decisions.
**Enjoy trading with Order Blocks - !**
DTFX Time Based RangesThis indicator is based on the DTFX video "Time Based Ranges" by Dave Teaches.
It marks out the 9am (or whatever hour you choose) hourly candle and extends a box with an initial color of gray (or whatever you set it to).
Once there is an hourly close above or below the box it will change the color to indicate the bias of the 9am candle range.
You are able to set in the settings a mitigation % of the box. That is, how far retracement must occur into the box before it stops extending the box. You can also select if simply a wick past the set mitigation level is required or if a full hourly closed candle past the mitigation level is required.
30,50,70 lines are plotted on each box, but are able to be turned on or off in the settings.
**Please keep in mind that if you are on a low timeframe, there are "less bars back" available to be worked with than if you are on a higher time frame. My suggested use for this indicator is to load it on the 1hr timeframe, manually mark out boxes and levels you are interested in or believe price will likely interact with, and then turn the indicator off for the day.**
This indicator does nothing that can not be done by hand. It just helps you do it slightly faster and possibly catch something you may miss manually.
Enjoy.
Pearson Correlation Best MA [victhoreb]Pearson Correlation Best MA is an innovative indicator designed to dynamically select the moving average that best aligns with price action based on the Pearson correlation coefficient. Here’s what it does:
- Multiple MA Evaluation: The indicator computes eight different moving averages — SMA, EMA, DEMA, TEMA, LSMA, RMA, WMA, and VWMA — using a user-defined period.
- Correlation Analysis: For each moving average, it calculates the Pearson correlation with the price (using the average of high and low) over a specified correlation length, then identifies the one with the highest correlation.
- Optional Smoothing: Users can opt to further smooth the selected best moving average for an even more refined signal.
- Visual Cues: The indicator plots the “Best MA” on the chart, colors it based on its direction (bullish or bearish), and also displays the correlation value. Additionally, it can color the price candles to reflect the trend indicated by the best moving average.
- Customizability: All key parameters such as moving average length, correlation length, smoothing options, and color settings are fully customizable.
This tool helps traders by automatically adapting to market conditions—highlighting the moving average that is most in sync with current price trends, potentially improving trade timing and decision-making.
Candle Trend ConfirmationCandle Trend Confirmation Indicator
The "Candle Trend Confirmation" indicator This indicator leverages an Exponential Moving Average (EMA) to visually confirm market trends through dynamic coloring of the EMA line, a shading effect, and candle color changes. It aims to help traders quickly identify strong trends and consolidation phases, enhancing decision-making in various market conditions.
Key Features
Customizable EMA Period:
Traders can adjust the EMA period via an input parameter, with a default setting of 20 periods. This flexibility allows the indicator to adapt to different timeframes and trading strategies.
Pip Threshold for Trend Strength:
A user-defined pip threshold (default set to 0.02) determines the distance from the EMA required to classify a trend as "strong." This parameter can be fine-tuned to suit specific instruments, such as forex pairs, cryptocurrencies, or stocks, where pip values may differ.
Trend Detection Logic:
Strong Uptrend: The closing price must be above the EMA by at least the pip threshold (e.g., 2 pips) and show consistent upward movement over the last three bars (current close > previous close > close two bars ago).
Strong Downtrend: The closing price must be below the EMA by at least the pip threshold and exhibit consistent downward movement over the last three bars.
Consolidation: Any price action that doesn’t meet the strong trend criteria is classified as a consolidation phase.
Dynamic Coloring:
EMA Line: Displayed using the line.new function, the EMA changes color based on trend conditions: green for a strong uptrend, red for a strong downtrend, and purple for consolidation. The line is drawn only for the most recent bar to maintain chart clarity.
Candles: Candlestick colors mirror the trend state—green for strong uptrends, red for strong downtrends, and purple for consolidation—using the barcolor function, providing an immediate visual cue.
Shading Effect: Two dashed lines are drawn above and below the EMA (at half the pip threshold distance) to create a subtle shading zone. These lines adopt a semi-transparent version of the EMA’s color, enhancing the visual representation of the trend’s strength.
How It Works
The indicator calculates the EMA based on the closing price and compares the current price to this average. By incorporating a pip-based threshold and a three-bar confirmation, it filters out noise and highlights only significant trend movements. The use of line.new instead of plot ensures compatibility with certain TradingView environments and offers a lightweight way to render the EMA and shading lines on the chart.
Usage
Trend Identification: Green signals a strong bullish trend, ideal for potential long entries; red indicates a strong bearish trend, suitable for short opportunities; purple suggests a range-bound market, where caution or range-trading strategies may apply.
Customization: Adjust the EMA period and pip threshold in the indicator settings to match your trading style or the volatility of your chosen market. For example, forex traders might set the threshold to 0.0002 for 2 pips on EUR/USD, while crypto traders might use 2.0 for BTC/USD.
Visual Clarity: The combination of EMA coloring, shading, and candle highlights provides a comprehensive view of market dynamics at a glance.
Trend SCANThe visually important moving averages EMA5, EMA20, EMA144 and EMA169 are seen on the indicator.
However, the main purpose of the indicator is to combine the changes in the rsi, ema, volume, momentum and cci data on the stock and to display them in a label on the chart with a formula aimed at determining the stocks that are in an uptrend.
The group that the stock group is desired to be scanned from the indicator settings is selected and the scanning process is instantly visible on the label in the chart period or in the time interval selected outside the chart period.
The stock groups are grouped as BIST50, BIST100, Yildiz Pazar and Main Pazar. But these can be selected as desired.
Non-Repainting Renko Emulation Strategy [PineIndicators]Introduction: The Repainting Problem in Renko Strategies
Renko charts are widely used in technical analysis for their ability to filter out market noise and emphasize price trends. Unlike traditional candlestick charts, which are based on fixed time intervals, Renko charts construct bricks only when price moves by a predefined amount. This makes them useful for trend identification while reducing small fluctuations.
However, Renko-based trading strategies often fail in live trading due to a fundamental issue: repainting .
Why Do Renko Strategies Repaint?
Most trading platforms, including TradingView, generate Renko charts retrospectively based on historical price data. This leads to the following issues:
Renko bricks can change or disappear when new data arrives.
Backtesting results do not reflect real market conditions. Strategies may appear highly profitable in backtests because historical data is recalculated with hindsight.
Live trading produces different results than backtesting. Traders cannot know in advance whether a new Renko brick will form until price moves far enough.
Objective of the Renko Emulator
This script simulates Renko behavior on a standard time-based chart without repainting. Instead of using TradingView’s built-in Renko charting, which recalculates past bricks, this approach ensures that once a Renko brick is formed, it remains unchanged .
Key benefits:
No past bricks are recalculated or removed.
Trading strategies can execute reliably without false signals.
Renko-based logic can be applied on a time-based chart.
How the Renko Emulator Works
1. Parameter Configuration & Initialization
The script defines key user inputs and variables:
brickSize : Defines the Renko brick size in price points, adjustable by the user.
renkoPrice : Stores the closing price of the last completed Renko brick.
prevRenkoPrice : Stores the price level of the previous Renko brick.
brickDir : Tracks the direction of Renko bricks (1 = up, -1 = down).
newBrick : A boolean flag that indicates whether a new Renko brick has been formed.
brickStart : Stores the bar index at which the current Renko brick started.
2. Identifying Renko Brick Formation Without Repainting
To ensure that the strategy does not repaint, Renko calculations are performed only on confirmed bars.
The script calculates the difference between the current price and the last Renko brick level.
If the absolute price difference meets or exceeds the brick size, a new Renko brick is formed.
The new Renko price level is updated based on the number of bricks that would fit within the price movement.
The direction (brickDir) is updated , and a flag ( newBrick ) is set to indicate that a new brick has been formed.
3. Visualizing Renko Bricks on a Time-Based Chart
Since TradingView does not support live Renko charts without repainting, the script uses graphical elements to draw Renko-style bricks on a standard chart.
Each time a new Renko brick forms, a colored rectangle (box) is drawn:
Green boxes → Represent bullish Renko bricks.
Red boxes → Represent bearish Renko bricks.
This allows traders to see Renko-like formations on a time-based chart, while ensuring that past bricks do not change.
Trading Strategy Implementation
Since the Renko emulator provides a stable price structure, it is possible to apply a consistent trading strategy that would otherwise fail on a traditional Renko chart.
1. Entry Conditions
A long trade is entered when:
The previous Renko brick was bearish .
The new Renko brick confirms an upward trend .
There is no existing long position .
A short trade is entered when:
The previous Renko brick was bullish .
The new Renko brick confirms a downward trend .
There is no existing short position .
2. Exit Conditions
Trades are closed when a trend reversal is detected:
Long trades are closed when a new bearish brick forms.
Short trades are closed when a new bullish brick forms.
Key Characteristics of This Approach
1. No Historical Recalculation
Once a Renko brick forms, it remains fixed and does not change.
Past price action does not shift based on future data.
2. Trading Strategies Operate Consistently
Since the Renko structure is stable, strategies can execute without unexpected changes in signals.
Live trading results align more closely with backtesting performance.
3. Allows Renko Analysis Without Switching Chart Types
Traders can apply Renko logic without leaving a standard time-based chart.
This enables integration with indicators that normally cannot be used on traditional Renko charts.
Considerations When Using This Strategy
Trade execution may be delayed compared to standard Renko charts. Since new bricks are only confirmed on closed bars, entries may occur slightly later.
Brick size selection is important. A smaller brickSize results in more frequent trades, while a larger brickSize reduces signals.
Conclusion
This Renko Emulation Strategy provides a method for using Renko-based trading strategies on a time-based chart without repainting. By ensuring that bricks do not change once formed, it allows traders to use stable Renko logic while avoiding the issues associated with traditional Renko charts.
This approach enables accurate backtesting and reliable live execution, making it suitable for trend-following and swing trading strategies that rely on Renko price action.
TrendPredator FOTrendPredator Fakeout Highlighter (FO)
The TrendPredator Fakeout Highlighter is designed to enhance multi-timeframe trend analysis by identifying key market behaviors that indicate trend strength, weakness, and potential reversals. Inspired by Stacey Burke’s trading approach, this tool focuses on trend-following, momentum shifts, and trader traps, helping traders capitalize on high-probability setups.
At its core, this indicator highlights peak formations—anchor points where price often locks in trapped traders before making decisive moves. These principles align with George Douglas Taylor’s 3-day cycle and Steve Mauro’s BTMM method, making the FO Highlighter a powerful tool for reading market structure. As markets are fractal, this analysis works on any timeframe.
How It Works
The TrendPredator FO highlights key price action signals by coloring candles based on their bias state on the current timeframe.
It tracks four major elements:
Breakout/Breakdown Bars – Did the candle close in a breakout or breakdown relative to the last candle?
Fakeout Bars (Trend Close) – Did the candle break a prior high/low and close back inside, but still in line with the trend?
Fakeout Bars (Counter-Trend Close) – Did the candle break a prior high/low, close back inside, and against the trend?
Switch Bars – Did the candle lose/ reclaim the breakout/down level of the last bar that closed in breakout/down, signalling a possible trend shift?
Reading the Trend with TrendPredator FO
The annotations in this example are added manually for illustration.
- Breakouts → Strong Trend
Multiple candles closing in breakout signal a healthy and strong trend.
- Fakeouts (Trend Close) → First Signs of Weakness
Candles that break out but close back inside suggest a potential slowdown—especially near key levels.
- Fakeouts (Counter-Trend Close) → Stronger Reversal Signal
Closing against the trend strengthens the reversal signal.
- Switch Bars → Momentum Shift
A shift in trend is confirmed when price crosses back through the last closed breakout candles breakout level, trapping traders and fuelling a move in the opposite direction.
- Breakdowns → Trend Reversal Confirmed
Once price breaks away from the peak formation, closing in breakdown, the trend shift is validated.
Customization & Settings
- Toggle individual candle types on/off
- Customize colors for each signal
- Set the number of historical candles displayed
Example Use Cases
1. Weekly Template Analysis
The weekly template is a core concept in Stacey Burke’s trading style. FO highlights individual candle states. With this the state of the trend and the developing weekly template can be evaluated precisely. The analysis is done on the daily timeframe and we are looking especially for overextended situations within a week, after multiple breakouts and for peak formations signalling potential reversals. This is helpful for thesis generation before a session and also for backtesting. The annotations in this example are added manually for illustration.
📈 Example: Weekly Template Analysis snapshot on daily timeframe
2. High Timeframe 5-Star Setup Analysis (Stacey Burke "ain't coming back" ACB Template)
This analysis identifies high-probability trade opportunities when daily breakout or down closes occur near key monthly levels mid-week, signalling overextensions and potentially large parabolic moves. Key signals for this are breakout or down closes occurring on a Wednesday. This is helpful for thesis generation before a session and also for backtesting. The annotations in this example are added manually for illustration. Also an indicator can bee seen on this chart shading every Wednesday to identify the signal.
📉 Example: High Timeframe Setup snapshot
3. Low Timeframe Entry Confirmation
FO helps confirm entry signals after a setup is identified, allowing traders to time their entries and exits more precisely. For this the highlighted Switch and/ or Fakeout bars can be highly valuable.
📊 Example (M15 Entry & Exit): Entry and Exit Confirmation snapshot
📊 Example (M5 Scale-In Strategy): Scaling Entries snapshot
The annotations in this examples are added manually for illustration.
Disclaimer
This indicator is for educational purposes only and does not guarantee profits.
None of the information provided shall be considered financial advice.
Users are fully responsible for their trading decisions and outcomes.
🌊 WaveReader 3.0 FREE GOLD/XAU/ADA/SOL/USD/USDTWaveReader Pro 3.0 – Complete Guide to Successful Trading
Introduction
1. Basics of WaveReader Pro 3.0
The WaveReader Pro 3.0 combines multiple analysis techniques to deliver precise trading signals. It is based on:
Volume Analysis → Measures buying and selling pressure
Market Structure → Identifies key support and resistance levels
Momentum → Detects the strength of a price movement
Fibonacci Extensions → Helps determine possible entry and target zones
Psychological Price Levels → Recognizes key areas that many traders watch
Key Advantage:
The indicator works on any market and timeframe – Forex, Crypto, Stocks, and Indices.
2. The TrendCloud – How to Read Market Trends
The TrendCloud helps you identify the market direction:
Green → Bullish trend (Potential buy signal)
Red → Bearish trend (Potential sell signal)
Gray → Neutral trend (No clear direction, wait for confirmation)
Pro Tip:
If the TrendCloud is green, focus on long setups.
If the TrendCloud is red, focus on short setups.
Additionally, the HTF Box (Higher Timeframe Box) shows trends on higher timeframes, helping you align your trades with the overall market direction.
3. Key Price Levels: NDOs & Liquidity Blocks
The WaveReader Pro 3.0 highlights important price levels where the market is likely to react.
Naked Daily, Weekly & Monthly Opens (NDO/NWO/NMO)
These lines mark the opening prices of the last daily, weekly, and monthly candles, which have not been touched again.
Why are these levels important?
Many traders use them as reference points.
They often act as psychological support or resistance zones.
Liquidity Blocks (LBs)
These indicate areas where significant institutional trading activity takes place.
Each Liquidity Block contains the Point of Control (PoC) – the price level with the highest volume within the zone.
By using these levels, you can identify high-probability entry and exit points with greater accuracy.
4. The Confluence Box – High Accuracy Trading Setups
The WaveReader Confluence Box (CB) helps identify trading setups with high accuracy (89% success rate).
If the price is above a newly formed CB → Long setup confirmation
If the price is below a newly formed CB → Short setup confirmation
This feature helps traders enter positions with higher confidence while minimizing risk.
5. Entries & Exits – Executing Your Trades Effectively
The WaveReader Pro 3.0 provides clear visual markers for entries and exits.
Entries – First Trade Entry:
Entry Long (Green) → Indicates a buy position.
Entry Short (Red) → Indicates a sell position.
Re-Entries – Adding to an Existing Trade:
Re-Entry Long (Small Green Icon) → Additional buy within an uptrend.
Re-Entry Short (Small Red Icon) → Additional sell within a downtrend.
Take-Profits – Locking in Profits:
Take-Profit Long (✔ Green) → Target reached for a buy trade.
Take-Profit Short (✔ Red) → Target reached for a sell trade.
Stop-Loss – Risk Management:
If a trade is stopped out before reaching the target, a red “X” appears on the chart.
These clear visual signals help traders plan trades efficiently and manage risk effectively.
6. Final Thoughts – How to Optimize Your Trading with WaveReader Pro 3.0
The WaveReader Pro 3.0 provides a structured approach to trading by offering:
Automated Stop-Loss and Target Levels
Clear visual signals for better decision-making
Quick identification of market trends and liquidity zones
Additional Features for More Precision:
Waveline → Highlights market structure and swings.
Equal Highs & Lows → Identifies liquidity zones where the market may react.
Entry Warnings → Alerts for potential false entries.
By integrating these tools, traders can make more precise and profitable trading decisions.
7. Call-to-Action – Your Next Step!
This was the complete guide to WaveReader Pro 3.0.
Did you find this helpful?
Do you have questions? Drop a comment below.
Good luck with your trading
Triangular Hull Moving Average + Volatility [BigBeluga]This indicator combines the Triangular Hull Moving Average (THMA) with a volatility overlay to provide a smoother trend-following tool while dynamically visualizing market volatility.
🔵 Key Features:
THMA-Based Trend Detection: The indicator applies a Triangular Hull Moving Average (THMA) to smooth price data, reducing lag while maintaining responsiveness to trend changes.
// THMA
thma(_src, _length) =>
ta.wma(ta.wma(_src,_length / 3) * 3 - ta.wma(_src, _length / 2) - ta.wma(_src, _length), _length)
Dynamic Volatility Bands: When enabled, the indicator displays wicks extending from the THMA-based candles. These bands expand and contract based on price volatility.
Trend Reversal Signals The indicator marks trend shifts using triangle-shaped signals:
- Upward triangles appear when the THMA trend shifts to bullish.
- Downward triangles appear when the THMA trend shifts to bearish.
Customizable Settings: Users can adjust the THMA length, volatility calculation period, and colors for up/down trends to fit their trading style.
Informative Dashboard: The bottom-right corner displays the current trend direction and volatility percentage, helping traders quickly assess market conditions.
🔵 Usage:
Trend Trading: The colored candles indicate whether the market is trending up or down. Traders can follow the trend direction and use trend reversals for entry or exit points.
Volatility Monitoring: When the volatility feature is enabled, the expanding or contracting wicks help visualize market momentum and potential breakout strength.
Signal Confirmation: The triangle signals can be used to confirm potential entry points when the trend shifts.
This tool is ideal for traders who want a responsive moving average with volatility insights to enhance their trend-following strategies.
Distance: EMA | 52W High/Low | 65D LowThis is handy while scanning for strength.
Shows the % distance between the stock price and:
1. EMA of your choice
2. 52W High and Low
3. 65 Day Low of the stock
The way I use it:
- You can pin it to a new scale on the right side
- Make the lines completely transparent (0% opacity)
- Colour code the tags so that it becomes a ready reference for scanning.
Refer to this image:
RSI Divergence Indicator - EnhancedOverview: A Pine Script v6 indicator that detects Regular Bullish ("Bull") and Regular Bearish ("Bear") RSI divergences to predict price reversals with enhanced accuracy. Excludes Hidden Bullish and Hidden Bearish signals from plotting but includes them in alerts