Custom V2 KillZone US / FVG / EMAThis indicator is designed for traders looking to analyze liquidity levels, opportunity zones, and the underlying trend across different trading sessions. Inspired by the ICT methodology, this tool combines analysis of Exponential Moving Averages (EMA), session management, and Fair Value Gap (FVG) detection to provide a structured and disciplined approach to trading effectively.
Indicator Features
Identifying the Underlying Trend with Two EMAs
The indicator uses two EMAs on different, customizable timeframes to define the underlying trend:
EMA1 (default set to a daily timeframe): Represents the primary underlying trend.
EMA2 (default set to a 4-hour timeframe): Helps identify secondary corrections or impulses within the main trend.
These two EMAs allow traders to stay aligned with the market trend by prioritizing trades in the direction of the moving averages. For example, if prices are above both EMAs, the trend is bullish, and long trades are favored.
Analysis of Market Sessions
The indicator divides the day into key trading sessions:
Asian Session
London Session
US Pre-Open Session
Liquidity Kill Session
US Kill Zone Session
Each session is represented by high and low zones as well as mid-lines, allowing traders to visualize liquidity levels reached during these periods. Tracking the price levels in different sessions helps determine whether liquidity levels have been "swept" (taken) or not, which is essential for ICT methodology.
Liquidity Signal ("OK" or "STOP")
A specific signal appears at the end of the "Liquidity Kill" session (just before the "US Kill Zone" session):
"OK" Signal: Indicates that liquidity conditions are favorable for trading the "US Kill Zone" session. This means that liquidity levels have been swept in previous sessions (Asian, London, US Pre-Open), and the market is ready for an opportunity.
"STOP" Signal: Indicates that it is not favorable to trade the "US Kill Zone" session, as certain liquidity conditions have not been met.
The "OK" or "STOP" signal is based on an analysis of the high and low levels from previous sessions, allowing traders to ensure that significant liquidity zones have been reached before considering positions in the "Kill Zone".
Detection of Fair Value Gaps (FVG) in the US Kill Zone Session
When an "OK" signal is displayed, the indicator identifies Fair Value Gaps (FVG) during the "US Kill Zone" session. These FVGs are areas where price may return to fill an "imbalance" in the market, making them potential entry points.
Bullish FVG: Detected when there is a bullish imbalance, providing a buying opportunity if conditions align with the underlying trend.
Bearish FVG: Detected when there is a bearish imbalance, providing a selling opportunity in the trend direction.
FVG detection aligns with the ICT Silver Bullet methodology, where these imbalance zones serve as probable entry points during the "US Kill Zone".
How to Use This Indicator
Check the Underlying Trend
Before trading, observe the two EMAs (daily and 4-hour) to understand the general market trend. Trades will be prioritized in the direction indicated by these EMAs.
Monitor Liquidity Signals After the Asian, London, and US Pre-Open Sessions
The high and low levels of each session help determine if liquidity has already been swept in these areas. At the end of the "Liquidity Kill" session, an "OK" or "STOP" label will appear:
"OK" means you can look for trading opportunities in the "US Kill Zone" session.
"STOP" means it is preferable not to take trades in the "US Kill Zone" session.
Look for Opportunities in the US Kill Zone if the Signal is "OK"
When the "OK" label is present, focus on the "US Kill Zone" session. Use the Fair Value Gaps (FVG) as potential entry points for trades based on the ICT methodology. The identified FVGs will appear as colored boxes (bullish or bearish) during this session.
Use ICT Methodology to Manage Your Trades
Follow the FVGs as potential reversal zones in the direction of the trend, and manage your positions according to your personal strategy and the rules of the ICT Silver Bullet method.
Customizable Settings
The indicator includes several customization options to suit the trader's preferences:
EMA: Length, source (close, open, etc.), and timeframe.
Market Sessions: Ability to enable or disable each session, with color and line width settings.
Liquidity Signals: Customization of colors for the "OK" and "STOP" labels.
FVG: Option to display FVGs or not, with customizable colors for bullish and bearish FVGs, and the number of bars for FVG extension.
-------------------------------------------------------------------------------------------------------------
Cet indicateur est conçu pour les traders souhaitant analyser les niveaux de liquidité, les zones d’opportunité, et la tendance de fond à travers différentes sessions de trading. Inspiré de la méthodologie ICT, cet outil combine l'analyse des moyennes mobiles exponentielles (EMA), la gestion des sessions de marché, et la détection des Fair Value Gaps (FVG), afin de fournir une approche structurée et disciplinée pour trader efficacement.
Indicatori e strategie
Bewakoof stock indicator**Title**: "Bewakoof Stock Indicator: Multi-Timeframe RSI and SuperTrend Entry-Exit System"
---
### Description
The **Bewakoof Stock Indicator** is an original trading tool that combines multi-timeframe RSI analysis with the SuperTrend indicator to create reliable entry and exit signals for trending markets. This indicator is designed for traders looking to follow strong trends with built-in risk management. By filtering entries through short- and long-term momentum and utilizing dynamic trailing exits, this indicator provides a structured approach to trading.
#### Indicator Components
1. **Multi-Timeframe RSI Analysis**:
- The Relative Strength Index (RSI) is calculated across three timeframes: Daily, Weekly, and Monthly.
- By examining multiple timeframes, the indicator confirms that trends align over short, medium, and long-term intervals, making buy signals more reliable.
- **Buy Condition**: All three RSI values must meet these thresholds:
- **Daily RSI > 50** – indicates short-term upward momentum,
- **Weekly RSI > 60** – signals medium-term strength,
- **Monthly RSI > 60** – confirms long-term trend alignment.
- This filtering process ensures that buy signals are generated only in stable, upward-trending markets.
2. **SuperTrend Confirmation**:
- The SuperTrend (20-period ATR with a multiplier of 2) acts as a trend filter and trailing stop mechanism.
- For a buy condition to be valid, the closing price must be above the SuperTrend level, verifying that the market is trending up.
- The combination of RSI and SuperTrend helps to avoid false signals, focusing only on well-established trends.
#### Trade Signals
- **Buy Signal**: When both the multi-timeframe RSI and SuperTrend conditions are met, a buy signal is triggered, indicated by a “BUY” label on the chart with details:
- **Entry Price**,
- **Initial Stop-Loss** (set at the SuperTrend level for risk control),
- **Target 1** – calculated with a 1:1 risk-reward ratio based on the initial stop-loss,
- **Target 2** – calculated with a 1:2 risk-reward ratio based on the initial stop-loss.
- **Exit Signals**: This indicator provides two exit strategies to protect profits:
1. **Fixed Stop-Loss**: Automatically set at the SuperTrend level at the time of entry to limit risk.
2. **Trailing Exit**: Exits are triggered if the price crosses below the SuperTrend level, adapting to potential trend reversals.
#### Labeling & Alerts
The **Bewakoof Stock Indicator** offers intuitive labeling and alert options:
- **Labels**: Buy and exit points are clearly marked, showing entry, stop-loss, and targets directly on the chart.
- **Alerts**: Custom alerts can be set for:
- **Buy signals** when both conditions are met, and
- **Exit signals** triggered by the stop-loss or trailing exit.
#### Use Case and Benefits
This indicator is ideal for trend-following traders who value risk control and trend confirmation:
- **Stronger Trend Signals**: By requiring RSI alignment across multiple timeframes, this indicator focuses only on trades with strong trend momentum.
- **Dynamic Risk Management**: Using both fixed and trailing exits enables flexible trade management, balancing risk and potential reward.
- **Simple Trade Execution**: The chart labels and alerts simplify trade decisions, making it easy to enter, manage, and exit trades.
#### How to Use
1. **Add** the Bewakoof Stock Indicator to your chart.
2. **Watch** for the "BUY" label as your entry point.
3. **Manage the trade** using the labeled stop-loss and target levels.
4. **Exit** on either a stop-loss hit or when the price crosses below the SuperTrend for a trailing exit.
The **Bewakoof Stock Indicator** is a complete solution for trend-following traders, combining the strength of multi-timeframe RSI with the SuperTrend’s trend-following capabilities. This systematic approach aims to provide high-confidence entries and effective risk management, empowering traders to follow trends with precision and control.
EMA 50 + 200 Trend Signal TableEMA 50 + 200 Trend Signal Table (ETT)
This indicator provides a multi-timeframe trend signal table based on the 50-period and 200-period Exponential Moving Averages (EMAs). It visually plots the EMA 50 and EMA 200 on the chart, along with a customizable, compact table that indicates the trend direction across multiple timeframes. This tool is useful for traders looking to quickly identify market trends and momentum on various timeframes.
How It Works
- EMA Trend Analysis: The script compares the EMA 50 and EMA 200 values to determine the trend. When EMA 50 is above EMA 200, the trend is considered Bullish; if EMA 50 is below EMA 200, the trend is Bearish. If EMA 200 data is unavailable (e.g., on very short timeframes), the trend status will display as Neutral.
- Multi-Timeframe Trend Signals: The table displays the trend signals across five user-defined timeframes, updating in real time. Each timeframe row shows either Bullish, Bearish, or Neutral, with colors customizable to your preference.
Features
- EMA 50 and EMA 200 Visualization: Plots EMA 50 and EMA 200 lines directly on the chart. Users can customize the color and line thickness for each EMA to fit their charting style.
- Trend Signal Table: A table positioned on the chart (with options for positioning in the corners) shows the trend direction for the selected timeframes.
Bullish Trend: Highlighted in green (default) with 50% opacity.
Bearish Trend: Highlighted in red (default) with 50% opacity.
Neutral Trend: Highlighted in gray (default) with 50% opacity.
- Customizable Table Appearance: Allows users to select the position of the table (top-right, top-left, bottom-right, or bottom-left) and choose between compact sizes (Extra Small, Small, Normal).
- Adjustable Colors: Users can specify custom colors for each trend status (Bullish, Bearish, Neutral) as well as for the text and table border colors.
Inputs and Customizations
- Timeframes: Choose up to five different timeframes for trend analysis.
- EMA Colors and Line Widths: Customize the color and line width of EMA 50 and EMA 200 plotted on the chart.
- Table Settings: Control the position, size, and color options of the trend signal table for improved visibility and integration with your chart layout.
Use Case This indicator is ideal for traders who employ a multi-timeframe approach to confirm trends and filter entries. By monitoring the relative positions of EMA 50 and EMA 200 across various timeframes, traders can get a quick snapshot of trend strength and direction, aiding in informed trading decisions.
Weekly COTAdjusted COT Index
Improves upon: "COT Index Commercials vs large and small Speculators" by SystematicFutures
How: CoT Indexes are adjusted by Open Interest to normalise data over time, and threshold background colours are in-line with Larry Williams recommendations from his book.
Note: This indicator is **only** accurate on the Daily time-frame due to the mid-week release date for CoT data.
This script calculates and plots the Adjusted Commitment of Traders (COT) Index for Commercial, Large Speculator, and Retail (Small Speculator) categories.
The CoT Index is adjusted by Open Interest to normalise data through time, following the methodology of Larry Williams, providing insights into how these groups are positioned in the market with an arguably more historically accurate context.
COT Categories
-------------------
- Commercials (Producers/Hedgers): Large entities hedging against price changes in the underlying asset.
- Large Speculators (Non-commercials): Professional traders and funds speculating on price movements.
- Retail Traders (Nonreportable/Small Speculators): Small individual traders, typically less informed.
Features
----------
- Open Interest Adjustment
- The net positions for each category are normalized by Open Interest to account
for varying contract sizes.
- Customisable Look-back Period
- You can adjust the number of weeks for the index calculation to control the
historical range used for comparison.
- Thresholds for Extremes
- Upper and lower thresholds (configurable) are provided to mark overbought and
oversold conditions.
- Defaults
- Overbought: <=20
- Oversold: >= 80
- Hide Current Week Option
- Optionally hide the current week's data until market close for more accurate comparison.
- Visual Aids
- Plot the Commercials, Large Speculators, and Retail indexes, and optionally highlight extreme positioning.
Inputs
--------
- weeks
- Number of weeks for historical range comparison.
- upperExtreme and lowerExtreme
- Thresholds to identify overbought/oversold conditions (default 80/20).
- hideCurrentWeek
- Option to hide current week's data until market close.
- markExtremes
- Highlight extremes where any index crosses the upper or lower thresholds.
- Options to display or hide indexes for Commercials, Large Speculators, and Small Speculators.
Outputs
----------
- The script plots the COT Index for each of the three categories and highlights periods of extreme positioning with customisable thresholds.
Usage
-------
- This tool is useful for traders who want to track the positioning of different market participants over time.
- By identifying the extreme positions of Commercials, Large Speculators, and Retail traders, it can give insights into market sentiment and potential reversals.
- Reversals of trend can be confirmed with RSI Divergence (daily), for example
- Continuation can be confirmed with RSI overbought/oversold conditions (daily), and/or hidden RSI Hidden Divergence, for example
Performance-INDIA & GLOBAL MARKETS-MADGrowth vs. Stability: India is expected to maintain relatively strong economic growth compared to many other global markets, which are facing slower growth or even recession risks. The Indian economy is benefiting from a large domestic market, young population, and rising digital and infrastructure investments.
Volatility: Indian markets are often more volatile due to domestic factors, such as political changes, policy announcements, and inflationary pressures. Global markets, on the other hand, tend to experience volatility based on external economic factors and geopolitical risks.
Inflation and Interest Rates: Both India and global markets are dealing with inflation, but India’s central bank (RBI) is seen as being proactive in controlling inflation through interest rate hikes. Globally, major central banks like the Fed and ECB are tightening their monetary policies, which is contributing to global economic slowdown concerns.
Sash Trending Suite NEWWhy
The " Sash Trending Suite " (STS) indicator simplifies trading by highlighting market trends and potential reversals. In a world of complex charts and overwhelming data, STS helps traders quickly understand market direction and make informed decisions.
---
How and What
STS combines key technical tools into one easy-to-read indicator, directly showing important signals on the chart:
Macro Trend Detection
How : Uses two EMAs (fast and slow) and the ADX to identify strong bullish or bearish trends.
What to Look For :
Bar Colors :
Green Bars : Indicate a strong upward (bullish) trend.
Red Bars : Indicate a strong downward (bearish) trend.
Benefit : Quickly see the overall market direction.
Alpha Track Line
How : An adaptive EMA that acts as a dynamic support or resistance line.
What to Look For :
Line Colors :
Green Line : Price is above the line (bullish momentum).
Red Line : Price is below the line (bearish momentum).
Benefit : Visualize momentum shifts easily.
Reversal Signals
How : Combines RSI with price action to spot potential market reversals.
What to Look For :
"R" Labels :
Turquoise "R" Below Bar : Potential bullish reversal.
Amber "R" Above Bar : Potential bearish reversal.
Benefit : Identify possible turning points for entry or exit.
Micro Trend Detection
How : Uses shorter EMAs to catch minor trend changes.
What to Look For :
Small Circles :
Green Circle Below Bar : Micro bullish signal.
Red Circle Above Bar : Micro bearish signal.
Benefit : Spot short-term trend shifts promptly.
Alerts
How : Built-in alerts notify you of key events.
What to Expect :
Trend Changes : Alerts when a new bullish or bearish trend starts.
Reversals : Alerts for potential bullish or bearish reversals.
Benefit : Stay updated without constantly watching the chart.
---
Summary
The "Sash Trending Suite" provides:
Simplified Analysis : One indicator shows trend direction, momentum, reversals, and micro trends.
Clear Visuals : Color-coded bars and symbols make interpretation easy.
Timely Alerts : Know about important market changes instantly.
By focusing on essential signals and displaying them clearly, STS helps traders navigate the market with confidence and simplicity.
Central Bank Liquidity YOY % Change - Second DerivativeThis indicator measures the acceleration or deceleration in the yearly growth rate of central bank liquidity.
By calculating the year-over-year percentage change of the YoY growth rate, it highlights shifts in the pace of liquidity changes, providing insights into market momentum or potential reversals influenced by central bank actions.
This can help reveal impulses in liquidity by identifying changes in the growth rate's acceleration or deceleration. When central bank liquidity experiences a rapid increase or decrease, the second derivative captures these shifts as sharp upward or downward movements.
These impulses often signal pivotal liquidity shifts, which may correspond to major policy changes, market interventions, or financial stability measures, offering an early signal of potential market impacts.
Moving Average ADX with Alerts# Moving Average ADX (MA ADX) Indicator
## Overview
The Moving Average ADX combines a weighted moving average (WMA) with ADX (Average Directional Index) momentum to create a dynamic, trend-following indicator. The indicator's line changes color based on the ADX strength and directional movement, helping traders identify strong trends and potential reversals.
## Key Features
- Color-changing WMA line based on ADX strength and direction
- Built-in alerts for trend changes
- Customizable ADX and moving average parameters
- Overlay indicator that plots directly on the price chart
## Color Signals
- **Green Line**: Strong bullish trend (ADX > threshold with +DI > -DI)
- **Red Line**: Strong bearish trend (ADX > threshold with -DI > +DI)
- **Black Line**: Weak or no trend (ADX < threshold)
## Parameters
- **DI Length**: Period for calculating Directional Movement (default: 14)
- **ADX Smoothing**: Smoothing period for ADX calculation (default: 14)
- **ADX MA Active**: Threshold for ADX to consider a trend strong (default: 18)
- **Length**: Period for the Weighted Moving Average (default: 34)
- **Source**: Price source for calculations (default: close)
## Trading Applications
1. **Trend Identification**
- Green line suggests riding bullish trends
- Red line suggests riding bearish trends
- Black line suggests ranging or weak trend conditions
2. **Entry Signals**
- Color changes from black to green: Potential bullish entry
- Color changes from black to red: Potential bearish entry
3. **Exit Signals**
- Color changes from green to black or red: Consider exiting longs
- Color changes from red to black or green: Consider exiting shorts
## Alert Functions
The indicator includes two built-in alerts:
1. Bullish Signal: Triggers when the indicator turns bullish (green)
2. Bearish Signal: Triggers when the indicator turns bearish (red)
## Best Practices
- Use in conjunction with other technical analysis tools
- Consider the overall market context
- Wait for confirmation of color changes before taking action
- Use appropriate position sizing and risk management
Fibonacci Moving Average PlusFibonacci Moving Average Plus is a sophisticated technical indicator that employs the first 15 numbers of the Fibonacci sequence to create dynamic moving average channels. This indicator aims to capture both immediate and long-term price movements by calculating Exponential Moving Averages (EMAs) based on these Fibonacci values. By using Fibonacci-based moving averages for both high and low price points, the indicator generates a visual channel that reflects the ebb and flow of market trends, acting as potential zones of support and resistance. Additionally, the indicator provides midline, retracement, and extension levels rooted in Fibonacci ratios, which are frequently observed as key levels for reversals or trend continuation.
Ideology Behind Using Fibonacci Sequence-Based Moving Averages
The Fibonacci sequence, known for its mathematical harmony and prevalence in natural patterns, is widely utilized in technical analysis to identify potential turning points in markets. In this indicator, the first 15 Fibonacci numbers (5, 8, 13, 21, etc.) are used as the lookback periods for EMAs to capture different layers of market sentiment. These moving averages represent timeframes that are theoretically in alignment with the natural rhythms of market cycles, where key levels—often coinciding with Fibonacci numbers—can act as magnetic points for price.
The Fibonacci high and low channels aim to encapsulate price action, giving traders a sense of whether the market is trending, consolidating, or experiencing reversal pressure. These levels, grounded in both mathematics and market psychology, help traders spot areas where price might face resistance or find support.
Key Features
Fibonacci Moving Average High and Low: This indicator calculates the high and low EMAs based on Fibonacci sequence numbers (e.g., 5, 8, 13, etc.) for enhanced trend analysis.
Golden Pocket Retracement (GPR) and Extension (GPE) Bands: Displays common Fibonacci retracement and extension levels (0.618, 0.65 for retracement, and 1.618, 1.65 for extension).
Midline: Plots the average of the Fibonacci high and low to act as an additional reference level.
Stop-Loss Levels: Provides suggested stop-loss levels based on Fibonacci levels for both long and short positions.
Basic User Guide
Adjust Input Settings:
Input Timeframe: Set a specific timeframe for the Fibonacci moving average calculation, separate from the chart's primary timeframe.
Show Fibonacci MA High/Low: Toggle the visibility of the high and low Fibonacci moving averages.
Show Mid Line: Display a midline for added trend reference.
Show Golden Pocket Bands: Choose to display retracement or extension bands for potential support or resistance zones.
Show Stop-Loss Levels: Enable to visualize potential stop-loss levels for both long and short trades.
Interpretation:
Fibonacci MA High and Low: Use these lines to gauge the general trend. When the price is above both, it may indicate an uptrend; below both, a downtrend.
Golden Pocket Retracement: This zone (between 0.618 and 0.65) is often a key level for potential reversals or support/resistance.
Golden Pocket Extension: The 1.618 and 1.65 levels can indicate potential profit-taking or trend exhaustion points.
Stop-Loss Levels: The calculated stop-loss levels (long SL below and short SL above) can aid in risk management.
Customization:
You can customize the appearance and visibility of each component through the input settings to fit your specific strategy and visual preferences.
This indicator should be used alongside other technical analysis tools to provide a more comprehensive trading approach.
This Indicator would not exist without the original contributions and blessing from Sofien Kaabar
Fed Fund Futures Custom AverageThis indicator helps traders track the expected average interest rate for the upcoming 12 months based on Fed Fund Futures. It calculates the average price of the next 12 monthly futures contracts and also shows the spread against the 1-Year US Treasury yield (US01Y). This can be useful for understanding market expectations regarding interest rate changes and identifying trading opportunities related to interest rate movements.
CBBS Suite [KFB Quant]CBBS Suite
The CBBS Suite is a specialized technical indicator that aggregates central bank balance sheet (CBBS) data from major global economies (US, EU, China, and Japan) and analyzes the data to assist with trend-following strategies. By using CBBS data as an economic signal, this tool provides insights into long and short trading opportunities based on macroeconomic changes.
Functionality :
The CBBS Suite aggregates central bank balance sheets, converting the combined data into percentage changes over multiple timeframes (30–360 days). It then calculates average scores to highlight the direction and strength of the CBBS trend, with customizable smoothing options for precision.
Signal Modes :
Users can select from three modes for optimal customization:
Standard – Displays unsmoothed trend signals.
Smoothed – Applies a smoothing function for clearer signal representation.
Combined – Shows both standard and smoothed signals for a comprehensive view
Indicator Features :
Thresholds : Customize long and short entry points based on score thresholds and percentage change limits.
Signal Smoothing : Choose from EMA, SMA, or WMA for trend smoothing, with adjustable lengths for greater flexibility.
Visuals : Background color coding for long and short zones and up/down triangles on chart bars to clearly identify long and short signals.
Limitations :
As with any indicator, CBBS Suite should be used as part of a broader trading strategy. It doesn’t predict future movements but instead reflects central bank activity trends.
This indicator is designed to add value to the TradingView community by providing unique macroeconomic insights based on central bank data trends. It’s a valuable tool for users looking to incorporate CBBS data into their technical analysis toolkit.
Disclaimer: This tool is provided for informational and educational purposes only and should not be considered as financial advice. Always conduct your own research and consult with a licensed financial advisor before making any investment decisions.
Chaikin DivergenceOverview
The Chaikin Divergence is a powerful technical indicator designed to enhance the traditional Chaikin Oscillator by incorporating divergence detection between the oscillator and price action. This advanced tool not only plots the Chaikin Oscillator but also identifies and highlights bullish and bearish divergences, providing traders with valuable insights into potential trend reversals and momentum shifts.
Key Features
Chaikin Oscillator Plotting: Visual representation of the Chaikin Oscillator, aiding in the analysis of market momentum based on volume and price.
Divergence Detection:
Bullish Divergence: Indicates potential upward reversals when price forms lower lows while the oscillator forms higher lows.
Bearish Divergence: Signals possible downward reversals when price creates higher highs while the oscillator forms lower highs.
Customizable Settings:
Fast Length & Slow Length: Adjust the periods for the Exponential Moving Averages (EMA) used in the oscillator calculation.
Pivot Detection Parameters: Define the sensitivity of pivot high and pivot low detection with adjustable left and right bars.
Bars Lookback for Divergence: Set the number of bars to look back for identifying divergences.
Color Customization: Choose distinct colors for bullish and bearish divergence labels to match your trading preferences.
Visual Indicators:
Divergence Labels: Clear and distinct labels (arrows or dots) on the chart indicating the type and location of divergences.
Zero Line: A dashed zero line to reference the oscillator’s crossing points.
Chaikin Oscillator Calculation:
The indicator calculates the Chaikin Oscillator by subtracting the slow EMA of the Accumulation/Distribution Line (ta.accdist) from the fast EMA.
This oscillates around the zero line, indicating buying and selling pressure.
Pivot Detection:
Utilizes ta.pivothigh and ta.pivotlow functions to identify significant pivot points in price action. These pivot points serve as reference points for divergence analysis.
Divergence Identification:
Bullish Divergence: Detected when a recent pivot low in price is lower than the previous pivot low, while the corresponding oscillator value is higher than the previous oscillator pivot.
Bearish Divergence: Identified when a recent pivot high in price is higher than the previous pivot high, but the oscillator value is lower than the previous oscillator pivot.
Label Plotting:
When a divergence is detected, the indicator plots a label (arrow or dot) on the chart at the pivot point, signaling the type of divergence.
Adding the Indicator:
Open TradingView and navigate to the chart where you want to apply the indicator.
Open the Pine Editor, paste the Chaikin Oscillator with Divergences script, and add it to your chart.
Configuring Settings:
Fast Length & Slow Length: Adjust these to modify the sensitivity of the Chaikin Oscillator. Shorter periods make the oscillator more responsive to price changes.
Left Bars for Pivots & Right Bars for Pivots: Define how many bars to the left and right are considered when identifying pivot points. Increasing these values makes pivot detection less sensitive.
Bars Lookback for Divergence: Set how far back the indicator should search for previous pivot points when identifying divergences. A higher value allows detection over a longer timeframe.
Bullish/Bearish Divergence Colors: Choose colors that stand out against your chart background for easy identification of divergence signals.
Interpreting Signals:
Bullish Divergence Labels: Appear when there's a potential upward reversal, signaling a possible buying opportunity.
Bearish Divergence Labels: Show up when a downward reversal might be imminent, indicating a possible selling opportunity.
Oscillator Crosses Zero: Pay attention to when the oscillator crosses the zero line, as this can also signal changes in momentum.
Combining with Other Indicators:
For enhanced trading strategies, combine divergence signals with other technical indicators or chart patterns to confirm potential trade setups.
Timeframes Dieser Indikator visualisiert Handelszeitzonen und Sitzungsüberschneidungen für die Hauptmärkte (Asien, Europa und New York). Er wurde entwickelt, um die Marktöffnungszeiten in den verschiedenen Zeitzonen grafisch darzustellen und wichtige Handelszeitüberschneidungen hervorzuheben.
Funktionen:
Automatische Zeitbereichsmarkierung: Der Indikator zeigt die Boxen jeder Zeitzone (Asien, Europa und New York) in voller Breite an, sobald die jeweilige Session beginnt. Die Boxen passen sich den Preisbewegungen in Echtzeit an, um eine nahtlose Synchronisierung mit den aktuellen Marktdaten zu gewährleisten.
Anpassbare Sitzungsfarben und -texte: Jede Zeitzone ist mit einer spezifischen Farbe versehen, die in den Einstellungen konfiguriert werden kann, um die einzelnen Sessions optisch klar zu unterscheiden.
Dynamische Hoch- und Tiefpunkte innerhalb der Sitzungen: Der Indikator passt die oberen und unteren Grenzen jeder Session-Box an die höchste und niedrigste Preisbewegung während der jeweiligen Handelszeiten an.
Startlinien für Sitzungsbeginn: Neben den Session-Boxen werden Linien angezeigt, die den Beginn jeder Zeitzone markieren und es den Benutzern ermöglichen, den genauen Startzeitpunkt jeder Sitzung schnell zu erkennen.
Infotabelle mit Sitzungsstatus: Eine optionale Tabelle zeigt den aktuellen Status (geöffnet/geschlossen) und die Start- und Endzeiten der Sitzungen in einem klar strukturierten Format an. Diese Info-Tabelle bietet eine schnelle Übersicht, wann die Märkte geöffnet sind, und vereinfacht so die Planung von Handelsentscheidungen.
ICT Setup 03 [TradingFinder] Judas Swing NY 9:30am + CHoCH/FVG🔵 Introduction
Judas Swing is an advanced trading setup designed to identify false price movements early in the trading day. This advanced trading strategy operates on the principle that major market players, or "smart money," drive price in a certain direction during the early hours to mislead smaller traders.
This deceptive movement attracts liquidity at specific levels, allowing larger players to execute primary trades in the opposite direction, ultimately causing the price to return to its true path.
The Judas Swing setup functions within two primary time frames, tailored separately for Forex and Stock markets. In the Forex market, the setup uses the 8:15 to 8:30 AM window to identify the high and low points, followed by the 8:30 to 8:45 AM frame to execute the Judas move and identify the CISD Level break, where Order Block and Fair Value Gap (FVG) zones are subsequently detected.
In the Stock market, these time frames shift to 9:15 to 9:30 AM for identifying highs and lows and 9:30 to 9:45 AM for executing the Judas move and CISD Level break.
Concepts such as Order Block and Fair Value Gap (FVG) are crucial in this setup. An Order Block represents a chart region with a high volume of buy or sell orders placed by major financial institutions, marking significant levels where price reacts.
Fair Value Gap (FVG) refers to areas where price has moved rapidly without balance between supply and demand, highlighting zones of potential price action and future liquidity.
Bullish Setup :
Bearish Setup :
🔵 How to Use
The Judas Swing setup enables traders to pinpoint entry and exit points by utilizing Order Block and FVG concepts, helping them align with liquidity-driven moves orchestrated by smart money. This setup applies two distinct time frames for Forex and Stocks to capture early deceptive movements, offering traders optimized entry or exit moments.
🟣 Bullish Setup
In the Bullish Judas Swing setup, the first step is to identify High and Low points within the initial time frame. These levels serve as key points where price may react, forming the basis for analyzing the setup and assisting traders in anticipating future market shifts.
In the second time frame, a critical stage of the bullish setup begins. During this phase, the price may create a false break or Fake Break below the low level, a deceptive move by major players to absorb liquidity. This false move often causes smaller traders to enter positions incorrectly. After this fake-out, the price reverses upward, breaking the CISD Level, a critical point in the market structure, signaling a potential bullish trend.
Upon breaking the CISD Level and reversing upward, the indicator identifies both the Order Block and Fair Value Gap (FVG). The Order Block is an area where major players typically place large buy orders, signaling potential price support. Meanwhile, the FVG marks a region of supply-demand imbalance, signaling areas where price might react.
Ultimately, after these key zones are identified, a trader may open a buy position if the price reaches one of these critical areas—Order Block or FVG—and reacts positively. Trading at these levels enhances the chance of success due to liquidity absorption and support from smart money, marking an opportune time for entering a long position.
🟣 Bearish Setup
In the Bearish Judas Swing setup, analysis begins with marking the High and Low levels in the initial time frame. These levels serve as key zones where price could react, helping to signal possible trend reversals. Identifying these levels is essential for locating significant bearish zones and positioning traders to capitalize on downward movements.
In the second time frame, the primary bearish setup unfolds. During this stage, price may exhibit a Fake Break above the high, causing a brief move upward and misleading smaller traders into incorrect positions. After this false move, the price typically returns downward, breaking the CISD Level—a crucial bearish trend indicator.
With the CISD Level broken and a bearish trend confirmed, the indicator identifies the Order Block and Fair Value Gap (FVG). The Bearish Order Block is a region where smart money places significant sell orders, prompting a negative price reaction. The FVG denotes an area of supply-demand imbalance, signifying potential selling pressure.
When the price reaches one of these critical areas—the Bearish Order Block or FVG—and reacts downward, a trader may initiate a sell position. Entering trades at these levels, due to increased selling pressure and liquidity absorption, offers traders an advantage in profiting from price declines.
🔵 Settings
Market : The indicator allows users to choose between Forex and Stocks, automatically adjusting the time frames for the "Opening Range" and "Trading Permit" accordingly: Forex: 8:15–8:30 AM for identifying High and Low points, and 8:30–8:45 AM for capturing the Judas move and CISD Level break. Stocks: 9:15–9:30 AM for identifying High and Low points, and 9:30–9:45 AM for executing the Judas move and CISD Level break.
Refine Order Block : Enables finer adjustments to Order Block levels for more accurate price responses.
Mitigation Level OB : Allows users to set specific reaction points within an Order Block, including: Proximal: Closest level to the current price. 50% OB: Midpoint of the Order Block. Distal: Farthest level from the current price.
FVG Filter : The Judas Swing indicator includes a filter for Fair Value Gap (FVG), allowing different filtering based on FVG width: FVG Filter Type: Can be set to "Very Aggressive," "Aggressive," "Defensive," or "Very Defensive." Higher defensiveness narrows the FVG width, focusing on narrower gaps.
Mitigation Level FVG : Like the Order Block, you can set price reaction levels for FVG with options such as Proximal, 50% OB, and Distal.
CISD : The Bar Back Check option enables traders to specify the number of past candles checked for identifying the CISD Level, enhancing CISD Level accuracy on the chart.
🔵 Conclusion
The Judas Swing indicator helps traders spot reliable trading opportunities by detecting false price movements and key levels such as Order Block and FVG. With a focus on early market movements, this tool allows traders to align with major market participants, selecting entry and exit points with greater precision, thereby reducing trading risks.
Its extensive customization options enable adjustments for various market types and trading conditions, giving traders the flexibility to optimize their strategies. Based on ICT techniques and liquidity analysis, this indicator can be highly effective for those seeking precision in their entry points.
Overall, Judas Swing empowers traders to capitalize on significant market movements by leveraging price volatility. Offering precise and dependable signals, this tool presents an excellent opportunity for enhancing trading accuracy and improving performance
CAGR ProjectionThe CAGR Projection Indicator is a tool designed to visualize the potential growth of an asset over time based on a specified annual growth rate. This indicator overlays a projection line on the price chart, allowing traders and investors to compare actual price movements with a hypothetical growth trajectory.
One of the key features of this indicator is the ability for users to input their expected annual growth rate as a percentage. This flexibility allows for various scenarios to be modeled, from conservative estimates to more optimistic projections. Additionally, the indicator allows users to set a specific start date for the projection, enabling analysis from any chosen point in time.
The projection calculation is dynamic, adjusting for different timeframes and updating with each new bar on the chart. The indicator initializes either at the specified start date or when the first valid price is encountered. Using the initial price as a base, the indicator calculates the projected price for each subsequent bar using the compound growth formula. The calculation accounts for the specific timeframe of the chart, ensuring accurate projections regardless of whether the chart displays daily, weekly, or other intervals.
The projected growth is plotted as a blue line on the chart, providing a clear visual comparison between the actual price movement and the hypothetical growth trajectory. This visual representation makes it easy for users to quickly assess how an asset is performing relative to the expected growth rate.
This tool has several practical applications. Investors can use it to set realistic growth targets for their investments. By comparing actual price movements to the projection line, users can quickly assess if an asset is outperforming or underperforming relative to the expected growth rate. Furthermore, multiple instances of the indicator can be used with different growth rates to visualize various potential outcomes, facilitating scenario analysis.
The indicator also offers customization options, such as displaying a label showing the annual growth rate used for the projection, and the ability to adjust the color of the projection line to suit individual preferences or chart setups.
In summary, this CAGR Projection indicator serves as a valuable tool for both long-term investors and traders, offering a simple yet effective way to visualize potential growth scenarios and assess investment performance over time. It combines ease of use with powerful analytical capabilities, making it a useful addition to any trader's or investor's toolkit.
Crypto Wallets Profitability & Performance [LuxAlgo]The Crypto Wallets Profitability & Performance indicator provides a comprehensive view of the financial status of cryptocurrency wallets by leveraging on-chain data from IntoTheBlock. It measures the percentage of wallets profiting, losing, or breaking even based on current market prices.
Additionally, it offers performance metrics across different timeframes, enabling traders to better assess market conditions.
This information can be crucial for understanding market sentiment and making informed trading decisions.
🔶 USAGE
🔹 Wallets Profitability
This indicator is designed to help traders and analysts evaluate the profitability of cryptocurrency wallets in real-time. It aggregates data gathered from the blockchain on the number of wallets that are in profit, loss, or breaking even and presents it visually on the chart.
Breaking even line demonstrates how realized gains and losses have changed, while the profit and the loss monitor unrealized gains and losses.
The signal line helps traders by providing a smoothed average and highlighting areas relative to profiting and losing levels. This makes it easier to identify and confirm trading momentum, assess strength, and filter out market noise.
🔹 Profitability Meter
The Profitability Meter is an alternative display that visually represents the percentage of wallets that are profiting, losing, or breaking even.
🔹 Performance
The script provides a view of the financial health of cryptocurrency wallets, showing the percentage of wallets in profit, loss, or breaking even. By combining these metrics with performance data across various timeframes, traders can gain valuable insights into overall wallet performance, assess trend strength, and identify potential market reversals.
🔹 Dashboard
The dashboard presents a consolidated view of key statistics. It allows traders to quickly assess the overall financial health of wallets, monitor trend strength, and gauge market conditions.
🔶 DETAILS
🔹 The Chart Occupation Option
The chart occupation option adjusts the occupation percentage of the chart to balance the visibility of the indicator.
🔹 The Height in Performance Options
Crypto markets often experience significant volatility, leading to rapid and substantial gains or losses. Hence, plotting performance graphs on top of the chart alongside other indicators can result in a cluttered display. The height option allows you to adjust the plotting for balanced visibility, ensuring a clearer and more organized chart.
🔶 SETTINGS
The script offers a range of customizable settings to tailor the analysis to your trading needs.
Chart Occupation %: Adjust the occupation percentage of the chart to balance the visibility of the indicator.
🔹 Profiting Wallets
Profiting Percentage: Toggle to display the percentage of wallets in profit.
Smoothing: Adjust the smoothing period for the profiting percentage line.
Signal Line: Choose a signal line type (SMA, EMA, RMA, or None) to overlay on the profiting percentage.
🔹 Losing Wallets
Losing Percentage: Toggle to display the percentage of wallets in loss.
Smoothing: Adjust the smoothing period for the losing percentage line.
Signal Line: Choose a signal line type (SMA, EMA, RMA, or None) to overlay on the losing percentage.
🔹 Breaking Even Wallets
Breaking-Even Percentage: Toggle to display the percentage of wallets breaking even.
Smoothing: Adjust the smoothing period for the breaking-even percentage line.
🔹 Profitability Meter
Profitability Meter: Enable or disable the meter display, set its width, and adjust the offset.
🔹 Performance
Performance Metrics: Choose the timeframe for performance metrics (Day to Date, Week to Date, etc.).
Height: Adjust the height of the chart visuals to balance the visibility of the indicator.
🔹 Dashboard
Block Profitability Stats: Toggle the display of profitability stats.
Performance Stats: Toggle the display of performance stats.
Dashboard Size and Position: Customize the size and position of the performance dashboard on the chart.
🔶 RELATED SCRIPTS
Market-Sentiment-Technicals
Multi-Chart-Widget
RB Donchian Channel with Deviation RetracementBased on the Donchian Channel, this trading indicator leverages deviation retracements within the channel to identify strategic exit points and capture directional momentum. The Donchian Channel plots the highest high and lowest low over a specified period, creating a range that helps traders monitor price movements. By focusing on retracements within this range, the indicator allows traders to pinpoint exit levels, minimizing potential losses or securing gains as trends fluctuate. It uses a color-coded system to enhance readability and quick decision-making: blue indicates a long position, while red signals a short position. This approach to using retracements within the Donchian Channel provides a structured method for traders to follow momentum shifts and make data-driven trading choices.
Moving Average Percentage DifferenceMoving average is a great tool to identify the asset direction. However, it's hard to see whether the moving average speeds up or slows down from just looking at it. Ideally we want it to go faster as it will show a strong trend. And if it slows down - then the trend becomes weaker. This indicator helps to identify it. Theoretically, it could be shown with an angle of the moving average, but I don't like this idea as the angle depends on the scale: you zoom in and it looks very steep, you zoom out - and it's all flat. But the percentage change is always the percentage, no matter what zoom you use.
It also allows you to set a twilight zone to filter periods when MA does nothing.
Think about this indicator from this perspective: if a normal moving average shows the speed of a trend, then this indicator shows the change of the speed or in other words - acceleration.
War IndexIntroduction
Welcome to the War Index! This project aims to provide traders, investors, and analysts with a specialized financial indicator that tracks the performance of key defense and aerospace companies. By aggregating the percentage changes of selected stocks, the War Index offers insights into the defense sector's dynamics and its relationship with the broader market.
What is the War Index?
The War Index is a custom financial indicator designed to approximate the collective performance of major defense and aerospace companies. It aggregates the daily percentage changes of selected stocks within the defense sector to provide a singular metric that reflects the overall health and trends of this industry. Additionally, the index is compared against the S&P 500 (SPX) to contextualize its performance relative to the broader market.
Index Components
The War Index comprises the following 16 stocks, each representing a significant player in the defense and aerospace industries:
Lockheed Martin Corporation ( NYSE:LMT )
Northrop Grumman Corporation ( NYSE:NOC )
Boeing Company ( NYSE:BA )
Raytheon Technologies Corporation ( NYSE:RTX )
General Dynamics Corporation ( NYSE:GD )
BAE Systems plc ( OTC:BAESY )
L3Harris Technologies, Inc. ( NYSE:LHX )
Textron Inc. ( NYSE:TXT )
Huntington Ingalls Industries, Inc. ( NYSE:HII )
Oshkosh Corporation ( NYSE:OSK )
Leidos Holdings, Inc. ( NYSE:LDOS )
Kratos Defense & Security Solutions, Inc. ( NASDAQ:KTOS )
Spirit AeroSystems Holdings, Inc. ( NYSE:SPR )
Parsons Corporation ( NYSE:PSN )
CACI International Inc ( NYSE:CACI )
ViaSat, Inc. ( NASDAQ:VSAT )
Purpose of the War Index
The War Index serves several key purposes:
Sector Performance Tracking : By aggregating the performance of major defense and aerospace companies, the index provides a clear picture of the sector's overall health.
Investment Analysis : Investors can use the index to identify trends, evaluate sector strength, and make informed decisions regarding their portfolios.
Comparative Benchmarking : Comparing the War Index with broader market indices like the S&P 500 helps in understanding how the defense sector performs relative to the general market.
Disclaimer: This War Index is an approximated indicator intended for informational purposes only. It should not be construed as investment advice. Always conduct your own research or consult with a financial advisor before making investment decisions.
Multifactor Buy/Sell Strategy V2 | RSI, MACD, ATR, EMA, Boll.BITGET:1INCHUSDT
This Pine Script code for TradingView is a multifactor Buy/Sell indicator that combines several technical factors to generate trading signals based on trend, volatility, and volume conditions. Here’s a breakdown of the main components and functionality:
Indicator Name
- Multifactor Buy/Sell Strategy V2 — an overlay indicator applied directly on the price chart.
### Input Parameters
The script includes multiple customizable parameters:
- RSI, EMA, MACD parameters — for setting periods and signals of MACD and RSI.
- ATR and Bollinger Bands — used for volatility analysis and level determination.
- Minimum Volatility Threshold — sets a minimum Bollinger Band width threshold for determining high volatility.
Core Indicators
1. RSI — calculated to identify oversold (below 30) and overbought (above 70) conditions.
2. EMA and MACD — calculates exponential moving averages and MACD histogram to determine trend direction.
3. ATR and Bollinger Bands — used to assess current volatility and establish dynamic upper and lower bands.
Volatility and Volume Analysis
- Determines the current ATR level and Bollinger Band width to evaluate high volatility.
- Calculates the volume moving average to track periods of increased volume during high volatility.
Trend Analysis
The script uses the difference between fast and slow EMAs to define strong trends:
- Uptrend — when the fast EMA is above the slow EMA, the price is above the fast EMA, and the trend is strong.
- Downtrend — when the fast EMA is below the slow EMA, the price is below the fast EMA, and the trend is strong.
Momentum Filter
- Based on the price change over the last three bars and compared against the minimum volatility threshold to identify strong momentum.
Buy and Sell Signal Generation
- Buy Signal: Uptrend with RSI oversold, positive MACD histogram, high volatility and volume, strong momentum, and sufficient Bollinger Band width.
- Sell Signal: Downtrend with RSI overbought, negative MACD histogram, high volatility and volume, strong momentum, and sufficient Bollinger Band width.
Visualization
- Buy and sell signals are displayed as green and red triangles on the chart.
- Plots for fast and slow EMAs, upper and lower bands, and Bollinger Bands.
Alerts
The script includes alert conditions for buy and sell signals, allowing notifications to be sent via email or mobile app.
Information Panel
A small table on the chart displays current volatility dataThis Pine Script code for TradingView is a multifactor Buy/Sell indicator that combines several technical factors to generate trading signals based on trend, volatility, and volume conditions. Here’s a breakdown of the main components and functionality:
Indicator Name
- Multifactor Buy/Sell Strategy V2 — an overlay indicator applied directly on the price chart.
Input Parameters
The script includes multiple customizable parameters:
- **RSI, EMA, MACD parameters** — for setting periods and signals of MACD and RSI.
- **ATR and Bollinger Bands** — used for volatility analysis and level determination.
- **Minimum Volatility Threshold** — sets a minimum Bollinger Band width threshold for determining high volatility.
Core Indicators
1. RSI — calculated to identify oversold (below 30) and overbought (above 70) conditions.
2. EMA and MACD — calculates exponential moving averages and MACD histogram to determine trend direction.
3. ATR and Bollinger Bands — used to assess current volatility and establish dynamic upper and lower bands.
Volatility and Volume Analysis
- Determines the current ATR level and Bollinger Band width to evaluate high volatility.
- Calculates the volume moving average to track periods of increased volume during high volatility.
Trend Analysis
The script uses the difference between fast and slow EMAs to define strong trends:
- Uptrend — when the fast EMA is above the slow EMA, the price is above the fast EMA, and the trend is strong.
- Downtrend — when the fast EMA is below the slow EMA, the price is below the fast EMA, and the trend is strong.
Momentum Filter
- Based on the price change over the last three bars and compared against the minimum volatility threshold to identify strong momentum.
Buy and Sell Signal Generation
- Buy Signal: Uptrend with RSI oversold, positive MACD histogram, high volatility and volume, strong momentum, and sufficient Bollinger Band width.
- Sell Signal: Downtrend with RSI overbought, negative MACD histogram, high volatility and volume, strong momentum, and sufficient Bollinger Band width.
Visualization
- Buy and sell signals are displayed as green and red triangles on the chart.
- Plots for fast and slow EMAs, upper and lower bands, and Bollinger Bands.
Alerts
The script includes alert conditions for buy and sell signals, allowing notifications to be sent via email or mobile app.
Information Panel
A small table on the chart displays current volatility
- Volatility Status — indicates high or low volatility.
- Bollinger Band Width — current width as a percentage.
- ATR Ratio — ratio of current ATR to long-term average ATR.
This script is suitable for trading in high-volatility conditions, combining multiple filters and factors to generate precise buy and sell signals.
Percentile Momentum IndicatorInput Parameters:
lengthPercentile: Defines the period used to calculate the percentile values (default: 30).
lengthMomentum: Defines the period for calculating the Rate of Change (ROC) momentum (default: 10).
Core Logic:
Rate of Change (ROC): The script calculates the ROC of the closing price over the specified period (lengthMomentum).
Percentile Calculations: The script calculates two key percentiles:
percentile_upper (80th percentile of the high prices)
percentile_lower (20th percentile of the low prices)
Percentile Average: An average of the upper and lower percentiles is calculated (avg_percentile).
Trade Signals:
Buy Signal: Triggered when the ROC is positive, the close is above the percentile_lower, and the close is above the avg_percentile.
Sell Signal: Triggered when the ROC is negative, the close is below the percentile_upper, and the close is below the avg_percentile.
Trade State Management:
The script uses a binary state: 1 for long (buy) and -1 for short (sell).
The trade state is updated based on buy or sell signals.
Bar Coloring:
Bars are colored dynamically based on the trade state:
Green for long (buy signal).
Red for short (sell signal).
The same color is applied to the percentile and average percentile lines for visual consistency.
Exposure Oscillator (Cumulative 0 to ±100%)
Exposure Oscillator (Cumulative 0 to ±100%)
This Pine Script indicator plots an "Exposure Oscillator" on the chart, which tracks the cumulative market exposure from a range of technical buy and sell signals. The exposure is measured on a scale from -100% (maximum short exposure) to +100% (maximum long exposure), helping traders assess the strength of their position in the market. It provides an intuitive visual cue to aid decision-making for trend-following strategies.
Buy Signals (Increase Exposure Score by +10%)
Buy Signal 1 (Cross Above 21 EMA):
This signal is triggered when the price crosses above the 21-period Exponential Moving Average (EMA), where the current bar closes above the EMA21, and the previous bar closed below the EMA21. This indicates a potential upward price movement as the market shifts into a bullish trend.
buySignal1 = ta.crossover(close, ema21)
Buy Signal 2 (Trending Above 21 EMA):
This signal is triggered when the price closes above the 21-period EMA for each of the last 5 bars, indicating a sustained bullish trend. It confirms that the price is consistently above the EMA21 for a significant period.
buySignal2 = ta.barssince(close <= ema21) > 5
Buy Signal 3 (Living Above 21 EMA):
This signal is triggered when the price has closed above the 21-period EMA for each of the last 15 bars, demonstrating a strong, prolonged uptrend.
buySignal3 = ta.barssince(close <= ema21) > 15
Buy Signal 4 (Cross Above 50 SMA):
This signal is triggered when the price crosses above the 50-period Simple Moving Average (SMA), where the current bar closes above the 50 SMA, and the previous bar closed below it. It indicates a shift toward bullish momentum.
buySignal4 = ta.crossover(close, sma50)
Buy Signal 5 (Cross Above 200 SMA):
This signal is triggered when the price crosses above the 200-period Simple Moving Average (SMA), where the current bar closes above the 200 SMA, and the previous bar closed below it. This suggests a long-term bullish trend.
buySignal5 = ta.crossover(close, sma200)
Buy Signal 6 (Low Above 50 SMA):
This signal is true when the lowest price of the current bar is above the 50-period SMA, indicating strong bullish pressure as the price maintains itself above the moving average.
buySignal6 = low > sma50
Buy Signal 7 (Accumulation Day):
An accumulation day occurs when the closing price is in the upper half of the daily range (greater than 50%) and the volume is larger than the previous bar's volume, suggesting buying pressure and accumulation.
buySignal7 = (close - low) / (high - low) > 0.5 and volume > volume
Buy Signal 8 (Higher High):
This signal occurs when the current bar’s high exceeds the highest high of the previous 14 bars, indicating a breakout or strong upward momentum.
buySignal8 = high > ta.highest(high, 14)
Buy Signal 9 (Key Reversal Bar):
This signal is generated when the stock opens below the low of the previous bar but rallies to close above the previous bar’s high, signaling a potential reversal from bearish to bullish.
buySignal9 = open < low and close > high
Buy Signal 10 (Distribution Day Fall Off):
This signal is triggered when a distribution day (a day with high volume and a close near the low of the range) "falls off" the rolling 25-bar period, indicating the end of a bearish trend or selling pressure.
buySignal10 = ta.barssince(close < sma50 and close < sma50) > 25
Sell Signals (Decrease Exposure Score by -10%)
Sell Signal 1 (Cross Below 21 EMA):
This signal is triggered when the price crosses below the 21-period Exponential Moving Average (EMA), where the current bar closes below the EMA21, and the previous bar closed above it. It suggests that the market may be shifting from a bullish trend to a bearish trend.
sellSignal1 = ta.crossunder(close, ema21)
Sell Signal 2 (Trending Below 21 EMA):
This signal is triggered when the price closes below the 21-period EMA for each of the last 5 bars, indicating a sustained bearish trend.
sellSignal2 = ta.barssince(close >= ema21) > 5
Sell Signal 3 (Living Below 21 EMA):
This signal is triggered when the price has closed below the 21-period EMA for each of the last 15 bars, suggesting a strong downtrend.
sellSignal3 = ta.barssince(close >= ema21) > 15
Sell Signal 4 (Cross Below 50 SMA):
This signal is triggered when the price crosses below the 50-period Simple Moving Average (SMA), where the current bar closes below the 50 SMA, and the previous bar closed above it. It indicates the start of a bearish trend.
sellSignal4 = ta.crossunder(close, sma50)
Sell Signal 5 (Cross Below 200 SMA):
This signal is triggered when the price crosses below the 200-period Simple Moving Average (SMA), where the current bar closes below the 200 SMA, and the previous bar closed above it. It indicates a long-term bearish trend.
sellSignal5 = ta.crossunder(close, sma200)
Sell Signal 6 (High Below 50 SMA):
This signal is true when the highest price of the current bar is below the 50-period SMA, indicating weak bullishness or a potential bearish reversal.
sellSignal6 = high < sma50
Sell Signal 7 (Distribution Day):
A distribution day is identified when the closing range of a bar is less than 50% and the volume is larger than the previous bar's volume, suggesting that selling pressure is increasing.
sellSignal7 = (close - low) / (high - low) < 0.5 and volume > volume
Sell Signal 8 (Lower Low):
This signal occurs when the current bar's low is less than the lowest low of the previous 14 bars, indicating a breakdown or strong downward momentum.
sellSignal8 = low < ta.lowest(low, 14)
Sell Signal 9 (Downside Reversal Bar):
A downside reversal bar occurs when the stock opens above the previous bar's high but falls to close below the previous bar’s low, signaling a reversal from bullish to bearish.
sellSignal9 = open > high and close < low
Sell Signal 10 (Distribution Cluster):
This signal is triggered when a distribution day occurs three times in the rolling 7-bar period, indicating significant selling pressure.
sellSignal10 = ta.valuewhen((close < low) and volume > volume , 1, 7) >= 3
Theme Mode:
Users can select the theme mode (Auto, Dark, or Light) to match the chart's background or to manually choose a light or dark theme for the oscillator's appearance.
Exposure Score Calculation: The script calculates a cumulative exposure score based on a series of buy and sell signals.
Buy signals increase the exposure score, while sell signals decrease it. Each signal impacts the score by ±10%.
Signal Conditions: The buy and sell signals are derived from multiple conditions, including crossovers with moving averages (EMA21, SMA50, SMA200), trend behavior, and price/volume analysis.
Oscillator Visualization: The exposure score is visualized as a line on the chart, changing color based on whether the exposure is positive (long position) or negative (short position). It is limited to the range of -100% to +100%.
Position Type: The indicator also indicates the position type based on the exposure score, labeling it as "Long," "Short," or "Neutral."
Horizontal Lines: Reference lines at 0%, 100%, and -100% visually mark neutral, increasing long, and increasing short exposure levels.
Exposure Table: A table displays the current exposure level (in percentage) and position type ("Long," "Short," or "Neutral"), updated dynamically based on the oscillator’s value.
Inputs:
Theme Mode: Choose "Auto" to use the default chart theme, or manually select "Dark" or "Light."
Usage:
This oscillator is designed to help traders track market sentiment, gauge exposure levels, and manage risk. It can be used for long-term trend-following strategies or short-term trades based on moving average crossovers and volume analysis.
The oscillator operates in conjunction with the chart’s price action and provides a visual representation of the market’s current trend strength and exposure.
Important Considerations:
Risk Management: While the exposure score provides valuable insight, it should be combined with other risk management tools and analysis for optimal trading decisions.
Signal Sensitivity: The accuracy and effectiveness of the signals depend on market conditions and may require adjustments based on the user’s trading strategy or timeframe.
Disclaimer:
This script is for educational purposes only. Trading involves significant risk, and users should carefully evaluate all market conditions and apply appropriate risk management strategies before using this tool in live trading environments.
Old Price OscillatorThe Old Price Oscillator (OPO) is a momentum indicator widely used by traders and analysts to gauge the direction and strength of price trends. It works by calculating the difference between two moving averages—a shorter-term moving average and a longer-term moving average—of a security’s price. This difference is plotted as an oscillating line, helping traders visualize the momentum and determine when price reversals or continuations might occur. Typically, when the oscillator value is positive, the price is trending upwards, suggesting potential buy signals; conversely, when the oscillator turns negative, it indicates downward momentum, which could signal a potential sell.
The OPO is similar to other oscillators, like the Moving Average Convergence Divergence (MACD), in that it uses moving averages to smooth out price fluctuations and clarify trends. Traders often customize the length of the short- and long-term moving averages to better suit specific assets or market conditions. Generally, this indicator is especially useful in markets that exhibit clear trends. However, it may generate false signals during sideways or highly volatile periods, so many traders combine the OPO with other technical indicators or filters to improve accuracy.