Volume Bulls vs Bears (Improved)The "Volume Bulls vs Bears (Improved)" is a raw and powerful volume-based indicator for TradingView that visualizes market participation by separating volume into "bullish" and "bearish" components. It provides a clear and visually appealing stacked histogram alongside a moving average of total volume, helping traders identify trends in market participation.
Key Features
Bullish vs Bearish Volume Separation:
Bullish Volume: Represents the portion of volume contributed by buyers (when prices move up).
Bearish Volume: Represents the portion of volume contributed by sellers (when prices move down).
Volume is calculated based on price action within the range of the candle:
Bulls = ((Close - Low) / (High - Low)) * Total Volume
Bears = ((High - Close) / (High - Low)) * Total Volume
Stacked Histogram:
Bullish and bearish volumes are plotted as a stacked histogram.
Bull Color: Green (default).
Bear Color: Red (default).
This makes it easy to spot shifts in volume dominance between bulls and bears.
Volume SMA:
A Simple Moving Average (SMA) of total volume over a user-defined period helps smooth out fluctuations and shows overall volume trends.
Default period is 20 bars.
SMA Line: Yellow (default), adjustable in width.
User-Customizable Inputs:
Volume SMA Period: Adjust the lookback period for the moving average.
Bull/Bear Colors: Customizable histogram colors.
SMA Line Color and Width: Allows flexibility for better chart aesthetics.
Non-Overlapping Visuals:
The histogram avoids overlap, ensuring clarity by visually stacking bullish and bearish volumes.
How to Use the Indicator
Identify Bullish Volume Dominance:
If the green (bullish) volume bars are larger, it indicates stronger buying pressure within the candle range.
Identify Bearish Volume Dominance:
If the red (bearish) volume bars are larger, it signals stronger selling pressure.
Volume Trend:
Use the Volume SMA line to identify whether overall volume is increasing, decreasing, or staying stable. Rising volume typically strengthens trends, while declining volume can indicate weakness.
Use Cases
Spotting volume trends that confirm price movements (e.g., rising prices with rising bullish volume).
Recognizing potential reversals when bearish volume starts dominating previously bullish candles.
Identifying accumulation or distribution phases by analyzing volume behavior.
Conclusion
This "Volume Bulls vs Bears (Improved)" indicator provides traders with deeper insights into market participation. Its raw, no-frills design offers clear visuals to help assess bullish and bearish volume dynamics with an additional smoothing component through the SMA. It’s an essential tool for volume-focused traders looking to confirm trends or anticipate reversals.
Индикаторы и стратегии
1-3-1 Strat Combo with 50% Level (12h)Logic Explanation
1-3-1 Combo Detection:
The script detects the 1-3-1 pattern using the previous 3 candles:
Candle 4: Inside Bar (Type 1).
Candle 3: Outside Bar (Type 3).
Candle 2: Inside Bar (Type 1).
4th Candle Behavior:
If the 4th candle (current bar):
Stays an inside bar (Type 1) → isFourthInsideBar is true.
Becomes a directional bar (Type 2) → isFourthDirectional is true.
If either of these conditions is true, the script stops calculating and waits for the next valid 1-3-1 setup.
50% Level Calculation:
If the conditions are not met (e.g., the 4th candle doesn’t stop the pattern), the script:
Plots a dotted line at the 50% level of the 3rd candle.
Adds a label showing the 50% level.
Stop Calculations:
No line, box, or label is drawn if the 4th candle is a Type 1 (inside bar) or Type 2 (directional bar).
Visual Outputs:
Dotted Box: Marks the 1-3-1 combo setup.
50% Line: Drawn only if the 4th candle does not invalidate the pattern.
Label: Displays the 50% level of the 3rd candle.
How to Use:
Apply this script on the 12-hour chart.
The script will:
Detect valid 1-3-1 patterns.
Stop drawing any calculations if the 4th candle is an inside bar (1) or a directional bar (2).
Wait for the next valid 1-3-1 combo.
Highest Volume FuturesScript tracks the volume of futures contracts which are not expired for the current and next year. Provides a label at the real-time bar and when a different contract has higher volume in the last bar of the timeframe input as long as it is different from the current ticker. It should display on continuous and lower volume contract charts.
Intended to be used with a higher timeframe input.
Currently supports ES, MES, NQ, MNQ, RTY, M2K, YM, MYM, BTC, MBT, CL, MCL, GC, MGC, E7 and J7. If you'd like to add your own, then include the syminfo.root of your ticker and the appropriate month codes for that contract in the validMonthCodes switch list.
[EmreKb] Dynamic Factor SupertrendThe Dynamic Factor Supertrend is an innovative variation of the classic Supertrend indicator, designed to provide traders with more accurate trend signals while reducing the impact of false breakouts. Unlike the traditional Supertrend, which relies on a fixed multiplier (Factor) applied to the Average True Range (ATR), this enhanced version introduces a dynamic adjustment mechanism based on price movements relative to the Supertrend line.
This indicator works by assessing the distance between the price and the Supertrend line. When the price moves significantly beyond the typical ATR × Factor distance, the remaining gap is recalculated using a Dynamic Factor. This additional scaling adjusts the base factor, effectively modifying the Supertrend line to better reflect current market conditions. This process ensures that the trend line adapts dynamically to changes in price behavior, reducing noise and improving signal reliability in volatile markets.
One of the key advantages of the Dynamic Factor Supertrend is its ability to minimize false trend reversals. By incorporating the Dynamic Factor adjustment, the indicator becomes more resilient to minor price fluctuations that could otherwise trigger incorrect signals. This makes it particularly effective in markets where volatility is high, or during periods of choppy price action, where traditional Supertrend indicators often struggle to maintain accuracy.
Traders can use the Dynamic Factor Supertrend to identify clear trend directions, with uptrends signaled when the price is above the trend line and downtrends when it is below. The Dynamic Factor parameter can be fine-tuned to match individual trading styles, offering greater flexibility. A lower value makes the trend line more responsive to price changes, while a higher value provides more stability by reducing the frequency of adjustments.
In summary, the Dynamic Factor Supertrend is an advanced trend-following tool that combines the foundational concepts of the Supertrend with a novel dynamic adjustment mechanism. It offers traders a more reliable way to navigate complex market conditions, making it a valuable addition to any trading strategy. This indicator is particularly well-suited for those seeking to reduce false signals and enhance the accuracy of their trend analysis in all market environments.
Alternate Bat Harmonic Pattern [TradingFinder] ALT Bat Indicator🔵 Introduction
The Alternate Bat harmonic pattern is one of the most precise and practical tools in technical analysis, introduced by Scott Carney in 2003. This pattern focuses on specific Fibonacci ratios, such as 0.382 at point B and 1.13XA at point D, to identify Potential Reversal Zones (PRZ) where price is likely to reverse.
The Alternative Bat pattern emerged as a result of repeated failures observed in the standard Bat pattern. Traders entering trades near the 0.886XA level of the standard Bat often encountered losses. In the Alternate Bat, point D extends beyond 0.886XA, typically reversing at 1.13XA, offering a more accurate identification of the reversal zone.
A key characteristic of this pattern is its M- or W-shaped structure, where the midpoint B retraces 0.382XA or less. Additionally, the CD leg requires an extension of 2.0 to 3.618 to complete the pattern. Due to its accuracy and the predictable behavior of price near the PRZ, the Alternate Bat pattern is recognized as a powerful tool for forecasting price reversals.
In the bullish Alternative Bat pattern, an M-shaped structure forms. After an initial upward movement (XA), price undergoes a short correction at point B (0.382XA) and then declines toward point D (1.13XA and an extension of 2.0 to 3.618BC), where a potential upward reversal is expected.
In the bearish Alternate Bat pattern, a W-shaped structure forms. After an initial downward movement (XA), price retraces slightly at point B (0.382XA) and then rises toward point D (1.13XA and an extension of 2.0 to 3.618BC), where a potential downward reversal is anticipated.
🔵 How to Use
The Alternate Bat harmonic pattern is a key tool for identifying potential reversal zones (PRZ) in the market. By leveraging the 0.382 retracement at point B and the 1.13XA extension at point D, along with symmetrical price structures, this pattern offers precise reversal opportunities in both bullish and bearish market conditions.
🟣 Bullish Alternate Bat Pattern
The bullish Alternate Bat pattern forms during a downtrend, signaling a potential reversal to the upside. This pattern consists of three downward movements with two corrective waves, ultimately reaching point D, which marks the PRZ.
At the PRZ, the convergence of Fibonacci levels—1.13XA and extensions ranging from 2.0 to 3.618BC—creates a strong support zone where price is likely to reverse upward.
🟣 Bearish Alternative Bat Pattern
The bearish Alternate Bat pattern develops during an uptrend, indicating a potential reversal to the downside. This pattern features three upward price movements with two retracements, ending at point D, where the PRZ forms.
Point D is defined by the 1.13XA extension and the 2.0 to 3.618BC projection, creating a strong resistance zone where price is expected to reverse downward.
🔵 Setting
🟣 Logical Setting
ZigZag Pivot Period : You can adjust the period so that the harmonic patterns are adjusted according to the pivot period you want. This factor is the most important parameter in pattern recognition.
Show Valid Format : If this parameter is on "On" mode, only patterns will be displayed that they have exact format and no noise can be seen in them. If "Off" is, the patterns displayed that maybe are noisy and do not exactly correspond to the original pattern.
Show Formation Last Pivot Confirm : if Turned on, you can see this ability of patterns when their last pivot is formed. If this feature is off, it will see the patterns as soon as they are formed. The advantage of this option being clear is less formation of fielded patterns, and it is accompanied by the latest pattern seeing and a sharp reduction in reward to risk.
Period of Formation Last Pivot : Using this parameter you can determine that the last pivot is based on Pivot period.
🟣 Genaral Setting
Show : Enter "On" to display the template and "Off" to not display the template.
Color : Enter the desired color to draw the pattern in this parameter.
LineWidth : You can enter the number 1 or numbers higher than one to adjust the thickness of the drawing lines. This number must be an integer and increases with increasing thickness.
LabelSize : You can adjust the size of the labels by using the "size.auto", "size.tiny", "size.smal", "size.normal", "size.large" or "size.huge" entries.
🟣 Alert Setting
Alert : On / Off
Message Frequency : This string parameter defines the announcement frequency. Choices include: "All" (activates the alert every time the function is called), "Once Per Bar" (activates the alert only on the first call within the bar), and "Once Per Bar Close" (the alert is activated only by a call at the last script execution of the real-time bar upon closing). The default setting is "Once per Bar".
Show Alert Time by Time Zone : The date, hour, and minute you receive in alert messages can be based on any time zone you choose. For example, if you want New York time, you should enter "UTC-4". This input is set to the time zone "UTC" by default.
🔵 Conclusion
The Alternate Bat harmonic pattern, with its precise Fibonacci ratios like 0.382 and 1.13XA, is a reliable tool for identifying Potential Reversal Zones (PRZ) in financial markets. By recognizing symmetrical price structures and focusing on both bullish and bearish scenarios, traders can identify optimal entry and exit points with high accuracy.
The key strength of this pattern lies in its ability to define strong support and resistance zones near the PRZ, increasing the probability of price reversals. Combining the pattern with candlestick confirmations and volume analysis enhances its effectiveness.
Ultimately, incorporating the Alternative Bat pattern with proper risk management and Fibonacci-based targets allows traders to enter the market confidently and capitalize on potential price reversals.
[blackcat] L1 Swing Reversal█ OVERVIEW
The script is an indicator that calculates and plots the L1 Swing Reversal, which involves smoothing price data and calculating a modified RSI to identify potential swing reversals in the market. It overlays columns representing the smoothed price data and a line for the adjusted RSI.
█ LOGICAL FRAMEWORK
The script begins by defining input parameters for customizable periods. It then calculates the typical price, derives components of the swing reversal indicator, smooths these components, and computes an adjusted RSI. The main sections include input parameter definitions, function definition, and plotting. The script flows data through calculations and logical operations to produce final plot values.
█ CUSTOM FUNCTIONS
Function: l1_swing_reversal
This function calculates the L1 Swing Reversal indicators based on high, low, close, and open prices, along with three periods. It computes a smoothed price component and an adjusted RSI.
Parameters:
• high : High prices of the asset.
• low : Low prices of the asset.
• close : Close prices of the asset.
• period_n : Period for the first component calculation.
• period_m : Period for standard deviation and moving average calculations.
• period_n1 : Period for RSI calculation.
Return Values:
• cc1_column_red : Red column values for the first component.
• cc1_column_green : Green column values for the first component.
• rsi : Adjusted RSI values.
█ KEY POINTS AND TECHNIQUES
The script uses several key Pine Script features such as the sma (simple moving average), stdev (standard deviation), max, abs, and ema (exponential moving average) functions. It also demonstrates the use of conditional operators to cap the column values at -100 and 100. The script’s structure is clear and follows best practices by encapsulating the main logic within a function and using descriptive variable names.
█ EXTENDED KNOWLEDGE AND APPLICATIONS
Potential modifications could include adding more sophisticated reversal signals based on the RSI and column values, or enhancing the visualization with additional plot types. This script could be used in scenarios where traders are interested in identifying potential swing reversals using a combination of smoothed price data and momentum indicators. Related Pine Script concepts include using barssince for counting bars since a condition, crossover and crossunder for detecting trend changes, and hline for adding horizontal lines to the chart.
Adaptive Volatility-Scaled Oscillator [AVSO] (Zeiierman)█ Overview
The Adaptive Volatility-Scaled Oscillator (AVSO) is a dynamic trading indicator that measures and visualizes volatility-adjusted market behavior. By scaling various metrics (such as volume, price changes, standard deviation, ATR, and Yang-Zhang volatility) and applying adaptive smoothing, AVSO helps traders identify market conditions where volatility deviates significantly from the norm.
This indicator uses standardized scaling (Z-Score logic) to highlight periods of abnormally high or low volatility relative to recent history. With gradient coloring and clear volatility zones, AVSO provides a visually intuitive way to analyze market volatility and adapt trading strategies accordingly.
█ How It Works
⚪ Scaling Metrics: The indicator scales user-selected metrics (e.g., volume, ATR, standard deviation) relative to the market and price, providing a standardized volatility measure.
⚪ Z-Score Standardization: The scaled metric is normalized using a Z-Score to measure how far current volatility deviates from its recent mean.
Positive Z-Score: Above-average volatility.
Negative Z-Score: Below-average volatility.
⚪ Adaptive Smoothing: An Adaptive EMA smooths the Z-Score, dynamically adjusting its length based on the strength of the volatility. Stronger deviations result in shorter smoothing, increasing responsiveness.
█ Unique Feature: Yang-Zhang Volatility
The Yang-Zhang volatility estimator sets this indicator apart by providing a more robust and accurate measure of volatility compared to traditional methods like ATR or standard deviation.
⚪ What Makes Yang-Zhang Volatility Unique?
Comprehensive Calculation: It combines overnight price gaps (log returns from the previous close to the current open) and intraday price movements (high, low, and close).
Accurate for Gapped Markets: Traditional volatility measures can misrepresent price movement when significant gaps occur between sessions. Yang-Zhang accounts for these gaps, making it highly reliable for assets prone to overnight price jumps, such as stocks, cryptocurrencies, and futures.
Adaptable to Real Market Conditions : By including both close-to-open returns and intraday volatility, it provides a balanced and adaptive measure that captures the full volatility picture.
⚪ Why This Matters to Traders
Better Volatility Insights: Yang-Zhang offers a clearer view of true market volatility, especially in markets with price gaps or uneven trading sessions.
Improved Trade Timing: By identifying volatility spikes and calm periods more effectively, traders can time their entries and exits with greater confidence.
█ How to Use
Identify High and Low Volatility
A high Z-Score (>2) indicates significant market volatility. This can signal momentum-driven moves, breakouts, or areas of increased risk.
A low Z-Score (<-2) suggests low volatility or a calm market environment. This often occurs before a potential breakout or reversal.
Trade Signals
High Volatility Zones (background highlight): Monitor for potential breakouts, trend continuations, or reversals.
Low Volatility Zones: Anticipate range-bound conditions or upcoming volatility spikes.
█ Settings
Source: Select the price source for scaling calculations (close, high, low, open).
Metric Measure: Choose the volatility measure:
Volume: Scales raw volume.
Close: Uses closing price changes.
Standard Deviation: Price dispersion.
ATR: Average True Range.
Yang: Yang-Zhang volatility estimate.
Bars to Analyze: Number of historical bars used to calculate the mean and standard deviation of the scaled metric.
ATR / Standard Deviation Period: Lookback period for ATR or Standard Deviation calculation.
Yang Volatility Period: Period for the Yang-Zhang volatility estimator.
Smoothing Period: Base smoothing length for the adaptive smoothing line.
-----------------
Disclaimer
The information contained in my Scripts/Indicators/Ideas/Algos/Systems does not constitute financial advice or a solicitation to buy or sell any securities of any type. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
My Scripts/Indicators/Ideas/Algos/Systems are only for educational purposes!
Up and Downwhat is "Up and Down"?
It is an indicator designed to show you in detail on the chart and warn you when there is an increase or decrease in the market at a level that you consider important.
what it does?
When the price difference between a top and bottom is greater than the level you selected (the default input is 10 percent), it indicates this along with the percentage value on the chart. Then, it indicates the start and end points with lines so that you can see the change from where to where. It shows the price's current percentage distance from the last bottom or top in the upper right corner.
it also colors the candles so you can better understand how fast the price is moving. The greener the candles, the stronger the rise, and conversely, the greater the decline, the redder the candles. Of course, if you set an alarm, it will tell you in which trading pair, in which time period, at what percentage and in which direction there is a movement.
how it does it?
It uses a moving average with a short length to find bottoms and tops. It then measures the distance from the last peak to the bottom and expresses it as a percentage. It uses momentum using the moving average as a source to paint the candles. To compress this momentum between the values 255 and 0, I used a formula that I also used in my limited fisher transform work (because the inputs in the color.rgb function take values between 0 and 255). It was a bit challenging to use the lines correctly, but with the "ta.valuewhen" function and a little experimenting, they were I made sure they were drawn correctly.
how to use it?
It is quite simple to use. First, select the minimum interval you want to receive alarms. If you make this value too high, you will not receive any alarms; if you make it too low, you will receive too many alarms. Choose the range that will benefit you most for the trading pair you are using. Then all you have to do is set an alarm. When you set an alarm, leave the note section blank and the indicator will send you the necessary information.
TASC 2025.01 Linear Predictive Filters█ OVERVIEW
This script implements a suite of tools for identifying and utilizing dominant cycles in time series data, as introduced by John Ehlers in the "Linear Predictive Filters And Instantaneous Frequency" article featured in the January 2025 edition of TASC's Traders' Tips . Dominant cycle information can help traders adapt their indicators and strategies to changing market conditions.
█ CONCEPTS
Conventional technical indicators and strategies often rely on static, unchanging parameters, which may fail to account for the dynamic nature of market data. In his article, John Ehlers applies digital signal processing principles to address this issue, introducing linear predictive filters to identify cyclic information for adapting indicators and strategies to evolving market conditions.
This approach treats market data as a complex series in the time domain. Analyzing the series in the frequency domain reveals information about its cyclic components. To reduce the impact of frequencies outside a range of interest and focus on a specific range of cycles, Ehlers applies second-order highpass and lowpass filters to the price data, which attenuate or remove wavelengths outside the desired range. This band-limited analysis isolates specific parts of the frequency spectrum for various trading styles, e.g., longer wavelengths for position trading or shorter wavelengths for swing trading.
After filtering the series to produce band-limited data, Ehlers applies a linear predictive filter to predict future values a few bars ahead. The filter, calculated based on the techniques proposed by Lloyd Griffiths, adaptively minimizes the error between the latest data point and prediction, successively adjusting its coefficients to align with the band-limited series. The filter's coefficients can then be applied to generate an adaptive estimate of the band-limited data's structure in the frequency domain and identify the dominant cycle.
█ USAGE
This script implements the following tools presented in the article:
Griffiths Predictor
This tool calculates a linear predictive filter to forecast future data points in band-limited price data. The crosses between the prediction and signal lines can provide potential trade signals.
Griffiths Spectrum
This tool calculates a partial frequency spectrum of the band-limited price data derived from the linear predictive filter's coefficients, displaying a color-coded representation of the frequency information in the pane.
Griffiths Dominant Cycle
This tool compares the cyclic components within the partial spectrum and identifies the frequency with the highest power, i.e., the dominant cycle . Traders can use this dominant cycle information to tune other indicators and strategies, which may help promote better alignment with dynamic market conditions.
Notes on parameters
Bandpass boundaries:
In the article, Ehlers recommends an upper bound of 125 bars or higher to capture longer-term cycles for position trading. He recommends an upper bound of 40 bars and a lower bound of 18 bars for swing trading. If traders use smaller lower bounds, Ehlers advises a minimum of eight bars to minimize the potential effects of aliasing.
Data length:
The Griffiths predictor can use a relatively small data length, as autocorrelation diminishes rapidly with lag. However, for optimal spectrum and dominant cycle calculations, the length must match or exceed the upper bound of the bandpass filter. Ehlers recommends avoiding excessively long lengths to maintain responsiveness to shorter-term cycles.
Sell Signal - William O'Neil's Rule VisualizationThis indicator might be helpful for traders looking to visualize William O’Neil’s sell condition, a well-known concept in his trading strategies. A sell signal is triggered when:
1. Volume increases compared to the previous day.
2. The price drops by a user-defined percentage (default: 0.2% or more).
The indicator highlights the background for bars meeting these conditions and adds a subtle circle above them. You can adjust the drop rate in the settings to match your preferences.
It could serve as a useful tool for identifying potential distribution days or profit-taking signals, helping traders manage risk during market pullbacks.
このインジケーターは、ウィリアム・オニールの売り抜け条件を可視化したもので、トレーダーの皆さんに役立つかもしれません。シグナルは次の条件を満たすと発生します:
1. 出来高が前日より増加している。
2. 価格がユーザー指定の割合(デフォルトは0.2%以上)で下落している。
条件を満たしたバーには背景色が付き、控えめな丸印が表示されます。設定で下落率を自由に調整することもできます。
このツールは、分配日や利益確定のシグナルを特定するのに役立つかもしれません。市場の調整局面でのリスク管理にご活用ください。
Custom RSI & MACD Momentum Entry SignalsIndicator Explanation: Custom RSI & MACD Momentum Entry Signals
Introduction
The "Custom RSI & MACD Momentum Entry Signals" indicator combines the Relative Strength Index (RSI) and the Moving Average Convergence Divergence (MACD) to generate precise long and short entry signals. This indicator offers a powerful combination of overbought/oversold zones, momentum analysis, and RSI-EMA crossovers to assist traders in making better decisions.
How the Indicator Works
1. RSI Calculation and EMA
The RSI is calculated based on the closing price with an adjustable period (default: 14).
An Exponential Moving Average (EMA) of the RSI (default: 9) is plotted to identify RSI trend changes.
When the RSI crosses its EMA upwards, it signals a bullish impulse. Conversely, a downward cross indicates a bearish impulse.
2. MACD Calculation and Momentum Shifts
The MACD line is derived from the difference between a fast EMA (default: 12) and a slow EMA (default: 26).
The Signal line is the EMA of the MACD line (default: 9).
The MACD histogram represents the difference between the MACD line and the Signal line.
Momentum shifts are detected as follows:
Weakening Bearish: Histogram is negative but increasing (less bearish pressure).
Strengthening Bullish: Histogram is positive and rising.
Weakening Bullish: Histogram is positive but decreasing.
Strengthening Bearish: Histogram is negative and falling.
Signal Generation
Long Signals
A Long signal is triggered when all of the following conditions are met:
The RSI was previously below 30 (oversold condition).
MACD momentum shifts from "strengthening bearish" to "weakening bearish" or turns bullish.
The RSI crosses its EMA upwards.
A green upward arrow is displayed below the bar, and the background is lightly shaded green for additional visualization.
Short Signals
A Short signal is triggered when all of the following conditions are met:
The RSI was previously above 70 (overbought condition).
MACD momentum shifts from "strengthening bullish" to "weakening bullish" or turns bearish.
The RSI crosses its EMA downwards.
A red downward arrow is displayed above the bar, and the background is lightly shaded red for additional visualization.
Visual Elements
RSI and EMA:
The RSI is shown in purple.
The RSI EMA is shown in blue.
Horizontal lines at 30 (oversold) and 70 (overbought) provide additional context.
MACD:
The MACD line is displayed in blue.
The Signal line is displayed in orange.
The zero line is added for easier interpretation.
Signals:
Green arrows: Long signals.
Red arrows: Short signals.
Background color: Light green for long conditions, light red for short conditions.
Use Cases
This indicator is ideal for:
Trend Followers: Combining RSI and MACD allows traders to identify entry points during impulsive trend shifts.
Swing Traders: Long and short signals can be used at reversal points to capture short-term price movements.
Momentum Traders: By considering MACD momentum, the indicator provides additional confidence in signal generation.
Customizable Settings
The indicator provides flexible input options:
RSI Period (default: 14)
RSI EMA Period (default: 9)
MACD Parameters: Fast, slow, and signal EMAs can be adjusted.
Conclusion
The Custom RSI & MACD Momentum Entry Signals indicator is a powerful tool for traders looking to combine RSI and MACD to identify high-probability entry signals. With clear visualization and precise signal generation, traders can make decisions more efficiently and capitalize on market movements.
Adjustable Entry Price Levels by Sobhi v6Adjustable Entry Price Levels", is designed to display customizable price levels on a chart, allowing traders to visualize key price zones relative to a chosen entry price. Here's a detailed breakdown of its functionality:
Purpose
The indicator helps traders create and manage equidistant price levels (both above and below a selected entry price). These levels can assist in planning trades, setting stop-loss and take-profit levels, or identifying key market zones for decision-making.
Features
Entry Price Input:
Users can specify a starting price (Entry Price) to base the levels on.
Adjustable Distance Between Levels:
Levels are spaced at a user-defined interval (Distance), creating equidistant horizontal lines.
Number of Levels:
Users can select how many levels to display above and below the entry price (Number of Levels).
Line Customization:
Style: Choose between Solid, Dotted, or Dashed lines.
Color: Customize the color for upward and downward levels (Line Color Up and Line Color Down).
Thickness: Adjust line thickness (Line Width).
Label Customization:
Visibility: Option to show or hide labels on each level (Show Labels).
Font Size: Set the size of the text for level labels (Label Font Size).
Colors: Separate customization for labels above (Label Color Up) and below (Label Color Down) the entry price.
Extended Line Display:
The lines extend backward (Extend Bars Back) and forward (Extend Bars Forward) to ensure visibility over a larger section of the chart.
Visualization
Upward Levels:
Represented by blue (default) horizontal lines above the entry price.
Labels display the price value of each level in the same color.
Downward Levels:
Represented by red (default) horizontal lines below the entry price.
Labels display the price value of each level in the same color.
Example Use Case
Scenario 1: Support and Resistance Planning
A trader can define a key level (Entry Price) and observe nearby support and resistance zones using the calculated price levels.
Scenario 2: Risk Management
The indicator helps in visualizing stop-loss and take-profit areas equidistant from the entry price.
Scenario 3: Breakout Targets
Traders can use the levels to anticipate potential breakout or breakdown targets.
Customization Options
This indicator is highly customizable, making it versatile for different trading strategies. Traders can tweak:
The visual appearance of the levels (style, color, width).
The number of levels and their spacing.
Whether labels are displayed and their style.
Refined SMA/EMA Crossover with Ichimoku and 200 SMA FilterYour **Refined SMA/EMA Crossover with Ichimoku and 200 SMA Filter** strategy is a multi-faceted technical trading strategy that combines several key technical indicators to refine entry and exit points for trades. Here's a breakdown of the components and how they work together:
### 1. **SMA/EMA Crossover**
- **Simple Moving Average (SMA) & Exponential Moving Average (EMA) Crossover**:
- The core idea behind the crossover strategy is to use the relationship between two moving averages to generate buy or sell signals.
- **SMA** (Simple Moving Average) gives an average of past prices over a set period.
- **EMA** (Exponential Moving Average) places more weight on recent prices, making it more responsive to price movements.
- A **bullish crossover** occurs when a shorter period moving average (such as a 50-period EMA) crosses above a longer period moving average (such as a 200-period SMA), signaling a potential buy.
- A **bearish crossover** occurs when a shorter period moving average crosses below the longer period moving average, signaling a potential sell.
### 2. **Ichimoku Cloud**
- The **Ichimoku Cloud** is a versatile indicator that provides insight into trend direction, support and resistance levels, and momentum.
- **Cloud (Kumo)**: The space between the Senkou Span A and Senkou Span B lines. It helps identify whether the market is in an uptrend, downtrend, or consolidation.
- **Tenkan-sen** (Conversion Line) and **Kijun-sen** (Base Line): These lines are used for additional confirmation of trend direction.
- **Chikou Span**: A lagging line that is used to confirm the trend.
- The general trading rules based on the Ichimoku Cloud are:
- **Bullish Signal**: When the price is above the cloud and the Tenkan-sen crosses above the Kijun-sen.
- **Bearish Signal**: When the price is below the cloud and the Tenkan-sen crosses below the Kijun-sen.
### 3. **200 SMA Filter**
- The **200 SMA Filter** serves as a long-term trend filter.
- When the price is **above the 200 SMA**, it signals a long-term bullish trend, and you only look for buying opportunities.
- When the price is **below the 200 SMA**, it signals a long-term bearish trend, and you only look for selling opportunities.
- This filter helps to avoid counter-trend trades, aligning your positions with the broader market trend.
### **How the Strategy Works Together**
- **Trade Setup (Long Position)**
1. The **200 SMA Filter** must confirm an **uptrend** by ensuring that the price is above the 200 SMA.
2. A **bullish crossover** (e.g., the 50 EMA crossing above the 200 SMA) occurs.
3. **Ichimoku Cloud** confirms a bullish trend, with the price above the cloud and the Tenkan-sen crossing above the Kijun-sen.
4. You enter a **long trade** with this confluence of signals.
- **Trade Setup (Short Position)**
1. The **200 SMA Filter** must confirm a **downtrend** by ensuring the price is below the 200 SMA.
2. A **bearish crossover** (e.g., the 50 EMA crossing below the 200 SMA) occurs.
3. **Ichimoku Cloud** confirms a bearish trend, with the price below the cloud and the Tenkan-sen crossing below the Kijun-sen.
4. You enter a **short trade** with this confluence of signals.
### **Exit Strategy**
- Exits can be determined based on any of the following:
- **SMA/EMA crossover reversal**: Exit when the shorter-term moving average crosses back below the longer-term moving average for a long position or crosses above for a short position.
- **Ichimoku Cloud reversal**: If the price breaks through the cloud or the Tenkan-sen and Kijun-sen lines cross in the opposite direction.
- **Profit target or stop loss**: Setting predefined profit targets or using a trailing stop to lock in profits as the trade moves in your favor.
Summary of the Strategy
This strategy is designed to identify strong trends and avoid false signals by combining:
SMA/EMA crossovers for immediate market direction signals.
Ichimoku Cloud for confirming the strength and trend direction.
A 200
SMA filter to ensure trades align with the long-term trend.
By using these multiple indicators together, the strategy aims to refine entry and exit points, minimize risk, and increase the likelihood of successful trades.
Mastering ATR for Smart Stop Loss and Take Profit PlacementUsing the ATR indicator to set Stop Loss and Take Profit levels provides a dynamic and flexible way to manage risk based on the volatility of the market. This method ensures that your SL and TP are always in tune with current market conditions, preventing unnecessary stop-outs while maximizing the potential for profit. The table in the script makes it easy to view your calculated levels directly on the chart, improving your trading efficiency.
If you're looking for a more automated way to manage your trades, integrating ATR-based SL and TP can be a powerful tool in your strategy.
Happy Trading!
G&S SMT### Description of the Pine Script
This Pine Script is designed to identify **Smart Money Technique (SMT)** setups between **Gold (GC1!)** and **Silver (SI1!) Futures** on a **15-minute timeframe**. It specifically looks for divergences between the price movements of Gold and Silver over the last 4 candles and compares it with the next candle's price movement. The script provides **Bullish** and **Bearish** signals for SMT during a specified time range of **8:45 AM EST to 10:30 AM EST**.
### Key Features of the Script:
1. **Futures Symbols**:
- The script uses **Gold Futures (GC1!)** and **Silver Futures (SI1!)** on a 15-minute timeframe to monitor their price movements.
2. **Time Range Filtering**:
- The signals are only active between **8:45 AM EST and 10:30 AM EST**, ensuring that the script only signals within the most relevant trading hours for your strategy.
3. **SMT Calculation (Last 4 Candles vs Next Candle)**:
- **Gold and Silver Price Change Calculation**: The script compares the price changes of **Gold** and **Silver** over the **last 4 candles** and then compares them with the price movement of the **next candle**:
- **Bullish SMT**: Occurs when Gold shows an increase in the last 4 candles while Silver shows a decrease, and both Gold and Silver show an increase in the next candle.
- **Bearish SMT**: Occurs when Gold shows a decrease in the last 4 candles while Silver shows an increase, and both Gold and Silver show a decrease in the next candle.
4. **Bullish and Bearish Signals**:
- **Bullish SMT Signal**: The script will plot a **green** arrow below the bar when a Bullish SMT setup is identified.
- **Bearish SMT Signal**: A **red** arrow above the bar is plotted when a Bearish SMT setup is identified.
5. **Gold and Silver Difference Plot**:
- The difference between the prices of **Gold** and **Silver** is plotted as a **blue line**, giving a visual representation of the relationship between the two assets. When the difference line moves significantly, it can indicate a potential divergence or convergence in the prices of Gold and Silver.
### Script Logic Breakdown:
1. **Price Change for Last 4 Candles**:
- The script calculates the price change for Gold and Silver from the 4th-to-last candle to the last candle.
- `gold_change_last4` and `silver_change_last4` calculate these price differences.
2. **Price Change for Next Candle**:
- It then calculates the price change from the last candle to the next candle.
- `gold_change_next` and `silver_change_next` calculate these price differences.
3. **Bullish SMT Condition**:
- If Gold increased while Silver decreased in the last 4 candles, and both Gold and Silver show an increase in the next candle, it indicates a **Bullish SMT**.
4. **Bearish SMT Condition**:
- If Gold decreased while Silver increased in the last 4 candles, and both Gold and Silver show a decrease in the next candle, it indicates a **Bearish SMT**.
5. **Time Filter**:
- Signals are only plotted when the current time is between **8:45 AM EST and 10:30 AM EST** to match your preferred trading hours.
### Visualization:
- **Bullish Signals**: Plotted as **green arrows** below the bars when a Bullish SMT setup is identified.
- **Bearish Signals**: Plotted as **red arrows** above the bars when a Bearish SMT setup is identified.
- **Gold - Silver Difference**: A **blue line** is plotted to show the price difference between Gold and Silver, helping visualize any divergence.
### How It Helps:
- **Divergence Identification**: This script highlights potential divergences between Gold and Silver Futures, which can provide insights into market sentiment and smart money movements.
- **Focus on Relevant Time Frame**: By filtering signals between 8:45 AM EST and 10:30 AM EST, you are focusing on a timeframe that can be more beneficial for trading.
- **Visual Clarity**: The arrows and the price difference line provide clear signals and a visual representation of the relationship between Gold and Silver, helping you make informed trading decisions.
This script is an automated approach to detecting **SMT setups** and helping traders recognize when Gold and Silver might be signaling a bullish or bearish move based on their divergence patterns.
Inside Bar Breakout/Fakeout with AI Scenarios [Yosiet]Inside Bar Breakout/Fakeout Indicator with Scenarios
The Indicator is a powerful tool for traders looking to identify potential breakout and fakeout opportunities based on inside bar patterns. This indicator combines multiple technical analysis concepts to provide a comprehensive view of market behavior, helping traders make more informed decisions.
Key Features
Inside bar detection with filtering
Breakout and fakeout identification
Three distinct scenario detections
Customizable moving average calculations
Flexible visualization options
Alert conditions for various events
How It Works
The indicator identifies inside bars and filters them based on a maximum number of consecutive inside bars. It then detects breakouts and fakeouts using user-defined parameters. The script also calculates moving averages to determine trend direction.
Three specific scenarios are detected:
Strong breakout followed by a strong reversal
Weak breakout with multiple doji/weak candles
Strong breakout without reversal
These scenarios are visually represented on the chart, allowing traders to quickly identify potential trading opportunities.
How to Use
Apply the indicator to your chart
Adjust the input parameters to suit your trading style
Look for inside bar patterns and subsequent breakouts/fakeouts
Pay attention to the three scenario markers for additional context
Use the alert conditions to stay informed of potential opportunities
Tomas Ratio Strategy with Multi-Timeframe AnalysisHello,
I would like to present my new indicator I have compiled together inspired by Calmar Ratio which is a ratio that measures gains vs losers but with a little twist.
Basically the idea is that if HLC3 is above HLC3 (or previous one) it will count as a gain and it will calculate the percentage of winners in last 720 hourly bars and then apply 168 hour standard deviation to the weekly average daily gains.
The idea is that you're supposed to buy if the thick blue line goes up and not buy if it goes down (signalized by the signal line). I liked that idea a lot, but I wanted to add an option to fire open and close signals. I have also added a logic that it not open more trades in relation the purple line which shows confidence in buying.
As input I recommend only adjusting the amount of points required to fire a signal. Note that the lower amount you put, the more open trades it will allow (and vice versa)
Feel free to remove that limiter if you want to. It works without it as well, this script is meant for inexperienced eye.
I will also publish a indicator script with this limiter removed and alerts added for you to test this strategy if you so choose to.
Also, I have added that the trades will enter only if price is above 720 period EMA
Disclaimer
This strategy is for educational purposes only and should not be considered financial advice. Always backtest thoroughly and adjust parameters based on your trading style and market conditions.
Made in collaboration with ChatGPT.
Bondar Drive v2.1Title: Bondar Drive v2.1 — Real-time print and delta tick volume visualization
Description:
Bondar Drive v2.1 is a tool for visualizing real-time order flow data. It highlights price movements and volume deltas in an intuitive, easy-to-read format. Indicator can be used in conjunction with the Anchored Volume Profile and Volume Footprint (Type: Total).
Features:
Real-Time Print Visualization:
Displays order flow prints with delta colors for buy/sell dominance.
Adjustable size and transparency for varying order thresholds.
Volume Delta Analysis:
Categorizes orders into Tiny, Small, Session, Large, and Huge based on user-defined thresholds.
Provides a tooltip showing order time and price.
Customizable Time Range:
Keeps prints visible for a specified duration (in seconds).
Flexible User Inputs:
Adjustable time zones, print sizes, starting bar index, and volume thresholds.
Visual Enhancements:
Line connections between prints show progression of orders and market direction.
How It Works:
The indicator gathers volume delta and price data in real time.
It dynamically displays circular labels with varying sizes and colors, reflecting the size and type of orders. Labels and lines are automatically removed after the specified time range, ensuring a clean and uncluttered chart.
Customization Options:
Number of Prints: Control how many prints are displayed.
Order Size Filters: Exclude small trades to highlight significant orders.
Color Options: Customize print colors, text, and connecting lines.
Time Offset: Adjust for your local time zone.
Use Cases:
Identify order flow imbalances and price levels dominated by buyers or sellers.
Track the progression of large orders for better trade execution.
Spot market reversals and momentum shifts using real-time prints and delta.
Previous Key Levels (fadi)Previous Key Levels indicator is a highly configurable OHLC levels tool designed to provide traders with the ability to plot multiple levels while minimizing screen clutter. This indicator is perfect for those who want to monitor various timeframes simultaneously without overloading their charts with unnecessary information.
How to Use It
This indicator offers traders the flexibility to track up to 6 higher timeframes (HTFs) and multiple candles for each timeframe. For example, a trader can choose to monitor the OHLC of the last four 4-hour candles, providing a comprehensive view of significant price levels over different periods.
Key Features
Highly Configurable: Customize the number of timeframes and candles to suit your trading strategy.
Minimal Screen Clutter: Efficiently plot multiple levels without overwhelming your chart.
Flexible Application: Ideal for identifying support and resistance levels, liquidity sweeps, target levels, and more, adapting to various trading styles.
Traders have diverse trading styles and preferences. Some may use these levels to identify support and resistance zones, while others might look for liquidity sweeps or set target levels. By offering a high degree of customization, the Previous Key Levels indicator caters to the unique needs of individual traders, helping them make informed decisions based on historical price action across multiple timeframes.
Timeframe Settings
Toggle to track 6 HTF settings and the number of candles to track for each.
Limit to next HTFs only can be used to limit the HTF levels displayed based on the current timeframe.
Hide Above will disable the indicator above the specified interval.
Offset to Left and Right are used to specify where the level line starts and ends based on the current candle.
Offset between HTFs extends HTF levels to become more readable.
HTF Settings
Choice of the OHLC levels to track.
Specify the color, line style, and line width for each level.
Mark the start of that level, for example, draw a vertical line where the 4H candle has started.
Trace back to draw optional lines to track back to the origin of the level.
Label Settings
Highly configurable labels that allow traders to customize the labels to their liking.
Label color, background, and size.
Customize using up to 9 configurable parts.
Fading Levels
To prevent clutter, the indicator offers the option to change the transparency of the levels based on their distance from the current price. The distance is calculated based on a configurable Average True Range (ATR).
Change Transparency to a percentage of its current color.
Range should be within X candles will fade any level that is X candles length away from the current price.
ATR length used in calculation will calculate the average size of candles in the calculation.
Hourly 20 EMA on 5m ChartThis indicator shows the hourly 20ema on any current time frame that is open on your charts
Volume-MACD-RSI Integrated StrategyDescription:
This script integrates three well-known technical analysis tools—Volume, MACD, and RSI—into a single signal meant to help traders identify potential turning points under strong market conditions.
Concept Overview:
Volume Filter: We compare the current bar’s volume to a 20-period volume average and require it to exceed a specified multiplier. This ensures that signals occur only during periods of heightened market participation. The logic is that moves on low volume are less reliable, so we wait for increased activity to confirm potential trend changes.
MACD Momentum Shift:
We incorporate MACD crossovers to determine when momentum is changing direction. MACD is a popular momentum indicator that identifies shifts in trend by comparing short-term and long-term EMAs. A bullish crossover (MACD line crossing above the signal line) may suggest upward momentum is building, while a bearish crossunder can indicate momentum turning downward.
RSI Market Condition Check:
RSI helps us identify overbought or oversold conditions. By requiring that RSI be oversold on buy signals and overbought on sell signals, we attempt to pinpoint entries where price could be at an extreme. The idea is to position entries or exits at junctures where price may be due for a reversal.
How the Script Works Together:
Volume Confirmation: No signals fire unless there’s strong volume. This reduces false positives.
MACD Momentum Check: Once volume confirms market interest, MACD crossover events serve as a trigger to initiate consideration of a trade signal.
RSI Condition: Finally, RSI determines whether the market is at an extreme. This final layer helps ensure we only act on signals that have both momentum shift and a price at an extreme level, potentially increasing the reliability of signals.
Intended Use:
This script can help highlight potential reversal points or trend shifts during active market periods.
Traders can use these signals as a starting point for deeper analysis. For instance, a “BUY” arrow may prompt a trader to investigate the market context, confirm with other methods, or look for patterns that further support a long entry.
The script is best used on markets with reliable volume data, such as stocks or futures, and can be experimented with across different timeframes. Adjusting the RSI thresholds, MACD parameters, and volume multiplier can help tailor it to specific instruments or trading styles.
Chart Setup:
When adding this script to your chart, it should be the only indicator present, so you can clearly see the red “BUY” arrows and green “SELL” arrows at the candle closes where signals occur.
The chart should be kept clean and uncluttered for clarity. No other indicators are necessary since the logic is already integrated into this single script.
Bitcoin All-Time High (ATH) Alert with Cooldown₿ Bitcoin All-Time High (ATH) Alert with Cooldown 🚀👩🚀
🔍 What it does:
This indicator tracks new all-time highs (ATHs) and alerts you when Bitcoin (or any asset) reaches a fresh ATH, while avoiding alert spam with a customizable cooldown period.
✨ Key Features
✅ Alerts for New ATHs: Never miss when Bitcoin makes history!
✅ Cooldown Period: Prevents multiple alerts within a short timeframe (customizable in settings).
✅ ATH Line on Chart: A clear, visual line marking the all-time high price.
✅ Manual Reset Option: Reset the ATH for testing or specific chart conditions.
⚙️ How to Use
Add the Indicator: Apply it to your chart like any other indicator. Ideally on a small time frame, the cooldown is 20 bars by default (adjustable) which gives 20 minutes on the 1 min chart.
Customize Settings:
- Cooldown Period (bars): Set the number of bars to wait before triggering another alert (e.g., 20 bars).
- Show All-Time High Line: Toggle to display or hide the ATH line visually.
- Reset All-Time High: Use this to manually reset the ATH to the current bar's high.
Create an Alert:
Open the "Alerts" menu.
Select the condition: "New All-Time High" .
Choose a trigger type:
Once Per Bar: For immediate alerts when a new ATH occurs.
Once Per Bar Close: To confirm the ATH at the end of each bar.
🛠️ Who is it for?
Traders and HODLers who want to stay on top of price action.
Anyone looking for clean and efficient ATH tracking with no redundant alerts
🚀 Never miss a new ATH again. Stay ahead of the market!
Options Series - Anchored VWAP Ribbon➤ AVWAP On different chart symbols:
⭐ Overview and Key Features:
Anchored VWAP Calculation:
The script implements the Anchored Volume Weighted Average Price (AVWAP), a tool used by professional traders to identify key price levels weighted by volume, starting from a specific timestamp (anchor point).
Bullish and Bearish Analysis:
It determines the dominance of bullish or bearish momentum based on the relationship between the close price and AVWAP levels across multiple time points.
Dynamic Visualization:
The background of the chart changes color based on overall bullish or bearish sentiment, making it easier to interpret market trends.
Multi-Time Anchors:
By defining multiple anchor points (e.g., 09:15, 09:20), the script calculates a series of AVWAP values for fine-grained intraday analysis.
Customizable Inputs:
Users can select the source price (e.g., hlc3), date, and time for AVWAP calculation.
⭐ How It Works and Functionality:
AVWAP Logic:
Uses the timestamp() function to establish a reference (anchor point).
Calculates the cumulative weighted price (price * volume) and cumulative volume from this anchor point.
The ratio of these sums gives the AVWAP, which updates dynamically with new bars.
Bullish and Bearish Signals:
Binary flags (1 or 0) are set for each time point depending on whether the closing price is above or below the AVWAP for that time.
Aggregates these flags into AVWAP_bull and AVWAP_bear to represent the overall market sentiment.
Decision Logic:
Determines final market conditions (bullish or bearish dominance) based on aggregated scores.
Visual feedback (background and bar colors) is applied accordingly.
⭐ Visualizations and User Experience:
Background Colors:
Green or red background highlights the overall sentiment (bullish or bearish), providing a quick market overview.
Bar Coloring:
Bars are color-coded based on bullish, bearish, or neutral conditions, making it easier to identify trends directly on the chart.
AVWAP Levels:
The calculated AVWAP values are plotted as colored lines for each anchor point, giving precise intraday levels of significance.
Bright colors (fluorescent green/red) are used for additional clarity when the close price is above or below these levels.
🎨 Settings and Customization:
Anchor Point:
Fully customizable anchor points allow users to set specific dates and times (e.g., 09:15 on December 13, 2024) for AVWAP calculations.
Source Price:
Users can choose from hlc3, close, or any other price source to calculate the AVWAP, tailoring the indicator to their strategy.
Visual Appearance:
The transparency, colors, and line styles are adjustable, enabling users to customize the chart to match their trading preferences.
Dynamic Signals:
The script accommodates numerous AVWAP levels, providing flexibility for scalpers and swing traders alike.
⭐ Uniqueness of the Concept:
Precise Intraday Analysis:
Unlike static VWAP, this script allows anchoring to specific times during the day, offering granular insights into market behavior.
Cumulative Sentiment Approach:
Aggregates signals across multiple time intervals, providing a comprehensive view of intraday momentum rather than a single-point reference.
Blending AVWAP with Visual Feedback:
Combines traditional AVWAP calculations with visually impactful features like background shading and bar coloring to enhance decision-making.
Scalability:
Supports adding multiple additional anchor points and customization for broader applicability in different market conditions.
🚀 Conclusion:
The Anchored VWAP Ribbon script is a powerful tool for traders seeking to analyze price behavior relative to volume-weighted levels anchored at specific times. It provides a visually intuitive way to assess intraday market sentiment, combining traditional technical indicators with customizable visualization features. The script’s flexibility makes it suitable for a variety of trading styles, from scalping to swing trading, while its unique cumulative sentiment logic sets it apart from conventional VWAP tools.