GAP Momentum Oscillator
This function calculates GAP Momentum, a measure of momentum based on the gaps between opening and closing prices over several periods.
Gaps are calculated for defined periods (here, by default, 14 periods). It determines :
UpGaps: the sum of positive gaps, i.e. openings that are higher than the previous period's close.
DnGaps: the sum of negative gaps, i.e. openings below the previous period's close.
It then calculates the GAP Momentum as the ratio between the sum of the up gaps and the sum of the down gaps, multiplied by 100. If the total of the down gaps is zero, the ratio takes a default value of 1 to avoid division by zero.
Breadth Indicators
best indicator at 15 minut This Pine Script code builds an indicator called EMA Crossover with Historical Price Projection that combines two components:
EMA Crossover Strategy:
EMA 9 and EMA 21: The script calculates two exponential moving averages (EMAs) using the ta.ema() function. The crossover between these EMAs generates buy/sell signals.
A bullish crossover (when EMA 9 crosses above EMA 21) signals a buy.
A bearish crossover (when EMA 9 crosses below EMA 21) signals a sell.
These buy/sell signals are visualized on the chart using the plotshape() function with green and red symbols.
Historical Price Projection:
The code projects future prices based on historical price trends. It takes into account growth factors (user-defined drift percentages) to estimate future prices.
Projection Line: It draws a projection line from the anchor point (set by the user) using historical data. The drift factor allows you to control the projection's slope.
Forecasting Area: It shows an optional area around the projected price, adjusting the width with a user-defined growth factor for the forecast's uncertainty.
Key Sections:
Inputs:
User-defined inputs for controlling the growth factor, line styles, and forecasting area settings.
An anchoring point is provided to determine from which bar the price projection should start.
EMA Crossover:
The crossover conditions for EMA 9 and EMA 21 are defined, and the script generates buy and sell signals at those crossovers.
Historical Price Projection:
It stores the percentage changes between bars in barDeltaPercents.
It projects the future price based on these percentages and the user-defined drift factor.
The projected price is visualized using polyline.new(), and a shaded area can be added to show the range of price possibilities.
Execution Logic:
The script runs when the current time is greater than the anchor point.
If the anchor point is too far back in history, it gives a warning via the showInfoPanel function.
As new bars are confirmed, the drift is calculated, and the projection line and area are updated based on historical price changes.
Overall Flow:
It gathers price data up to 500 bars from the anchor point.
Based on the historical price trend, it forecasts the future price with a projection line and an optional shaded area.
The crossover logic for EMA 9 and 21 provides actionable signals on when to buy or sell.
Simplified Market ProfileVolume Bins: This script divides the price range into num_bins equal price levels. Each bin holds the cumulative volume for that price range.
Profile Length: The number of past bars that the profile considers for building the volume histogram.
Bin Size: The price range between bins is determined by dividing the difference between the highest and lowest prices over the specified range.
Volume Calculation: The script iterates over each bar within the specified range, determining which price bin the bar’s volume should be added to.
Plotting: The script visualizes the volume profile as lines plotted horizontally at different price levels, with thickness proportional to the volume traded at that level.
Trend/with EMA382Introduction to the "Trend/with EMA382" Indicator
The "Trend/with EMA382" indicator is a powerful technical analysis tool that combines trend signals with Exponential Moving Averages (EMA), offering traders a comprehensive view of market dynamics and helping identify potential trading opportunities.
1. Trend Analysis with Trend
The first part of this indicator uses a trend calculation algorithm based on the recent market highs and lows. These levels are used to determine the primary trend:
Bullish (Uptrend): When the market is in an uptrend, the chart will display buy signals in green.
Bearish (Downtrend): When the market is trending down, sell signals are shown in red.
The crossover points between price and trend levels will indicate buy or sell signals on the chart, enabling traders to easily spot entry and exit points.
2. Combination with EMA382
EMA (Exponential Moving Average) is a crucial tool in technical analysis, helping smooth price data and eliminate insignificant short-term fluctuations. This indicator uses three key EMAs:
EMA 34: Reflects short-term trends.
EMA 89: Helps identify medium-term trends.
EMA 200: Determines long-term trends.
These three EMAs assist traders in identifying the overall direction of the market, allowing them to forecast potential trend developments.
3. Application in Trading
The "Trend/with EMA382" indicator is designed to suit various time frames, from short-term to long-term trading. The combination of trend signals and EMAs helps:
Identify the primary market trend.
Provide accurate entry and exit signals.
Deliver clear signals for risk management and profit optimization.
Conclusion
"Trend/with EMA382" is an effective indicator that offers clear signals for both trend and market momentum. By combining EMAs with trend analysis, this indicator empowers traders to make more informed and precise trading decisions.
COMBINED EMA & SMA + DOUBLE DEMA, $TOTAL 1W / 5D -- Ruslan CRYPTOCAP:TOTAL
This Pine Script indicator, **"EMAS"**, provides an enhanced visualization of multiple types of moving averages, including both **Exponential Moving Averages (EMA)**, **Simple Moving Averages (SMA)**, and **Double Exponential Moving Averages (DEMA)**. It allows the user to observe the relationship between these different types of moving averages and apply regime-based coloring to price bars based on the comparison between the EMAs and DEMAs.
#### Key Features:
1. **EMA & SMA:**
- **EMA (Exponential Moving Average):** Calculated using a customizable lookback period (default 17), the EMA places greater weight on more recent prices, making it react faster to price changes.
- **SMA (Simple Moving Average):** Uses an equal-weighted average over a customizable lookback period (default 14), providing a slower-moving average compared to the EMA.
2. **DEMA (Double Exponential Moving Average):**
- Two separate DEMA lines are plotted using different lookback periods (default 2 and 14). The DEMA is a smoother and faster-responding version of the EMA, intended to reduce lag while retaining trend-following characteristics.
3. **Combined Signals:**
- The script calculates ratios between EMA/SMA (`comb`) and DEMA1/DEMA2 (`combd`) to generate a **regime-based bar coloring system**:
- If `combd > comb`: The bars are colored **green**, indicating that DEMAs are outperforming the EMAs, potentially signaling a stronger trend or momentum.
- If `comb > combd`: The bars are colored **red**, suggesting that the EMAs are dominant, which may indicate a different phase of the market.
4. **Signal SMA:**
- A 21-period **SMA** is plotted as a general trend-following signal. It provides a broader perspective on the current price trend, helping to smooth out short-term fluctuations.
5. **Customizable Options:**
- **"Show MAs?"**: The user has the option to toggle the display of the EMA, SMA, and DEMA lines on or off.
- **Custom Period Inputs**: Each type of moving average can have its period length customized via the input settings for better adaptability to different market conditions.
#### How to Use the Indicator:
- **Trend Following**:
The **EMA, SMA, and DEMA** values can help you determine the direction of the trend. When the EMA is above the SMA, it could indicate a stronger, more recent upward momentum. Similarly, DEMA comparisons provide smoother and faster trend signals.
- **Bar Coloring Regime**:
The **bar color** gives a quick visual cue of the regime:
- **Green bars** suggest that DEMAs are indicating stronger bullish or bearish signals compared to the EMAs.
- **Red bars** imply the opposite, where EMAs may be showing stronger signals, but possibly with more noise or lag.
- **Signal SMA**:
The **21-period SMA** line can be used as a simple trend indicator. When the price is above this line, it could signify an uptrend, while price movement below the line might indicate a downtrend.
#### Custom Inputs:
- **EMA Length**: Default is 17, but can be adjusted to fit your trading style.
- **SMA Length**: Default is 14.
- **DEMA Lengths**: Two customizable inputs for DEMA (default 2 and 14).
- **Source Selection**: You can choose which price source (close, open, high, low, etc.) to use for each calculation (default is the closing price).
#### Conclusion:
This indicator is useful for traders who wish to blend **trend-following strategies** (using EMA, SMA, and DEMA) with **visual regime indicators** (bar coloring). It is highly customizable, allowing traders to adjust settings based on their market approach. The combination of EMAs and DEMAs provides a nuanced view of price dynamics, potentially leading to better-informed trading decisions.
Horizontal Lines 0.5, BY ROSHAN SINGHThis indicator identify support and resistance to trade in 1min time frame, based of fib 0.5 level, on 15 min time frame find major high and low means major swing, low will be our start level and high will be our end level input in setting, substract high and end level and now divide answer with 2 till the daily volatility of a index or stock, if saying about nifty suppose nifty daily travel minimum for 65 pts then interval will be 65 input in settings, now all horizontals lines means support and level will be plotted on chart, buy on support, sell on resistance
Market Internals: VolumeThe indicator plots the total volume of the NYSE and NASDAQ exchanges and identifies periods with significant asymmetry between Up Volume and Down Volume. It can be used as an additional tool to confirm broad market sentiment.
Chart shows Total Volume (TVOL) bars for SPY daily chart. Green bars for UVOL>>DVOL, Red for DVOL>>UVOL. Neutral bars are gray. Blue line shows median TVOL.
Rationale:
Up Volume (UVOL) and Down Volume (DVOL) represent the total volume of stocks that have increased or decreased in price, respectively, compared to the previous session's closing price. The magnitude of the price change is irrelevant.
When UVOL is significantly higher than DVOL, it indicates a prevailing buying sentiment in the broad market. Conversely, when DVOL is higher, it signals prevailing selling sentiment.
Occasionally, the UVOL/DVOL (VOLD) ratio may be misaligned with the movement of the S&P index. The picture below illustrates an example of a day when the S&P declined, yet the UVOL was twice larger than DVOL. Such a divergence can suggest that the S&P was pulled down by a decline in a few large-cap stocks, while the broader market remained positive. In this case, the divergence led to a continuation of the rally.
Thus, VOLD, when combined with volume analysis, can be an effective tool for confirming market trends.
Parameters:
VOLD Ratio – minimum ratio of UVOL/DVOL or DVOL/UVOL. Indicator will color code volume columns when condition is true (“green” means buying; “red” selling).
Median Length – number of periods to calculate median TVOL.
Show Divergencies – indicator marks divergencies between price and volume sentiments on the main chart. Only works for SPY chart.
Users can also choose which exchanges (NASDAQ/NYSE) to use for volume calculation.
Notes:
Volume is shown in millions of contracts
Indicator should be used on the daily or higher timeframes. It won't work properly on the intraday charts
Disclaimer
This indicator should not be used as a standalone tool to make trading decisions but only in conjunction with other technical analysis methods.
MTOBVR_CheckOverview.
This indicator checks to see if the OBV follows a specific pattern and visually displays the trend of the OBV on different time legs. It also has the ability to set alerts when certain conditions are met.
How to use
Setting up the indicator
Add a new indicator on a chart in TradingView.
Copy the code into the “Pine Script™ Editor” and save it as a new script.
Apply the script to your chart.
Indicator Functions
OBV Calculation
Calculates OBV for each time frame (5-minute, 15-minute, 30-minute, 1-hour, 4-hour, daily, and weekly) and displays it on the chart OBV is an indicator that combines price changes and trading volume.
Pattern Detection
Detects whether a particular pattern, such as a double or triple bottom, appears in the OBV. This allows us to identify buy or sell signals.
When these patterns are detected, the background color changes.
Background Color Change
When an OBV forms a particular pattern, the background color of the chart changes. This provides visual confirmation that a pattern has appeared.
Minimum pattern (min_bool): when the 5-, 15-, and 30-minute conditions for OBV are met.
High hourly pattern (h_bool): when the condition is met for the 1-hour, 4-hour, and daily legs of the OBV.
One-week pattern (range_obv_1w_bool): when the condition is met for the 1-week OBV pattern.
When all conditions are met: when the minimum pattern, high hourly pattern, and one-week pattern are all met.
Alert Settings
You can set alerts when certain conditions are met. This allows you to receive signals in real time.
Minimum conditions (min_bool): conditions at 5, 15, and 30 minutes of OBV.
High timeframe condition (h_bool): condition on the 1-hour, 4-hour, and daily legs of the OBV.
When all conditions are met: When all of the above conditions are met.
One-week condition (range_obv_1w_bool): Condition for the one-week leg of the OBV.
When all conditions are met: when the minimum, high time leg, and one week conditions are all met.
Arrows
OBV_ALL_UP: A green triangle arrow is displayed when the OBV is rising on all time legs.
OBV_ALL_DOWN: A red triangle arrow appears when the OBV is falling on all time legs.
Usage Notes
Time Leg Settings: This script uses OBVs of different time legs to detect patterns. Depending on the time leg used, appropriate settings and interpretation are required.
Alert settings: In order to activate the alert function, the alert conditions and notification method must be configured using TradingView's alert system.
This indicator allows you to visually see trends and patterns in the OBV across multiple time frames, allowing you to make more informed trading decisions.
RSI with Bollinger Bands Scalp Startegy (1min)
------------------------------------------------------------------------------
The "RSI with Bollinger Bands Scalp Strategy (1min)" is a highly effective tool designed for traders who engage in short-term scalping on the 1-minute chart. This indicator combines the strengths of the RSI (Relative Strength Index) and Bollinger Bands to generate precise buy signals, helping traders make quick and informed decisions in fast-moving markets.
How It Works:
RSI (Relative Strength Index):
The RSI is a widely-used momentum oscillator that measures the speed and change of price movements. It operates on a scale of 0 to 100 and helps identify overbought and oversold conditions in the market.
This strategy allows customization of the RSI's lower and upper bands (default settings: 30 for the lower band and 70 for the upper band) and the RSI length (default: 14).
Bollinger Bands:
Bollinger Bands consist of a central moving average (the basis) and two bands that represent standard deviations above and below the basis. These bands expand and contract based on market volatility.
In this strategy, the Bollinger Bands are used to identify potential buy and sell signals based on the price's relationship to the upper and lower bands.
Signal Generation:
Buy Signal: A buy signal is triggered when two conditions are met:
The RSI value falls below the specified lower band, indicating an oversold condition.
The price crosses below the lower Bollinger Band.
The buy signal is then issued on the first positive candle (where the closing price is greater than or equal to the opening price) after these conditions are met.
Sell Signal: In this version of the strategy, the sell signal is currently disabled to focus solely on generating and optimizing the buy signals for scalping.
Strategy Highlights:
This indicator is particularly effective for traders who focus on 1-minute charts and want to capitalize on rapid price movements.
The combination of RSI and Bollinger Bands ensures that buy signals are only generated during significant oversold conditions, helping to filter out false signals.
Customization:
Users can adjust the RSI length, Bollinger Bands length, and the standard deviation multiplier to better fit their specific trading style and the asset they are trading.
The moving average type for Bollinger Bands can be selected from various options, including SMA, EMA, SMMA, WMA, and VWMA, allowing further customization based on individual preferences.
Usage:
Use this indicator on a 1-minute chart to identify potential buy opportunities during short-term price dips.
Since the sell signals are disabled, this strategy is best used in conjunction with other indicators or strategies to manage exit points effectively.
This "RSI with Bollinger Bands Scalp Strategy (1min)" indicator is a valuable tool for traders looking to enhance their short-term trading performance by focusing on high-probability entry points in volatile market conditions.
Cumulative Delta [TradingFinder] Volume + Periodic + EMA🔵 Introduction
To fully grasp the concept of Cumulative Volume Delta (CVD), it's essential first to understand Volume Delta. In trading and technical analysis, the term "Delta" typically refers to the difference between two values or the rate of change between two data points.
Volume Delta represents the difference between buying and selling pressure, calculated for each candlestick on a chart. This difference can vary across different timeframes.
A positive delta indicates that buying volume exceeds selling volume, while a negative delta shows that selling volume is greater. When buying and selling volumes are equal, the volume delta equals zero.
🟣 What is Cumulative Volume Delta (CVD)?
Cumulative Volume Delta (CVD) is a powerful tool in technical analysis that aggregates delta values for each candlestick, creating a comprehensive indicator that helps traders assess market trends.
Unlike the standard Volume Delta, which compares delta on a candle-by-candle basis, CVD provides insight into the overall buying and selling pressure during key market swings. A downward-trending CVD suggests that selling pressure is dominating, which is typically a bearish signal.
Conversely, an upward-trending CVD indicates bullish sentiment. This analysis becomes even more significant when comparing CVD with price action and market structure, helping traders to predict asset price directions.
By evaluating market highs and lows, one can determine the market trend. A consistent rise in these points indicates an uptrend, while a consistent fall suggests a downtrend.
🔵 How to Use
Understanding how to detect trend changes using Cumulative Volume Delta is crucial for traders. Typically, CVD aligns with market structure, moving in the same direction as price trends.
However, divergences between CVD and price trends or signs of exhaustion in volume can be powerful indicators of potential market reversals. Recognizing these patterns can help traders make informed decisions and improve their trading strategies.
🟣 Identifying Trend Exhaustion with Cumulative Volume Delta (CVD)
The Cumulative Volume Delta (CVD) indicator is especially effective in identifying weakening trends in the market. For instance, if gold's price hits a new low, but CVD does not follow suit, this may indicate a lack of seller interest despite the new low, signaling potential seller exhaustion.
Most traders interpret this as a possible reversal from a bearish to a bullish trend. Similarly, if gold reaches a new high but CVD fails to do the same, it can suggest that buyers lack the strength to push the market higher, indicating a possible trend reversal.
🟣 Utilizing Cumulative Volume Delta (CVD) Divergence in Price Trend Analysis
Another effective use of CVD is identifying divergences in price trends. For example, if CVD breaks a previous high or low while the price remains stable, this divergence often indicates that buying or selling pressure is being absorbed.
For instance, if CVD rises sharply without a corresponding increase in gold prices, it may suggest that sellers are absorbing the buying pressure, potentially leading to a strong sell-off. Conversely, if gold prices remain stable while CVD declines, it could indicate that buyers are absorbing selling pressure, likely leading to a price increase once selling subsides.
🔵 Setting
Cumulative Mode : It has three modes "Total", "Periodic" and "EMA". In "Total" mode, it collects the volume from the beginning to the end. In "Periodic" mode, it accumulates the volume periodically and in "EMA" mode, it calculates the moving average of the volume.
Period : You can set the period of " Periodic " and " EMA " modes.
Market Ultra Data : If you turn on this feature, 26 large brokers will be included in the calculation of the trading volume.
The advantage of this capability is to have more reliable volume data. You should be careful to specify the market you are in, FOREX brokers and Crypto brokers are different.
🔵 Conclusion
Cumulative Volume Delta (CVD) is a powerful analytical tool in financial markets that helps analysts and traders assess buying and selling pressure by aggregating and combining the volume delta for each candlestick.
CVD can indicate the strength or weakness of a market trend. When CVD moves upward, it signals that buying pressure is dominant and is considered a bullish signal; conversely, a downward movement in CVD indicates that selling pressure is stronger and is viewed as a bearish signal.
This indicator is particularly effective in identifying divergences and exhaustion in market trends. For example, if CVD does not align with price movements, it may suggest a potential trend reversal.
Traders use this information to make more informed trading decisions, especially when identifying entry and exit points in the market.
Overall, CVD is a tool that enables analysts to better understand market fluctuations and more accurately predict future market trends.
Volume-Weighted RSI with HMA SmoothingThis script combines a Volume-Weighted RSI, smoothed with a custom Hull Moving Average (HMA), with a modified MACD based on normalized net volume.
Volume-Weighted RSI: It is calculated by adjusting the closing price with a normalized On-Balance Volume (OBV) and then applying an RSI. This approach weights the RSI according to volume, providing a more accurate measure of the strength of the price movement.
Modified HMA: A Hull Moving Average (HMA) is used to smooth the Volume-Weighted RSI, enhancing the ability to identify market trend changes.
Possible Reversal from Oversold:
The Volume-Weighted RSI crosses above the oversold level.
It is displayed as an upward green triangle at the bottom of the chart, indicating that the market might be exhausting its oversold conditions and potentially starting an upward reversal.
Possible Reversal from Overbought:
The Volume-Weighted RSI crosses below the overbought level.
It is displayed as a downward red triangle at the top of the chart, indicating that the market might be exhausting its overbought conditions and potentially starting a downward reversal.
Confirmation with the Modified MACD: For a more robust interpretation, the behavior of the modified MACD can be observed alongside the RSI cross.
The MACD is also modified, using normalized net volume (calculated as the cumulative change in the closing price multiplied by volume) as the input instead of the standard closing price.
The direction and color change of the MACD bars indicate the market's momentum.
Alerts: Alerts are set to trigger automatically when the modified RSI crosses the oversold or overbought levels.
Español:
Este script combina un RSI ponderado por volumen, suavizado con un Hull Moving Average (HMA) personalizado, con un MACD modificado basado en volumen neto normalizado.
RSI Ponderado por Volumen: Se calcula ajustando el precio de cierre con un OBV (On-Balance Volume) normalizado y luego aplicando un RSI. Este enfoque pondera el RSI según el volumen, proporcionando una medida más precisa de la fuerza del movimiento del precio.
HMA Modificado: Se utiliza un Hull Moving Average (HMA) para suavizar el RSI Ponderado por Volumen, mejorando la capacidad de identificar cambios en la tendencia del mercado.
Posible Reversión desde Sobreventa:
El RSI Ponderado por Volumen cruza por encima del nivel de sobreventa.
Se muestra como un triángulo verde hacia arriba en la parte inferior del gráfico, indicando que el mercado podría estar agotando las condiciones de sobreventa y comenzar una posible reversión al alza.
Posible Reversión desde Sobrecompra:
El RSI Ponderado por Volumen cruza por debajo del nivel de sobrecompra.
Se muestra como un triángulo rojo hacia abajo en la parte superior del gráfico, indicando que el mercado podría estar agotando las condiciones de sobrecompra y comenzar una posible reversión a la baja.
Confirmación con el MACD Modificado: Para una interpretación más robusta, se puede observar el comportamiento del MACD modificado junto con el cruce del RSI.
El MACD también está modificado, utilizando el volumen neto normalizado (calculado como el cambio acumulativo en el precio de cierre multiplicado por el volumen) como entrada en lugar del precio de cierre estándar.
La dirección y el cambio de color de las barras del MACD indican el impulso del mercado.
Alertas: Las alertas están configuradas para activarse automáticamente cuando el RSI modificado cruza los niveles de sobreventa o sobrecompra.
The GOD's EYE V1Here's a description for your script that aligns with the guidelines provided:
---
**Title:** The GOD's EYE V1
**Description:**
"The GOD's EYE V1" is a powerful technical analysis tool designed for Forex traders who seek to identify high-probability trading opportunities based on price action and trend-following strategies.
**Key Features:**
1. **Dynamic Channel with Upper and Lower Bands:**
- The script uses a custom EMA-based channel to identify significant price levels. The upper and lower bands are dynamically calculated by adjusting the central EMA line with a fixed pip distance, providing a clear visual of potential support and resistance zones.
2. **Engulfing Candle Detection:**
- The script identifies bullish and bearish engulfing patterns, which are key reversal signals. These patterns are used in conjunction with the EMA channel to confirm potential trade entries.
- **Bullish Engulfing:** Triggered when a bearish candle is followed by a bullish candle that engulfs the previous candle's body, combined with the EMA cross above the upper band.
- **Bearish Engulfing:** Triggered when a bullish candle is followed by a bearish candle that engulfs the previous candle's body, combined with the EMA cross below the lower band.
3. **Customizable Parameters:**
- Traders can adjust the EMA length and the distance of the upper and lower lines from the central EMA to tailor the indicator to their specific trading strategy.
4. **Visual and Alert System:**
- The script provides clear visual signals on the chart, marking potential buy and sell opportunities with triangles above or below the candles. Alerts are also integrated to notify traders in real-time when a bullish or bearish engulfing pattern is detected.
**How It Works:**
- The indicator plots two key levels on the chart (Upper and Lower) based on the central EMA. These levels act as dynamic support and resistance.
- When the fast EMA crosses above the upper band and a bullish engulfing pattern is detected, a potential buying opportunity is signaled.
- Conversely, when the fast EMA crosses below the lower band and a bearish engulfing pattern is detected, a potential selling opportunity is signaled.
**Usage:**
- This indicator is designed for traders who prefer a trend-following approach combined with price action analysis. It is especially useful for those who trade on higher timeframes like the 4H or 1H charts.
- The alerts and visual signals help traders to stay on top of potential trades without constantly monitoring the charts.
---
This description provides a clear overview of the indicator, explaining its features, how it works, and how traders can use it effectively. This should meet the publication guidelines for closed-source scripts.
Breadth Thrust Strategy with Volatility Stop-LossThe "Breadth Thrust Strategy with Volatility Stop-Loss" is a trading strategy designed to capitalize on market momentum while managing risk through volatility-based stop-losses. Here's a detailed breakdown of the strategy:
Strategy Overview:
Market Breadth Analysis: The strategy uses the "Breadth Thrust Indicator," which evaluates market momentum by calculating the ratio of advancing stocks to the total number of stocks on the New York Stock Exchange (NYSE). This indicator helps identify bullish market conditions. An optional feature allows for the inclusion of volume data in this calculation, enhancing the signal's robustness.
Signal Generation: A long position is triggered when the smoothed breadth ratio (or the combined breadth and volume ratio) crosses above a specified low threshold (e.g., 0.4). This crossover indicates a potential shift towards positive market momentum.
Key Parameters:
Smoothing Length (length): Defines the period over which the breadth or combined ratio is smoothed using a simple moving average (SMA) to reduce noise and highlight the underlying trend.
Low Threshold (threshold_low): The level below which the smoothed ratio must fall before crossing back above to trigger a long signal.
Hold Periods (hold_periods): The minimum number of periods for which the position will be held once entered, ensuring the strategy captures a meaningful move.
Volatility Multiplier (volatility_multiplier): A multiplier applied to the Average True Range (ATR) to determine the distance of the stop-loss from the entry price, which adjusts according to market volatility.
Trade Management:
Entry Signal: The strategy enters a long position when the smoothed combined ratio crosses above the low threshold, signaling a potential bullish reversal.
ATR-Based Stop-Loss: Upon entering a trade, the strategy calculates a stop-loss level based on the ATR, which measures market volatility. The stop-loss is set at a distance from the entry price, determined by multiplying the ATR by the specified volatility multiplier. This adaptive stop-loss mechanism helps protect the position from adverse market moves.
Stop-Loss Adjustment: While the position is open, the stop-loss level is dynamically updated, ensuring it never decreases (trailing stop-loss effect) but can be adjusted upwards to reflect the latest price action relative to volatility.
Position Closure: The position is closed if:
The market price falls to or below the stop-loss level.
The position has been held for the specified number of periods (hold_periods), after which it is automatically closed.
Additional Settings:
Initial Capital: The strategy starts with an initial capital of $10,000.
Commissions and Slippage: Each trade incurs a commission of $5 per order, and slippage is accounted for at $1 per trade.
Background Highlighting: The chart background turns green when a position is open, providing a clear visual indication of the active trade.
This strategy is designed to identify and capitalize on upward momentum in the market while employing a volatility-adjusted stop-loss to manage risk. By combining market breadth analysis with volatility-based stop-losses, the strategy aims to balance profit potential with protection against sudden market reversals.
Multi-Timeframe 325 SMA TouchMulti-Timeframe 325 SMA Touch Indicator
This versatile indicator detects and visualizes when the price touches (crosses over or under) the 325-period Simple Moving Average (SMA) across multiple timeframes. It's designed to help traders identify potential support and resistance levels across various time horizons.
Key Features:
Monitors 7 different timeframes: 30 minutes, 1 hour, 2 hours, 4 hours, 6 hours, 12 hours, and 1 day.
Customizable: Each timeframe can be toggled on or off individually.
Visual cues: Unique shapes and colors for each timeframe make it easy to distinguish touches on different time scales.
Adjustable SMA length: While defaulted to 325 periods, the SMA length can be modified to suit your strategy.
Current timeframe SMA: Displays the 325 SMA on the chart for additional context.
How it Works:
The indicator checks for price touches on the 325 SMA for each selected timeframe. When a touch occurs, it plots a distinct shape below the price bar:
30 minutes: Blue circle
1 hour: Green square
2 hours: Red triangle (up)
4 hours: Purple diamond
6 hours: Teal triangle (down)
12 hours: Orange X
1 day: White circle
The 325 SMA for the current chart timeframe is also plotted as a yellow line for reference.
Use Cases:
Identify potential support and resistance levels across multiple timeframes
Spot confluences where touches occur on multiple timeframes simultaneously
Enhance your multi-timeframe analysis for more informed trading decisions
Use as a filter or confirmation tool in your existing trading strategy
Customization:
You can easily customize the indicator by adjusting the SMA length or toggling specific timeframes on/off to focus on the time horizons most relevant to your trading style.
Harmonic, wave and Fibonacci [Hunter Algo]This Pine Script indicator is designed to identify various harmonic patterns, wave formations, and Fibonacci retracements directly on your TradingView charts. The script offers a comprehensive toolset for traders who use technical analysis to spot potential market reversals and continuation patterns.
Key Features:
Harmonic Pattern Detection: Automatically identifies and labels popular harmonic patterns like Bat, Gartley, Butterfly, Crab, Shark, and many more.
Fibonacci Levels: Displays key Fibonacci retracement levels, including 0.236, 0.382, 0.500, 0.618, 0.764, and 1.000, providing critical levels for entry, exit, and stop-loss placement.
Heiken Ashi Option: Option to use Heiken Ashi candles for pattern detection, providing smoother price action analysis.
Alternate Timeframe Support: Analyze patterns on different timeframes by enabling the alternate timeframe feature.
Customizable Display: Choose which patterns and Fibonacci levels to display, allowing you to focus on the most relevant data for your trading strategy.
This script is highly versatile, making it suitable for both novice and experienced traders looking to enhance their chart analysis with automated pattern recognition.
Whaley Breadth Thrust IndicatorThe Whaley Breadth Thrust Indicator (WBT) is a momentum-based technical indicator designed to identify the strength of market trends. It measures the market's breadth by comparing advancing stocks to declining stocks, providing insights into whether a market is in a bullish, neutral, or bearish state. This script calculates the indicator based on the advancing and declining U.S. stocks; however, it can be expanded to other markets as well.
Breadth Thrust Ratio (BTR):
This is calculated as the ratio of advancing stocks to the total number of advancing and declining stocks.
Formula: BTR = Advances / (Advances + Declines + small_offset), where the small offset prevents division errors.
Smoothing:
The BTR is smoothed using a 3-period Exponential Moving Average (EMA) to reduce noise and highlight significant trends.
Thresholds:
0.30: Indicates a strongly bearish market.
0.40: A bearish threshold; crossing below suggests bearish momentum.
0.60: A bullish threshold; crossing above suggests bullish momentum.
0.70: Indicates a strongly bullish market.
MM Market Range MapWhat this script does:
The purpose of this script is to help traders identify when the major sectors of the market are moving in one direction - also known as a "market trend day".
How this script works:
The indicator uses QQQ, SMH and NVDA to represent the technology side of the market, and XLF, XLV & IWM to represent everything else. It tracks where price is within the day's range for each of those symbols, and presents that data in a table and in also in a dot-based "map".
How to use this script:
Using the dot-based map, you can see if all symbols were ever at the highs or lows of their range together. You can use this information to decide which direction you should be trading (ie. with trend). For example, in order for there to be healthy bullish moves in the market, you would want this indicator to show you that all sectors are at the highs or trending in that direction.
What makes this script original:
Most indicators and even the TradingView watchlist measure the percent changed on the day from the closing price of a stock on the prior trading day, essentially telling you what sentiment is since yesterday. This script tells you the sentiment today since it is priced from the opening print. It also provides the map so you can see if they were ever at the highs or lows together throughout the day, which can be an early indicator that the market will trend.
4C Data Table SuiteOverview
The 4C Data Table Suite is a versatile TradingView indicator, designed for traders who focus on the critical role of prior bar levels in their strategy. By highlighting the high and low points of previous bars, this tool aids in pinpointing crucial support and resistance zones, which often act as psychological triggers for market participants. The unique feature of this indicator is its dual-color coding: it colors bars green for bullish closes and red for bearish closes in the Prior Bar Table, and for the current timeframe, it highlights whether the current price is above (green) or below (red) these levels.
Concepts
1 — This sophisticated indicator is not just about visual cues; it provides a rich tableau of data including:
• Current timeframe countdown to bar close
• GMT-adjusted clock for precise trade timing
• Real-time updates on market internals and volatility measures such as the NYSE TICK and ATR
2 — The configuration is highly customizable, allowing users to:
• Adjust the table's positioning and text size
• Choose color settings for text, background, and borders to suit their visual preference
• Toggle the display of various data components based on their trading needs
3 — The Prior Bar Table is particularly valuable for:
• Traders using prior bar levels as triggers for trade entries and exits
• Quick visual assessment of market sentiment
• Real-time decision-making supported by dynamic color coding based on current price movements relative to prior highs and lows
Features
• Prior Bar Levels Table: Visualizes high and low levels of prior bars with intuitive color coding, aiding traders in assessing market trends.
• Dynamic Color Coding: Updates colors based on the closure of the previous bar and current price positions relative to the past bar's highs and lows.
• Comprehensive Market Data: Includes a suite of essential data such as market internals, the prior bar’s range, and the latest price information.
• Customizable Visuals: Offers extensive options for customizing the appearance and data presented, ensuring the tool fits seamlessly into any trader's strategy.
How to Use
1. To add the indicator, search for "4C Data Table Suite" under indicators on TradingView and apply it to your chart.
2. Navigate to the indicator settings to customize the display properties, including table position, color schemes, and which data points to display.
3. Utilize the toggles within the "Prior Bar Levels Table" settings to adjust the visibility and behavior of the table, depending on your trading approach.
Limitations
• This indicator is optimized for use on time-based charts and may not perform as intended on tick charts or non-standard timeframes.
• The color coding is based on the closure of bars, which may not always reflect intrabar movements, potentially affecting real-time decision-making in highly volatile markets.
Notes
• Ensure your TradingView interface is set to the correct timezone settings to align the GMT clock accurately.
• The dynamic color updates are designed to provide at-a-glance insights but should be used in conjunction with other analysis tools for best results.
*If you find that the indicator is blocking some of the candles at the bottom of the screen, go to (Chart) Settings, Canvas, and then adjust the Bottom/Top margin by increasing the % Amount.
Thanks
Special thanks to the TradingView community and developers whose feedback and insights have helped refine the functionalities of the 4C Data Table Suite. Your collaborative spirit is what makes continuous improvement possible.
Normalized and Smoothed Cumulative Delta for Top 5 NASDAQ StocksThis script is designed to create a TradingView indicator called **"Normalized and Smoothed Cumulative Delta for Top 5 NASDAQ Stocks."** The purpose of this indicator is to track and visualize the cumulative price delta (the change in price from one period to the next) for the top five NASDAQ stocks: Apple Inc. (AAPL), Microsoft Corporation (MSFT), Alphabet Inc. (GOOGL), Amazon.com Inc. (AMZN), and Meta Platforms Inc. (FB).
### Key Features of the Script:
1. **Ticker Selection**:
- The script focuses on the top five NASDAQ stocks by automatically setting their tickers.
2. **Price Data Retrieval**:
- It fetches the closing prices for each of these stocks using the `request.security` function for the current timeframe.
3. **Delta Calculation**:
- The script calculates the delta for each stock, which is simply the difference between the current closing price and the previous closing price.
4. **Cumulative Delta Calculation**:
- It calculates the cumulative delta for each stock by adding the current delta to the previous cumulative delta. This helps track the total change in price over time.
5. **Summing and Smoothing**:
- The cumulative deltas for all five stocks are summed together.
- The script then applies an Exponential Moving Average (EMA) with a period of 5 to smooth the summed cumulative delta, making the indicator less sensitive to short-term fluctuations.
6. **Normalization**:
- To ensure the cumulative delta is easy to interpret, the script normalizes it to a range of 0 to 1. This is done by tracking the minimum and maximum values of the smoothed cumulative delta and scaling the data accordingly.
7. **Visualization**:
- The normalized cumulative delta is plotted as a smooth line, allowing users to see the overall trend of the cumulative price changes for the top five NASDAQ stocks.
- A horizontal line is added at 0.5, serving as a midline reference, which can help traders quickly assess whether the normalized cumulative delta is above or below its midpoint.
### Usage:
This indicator is particularly useful for traders and investors who want to monitor the aggregated price movements of the top NASDAQ stocks, providing a high-level view of market sentiment and trends. By smoothing and normalizing the data, it offers a clear and concise visualization that can be used to identify potential market turning points or confirm ongoing trends.
Market Internal Pivots by SyntaxGeekThis indicator combines simple pivot detection with market breadth ratios.
The thought was to show market breadth strength or weakness where price was making potential pivots.
Lookback can be adjusted and currently it supports NYSE and NASDAQ market breadth.
Configuration is limited given the simplicity but live breadth printout can be displayed at current candle.
Max label count is at 500 but the indicator makes use of the visible chart library and will redraw old pivot labels when scrolling back, up to 500.
Considering that market breadth data is only available during RTH, do not expect data during ETH sessions. I've only tested this up to 1hr timeframe so I can't guarantee higher timeframes will present correctly.
Feel free to leave feedback, happy trading!
Support ResistanceThis indicator was written in pine script code, inspired by the L3 Banker Fund Flow Trend Oscillator indicator whose link I gave below.
This indicator is designed to track the flow of banker funds in the market by analyzing price movements and generating entry signals based on specific criteria. It uses a combination of custom functions and moving averages to identify potential points where bankers might be entering the market.
Key Features:
Fund Flow Trend Calculation:
The indicator calculates the fund flow trend using a combination of weighted moving averages. This helps in identifying the overall trend and potential reversals.
Bull Bear Line:
A key component of the indicator is the Bull Bear Line, which is derived from the typical price, lowest low, and highest high over a specified period. This line helps in determining the strength and direction of the market trend.
Banker Entry Signal:
The indicator generates a banker entry signal when the fund flow trend crosses above the Bull Bear Line, and the Bull Bear Line is below 25. This condition is indicative of a potential entry point for bankers.
Visual Representation:
Entry prices and indices for the last five banker entry signals are stored and used to draw dashed lines on the chart, representing these significant levels.
A dynamic rectangle is drawn between the last two entry prices, which extends to the right until the specified conditions are met. The rectangle's color changes from red to green if the price crosses above it by at least one bar, indicating a potential support zone.
Usage:
Trend Identification:
Use the fund flow trend and Bull Bear Line to identify the prevailing market trend and potential reversal points.
Entry Signals:
Pay attention to the banker entry signals as potential points of entry based on institutional fund flow.
Support and Resistance:
The dynamic rectangle can act as a support zone. Monitor price action relative to this rectangle for potential trading opportunities.
This indicator is a powerful tool for traders looking to align their trades with the movements of large institutional players. By understanding and tracking the flow of banker funds, traders can gain valuable insights into market dynamics and make more informed trading decisions.
Market Breadth - AsymmetrikMarket Breadth - Asymmetrik User Manual
Overview
The Market Breadth - Asymmetrik is a script designed to provide insights into the overall market condition by plotting three key indicators based on stocks within the S&P 500 index. It helps traders assess market momentum and strength through visual cues and is especially useful for understanding the proportion of stocks trading above their respective moving averages.
Features
1. Market Breadth Indicators:
- Breadth 20D (green line): Represents the percentage of stocks in the S&P 500 that are above their 20-day moving average.
- Breadth 50D (yellow line): Represents the percentage of stocks in the S&P 500 that are above their 50-day moving average.
- Breadth 100D (red line): Represents the percentage of stocks in the S&P 500 that are above their 100-day moving average.
2. Horizontal Lines for Context:
- Green line at 10%
- Lighter green line at 20%
- Grey line at 50%
- Light red line at 80%
- Dark red line at 90%
3. Background Color Alerts:
- Green background when all three indicators are under 20%, indicating a potential oversold market condition.
- Red background when all three indicators are over 80%, indicating a potential overbought market condition.
Interpreting the Indicator
- Market Breadth Lines: Observe the plotted lines to assess the percentage of stocks above their moving averages.
- Horizontal Lines: Use the horizontal lines to quickly identify important threshold levels.
- Background Colors: Pay attention to background colors for quick insights:
- Green: All indicators suggest a potentially oversold market condition (below 20).
- Red: All indicators suggest a potentially overbought market condition (above 80).
Troubleshooting
- If the indicator does not appear as expected, please contact me.
- This indicator works only on daily and weekly timeframes.
Conclusion
This Market Breadth Indicator offers a visual representation of market momentum and strength through three key indicators, helping you identify potential buying and selling zones.
Last Candle OHLC (Ticks or Points)What the Code Does
1. **Draws Lines and Labels**:
- It draws lines on your chart to show the high, low, open, and close prices from the previous period (like the previous day or week).
- It also labels these lines with numbers that tell you how far the current price is from these levels.
2. **Shows Price Movement**:
- You can see how far the price has moved from these levels in terms of small price changes (ticks) or larger units (points).
- This helps you understand price movements and potential levels of support or resistance.
3. **Customizable**:
- You can choose whether to show these lines and labels, and you can select if you want to see the movement in ticks or points.
- The lines can extend into the future on your chart to help you anticipate where prices might be in the coming days.
### How It’s Useful:
1. **Identify Key Levels**:
- It helps you spot important price levels from past periods, which can act as support or resistance.
2. **Understand Price Movement**:
- You get a visual sense of how much the price has moved from key levels, which can help you gauge market volatility.
3. **Plan Trades**:
- By seeing where the price has been and how it has moved, you can better plan your trades, like deciding where to enter or exit based on these levels.
4. **Flexible for Different Markets**:
- It works across various markets, like stocks, futures, and forex, adjusting to the specific characteristics of each instrument.
In short, this tool helps you visualize and understand past price movements and levels on your chart, aiding in your trading decisions.