BUY & SELL Dynamic DCA StrategyOverview
The BUY & SELL Dynamic DCA Strategy is a versatile Pine Script indicator designed for traders seeking a robust Dollar Cost Averaging (DCA) approach to manage both long and short positions across various market conditions and timeframes. This innovative tool combines breakout-based level initiation with a dynamic volatility adjustment, enabling traders to enter positions at optimal DCA points, average them strategically, and manage risk with adjustable stop-loss and take-profit levels. Ideal for scalping on short timeframes (1-minute, 5-minute) or swing trading on longer ones (15-minute, 1-hour, 4-hour).
Purpose and Originality
The "BUY & SELL Dynamic DCA Strategy" stands out by integrating several trading concepts into a cohesive, trader-friendly system. While it leverages familiar elements like breakout points and ATR (Average True Range), its originality lies in:
Dynamic Volatility Adjustment: A custom volatility factor, derived from a capped ATR calculation, dynamically scales DCA entry, averaging, and stop-loss levels. This ensures the strategy adapts to market conditions, tightening in low volatility for scalping and widening in high volatility for swing trading.
Dual-Direction DCA: Supports both buy (long) entries on pullbacks and sell (short) entries on rallies, with tailored averaging and exit strategies for each.
Timeframe Versatility: Adjusts its sensitivity based on the chart timeframe, making it suitable for rapid scalping or longer-term trend riding without requiring manual recalibration.
This unique synthesis justifies its publication as a invite-only script, offering a practical tool that enhances traditional DCA methods with adaptive precision.
How It Works
The indicator operates through a multi-step process designed to optimize entry, averaging, and exit points:
1. Initial Level Setting:
Utilizes high and low threshold (calculated over a user-defined period) to establish initial DCA entry levels. If no threshold is detected, it defaults to the previous bar’s price, ensuring immediate applicability.
2. Dynamic DCA Entry:
Entry levels are adjusted using a proprietary volatility factor, which scales the distance from the current price. Long entries trigger when the price falls below this level, while short entries trigger when the price rises above it, with a volume confirmation filter to reduce noise.
3. Averaging Mechanism:
A secondary level (Averaging Level) allows traders to add to their position when the price moves further against the trade (down for longs, up for shorts). This level is also volatility-adjusted, providing a structured cost-reduction strategy.
4. Risk and Reward Management:
A Final Stop-Loss (Final SL) is set farther out, calculated as a multiple of the volatility-adjusted risk distance, offering protection after averaging.
Take-Profit (TP) levels are determined using a user-defined risk-to-reward ratio, ensuring a balanced exit strategy tailored to market movement.
5. Performance Tracking:
A real-time win/loss table in the top-right corner records trade outcomes, with wins and losses color-coded based on the trade direction (green/red for long, red/green for short), aiding performance evaluation.
Features
1. Dual-Mode Operation : Facilitates both long entries on price dips and short entries on price surges, adaptable to bullish and bearish markets.
2. Volatility-Adaptive Levels: Employs a custom ATR-based adjustment to scale entry, averaging, and stop-loss levels, enhancing responsiveness across timeframes.
3. Visual Tools: Features dashed lines and labels for DCA Entry (green for long, red for short), Final SL (red), and TP (cyan), with debug labels for entries and averages.
4. Timeframe Flexibility: Automatically adjusts threshold periods and volatility factors based on the chart timeframe (1m, 5m, 15m, 1h, 4h), optimizing for scalping or swing trading.
5. Customizable Parameters: Allows fine-tuning of period, DCA factors, and visibility options.
Settings
Base Length (default: 10): Base period for pivot calculations, scaled by timeframe (e.g., 10 becomes 20 on 5m).
Type: 'Wicks' (high/low) or 'Body' (open/close) for price-based levels.
RR Ratio (default: 1.2): Risk-to-reward ratio for TP calculation.
DCA Entry Factor (default: 1.0): Multiplier for volatility-adjusted DCA entry distance.
Avg Level Factor (default: 2.0): Multiplier for averaging level distance.
Final SL Factor (default: 3.0): Multiplier for final stop-loss distance.
SL Type: 'Close' or 'High/Low' for stop-loss evaluation.
Show DCA Entry, Show Avg Level, Show Final SL: Toggle visibility of respective lines.
Show Win/Loss Table: Enable/disable performance tracking.
Line Style: Select 'Solid', 'Dashed', or 'Dotted'.
Usage Instructions
1. Application:
Add the "BUY & SELL Dynamic DCA Strategy - JOAT" via the Pine Editor or community scripts on TradingView.
2. Configuration:
Scalping (1m, 5m): Set Base Length to 5-10, use a low DCA Entry Factor (0.5-1.0) for tight entries, and a Final SL Factor of 2.0-3.0.
Swing Trading (15m, 1h, 4h): Increase Base Length to 15-20, use a higher DCA Entry Factor (1.0-2.0), and set Final SL Factor to 3.0-4.0 for wider stops.
Enable visual elements and adjust Line Style as preferred.
3. Signal Interpretation:
Long Trade: A green dashed "DCA Entry" line below the price triggers a "Long Entry" label on crossover down.
Short Trade: A red dashed "DCA Entry" line above the price triggers a "Short Entry" label on crossover up.
Averaging: A yellow "Avg" label (long) or magenta "Avg" label (short) appears at the respective averaging level.
Exits: TP (cyan) for wins, Final SL (red) for losses, tracked in the win/loss table.
Trade Management:
Scalping: Use 1m/5m for quick trades, averaging as price moves against you.
Swing Trading: Use 15m/1h/4h to capture trends, averaging for cost adjustment.
Manually adjust position size for averaging based on risk tolerance.
5. Performance Monitoring:
The top-right table updates with wins (green/red) and losses (red/green) per trade type, helping assess strategy effectiveness.
Limitations
Manual Averaging: Requires manual position size adjustment at the Averaging Level; automation is not included.
Timeframe Sensitivity: May require parameter tuning for optimal performance across 1m to 4h.
No Trend Filter: Sideways markets may generate noise; adding a trend indicator could enhance accuracy (future development).
Initialization Delay: First trade may be delayed until a pivot is detected, using the current price as a fallback.
Originality Justification
The custom volAdj method, which caps ATR at a percentage of price and scales it by timeframe, offering a unique volatility adjustment not found in standard indicators.
The dual-direction DCA with averaging, combining long and short strategies with volatility-modulated levels, providing a comprehensive trading framework.
The timeframe-adaptive design, automatically adjusting pivot periods and volatility factors, making it a versatile tool across scalping and swing trading.
Multitimeframe
MTF Moving Averages (only EMA)MTF Moving Averages (only EMA)
This script provides a Multi-Timeframe (MTF) Exponential Moving Average (EMA) indicator for traders to visualize multiple EMAs across different timeframes directly on a single chart.
The indicator dynamically calculates and plots up to four EMAs per timeframe (15-minute, 30-minute, 1-hour, and Daily) with user-defined lengths, offering valuable insight into price trends and potential entry or exit points.
Key Features:
Multiple Timeframe Support: The script allows you to view EMAs from different timeframes simultaneously. This is especially useful for traders who follow trends across different timeframes to make more informed decisions.
Customizable Lengths: For each timeframe, the lengths of the EMAs are fully customizable. You can adjust the length of up to four EMAs per timeframe to suit your strategy.
EMA Calculation: The Exponential Moving Average (EMA) is used, which gives more weight to recent prices and reacts faster to price changes compared to the simple moving average (SMA).
Timeframe Flexibility: The indicator supports the following timeframes:
15-minute: Ideal for short-term traders and scalpers.
30-minute: For intraday trading with a slightly longer perspective.
1-hour: Suitable for swing traders and those who prefer a more medium-term view.
Daily: Great for longer-term trend-following strategies.
Interactive and User-Friendly: You can toggle the visibility of each EMA on each timeframe, allowing you to choose exactly which EMAs you wish to display, depending on your trading strategy.
Color-Coded for Clarity: The script uses distinct colors for each EMA on the chart:
Blue: EMA1
Green: EMA2
Red: EMA3
Purple: EMA4
Line Width Customization: Each plotted EMA line has a customizable width for better visual clarity.
Use Case:
Traders who use multiple timeframes for analysis (e.g., those using the "multi-timeframe analysis" technique) will find this script particularly useful. For example, a trader may look at the 15-minute chart to catch short-term movements, the 30-minute chart for intraday trends, the 1-hour chart for swing positions, and the Daily chart for identifying the overarching market trend. The script enables them to view the EMAs for all these timeframes in one glance without having to manually switch between them.
By observing the relationships between EMAs across multiple timeframes, traders can gain valuable insights into market conditions such as:
Crossovers: When a shorter-term EMA crosses above or below a longer-term EMA, it can signal a potential trend reversal or continuation.
Trend Strength: Multiple EMAs in alignment across different timeframes can indicate strong trend strength.
Support and Resistance: EMAs can act as dynamic support and resistance levels, guiding traders on price action levels to watch for potential price reversals.
Instructions:
Enable/Disable EMAs: Toggle on or off the EMAs for each timeframe (15-min, 30-min, 1-hour, Daily) using the script’s settings.
Adjust EMA Lengths: Change the default lengths for each EMA to match your preferred settings for different timeframes.
Monitor Key Levels: Watch how price interacts with the plotted EMAs to spot potential trading signals based on your strategy.
This indicator is designed to enhance your multi-timeframe analysis and help make more informed, data-driven trading decisions.
Hidden LiquidityHidden Liquidity Indicator: Detecting Breaker Blocks and Hidden Order Blocks (HOBs)
The Hidden Liquidity Indicator is a powerful tool designed to assist traders in identifying breaker blocks and hidden order blocks (HOBs). By analyzing untouched candle bodies within order blocks, it provides a systematic approach to evaluating fair value gaps (FVGs) and order blocks based on engulfing candles.
Features of the Hidden Liquidity Indicator
This indicator effectively differentiates between complete HOBs, partial HOBs and partially mitigated HOBs (PMHOBs), allowing traders to assess market structure with precision. The key classifications include:
HOB (Hidden Order Block): The candle body fully aligns within the FVGs without being touched by wicks, establishing a strong and reliable breaker block.
PMHOB (Partial Mitigated Hidden Order Block) : The candle body is mitigated by less than 50%, making it a weaker version of the Hidden OB.
PHOBs (Partial Hidden Orderblock) : The candle body fits at least by 50% in the FVG making it also weaker than a common HOB
For an HOB to be considered valid, its equilibrium must be crossed by the FVGs, ensuring a focused and high-quality analysis of market structure.
Visualization and Market Structure Analysis
The Hidden Liquidity Indicator utilizes distinct color codes to enhance readability and clarity:
Bullish HOBs – Green
Bearish HOBs – Red
PMHOBs – Orange
PHOBs - Blue
Multi-Timeframe Analysis (MTF)
The indicator is capable of identifying HOBs,PHOBS and PMHOBs across all timeframes. Traders can seamlessly integrate their preferred timeframes by configuring the settings in TradingView.
Settings
You can choose wether you want the indicator to show PHOBs and PMHOBs
Why Use the Hidden Liquidity Indicator?
This indicator provides a structured and precise methodology for analyzing order blocks and breaker blocks. By focusing on untouched candle bodies and equilibrium levels, it offers a unique perspective on market structure that is often overlooked by traditional order block indicators. Its multi-timeframe analysis capability makes it an indispensable tool for traders seeking to refine their market strategy and enhance decision-making.
This guide serves as a comprehensive reference for optimizing the Hidden Liquidity Indicator, enabling traders to leverage its full potential for effective market analys
RSI Targeted Pivots"Targeted RSI Pivots" is an innovative indicator designed to assist traders in identifying potential price targets based on user-defined RSI levels. Unlike traditional RSI indicators, this script calculates and projects pivot levels (L3, L2, L1, P, S1, S2, S3) using a unique algorithm that integrates RSI data from a selectable timeframe. Traders can customize RSI targets, toggle individual levels, and adjust visual settings to suit their analysis needs—all overlaid directly on the price chart for seamless integration into their workflow.
This script stands out by offering a novel approach to RSI-based analysis, combining multi-timeframe RSI calculations with dynamic price projections. It empowers traders with actionable insights into potential support and resistance zones, enhancing decision-making in various market conditions.
The source code is kept closed to protect the proprietary methodology behind the pivot calculations and to safeguard the intellectual property developed through extensive research and testing. By publishing it as a protected script in the Public Library, I aim to share this valuable tool with the TradingView community while preserving the uniqueness of its design. This ensures that traders can benefit from its functionality without compromising the innovative logic that drives it.
Custom Previous High/Low + Breakout AlertsThis indicator plots the previous high and low of the selected timeframe and alerts you when the price breaks either level.
To prevent spam, it triggers only once per period. If both the high and low break within the same period, you will receive an alert for each, but no duplicates if price hovers around these levels.
How to Set Up Alerts
1. Choose Your Timeframe
- In the indicator settings, select the timeframe for the high/low reference.
- Example: If you select 1 hour, the indicator will plot the previous 1-hour high and low and alert you when either level is broken
2. Create an Alert
- Condition → High/Low Break Alerts
- Function → Any alert() function call
Optional:
- If you want alerts only for high breakouts or low breakouts, select High Breakout or Low Breakout and use "Once Per Bar" as the trigger. (It will still alert only once per period.)
3. Setting Alerts for Multiple Timeframes
- If you want to create another alert for a different timeframe, first select the new timeframe in the indicator settings, then create a new alert
- Note: Previous alerts will continue to notify you based on the timeframe they were originally set for, even if you change the timeframe in the indicator settings.
neXt FVG MTF PRO [cognyto]The neXt FVG Multi-Timeframe Indicator represents a remarkable edge in Fair Value Gap analysis. It offers traders a comprehensive and simplified interface to simultaneously monitor Fair Value Gaps across up to 9 different configurable timeframes . This feature shows traders exclusively the closest and most relevant gaps, enabling more precise top-down price action analysis. This makes it particularly valuable for strategies focused on market liquidity and inefficiencies.
Here are the 10 fundamental features that distinguish this indicator
1. Intelligent Visualisation of Next Gaps
An advanced filtering system is implemented to prioritise the visualisation of the nearest FVGs, hence its name -next-, offering a clean FVGs layout on the screen and improving analysis precision. The visualisation system continuously updates according to market price evolution, and as FVGs appear, are mitigated, or eliminated across different timeframes, it updates to ensure a structured and efficient interface.
2. Top-Down Multi-Timeframe Analysis
An efficient visualisation system is implemented to simultaneously manage up to 9 different timeframes. The differentiation between FVGs and their timeframes is established through proportional length in their visual presentation, where higher timeframes extend further to the right, establishing a clear visual hierarchy. The further right the gap extends, the stronger its significance. This structure allows visualization of both current timeframe gaps and those of higher timeframes, facilitating comprehensive market analysis.
3. Alerts
The indicator incorporates a complete notification system that allows users to stay informed in real-time about a wide range of critical events related to Gaps. This system includes customisable alerts for new Fair Value Gaps formation, mitigation notifications, and precise identification of significant gap breakout patterns, technically known as Breakaway gaps.
4. Mitigation
Mitigations represent a fundamental element in technical analysis, identifying zones where price has reached equilibrium. Considering the analytical importance of mitigated gaps, the indicator maintains their visualisation with a specific different color distinction. Additionally, it includes optional functionality for removing mitigated gaps, which can be activated according to user preferences.
5. BISI and SIBI
In addition to the FVGs present in all timeframes, the indicator facilitates precise configuration of BISI and SIBI gaps in the current timeframe, maintaining dynamic visualisation during the additional analysis process alongside other timeframes. This feature optimises the evaluation of historical market imbalances and inefficiencies, offering significant analytical perspectives in the current timeframe, and even refining market entry or exit strategies.
6. Breakaway-Gaps
The indicator provides advanced functionality for identifying and analysing Breakaway-Gaps, presenting in a structured manner the corresponding candle formations that create the Gap. This feature allows precise evaluation of strong market movements, including the assessment of potential retracements and directional patterns in high volatility conditions.
7. Consequent-Encroachment (C.E.)
The indicator implements advanced functionality that visualizes the midpoint of the displacement candle that generates the gap, using precise calculation based on the opening and closing levels of that candle.
8. FVG Fulfilment
The indicator offers advanced configuration options for FVG fullfilmet conditions through two main criteria: confirmation through candle closure that exceeds the established FVG limits, or validation through the intersection of extreme candle levels (maximum/minimum) with the FVG threshold.
9. FVG-Visualisations
Gaps are visualised on the platform once the third candle formation is complete. The system provides optional visualisation functionality during the formation process, although this feature is specifically recommended for predictive analysis, being most effective during daily or weekly market closing intervals. This feature maintains its consistency exclusively in the active timeframe.
10. Customisation
The indicator presents a wide range of advanced customisation options, facilitating comprehensive modification of visual elements. This includes professional adaptation of color palettes, typographic dimensions, line configurations, and design attributes, allowing precise optimisation according to specific user analytical requirements.
This indicator is available exclusively on TradingView. To access it, please see the ‘Author's Instructions’ above and visit our website.
DISCLAIMER
This indicator is provided for informational and educational purposes only. It does not constitute financial advice, trading advice, or any other type of advice, and should not be interpreted as a recommendation to buy, sell, or hold any investment or security of any kind. The information provided by this indicator is not intended as a substitute for professional financial advice. Users of this indicator bear sole responsibility for their trading and investment decisions, including the interpretation of market data and signals generated by this indicator. Past performance is not indicative of future results. Trading financial markets carries substantial risk of loss. Users should conduct their own research, seek professional advice when needed, and exercise due diligence before making any trading or investment decisions.
Automate Multi-Timeframe Period Separators - By KaVeHVersion 1.0
Overview
The Automate Multi-Timeframe Period Separators indicator automatically plots vertical separators on your chart to visually distinguish different time intervals. It helps traders quickly identify key session changes, daily transitions, and custom time references without manually drawing lines.
Unlike standard period separators, this script offers enhanced customization options, supports multiple timeframes, and adapts dynamically to different chart resolutions.
Key Features
✅ Multi-Timeframe Support – Works across all timeframes, from seconds to months.
✅ Customizable Time References – Choose between session start time or midnight (00:00) as the reference point.
✅ Time Zone Flexibility – Supports multiple exchange-based and user-defined time zones.
✅ Multiple Line Styles – Customize separator lines with solid, dashed, or dotted styles.
✅ Performance Optimized – Efficiently manages up to 500 separators without cluttering the chart.
How It Works
🔹 This script automatically detects session changes or day boundaries based on user preferences.
🔹 It dynamically adjusts separators based on the current chart timeframe to ensure clarity and relevance.
🔹 Users can modify separator colors, line styles, widths, and display preferences from the settings panel.
What Makes This Indicator Unique?
🔹 More Flexible than Built-in TradingView Separators – Allows custom time references, multiple time zones, and improved styling options.
🔹 Not a Simple Clone – Unlike existing open-source scripts, this indicator introduces dynamic MTF logic, optimized visibility conditions, and smarter separator management.
🔹 Continuously Updated – This is the first official release, and future updates will refine the logic further.
Timeframe Alignment:
M1 timeframe -> M15 separator
M3 timeframe -> M30 separator
M5 timeframe -> H1 separator
M15 timeframe -> H4 separator
H1 timeframe -> D1 separator
H4 timeframe -> W1 separator
How to Use
1️⃣ Add the indicator to your chart.
2️⃣ Configure your preferred time reference (Session Start / Midnight).
3️⃣ Choose a custom time zone if necessary.
4️⃣ Adjust separator styles, colors, and line width to fit your trading strategy.
5️⃣ Enjoy a clearer, more structured chart layout!
🔹 Important Note:
This is not a duplicate of any existing open-source indicator. It introduces unique logic for better time-based chart structuring, ensuring a clutter-free trading experience.
💡 If you have any suggestions or feature requests, feel free to share them!
🚀 Enhance Your Trading with Smarter Time Separators!
Intrabar Volume Distribution [BigBeluga]Intrabar Volume Distribution is an advanced volume and order flow indicator that visualizes the buy and sell volume distribution within each candlestick.
🔔 Before Use:
Turn off the background color of your candles for clear visibility.
Overlay the indicator on the top layout to ensure accurate alignment with the price chart.
🔵 Key Features:
Inside Bar Volume Visualization:
Each candlestick is divided into two columns:
Left column displays the sell % volume amount.
Right column displays the buy % volume amount.
Provides a clear representation of buyer-seller activity within individual bars.
Percentage Volume Labels:
Labels above each bar show the percentage share of sell and buy volume relative to the total (100%).
Quickly assess market sentiment and volume imbalances.
Point of Control (POC) Levels:
Orange dashed lines mark the POC inside each bar, indicating the price level with the highest traded volume.
Helps identify key liquidity zones within individual candlesticks.
Multi-Timeframe Volume Analysis:
The indicator automatically uses a timeframe 20-30 times lower than the current one to gather detailed volume data.
For each higher timeframe candle, it collects 20-30 bars of lower timeframe data for precise volume mapping.
Each bar is divided into 100 volume bins to capture detailed volume distribution across the price range.
Bins are filled based on the aggregated volume from the lower timeframe data.
Lookback Period:
Allows traders to select how many bars to display with delta and volume information.
The beginning of the selected lookback period is marked with a gray line and label for quick reference.
Indicator displays up to 80 bars back
🔵 Usage:
Order Flow Analysis: Monitor buy/sell volume distribution to spot potential reversals or continuations.
Liquidity Identification: Use POC levels to locate areas of strong market interest and potential support/resistance.
Volume Imbalance Detection: Pay attention to percentage labels for quick recognition of buyer or seller dominance.
Scalping & Intraday Trading: Ideal for traders seeking real-time insight into order flow and volume behavior.
Historical Analysis: Adjust the lookback period to analyze past price action and volume activity.
Intrabar Volume Distribution is a powerful tool for traders aiming to gain deeper insight into market sentiment through detailed volume analysis, allowing for more informed trading decisions based on real-time order flow dynamics.
Market DNA: Structure, Volume, Range, and SessionsMarket DNA: Structure, Volume, Range, and Sessions**
The Market DNA indicator combines market structure, volume analysis, trading ranges, and global trading sessions into a single, comprehensive tool for traders. It helps identify key price levels, volume patterns, consolidation phases, and active market periods, enabling informed trading decisions.
Market Structure Detects swing highs and lows using `ta.pivothigh` and `ta.pivotlow`, plotting them as red/green triangles to highlight support/resistance and trend reversals.
- Fractal Volume Zones (FVG): Highlights areas of significant buying/selling pressure by comparing current volume to an average over a lookback period; high-volume zones are marked with a semi-transparent blue background.
- Trading Range: Defines a price channel using the Average True Range (ATR) and a multiplier, creating upper/lower bands to identify consolidation, breakouts, and potential trade levels.
- Market Sessions: Highlights major global trading sessions (Asia, Europe, US) with colored backgrounds (purple, teal, yellow) to indicate liquidity and volatility shifts.
How It Works
- Swing points help analyze trends and reversals.
- FVG confirms price movements with high volume for stronger signals.
- Trading range bands assist in identifying breakout opportunities and setting stops/take-profits.
- Session highlights allow traders to adapt strategies based on regional activity.
Customization
- Adjust `swing_length` for sensitivity in detecting turning points.
- Modify `volume_lookback` to control volume averaging.
- Tune `range_multiplier` for wider/narrower trading bands.
- Enable/disable session highlighting via `session_highlight`.
Use Cases
- Identify trends and key levels using swing points and FVG.
- Spot breakout opportunities with trading range bands.
- Adapt strategies to regional trading sessions for optimal timing.
This all-in-one indicator provides a clear, customizable view of the market, empowering traders to make data-driven decisions across asset classes and timeframes.
CountdownsDisplays a table of countdowns of the current bar on different time frames.
It shows how much time is left until candle close if we were to change the chart to that time frame, but without the need to do so.
An adaptation of 'Countdown Candle RRS' by reza9300 (), including up to 10 customizable time frames, plus some additional table styling options.
Usage:
Add the indicator to your chart to see a table of countdown timers.
Adjust the settings to customize the appearance and to check / uncheck which time frames to include.
Notes:
Updates are based on price changes, so counters may appear 'frozen' or 'lagging' when there is no real time tick update in price.
OHLC OLHC - Monthly, Weekly, Daily and HourlyThis indicator plots the previous day's (or any selected timeframe’s) Open, High, Low, and Close (OHLC) levels on the current chart. It helps traders analyze historical price levels to identify support and resistance zones.
Key Features:
Multi-Timeframe Support:
Users can select a timeframe (D, W, M, etc.) to fetch previous OHLC data.
The script requests OHLC values from the selected timeframe and overlays them on the current chart.
Customizable Display Options:
Users can choose to display only the last OHLC levels instead of all past session levels.
Users can extend the OHLC lines across the chart.
Background Highlighting:
The script fills the background only for the Previous Open and Previous Close levels, making them visually distinct.
Previous High and Low levels do not have background color.
This script is particularly useful for day traders and swing traders who rely on key price levels to make trading decisions. Let me know if you need further refinements!
Cumulative Price Change AlertCumulative Price Change Alert
Version: 1.0
Author: QCodeTrader 🚀
Overview 🔍
The Cumulative Price Change Alert indicator analyzes the percentage change between the current and previous open prices and sums these changes over a user-defined number of bars. It then generates visual buy and sell signals using arrows and labels on the chart, helping traders spot cumulative price momentum and potential trading opportunities.
Key Features ⚙️
Customizable Timeframe 🕒:
Use a custom timeframe or default to the chart's timeframe for price data.
User-Defined Summation 🔢:
Specify the number of bars to sum, allowing you to analyze cumulative price changes.
Custom Buy & Sell Conditions 🔔:
Set individual percentage change thresholds and cumulative sum thresholds to tailor signals for
your strategy.
Visual Alerts 🚀:
Displays green upward arrows for buy signals and red downward arrows for sell signals directly
on the chart.
Informative Labels 📝:
Provides labels with formatted percentage change and cumulative sum details for the analyzed
bars.
Versatile Application 📊:
Suitable for stocks, forex, crypto, commodities, and more.
How It Works ⚡
Price Change Calculation ➗:
The indicator calculates the percentage change between the current bar's open price and the
previous bar's open price.
Cumulative Sum ➕:
It then sums these percentage changes over the last N bars (as specified by the user).
Signal Generation 🚦:
Buy Signal 🟢: When both the individual percentage change and the cumulative sum exceed
their respective buy thresholds, a green arrow and label are displayed.
Sell Signal 🔴: Conversely, if the individual change and cumulative sum fall below the sell
thresholds, a red arrow and label are shown.
How to Use 💡
Add the Indicator ➕:
Apply the indicator to your chart.
Customize Settings ⚙️:
Set a custom timeframe if desired.
Define the number of bars to sum.
Adjust the buy/sell percentage change and cumulative sum thresholds to match your trading
strategy.
Interpret Visual Cues 👀:
Monitor the chart for green or red arrows and corresponding labels that signal potential buy or
sell opportunities based on cumulative price movements.
Settings Explained 🛠️
Custom Timeframe:
Select an alternative timeframe for analysis, or leave empty to use the current chart's timeframe.
Number of Last Bars to Sum:
Determines how many bars are used to compute the cumulative percentage change.
Buy Condition - Min % Change:
The minimum individual percentage change required to consider a buy signal.
Buy Condition - Min Sum of Bars:
The minimum cumulative percentage change over the defined bars needed for a buy signal.
Sell Condition - Max % Change:
The maximum individual percentage change threshold for a sell signal.
Sell Condition - Max Sum of Bars:
The maximum cumulative percentage change over the defined bars for triggering a sell signal.
Best Use Cases 🎯
Momentum Identification 📈:
Quickly spot strong cumulative price movements and momentum shifts.
Entry/Exit Signals 🚪:
Use the visual signals to determine potential entry and exit points in your trading.
Versatile Strategy Application 🔄:
Effective for scalping, swing trading, and longer-term analysis across various markets.
UPD: uncheck labels for better performance
Mon to Fri + LSE and NYSE📌 Highlight Custom Days & Market Hours Indicator 📌
🔹 Overview:
This script allows traders to visually highlight specific weekdays and market sessions directly on their TradingView charts. With customizable checkboxes, you can choose which days of the week to highlight, along with session times for the New York Stock Exchange (NYSE) and London Stock Exchange (LSE).
🔹 Features:
✅ Select individual weekdays (Monday–Friday) to highlight in blue
✅ Highlight NYSE open hours (2:30 PM – 9:30 PM UK time) in green
✅ Highlight LSE open hours (8:00 AM – 4:30 PM UK time) in orange
✅ Ensures NYSE & LSE sessions are only highlighted on weekdays (no weekends)
✅ Clean and simple visualization for enhanced market awareness
🔹 How to Use:
1️⃣ Add the indicator to your TradingView chart
2️⃣ Use the settings panel to enable/disable specific weekdays
3️⃣ Toggle NYSE or LSE session highlights based on your trading preference
🚀 Perfect for traders who follow institutional sessions and want better time-based confluence in their strategies!
LDO Support and Resistance with Trend LinesUnderstanding the Indicator on Your Chart
Support Lines (Green): These horizontal lines represent price levels where LDO is likely to find buying interest, preventing further declines. They turn a semi-transparent green when the price is above them and blue when below.
Resistance Lines (Blue): These horizontal lines indicate price levels where selling pressure may halt upward movements. They turn a semi-transparent blue when the price is below them and green when above.
Trend Lines (Blue for Resistance, Green for Support): Diagonal lines show the overall trend direction. Blue trend lines indicate resistance (price may struggle to rise above), and green trend lines indicate support (price may find a floor).
Pivots: Small triangles appear above or below candles to mark pivot highs (resistance) and pivot lows (support), helping you identify key turning points.
Customizing the Indicator
You can tweak the indicator’s behavior through the settings panel. Here’s what each input does:
Show Trend Lines? (Default: True)
Enables or disables the display of trend lines on the chart. Set to false to hide trend lines if you only want support/resistance levels.
Choose Higher Time Frame
Select a higher timeframe (e.g., 1H, 4H, 1D) to display support and resistance levels from that timeframe on your current chart (e.g., 5M or 15M).
Pivot Length Settings (Current and Higher Timeframe):
Pivot Length Left Hand Side (Current/HTF): Adjusts how many bars to the left the indicator looks to identify pivot lows (default: 15 for current, 20 for HTF).
Pivot Length Right Hand Side (Current/HTF): Adjusts how many bars to the right the indicator looks to identify pivot highs (default: 10 for current, 15 for HTF).
Increase these values for fewer, more significant pivots; decrease for more frequent pivots.
Pivot Sources (Trend 1 and Trend 2 Pivots):
Select the price source (e.g., low, high) for calculating pivot lows and highs. Default is low for pivot lows and high for pivot highs.
Line Width Settings:
Lower Time Frame Line Width (Default: 5): Sets the thickness of support/resistance lines on the current timeframe.
Higher Time Frame Line Width (Default: 18): Sets the thickness of support/resistance lines on the higher timeframe.
Show Support & Resistance? (Default: True)
Enables or disables the display of horizontal support and resistance lines. Set to false to hide them if you only want trend lines.
Alert Settings (Under “Alerts” Group):
Enable Trend Line Alerts? (Default: True): Turns alerts on or off for trend line hits.
Alert on Resistance Trend Lines? (Default: True): Enables alerts when the price hits resistance trend lines.
Alert on Support Trend Lines? (Default: True): Enables alerts when the price hits support trend lines.
Alert Message: Customize the alert message format (default: “Price hit trend line at {0}”, where {0} is replaced by the price).
Setting Up Alerts
Enable Alerts in the Indicator:
In the indicator settings, ensure “Enable Trend Line Alerts?” is set to true, and choose whether to alert on resistance or support trend lines.
Create a TradingView Alert:
Click the “Alerts” button (bell icon) at the top of the chart.
Select “Create Alert” and choose this indicator from the “Condition” dropdown.
Set the alert frequency (e.g., once per bar, only once), notification method (e.g., email, popup), and save the alert.
Test the Alerts:
ICT SB Time (Lee B)A minimal and clean indicator that simply plots the ICT Silver Bullet time windows for you on the chart with vertical lines.
It also has the option to show other important times, like 00:00, 8:30, and 9:30. Toggles in settings let you change line color, turn any of them off temporarily, and can limit their visibility to only the lower timeframes for less clutter.
I hope you find this indicator useful... and happy trading!
Lee B
Serum Oscillator [ST]Serum Oscillator is an advanced technical indicator. This indicator combines several techniques and algorithms to provide traders with a robust tool for analyzing and predicting market movements. The indicator is not just an oscillator, but also includes functionalities for detecting divergences, mining flow, custom alerts, and more. Below is a detailed description of its features, components, and functionalities.
Characteristics
1. Oscillator and Signal: the indicator has a moving line that acts as a signal to determine the state of the market, whether bullish or bearish. In addition, this moving line can be switched between different types for greater accuracy, allowing it to better suit the trader's style.
2. Modes: the indicator has three modes to adapt to the market. Fast, Normal and Slow. The user can choose the mode that best suits his strategy. Fast mode generates very early signals, perfect for getting ahead of the market; however, it can also generate a greater number of false crosses. Slow mode generates fewer signals, perfect for filtering range zones.
3. Overbought and Oversold Levels: the indicator generates signals between values 0 and 100, for this reason it can be speculated that values 70 and 30 are overbought and oversold levels respectively; however, these levels can vary according to the modes. For this reason we designed the dynamic bands.
4. Multi Timeframe: Can observe data from a different time frame than the current chart. You will be able to observe the state of the oscillator and the direction.
5. Trend Catcher: tool to detect the market trend according to the indicator. Ideal for filtering false crossovers and trading in favor of the trend.
6. Smart Flow: Money flow optimized with AI to detect the overall money flow. Ideal for detecting trends. Additionally, you will be able to visualize the convergences between smart flow and the oscillator to operate in favor of the price trend. You can also activate thresholds, to detect when there is really a large monetary flow.
7. Divergences: Real-time detection of divergences to identify possible reversal zones. The user can adjust the sensitivity.
8. Alerts: Programmable alerts to automate the detection of various price conditions according to the indicator.
> This indicator is a comprehensive technical tool that provides traders with multiple capabilities to analyze market trends and reversals. Its combination of different types of smoothing and adaptive functions, along with the detection of divergences, trend lines, and custom alerts, makes it a powerful and versatile indicator for trading decision-making. The customization of its parameters and the depth of its calculations offer users a significant advantage in interpreting market data, facilitating more precise understanding and timely action in their trading operations.
Multi Asset & TF Stochastic
Multi Asset & TF Stochastic
This indicator allows you to compare the stochastic oscillator values of two different assets across multiple timeframes in a single pane. It’s designed for traders who want to analyse the momentum of one asset (by default, the chart’s asset) alongside a second asset of your choice (e.g., comparing EURUSD to the USD Index).
How It Works:
Main Asset:
The indicator automatically uses the chart’s asset for the primary stochastic calculation. You have the option to adjust the timeframe for this asset using a dropdown that includes TradingView’s standard timeframes, a "Chart" option (which automatically uses your chart’s timeframe), or a "Custom" option where you can type in any timeframe.
Second Asset:
You can enable the display of a second asset by toggling the “Display Second Asset” option. Choose the asset symbol (default is “DXY”) and select its timeframe from an identical dropdown. When enabled, the script calculates the stochastic oscillator for the second asset, allowing you to compare its momentum (%K and %D lines) with that of the main asset.
Stochastic Oscillator Settings:
Customize the %K length, the smoothing period for %K, and the smoothing period for %D. Both assets’ stochastic values are calculated using these parameters.
Visual Display:
The indicator plots the %K and %D lines for the main asset in prominent colours. If the second asset is enabled, its %K and %D lines are also plotted in different colours. Additionally, overbought (80) and oversold (20) levels are marked, with a midline at 50, making it easier to gauge market conditions at a glance.
%D line can be toggled off for a cleaner view if required:
Asset Information Table:
A table at the top-centre of the pane displays the active asset symbols—ensuring you always know which assets are being analysed.
How to Use:
Apply the Indicator:
Add the script to your chart. By default, it will use the chart’s current asset and timeframe for the primary stochastic oscillator.
Adjust the Main Asset Settings:
Use the “Main Asset Timeframe” dropdown to select a specific timeframe for the main asset or stick with the “Chart” option for automatic syncing with your current chart.
Enable and Configure the Second Asset (Optional):
Toggle on “Display Second Asset” if you wish to compare another asset. Select the desired symbol and adjust its timeframe using the provided dropdown. Choose “Custom” if you need a timeframe not listed by default.
Review the Plots and Table:
Observe the stochastic %K and %D lines for each asset. The overbought/oversold levels help indicate potential market turning points. Check the table at the top-centre to confirm the asset symbols being displayed.
This versatile tool is ideal for traders who rely on momentum analysis and need to quickly compare the stochastic signals of different markets or instruments. Enjoy seamless multi-asset analysis with complete control over your timeframe settings!
Market Session Times by MadDogMoneyMarket Sessions is a simple indicator allowing you to quickly see the 3 Major Trading Session Open and Close times
Three major Sessions - Asia, UK & NY are included.
(The Australian & Asian markets are so close on time, they have been joined for brevity.)
The Open & Close times for each Session is displayed in the Settings in UTC and can be edited depending on the time of year or market you are following.
By setting the Session indicators partially transparent (as is by default), you can quickly see which Market Sessions, and for how long, they overlap.
Additionally, the Indicator can be hidden for different timeframes.
- 1 HR is the upper limit of visibility
- Visibility on the 1HR, 15min and 5min and below can be toggled on an off to fit your requirements.
Auto Fibonacci Level Indicator - El Patron=======================================================================
Auto Fibonacci Level Indicator - El Patron
=======================================================================
Description:
This indicator automatically calculates and plots Fibonacci levels based on
the highest high and lowest low of a specified lookback period from a user-
selectable timeframe. It supports a Reverse Fibonacci option to swap the
calculation (i.e. drawing levels from the swing high to the swing low) and
provides intrabar updates using the lookahead feature. Customize the color
for each Fibonacci level to suit your trading style.
Inputs:
- Time Frame:
Choose from "60" (1H), "240" (4H), or "D" (Daily) to retrieve data for
the Fibonacci calculations.
- Lookback Period:
The number of bars (in the selected timeframe) to consider for
determining the highest high and lowest low.
- Reverse Fibonacci:
Check this box to reverse the Fibonacci calculation from the usual low-
to-high to a high-to-low perspective.
- Color Inputs:
Customize the colors for each Fibonacci level, including levels such as
0, 0.11, 0.114, ... , 1.618.
Usage:
1. Apply the indicator to any chart.
2. In the settings panel, adjust the Time Frame, Lookback Period, and
Reverse Fibonacci options as desired.
3. The Fibonacci levels will be plotted as horizontal lines on your chart.
4. Intrabar updates are enabled via the lookahead parameter; note that this
may result in repainting.
Notes:
- When using intrabar lookahead, the levels update during the formation of
the current bar which might cause historical values to change (repainting).
- The indicator can pull data from a different timeframe than the chart's,
which is useful for multi-timeframe analysis.
Author: Turker Balkar - El Patron
Version: 1.0
ATR BandsThe ATR Bands indicator is a volatility-based tool that plots dynamic support and resistance levels around the price using the Average True Range (ATR). It consists of two bands:
Upper Band: Calculated as current price + ATR, representing an upper volatility threshold.
Lower Band: Calculated as current price - ATR, serving as a lower volatility threshold.
Key Features:
✅ Measures Volatility: Expands and contracts based on market volatility.
✅ Dynamic Support & Resistance: Helps identify potential breakout or reversal zones.
✅ Customizable Smoothing: Supports multiple moving average methods (RMA, SMA, EMA, WMA) for ATR calculation.
How to Use:
Trend Confirmation: If the price consistently touches or exceeds the upper band, it may indicate strong bullish momentum.
Reversal Signals: A price approaching the lower band may suggest a potential reversal or increased selling pressure.
Volatility Assessment: Wide bands indicate high volatility, while narrow bands suggest consolidation.
This indicator is useful for traders looking to incorporate volatility-based strategies into their trading decisions
Flat NumbersCustomizable Price Range: Set the start price and end price to define the range in which horizontal lines will be plotted.
Line Color: Choose the color of the horizontal lines to match your chart's theme or personal preference.
Line Width: Adjust the width of the lines (from 1 to 5) to control their visibility.
Price Step Size: By default, the script plots lines every 100 price units within the range, but this step size can be customized if desired.
Dynamic Line Plotting: The script automatically calculates the number of lines needed and plots them at each interval between the start and end prices.
Flux Charts - SFX Screener💎 GENERAL OVERVIEW
The SFX Screener by Flux Charts is a multi-timeframe market scanner that extracts and visually organizes key conditions detected by the SFX Algo indicator across multiple assets in real-time. It does not perform independent analysis or generate new signals—instead, it pulls data directly from the SFX Algo’s calculations to ensure full alignment across different timeframes and tickers.
The SFX Algo is a multi-factor trading indicator that integrates trend analysis, signal generation, market overlays, and take-profit/stop-loss levels into a single system. It evaluates multiple trend components, including EMA direction, momentum shifts, and volatility cycles, to determine market conditions. Signal generation is based on an Adjusted Weighted Majority Algorithm, filtering out weaker signals by prioritizing the most reliable market indicators. Market overlays, such as Volatility Bands and the Retracement Wave, provide dynamic support, resistance, exit points, and entry points. Its adaptable structure allows traders to customize settings based on strategy preferences, making it effective for scalping, swing trading, and long-term trend analysis.
The SFX Screener’s purpose is to give traders a dashboard view of these SFX Algo signals across multiple tickers and timeframes in real-time.
📌 HOW DOES IT WORK ?
The SFX Algo indicator employs an Adjusted Weighted Majority algorithm to generate "buy" and "sell" signals. It evaluates multiple market indicators ("experts"), including momentum, ATR trends, and EMA trends, and assigns weights based on their recent performance. The "Time Weighting" setting allows users to balance between using more historical data or prioritizing recent trends. Unlike traditional weighted majority methods, SFX also dynamically penalizes larger losses. Signals are confirmed based on the consensus of the most successful indicators within the selected time period, filtering out weaker signals during underperforming phases.
The SFX Screener extracts these calculated outputs and visually organizes them into a real-time dashboard. Each signal, status, and volatility condition displayed in the screener is a direct output from the SFX Algo indicator.
🚩 UNIQUENESS
Unlike traditional screeners that rely on preset filters or static conditions, the SFX Screener dynamically updates its dashboard based on live outputs from the SFX Algo’s adaptive algorithm.
Traditional Screeners → Use predefined filters like “price above EMA” or “RSI overbought.” They do not adjust to market dynamics.
SFX Screener → Displays outputs directly from an adaptive algorithm that continuously evaluates trends, volatility, and momentum changes.
The SFX Screener can show SFX Algo's status on 8 different tickers on different timeframes. Key factors that make it unique include:
✅ Real-time sync with SFX Algo → Displays live conditions, not static filters.
✅ Comprehensive Dashboard – This screener provides a complete and customizable dashboard designed to enhance traders' decision-making by consolidating crucial SFX Algo insights into one user-friendly interface.
✅ Multi-Ticker & Multi-Timeframe Analysis – With support for up to 8 tickers and timeframes, traders can effortlessly analyze the bigger market picture, identifying trends and opportunities across different assets and timeframes.
By combining multiple analytical elements in a single view, this screener empowers traders with the insights needed to navigate the market more effectively.
🎯 SFX SCREENER FEATURES:
SFX Algo Signals : This tool can detect SFX Algo signals across different tickers & timeframes.
Volatility Bands : Detection of Volatility Bands Status & Retests.
Retracement Wave : Detection of Retracement Wave Status & Retests.
Highly Configurable : Offers multiple parameters for fine-tuning detection settings.
Up to 8 Tickers : Allows traders to analyze multiple tickers & timeframes simultaneously for enhanced accuracy.
📊 SFX SCREENER DATA BREAKDOWN
Signal ->
Buy -> The latest signal is a buy signal.
Sell -> The latest signal is a sell signal.
The rating of the signal is shown after the signal type.
Δ⭐ ->
Shows the rating change (delta) after the signal is triggered. Positive values mean that the rating is increased after the signal is given, negative values mean that it's decreased.
Status ->
Displays the amount of time passed after the signal is given.
TP Targets ->
Shows the Take-Profit targets of the signal, if a target was achieved, there is a ✅ symbol near it and the next target it displayed.
V. Bands ->
The Volatility Bands dynamically adjust to market conditions, expanding during high volatility and contracting during low volatility. When the volatility bands are tight, or the upper and lower bands are close to each other, the market is not volatile. During periods of low volatility, it’s common for price to consolidate or move sideways. An early indication of a large price move can occur when the bands widen or open up after being tight. When the volatility bands are wide, it reflects a period of increased volatility, typically during strong price trends or after a breakout. The volatility bands can also act as support and resistance areas. The upper band acts as resistance while the lower band acts as support. These mark out good areas for potential reversals. Breakouts can also occur when price moves beyond the bands, signaling a potential trend in the breakout direction.
Outside -> The price is currently outside of the Volatility Bands.
Inside | Upper -> The price is currently inside the Upper Volatility Band.
Inside | Lower -> The price is currently inside the Lower Volatility Band.
R. Wave ->
The Retracement Wave is used to identify entry points during pullbacks in trending markets. It can also be used to find exit points for open trades. The wave is bullish when price is above it and bearish when the price is below it. The retracement wave can be used as an area to enter during a pullback in a trending market. The wave can also be helpful for managing risk and closing out positions.
Outside | Bullish -> The Retracement Wave is currently Bullish, and the price is outside of it.
Outside | Bearish -> The Retracement Wave is currently Bearish, and the price is outside of it.
Inside | Bullish -> The Retracement Wave is currently Bullish, and the price is inside of it.
Inside | Bearish -> The Retracement Wave is currently Bearish, and the price is inside of it.
Profit & Loss (P&L) ->
Shows the amount of profit or loss the position is currently in. All values are shown in terms of percentage, and positive values mean the position is in profit while negative values mean that the position is in loss.
⚠ Timeframe Restriction : The selected timeframes for analysis cannot be lower than the chart’s current timeframe to ensure proper data alignment.
⏰ ALERTS
This screener supports alerts, so you never miss a key market move. You can choose to receive alerts when a buy or sell signal is given, helping you spot potential trading opportunities. Additionally, you can enable alerts for take-profit or stop-loss levels, which notify you when the price achieves those levels. The alerts will work for each enabled ticker in the settings. You can also toggle webhook format for alerts, and choose to include ticker metadata in it.
⚙️ SETTINGS
1. Algorithm Settings
Sensitivity: The sensitivity setting is a key parameter that influences the frequency of signals the SFX Algo generates. By adjusting this parameter, you can control the frequency of signals produced by the algorithm. Using a lower sensitivity setting generates more frequent signals that are highly responsive to minor price fluctuations. Using a higher sensitivity setting reduces the frequency of signals, focusing on more significant price movements and filtering out minor fluctuations.
Signal Strength: The Signal Strength setting filters signals based on their quality, allowing traders to focus on the most reliable opportunities. This feature helps traders balance the quantity and reliability of the algorithm’s signals to suit their trading strategy. Using a lower signal strength will display more signals, including those with lower signal ratings, for broader market coverage. Using a higher signal strength will display fewer signals by prioritizing those with higher signal ratings, reducing market noise.
Time Weighting: The Time Weighting setting in the SFX Algo determines how historical market data is analyzed to generate signals.
a) Recent Trends
Focuses on the most recent movements for short-term analysis. This setting is good for scalpers and intraday traders who need to react quickly to market changes.
b) Mixed Trends
Balances recent and historical price movements for a comprehensive market view. This setting is well-suited for swing traders and those who want to capture medium-term opportunities by combining the benefits of short-term responsiveness with the reliability of long-term trends.
c) Long-term Trends
Relies on extended historical market data to identify broader market trends, making it an excellent choice for traders focused on long-term strategies.
Minimum Star Rating : The Minimum Star Rating setting allows you to filter signals based on their strength, showing only those that meet or exceed your chosen threshold. For instance, setting the minimum star rating to 3 ensures you only receive signals with a rating of 3 stars or higher.
2. Take Profit / Stop Loss Methods
Key Levels
The Key Levels method uses pivot points to set take profit and stop-loss levels. The TP and SL levels are shown when a new signal is generated.
Volatility Bands
This TP/SL method uses the Volatility Bands overlay to set dynamic TP and SL levels. These levels are not predetermined so they will not be shown in advance when a signal is generated.
Signal Rating
Sets take profit and stop-loss levels based on changes in a signal's rating strength. These levels are not predetermined so they will not be shown in advance when a signal is generated.
Auto Stop-Loss
The auto method can only be applied to the SL. The auto method allows the algorithm to detect SL automatically when a momentum shift is detected. You can adjust the risk tolerance of the Auto SL by adjusting the ‘Auto Risk Tolerance’ setting. You can choose between Low, Medium, and High. A high-risk tolerance will result in stop losses being triggered less often.
3. Tickers
You can set, then enable or disable up to 8 tickers in this section to get informed about their latest SFX Algo signal.
‼️ Important Notes
TradingView has limitations when running advanced screeners, resulting in the following restrictions:
Computation Errors:
The computation of using MTF features and viewing several tickers is very intensive on TradingView. This can sometimes cause calculation timeouts. When this occurs simply force the recalculation by modifying one indicator’s settings or by removing the indicator and adding it to your chart again.
Inconsistencies:
You may notice inconsistencies when viewing the screener on a chart with a specific symbol because screener tickers originate from different markets. Since the cryptocurrency market operates 24/7, while stock markets have defined opening and closing hours, the screener may return varying information depending on whether you're currently viewing a cryptocurrency, stock, or currency pair.
Trade Quality Rating: signal rating from 1 to 5 starsOverview
The indicator is built to generate trading signals based on a combination of technical indicators and then assign each signal a quality rating from 1 to 5 stars. The idea is that the more filters that are met, the stronger (or higher quality) the signal is assumed to be. You can then use these quality ratings to decide which signals to act upon, keeping in mind that a higher-rated signal has more confirming factors.
Components of the Indicator
Simple Moving Averages (SMAs):
SMA9 and SMA20:
These two moving averages are used to detect short-term trend changes via crossovers. A bullish signal is generated when the SMA9 crosses above the SMA20, and a bearish signal when it crosses below.
SMA200 (on the current timeframe) & Daily SMA200:
The SMA200 on your current chart helps smooth out the price action.
The Daily SMA200 serves as a long-term trend filter. For a valid long signal, the price must be above the Daily SMA200, and vice versa for a short signal.
MACD (Moving Average Convergence Divergence):
The MACD is calculated using standard parameters (12, 26, 9).
It adds momentum confirmation to the signal. For a long trade, the MACD line should be above its signal line, and for a short trade, below.
RSI (Relative Strength Index):
Calculated with a 14-period setting.
For long signals, the RSI must be above 50 (indicating upward momentum), while for short signals, it should be below 50.
This filter is one of the additional conditions that add to the quality rating.
Volume Filter:
A 20-period moving average of volume is computed.
The current volume must exceed this average, suggesting that there is enough market participation backing the move.
This is another extra filter that adds to the overall quality score.
ADX (Average Directional Index):
The ADX is manually calculated in the script (using a 14-period setting) to gauge the strength of the trend.
A value above 25 is considered to confirm that a strong trend is in place, making the signal more reliable.
VWAP (Volume Weighted Average Price):
The session VWAP is computed on a daily basis.
For long trades, the price should be above the VWAP, and for short trades, below.
This serves as a confirmation that the current price is moving in the right direction relative to the volume-weighted average.
Signal Generation and Quality Rating
Base Signal (1 Star):
The fundamental trade signal is generated when the SMA9/SMA20 crossover occurs, in combination with the MACD confirmation and the condition that the price is on the correct side of the Daily SMA200. This base signal provides a 1-star quality rating.
Additional Filters (Adding Extra Stars):
RSI Filter: Adds 1 extra star if the RSI condition is met (RSI > 50 for long or RSI < 50 for short).
Volume Filter: Adds 1 extra star if the current volume exceeds its 20-period moving average.
ADX Filter: Adds 1 extra star if the ADX value is above 25, confirming a strong trend.
VWAP Filter: Adds 1 extra star if the price is above the VWAP for long trades (or below for short trades).
When all filters are met, you get a 5-star rating (1 star base + 4 extra stars).
Display and Alerts:
The indicator plots your SMAs on the chart.
When a signal occurs, it places a label on the chart showing the trade direction ("BUY" or "SELL") along with the quality rating in stars.
Additionally, alert conditions are set up so that you can receive notifications when a valid signal (based on the base criteria) is generated.
How to Use This Indicator
Filtering Trades:
Use the quality rating as a visual guide. For instance, if you want to only act on the most reliable setups, you might decide to trade only signals that are rated 4 or 5 stars.
Manual Confirmation:
Even with a high star rating, you can perform your own final checks (e.g., checking price action or additional chart patterns) before entering a trade.
Backtesting and Adjustment:
Because market conditions differ, it’s advisable to backtest the indicator on your instrument of choice and adjust the parameters (such as the ADX threshold or the period for volume averaging) to better suit your trading style.
Conclusion
This 5-star system indicator is designed to provide a comprehensive overview of trade quality by integrating multiple technical filters into one visual signal. It helps filter out noise by ensuring that a trade signal not only meets a basic SMA and MACD condition but also aligns with volume, trend strength (ADX), and VWAP criteria. This multi-layered approach can lead to fewer but higher quality trades, allowing you to focus on setups that have more confluence.
Happy trading!