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.
Komut dosyalarını "bear" için ara
SMCL - Trend Change StructuresSMCL Indicator - Detailed Functionality
The SMCL (Structure Market Change Levels) indicator is designed to help traders visually detect and analyze changes in market structure. It focuses on identifying key pivot points and possible trend reversals by marking Change of Character (CHoCH) signals and calculating important levels like Premium and Discount zones.
Key Features:
Bullish and Bearish Structure Detection: Marks key trend changes on the chart using price pivots, with options to display only bullish or bearish structures.
Premium and Discount Zones Visualization: Identifies areas where the price may be in an overbought (Premium) or oversold (Discount) zone.
Win Rate Calculation: Calculates and displays the win rate on the chart to help you assess the indicator's effectiveness in real-time.
Full Customization: Adjust the colors of the structures and Premium/Discount zones to match your analysis style.
How to Use:
Bullish Structures: Look for CHoCH labels above recent highs indicating a potential shift to an uptrend.
Bearish Structures: Watch for CHoCH labels below recent lows indicating a potential shift to a downtrend.
Premium/Discount Levels: Use these zones to identify potential overbought or oversold conditions, ideal for planning entries or exits.
Win Rate: Monitor the win rate to gauge the reliability of the indicator over time.
This indicator is ideal for both intraday traders and swing traders looking for a simple yet powerful tool to identify market trend changes. Try it out and improve your trading decisions!
Technical Details:
1. Inputs:
Structure Period (prd): Defines the lookback period for detecting significant highs and lows (pivots). A higher period will consider a broader price range, identifying more prominent structures.
Response Period (resp): Determines how reactive the indicator is to recent price movements, affecting how quickly new structures are identified.
Show Bullish Structure (bull): A toggle to display bullish (uptrend) market structures on the chart.
Show Bearish Structure (bear): A toggle to display bearish (downtrend) market structures on the chart.
Show Premium & Discount (showPD): When enabled, the indicator will draw Premium (overbought) and Discount (oversold) levels on the chart.
2. Colors:
Bullish Color (bullColor): The color used to highlight bullish market structures.
Bearish Color (bearColor): The color used to highlight bearish market structures.
Premium Color (premColor): The color used to display the Premium (overbought) level.
Discount Color (discColor): The color used to display the Discount (oversold) level.
3. Structure Detection:
High and Low Pivot Points (Up, Dn): The indicator continuously tracks the highest and lowest prices over the specified structure period (prd). These pivot points are used to identify potential trend changes.
Change of Character (CHoCH) Detection:
When a new high is detected (Up > previous Up), it signifies a potential bullish trend change. A label with "CHoCH" is placed on the chart, if bullish structures are enabled.
Similarly, when a new low is detected (Dn < previous Dn), it signifies a potential bearish trend change. A "CHoCH" label is placed if bearish structures are enabled.
4. Premium & Discount Levels:
Premium Level (PremiumTop): Calculated as 10% below the detected high pivot. It represents a zone where the price may be considered overbought, suggesting a possible reversal or pullback.
Discount Level (DiscountTop): Calculated as 10% above the detected low pivot. It represents a zone where the price may be considered oversold, suggesting a possible buying opportunity.
These levels are drawn on the chart if the showPD option is enabled, helping traders visually assess the market's condition.
5. Probability Calculation:
Win Rate Calculation (WinRate): The indicator tracks the number of times the market structure changes from bullish to bearish and vice versa. It calculates the win rate as the ratio of bullish to bearish changes, providing insight into the strength of the detected structures.
This win rate is displayed on the chart in the latest bar, giving a real-time assessment of the indicator's performance.
6. Display Options:
The indicator offers full customization of colors and visibility for different components, allowing traders to tailor the visuals to their preferences.
Labels and lines are drawn with a 50% opacity by default, making them less intrusive while still visible on the chart.
Three Anchored Moving Averages (VWAP / SMA / EMA)
This indicator allows users to anchor three types of moving averages (Simple Moving Average (SMA), Exponential Moving Average (EMA), and Volume Weighted Average Price (VWAP)) to specific points in time (anchor points)
Key Features:
Select from three Moving Average Types:
Simple Moving Average (SMA): Averages the closing prices over a specified period.
Exponential Moving Average (EMA): Gives more weight to recent prices, making it more responsive to new information.
Volume Weighted Average Price (VWAP): Averages the price weighted by volume, useful for understanding the average price at which the asset has traded over a period.
Up to Three Anchor Points:
Users can set up to three different anchor points to calculate the moving averages from specific dates and times. This allows for analysis of price action starting from significant points or specific events. For example, you can anchor to the low and high of a move to identify key levels or to points where the price takes off from a previous anchored MA.
Customisable Sentiment Options:
Each anchor point can be associated with a sentiment input (Auto, Bull, Bear, None), which influences if the MAs are displayed as lines or zones/bands:
Auto: Automatically determines the sentiment based on whether anchor points are on pivot highs and lows. If anchored to a pivot high, the system will assume a bearish sentiment and display a red band or zone between the MA OHLC4 and High. Anchoring to a pivot low will display a green band (OHLC4 - Low).
Bull: Forces a bullish sentiment (Green Band - OHLC4 to Low)
Bear: Forces a bearish sentiment (Red Band - OHLC4 to High)
None: Ignores sentiment and displays a single line (OHLC4)
Chart Matching:
The indicator includes an option to display the moving averages only if the chart symbol matches a specified ticker. This feature ensures that the indicator is relevant to the specific asset being analysed.
How to Use the Indicator:
1. Set Anchor Points: When added to your chart, select three anchor points by point and click. If you only wish to anchor to a single point, click on that point three times and disable the other two in settings once the indicator is applied.
2. Select Moving Average Type: Choose between SMA, EMA, or VWAP using the dropdown menu. EMAs are the most responsive.
3. Enable/Disable Anchor Points: Use the checkboxes to enable or disable each anchor point.
4. Select Sentiment Type: Choose between Auto, Bull, Bear, or None.
5. Chart Matching: Optionally, specify a chart symbol to restrict the indicator's display to that particular asset.
6. Interpret the Plots: The indicator plots the high, mid, and low values of the selected moving average type from each anchor point. The fills between these plots help identify potential support and resistance zones. These should be used as points of interest for pullback reversals or potential continuation if the price breaks through.
Practical Applications:
Trend Analysis: Identify the overall trend direction from specific historical points.
Support and Resistance: Determine key dynamic support and resistance levels based on anchored moving averages.
Event-Based Analysis: Anchor the moving averages to significant events (e.g., earnings releases, economic data) to study their impact on price trends.
Multi Timeframe Analysis: Higher Timeframe Anchors can be used to identify longer term trend analysis. Switching to a lower timeframe for execution triggers at these points wont distort the MA levels as they are anchored to a specific point in time
Intraday or Swing Trading: trend analysis using anchor points can be used for any style of trading (Intraday / Swing / Invest). Use anchored levels as points of interest and wait for hints in price action to try and catch the next move.
Fibo Level DailyOverview
The "Fibo Level Daily" strategy is designed for trading Bitcoin (BTC) using the 1-hour timeframe. This strategy relies on Fibonacci levels calculated from the previous day's range and determines entry and exit points based on whether the previous daily candle was bullish or bearish.
How It Works
Fibonacci Levels Calculation:
The indicator calculates Fibonacci levels (0.8, 0.5, and 0.2) based on the high and low of the previous day.
The levels are calculated as follows:
0.8: This level is calculated by multiplying the difference between the previous day's high and low by 0.8 and adding the result to the previous day's low.
0.5: This is the midpoint of the previous day's range.
0.2: This level is calculated by multiplying the difference between the previous day's high and low by 0.2 and adding the result to the previous day's low.
Identifying the Previous Day's Trend:
The indicator checks if the previous daily candle closed bullish (close greater than open) or bearish (close less than open).
Setting Entry and Take Profit Levels:
If the previous daily candle was bearish:
Sell Entry: Wait for the price to rise to the 0.5 level (midpoint of the previous day's range) to enter a sell position.
Take Profit: The profit target is set at the 0.2 level.
If the previous daily candle was bullish:
Buy Entry: Wait for the price to drop to the 0.5 level (midpoint of the previous day's range) to enter a buy position.
Take Profit: The profit target is set at the 0.8 level.
Visual Representation on the Chart:
The indicator draws horizontal lines on the chart representing the Fibonacci levels (0.8, 0.5, and 0.2) from the previous day. These lines help visualize entry and exit points clearly.
Additionally, the last 15 minutes of the daily session are highlighted with a light red background to indicate the session's end.
Conditions of Use:
Timeframe: This indicator is specifically designed for use on the 1-hour timeframe.
Assets: While it can be used on any asset, it is optimized for trading Bitcoin (BTC).
Steps to Use the Indicator
Add the Indicator:
Insert the "Fibo Level Daily" indicator script into your trading platform (such as TradingView).
Select Timeframe:
Change the chart timeframe to 1 hour.
Interpret the Levels:
Observe the horizontal lines drawn on the chart representing the Fibonacci levels.
Identify whether the previous daily candle was bullish or bearish.
Wait for the Entry Price:
For a bearish previous daily candle: Wait for the price to rise to the 0.5 level to enter a sell position.
For a bullish previous daily candle: Wait for the price to drop to the 0.5 level to enter a buy position.
Set the Profit Target:
For a sell: Set your profit target at the 0.2 level.
For a buy: Set your profit target at the 0.8 level.
Execute the Trade:
Initiate the trade once the price reaches the entry level and set your take profit according to the identified trend from the previous day.
Conclusion
The "Fibo Level Daily" strategy provides a clear and precise methodology for identifying entry and exit points in Bitcoin using Fibonacci levels. By following this step-by-step guide, any trader can take advantage of market movements based on the previous day's price action, optimizing their trading opportunities on the 1-hour timeframe.
MTF Market Structure - SMC IndicatorsThe Multi Timeframe Market Structure helps understand and identify bullish or bearish Market Structure by highlighting “KEY” Highs and Lows. It also identifies changes in market direction by identifying a “Shift in Market Structure” (See Point 2 below) or “Break in Market Structure” (See Point 3 Below).
What are Key Highs and Lows?
Not every high or low is a “Key” high or low. “Key” highs and lows are specific highs and lows that form the structure of the market and have significance in understanding the current trend in the market (see point 1 below).
The indicator identifies these “Key” highs and lows on multiple time frames, allowing the trader to keep a perspective of the Market Structure with multiple timeframes simultaneously (see point 5 below).
The key highs and lows identified by the indicator are as follows:
Key Lows : Identify significant Swing Lows, Short-term lows “STL”, Intermediate-Term Lows “ITL”, and Long-Term Lows “LTL”.
Key Highs : Identify significant Swing Highs, Short-term highs “STH”, Intermediate-Term Highs “ITH”, and Long-Term Highs “LTH”.
Significant Swing High : This is a price swing with one lower candle to the right and one lower candle to the left of it.
Significant Swing Low : This is a price swing with one higher candle to the right and one higher candle to the left of it.
Short-Term High “STH” is a price swing with one lower Significant Swing High to the right and one lower Significant Swing High to the left of it.
Short-Term Low “STL” is a price swing with one higher Significant Swing Low to the right and one higher Significant Swing Low to the left of it.
Intermediate-Term High “ITH” is a price swing with one lower STH to the right and one lower STH to the left of it.
Intermediate-Term Low “ITL” is a price swing with one higher STL to the right and one higher STL to the left of it.
Long-Term High “LTH” is a price swing with one lower ITH to the right and one lower ITH to the left of it.
Long-Term Low “ITL” is a price swing with one higher ITL to the right and one higher ITL to the left of it.
By identifying key highs and lows using the Market Structure Indicator, it can be used in multiple ways by using those reference points as follows:
1. Identifying Market Trends by Connecting Key Highs and Lows.
Bullish trend identification is when the indicator is making higher ITLs and ITHs.
Bearish Trend identification when the indicator is making lower ITLs and ITHs.
PS: it’s essential to understand the underlying market trend on multiple timeframes to use the next features correctly. Always use the Shifts and Breaks in Market Structures in line with the 1H or higher timeframes Market Trend for higher probability trade opportunities. This is because, generally, higher timeframes have more importance than lower timeframes.
2. Shift In Market Structure - SMS for Entries
A Shift in Market Structure “SMS” identifies potential reversal in short-term market trend relative to the timeframe where the SMS is identified.
This occurs after a run of any Significant Swing High or Low and then reversing, creating a Fair Value Gap “FVG”.
There can be Bullish and Bearish Market Structure Shifts.
When a Bullish Shift in Market Structure occurs, the indicator identifies an opportunity for the price to change from Bearish to Bullish, as seen in the image below.
When a Bearish Shift in Market Structure occurs, the indicator identifies an opportunity for the price to change from Bullish to Bearish.
3. Break In Market Structure - BMS for Entries
A Break in Market Structure “BMS” has a similar function to the Shift in Market Structure “SMS”; however, when it occurs, it identifies a potential longer-term trend reversal (compared to the SMS) relative to the timeframe where the BMS is identified.
Unlike “SMS”, the BMS occurs after a run only after a run on Key Highs or Lows.
Similar to the SMS, there can be Bullish and Bearish Breaks in Market Structure.
When a Bullish Break in Market Structure occurs, the indicator identifies an opportunity for a longer-term trend change from Bearish to Bullish, as seen in the image below.
The FVG must occur in the lower 50% of the impulse price leg (at Discount).
When a Bearish Break in Market Structure occurs, the indicator identifies an opportunity for a longer-term trend change from Bullish to Bearish.
The FVG must occur in the upper 50% of the impulse price leg (at Premium).
4. Inversion Break and Shift in Market Structure for Early Entries
Inversion “BMS” and “SMS” are similar to the normal SMS and BMS, but they occur:
Bullish: When the FVG of the Bearish BMS/SMS forms in the lower 50% of the impulse price leg (at Discount).
We use the FVG that forms from the Bearish SMS/BMS as an inversion FVG for potential entry after market trend change from Bearish to Bullish.
Bearish: When the FVG of the Bullish BMS/SMS forms in the upper 50% of the impulse price leg (at Premium).
We use the FVG that forms from the Bullish SMS/BMS as an inversion FVG for potential entry after market trend change from Bullish to Bearish.
5. Multi Time Frame analysis
The indicator allows multiple timeframe perspectives to be considered when using it.
The key Highs and Lows have significance not only on the current timeframe they are identified but also on lower or higher timeframes simultaneously.
This is because a ITL/ITH on the 1H means
It’s a LTL/LTH on one or more timeframes lower (15Min, 5M, and 1Min).
And at the same time, it’s a STL/STH on one timeframe higher (4H)
Also, it’s a Significant Low/High (marked with a dot) on two timeframes higher (Daily).
The same logic applies to all other Key Highs and Lows.
Another example is a Significant Low/High (swing marked with a dot below or above it) on the current timeframe (1D) means it’s a STL/STH on one timeframe lower (4H) and an ITL/ITH on two timeframes lower (1H) and a LTH/LTH on three timeframes lower or more (15M, 5M, 1Min, 30 Seconds, etc…).
This Multi-time frame analysis is a great way to help traders understand Market Structure and Market trend on multiple timeframes simultaneously, and it also assists in Top-down analysis.
PS: Note that this multi-timeframe analysis approach and logic can be applied to any timeframe and for any type of trading (swing trading, day trading, scalping, or short-term trading) because the price is fractal.
For example, if a trader is a swing trader, then it’s best to identify trader opportunities on the 1H or higher; however, lower timeframes Market Structure can still be used to help the traders refine their entries and target key highs and lows in the opposite direction.
If a trader is a day trader or a scalper, the trader could use Market Structure on 15M or lower to identify trader opportunities and target key highs and lows in the opposite direction.
6. Setting Targets
The indicator can also be used to identify potential targets after the SMS or BMS occurs. Targets can be chosen above Key Highs or Lows depending on the trade objective and timeframe where the trade idea is identified.
Bonus Features
Highlight Market Structure Trend
This feature is an excellent backtesting visual tool to look at changes in market trends highlighted in colours. These changes are based on the Shift or Break in of Market Structure depending on the selection option.
When "Shift/Break" in Market Structure" is selected, a Bullish trend is highlighted in blue when a Bullish Shift/Break in Market Structure Occurs and in Red when a Bearish Shift/Break in Market Structure Occurs.
Notifications
Sends notifications when there is a Shift or Break in Market Structure on the current timeframe of choice.
Multi Timeframe Trend StrengthThis code is an advancement of my previous percentile-based trend strength. It follows the same concept, except this code display the trend and trend strength in multiple timeframe (1 min, 5 min, 15 min, 1hr and 4hr).
This gives an indication of the trend is evolving and allows to see how short-term trend matches with the long-term trend.
How it works:
The script assesses trend strength through percentile values derived from high and low prices across various time periods. It categorizes the current trend as either Bullish, Bearish, or N/A (No Trend) with the following steps:
Percentile Calculations: The code calculates the 75th percentile of high prices (e.g., percentile_13H) and the 25th percentile of low prices (e.g., percentile_13L) for specified Fibonacci-based periods (13, 21, 34, 55, 89, and 144). These percentiles serve as thresholds for identifying strong trends.
Calculate Highest High and Lowest Low: It computes the highest high (75th percentile high price of the longest period) and lowest low (25th percentile low price of the longest period), referred to as highest_high and lowest_low. These values establish critical price levels.
Trend Strength Conditions: For each percentile and period, the code checks if the percentile exceeds the highest high (trendBull) or falls below the lowest low (trendBear). These conditions gauge the strength of bullish and bearish trends.
Count Bull and Count Bear: Variables countBull and countBear tally the number of bullish and bearish conditions met, helping assess trend strength.
Weak Bull and Weak Bear Count: The code calculates weak bullish and bearish conditions, occurring when percentiles fall within the range defined by highest_high and lowest_low but don't meet strong trend criteria.
Bull Strength and Bear Strength: bullStrength and bearStrength are calculated based on counts of bullish, bearish, weak bullish, and weak bearish conditions, representing overall trend strength.
Strong Bull and Bear Conditions: These conditions arise when the 75th percentile of high prices (bull conditions) or the 25th percentile of low prices (bear conditions) surpass or dip below the highest high or lowest low, respectively, for the specified period. Strong conditions indicate robust trends with significant price movements.
Weak Bull and Bear Conditions: Weak conditions occur when percentiles fall within the range between highest_high and lowest_low, suggesting some bullish or bearish tendencies without reaching extreme levels. These imply less decisive trends.
Current Trend Identification: The current trend is determined by comparing bullStrength and bearStrength. A greater bullStrength indicates a Bull trend, greater bearStrength implies a Bear trend, and equal values denote No Trend (N/A).
CandlestickPatternsLibrary "CandlestickPatterns"
This library provides a wide range of candlestick patterns, and available for user to call each pattern individually. It's a comprehensive and common tool designed for traders seeking to raise their technical analysis, and it may help users identify key turning of price action in financial instruments. Credit to public technical “*All Candlestick Patterns*” indicator.
abandonedBaby(order, d1)
The "Abandoned Baby" candlestick pattern is a bullish/bearish pattern consists of three candles.
Parameters:
order (simple string) : (simple string) Pattern order type "bull" or "bear".
d1 (simple float) : (simple float) Previous candle's body percentage out of candle range. Optional argument, default is 5.
darkCloudCover(c1, n)
The "Dark Cloud Cover" is a bearish pattern consists of two candles.
Parameters:
c1 (simple bool) : (simple bool) Previous candle's body must be higher than average. Optional argument, default is true.
n (simple int) : (simple int) Length of average candle's body. Optional argument, default is 14.
doji(d0)
The "Doji" is neither bullish or bearish consists of one candles.
Parameters:
d0 (simple float) : (simple float) Current candle's body percentage out of candle range. Optional argument, default is 5.
dojiStar(order, c1, n, d0)
The "Doji Star" is a bullish/bearish pattern consists of two candles.
Parameters:
order (simple string) : (simple string) Pattern order type "bull" or "bear" .
c1 (simple bool) : (simple bool) Previous candle's body must be higher than average. Optional argument, default is true.
n (simple int) : (simple int) Length of average candle's body. Optional argument, default is 14.
d0 (simple float) : (simple float) Current candle's body percentage out of candle range. Optional argument, default is 5.
downsideTasukiGap(c2, c1, n)
The "Downside Tasuki Gap" is a bearish pattern consists of three candles.
Parameters:
c2 (simple bool) : (simple bool) Before previous candle's body must be higher than average. Optional argument, default is true.
c1 (simple bool) : (simple bool) Previous candle's body must be lower than average. Optional argument, default is true.
n (simple int) : (simple int) Length of average candle's body. Optional argument, default is 14.
dragonflyDoji(d0)
The "Dragon Fly Doji" is a bullish pattern consists of one candle.
Parameters:
d0 (simple float) : (simple float) Current candle's body percentage out of candle range. Optional argument, default is 5.
engulfing(order, c1, c0, n)
The "Engulfing" is a bullish/bearish pattern consists of two candles.
Parameters:
order (simple string) : (simple string) Pattern order type "bull" or "bear".
c1 (simple bool) : (simple bool) Previous candle's body must be lower than average. Optional argument, default is true.
c0 (simple bool) : (simple bool) Current candle's body must be higher than average. Optional argument, default is true.
n (simple int) : (simple int) Length of average candle's body. Optional argument, default is 14.
eveningDojiStar(c2, c0, d1, n)
The "Evening Doji Star" is a bearish pattern consists of three candles.
Parameters:
c2 (simple bool) : (simple bool) Before previous candle's body must be higher than average, default is true.
c0 (simple bool) : (simple bool) Current candle's body must be higher than average. Optional argument, default is true.
d1 (simple float) : (simple float) Previous candle's body percentage out of candle range. Optional argument, default is 5.
n (simple int) : (simple int) Length of average candle's body. Optional argument, default is 14.
eveningStar(c2, c1, c0, n)
The "Evening Star" is a bearish pattern consists of three candles.
Parameters:
c2 (simple bool) : (simple bool) Before previous candle's body must be higher than average. Optional argument, default is true.
c1 (simple bool) : (simple bool) Previous candle's body must be lower than average. Optional argument, default is true.
c0 (simple bool) : (simple bool) Current candle's body must be higher than average. Optional argument, default is true.
n (simple int) : (simple int) Length of average candle's body. Optional argument, default is 14.
fallingThreeMethods(c4, c3, c2, c1, c0, n)
The "Falling Three Methods" is a bearish pattern consists of five candles.
Parameters:
c4 (simple bool) : (simple bool) 5th candle ago body must be higher than average. Optional argument, default is true.
c3 (simple bool) : (simple bool) 4th candle ago body must be lower than average. Optional argument, default is true.
c2 (simple bool) : (simple bool) 3rd candle ago body must be lower than average. Optional argument, default is true.
c1 (simple bool) : (simple bool) 2nd candle ago body must be lower than average. Optional argument, default is true.
c0 (simple bool) : (simple bool) Current candle's body must be higher than average. Optional argument, default is true.
n (simple int) : (simple int) Length of average candle's body. Optional argument, default is 14.
Returns: (bool)
fallingWindow()
The "Falling Window" is a bearish pattern consists of two candles.
gravestoneDoji(d0)
The "Gravestone Doji" is a bearish pattern consists of one candle.
Parameters:
d0 (simple float) : (simple float) Current candle's body percentage out of candle range. Optional argument, default is 5.
hammer(c0, n)
The "Hammer" is a bullish pattern consists of one candle.
Parameters:
c0 (simple bool) : (simple bool) Current candle's body must be lower than average. Optional argument, default is true.
n (simple int) : (simple int) Length of average candle's body. Optional argument, default is 14.
hangingMan(c0, n)
The "Hanging Man" is a bearish pattern consists of one candle.
Parameters:
c0 (simple bool) : (simple bool) Current candle's body must be lower than average. Optional argument, default is true.
n (simple int) : (simple int) Length of average candle's body. Optional argument, default is 14.
haramiCross(order, c1, n)
The "Harami Cross" candlestick pattern is a bullish/bearish pattern consists of two candles.
Parameters:
order (string) : (simple string) Pattern order type "bull" or "bear".
c1 (simple bool) : (simple bool) Previous candle's body must be higher than average. Optional argument, default is true.
n (simple int) : (simple int) Length of average candle's body. Optional argument, default is 14.
harami(order, c1, c0, n)
The "Harami" candlestick pattern is a bullish/bearish pattern consists of two candles.
Parameters:
order (string) : (simple string) Pattern order type "bull" or "bear"
c1 (simple bool) : (simple bool) Previous candle's body must be higher than average. Optional argument, default is true.
c0 (simple bool) : (simple bool) Current candle's body must be lower than average. Optional argument, default is true.
n (simple int) : (simple int) Length of average candle's body. Optional argument, default is 14.
invertedHammer(c0, n)
The "Inverted Hammer" is a bullish pattern consists of one candle.
Parameters:
c0 (simple bool) : (simple bool) Current candle's body must be lower than average. Optional argument, default is true.
n (simple int) : (simple int) Length of average candle's body. Optional argument, default is 14.
kicking(order, c1, c0, n)
The "Kicking" candlestick pattern is a bullish/bearish pattern consists of two candles.
Parameters:
order (string) : (simple string) Pattern order type "bull" or "bear"
c1 (simple bool) : (simple bool) Previous candle's body must be higher than average. Optional argument, default is true.
c0 (simple bool) : (simple bool) Current candle's body must be higher than average. Optional argument, default is true.
n (simple int) : (simple int) Length of average candle's body. Optional argument, default is 14.
longLowerShadow(l0)
The "Long Lower Shadow" candlestick pattern is a bullish pattern consists of one candles.
Parameters:
l0 (simple float) : (simple float) Current candle's lower wick min percentage out of candle range. Optional argument, default is 75.
longUpperShadow(u0)
The "Long Upper Shadow" candlestick pattern is a bearish pattern consists of one candles.
Parameters:
u0 (simple float) : (simple float) Current candle's upper wick min percentage out of candle range. Optional argument, default is 75.
marubozuBlack(c0, n)
The "Marubozu Black" candlestick pattern is a bearish pattern consists of one candles.
Parameters:
c0 (simple bool) : (simple bool) Current candle's body must be higher than average. Optional argument, default is true.
n (simple int) : (simple int) Length of average candle's body. Optional argument, default is 14.
marubozuWhite(c0, n)
The "Marubozu White" candlestick pattern is a bullish pattern consists of one candles.
Parameters:
c0 (simple bool) : (simple bool) Current candle's body must be higher than average. Optional argument, default is true.
n (simple int) : (simple int) Length of average candle's body. Optional argument, default is 14.
morningDojiStar(c2, d1, c0, n)
The "Morning Doji Star" candlestick pattern is a bullish pattern consists of three candles.
Parameters:
c2 (simple bool) : (simple bool) Before previous candle's body must be higher than average. Optional argument, default is true.
d1 (simple float) : (simple float) Previous candle's body percentage out of candle range. Optional argument, default is 5.
c0 (simple bool) : (simple bool) Current candle's body must be higher than average. Optional argument, default is true.
n (simple int) : (simple int) Length of average candle's body. Optional argument, default is 14.
morningStar(c2, c1, c0, n)
The "Morning Star" candlestick pattern is a bullish pattern consists of three candles.
Parameters:
c2 (simple bool) : (simple bool) Before previous candle's body must be higher than average. Optional argument, default is true.
c1 (simple bool) : (simple bool) Previous candle's body must be lower than average. Optional argument, default is true.
c0 (simple bool) : (simple bool) Cuurent candle's body must be higher than average. Optional argument, default is true.
n (simple int) : (simple int) Length of average candle's body. Optional argument, default is 14.
onNeck(c1, c0, n)
The "On Neck" candlestick pattern is a bearish pattern consists of two candles.
Parameters:
c1 (simple bool) : (simple bool) Previous candle's body must be higher than average. Optional argument, default is true.
c0 (simple bool) : (simple bool) Cuurent candle's body must be lower than average. Optional argument, default is true.
n (simple int) : (simple int) Length of average candle's body. Optional argument, default is 14.
piercing(c1, n)
The "Piercing" candlestick pattern is a bullish pattern consists of two candles.
Parameters:
c1 (simple bool) : (simple bool) Previous candle's body must be higher than average. Optional argument, default is true.
n (simple int) : (simple int) Length of average candle's body. Optional argument, default is 14.
risingThreeMethods(c4, c3, c2, c1, c0, n)
The "Rising Three Methods" candlestick pattern is a bullish pattern consists of five candles.
Parameters:
c4 (simple bool) : (simple bool) 5th candle ago body must be higher than average. Optional argument, default is true.
c3 (simple bool) : (simple bool) 4th candle ago body must be Lower than average. Optional argument, default is true.
c2 (simple bool) : (simple bool) 3rd candle ago body must be Lower than average. Optional argument, default is true.
c1 (simple bool) : (simple bool) 2nd candle ago body must be Lower than average. Optional argument, default is true.
c0 (simple bool) : (simple bool) Current candle's body must be higher than average. Optional argument, default is true.
n (simple int) : (simple int) Length of average candle's body. Optional argument, default is 14.
risingWindow()
The "Rising Window" candlestick pattern is a bullish pattern consists of two candle.
shootingStar(c0, n)
The "Shooting Star" candlestick pattern is a bearish pattern consists of one candle.
Parameters:
c0 (simple bool) : (simple bool) Current candle's body must be higher than average. Optional argument, default is true.
n (simple int) : (simple int) Length of average candle's body. Optional argument, default is 14.
spinningTopBlack(l0, u0)
The "Spinning Top Black" is neither bullish or bearish.
Parameters:
l0 (simple float) : (simple float) Current candle's lower wick min percentage out of candle range. Optional argument, default is 34.
u0 (simple float) : (simple float) Current candle's upper wick min percentage out of candle range. Optional argument, default is 34.
spinningTopWhite(l0, u0)
The "Spinning Top White" is neither bullish or bearish.
Parameters:
l0 (simple float) : (simple float) Current candle's lower wick min percentage out of candle range. Optional argument, default is 34.
u0 (simple float) : (simple float) Current candle's upper wick min percentage out of candle range. Optional argument, default is 34.
threeBlackCrows(c2, c1, c0, n)
The "Three Black Crows" candlestick pattern is a bearish pattern consists of three candles.
Parameters:
c2 (simple bool) : (simple bool) Before previous candle's body must be higher than average. Optional argument, default is true.
c1 (simple bool) : (simple bool) Previous candle's body must be higher than average. Optional argument, default is true.
c0 (simple bool) : (simple bool) Cuurent candle's body must be higher than average. Optional argument, default is true.
n (simple int) : (simple int) Length of average candle's body. Optional argument, default is 14.
threeWhiteSoldiers(c2, c1, c0, n)
The "Three White Soldiers" candlestick pattern is a bullish pattern consists of three candles.
Parameters:
c2 (simple bool) : (simple bool) Before previous candle's body must be higher than average. Optional argument, default is true.
c1 (simple bool) : (simple bool) Previous candle's body must be higher than average. Optional argument, default is true.
c0 (simple bool) : (simple bool) Cuurent candle's body must be higher than average. Optional argument, default is true.
n (simple int) : (simple int) Length of average candle's body. Optional argument, default is 14.
triStar(order, d2, d1, d0)
The "Tri Star" candlestick pattern is a bullish/bearish pattern consists of three candles.
Parameters:
order (simple string) : (simple string) Pattern order type "bull" or "bear".
d2 (simple float) : (simple float) Before previous candle's body percentage out of candle range. Optional argument, default is 5.
d1 (simple float) : (simple float) Previous candle's body percentage out of candle range. Optional argument, default is 5.
d0 (simple float) : (simple float) Current candle's body percentage out of candle range. Optional argument, default is 5.
tweezerBottom(c1, n)
The "Tweezer Bottom" candlestick pattern is a bullish pattern consists of two candles.
Parameters:
c1 (simple bool) : (simple bool) Previous candle's body must be higher than average. Optional argument, default is true.
n (simple int) : (simple int) Length of average candle's body. Optional argument, default is 14.
tweezerTop(c1, n)
The "Tweezer Top" candlestick pattern is a bearish pattern consists of two candles.
Parameters:
c1 (simple bool) : (simple bool) Previous candle's body must be higher than average. Optional argument, default is true.
n (simple int) : (simple int) Length of average candle's body. Optional argument, default is 14.
upsideTasukiGap(c2, c1, n)
The "Tri Star" candlestick pattern is a bullish pattern consists of three candles.
Parameters:
c2 (simple bool) : (simple bool) Before Previous candle's body must be higher than average. Optional argument, default is true.
c1 (simple bool) : (simple bool) Previous candle's body must be lower than average. Optional argument, default is true.
n (simple int) : (simple int) Length of average candle's body. Optional argument, default is 14.
Adaptive Candlestick Pattern Recognition System█ INTRODUCTION
Nearly three years in the making, intermittently worked on in the few spare hours of weekends and time off, this is a passion project I undertook to flesh out my skills as a computer programmer. This script currently recognizes 85 different candlestick patterns ranging from one to five candles in length. It also performs statistical analysis on those patterns to determine prior performance and changes the coloration of those patterns based on that performance. In searching TradingView's script library for scripts similar to this one, I had found a handful. However, when I reviewed the ones which were open source, I did not see many that truly captured the power of PineScrypt or leveraged the way it works to create efficient and reliable code; one of the main driving factors for releasing this 5,000+ line behemoth open sourced.
Please take the time to review this description and source code to utilize this script to its fullest potential.
█ CONCEPTS
This script covers the following topics: Candlestick Theory, Trend Direction, Higher Timeframes, Price Analysis, Statistic Analysis, and Code Design.
Candlestick Theory - This script focuses solely on the concept of Candlestick Theory: arrangements of candlesticks may form certain patterns that can potentially influence the future price action of assets which experience those patterns. A full list of patterns (grouped by pattern length) will be in its own section of this description. This script contains two modes of operation for identifying candlestick patterns, 'CLASSIC' and 'BREAKOUT'.
CLASSIC: In this mode, candlestick patterns will be identified whenever they appear. The user has a wide variety of inputs to manipulate that can change how certain patterns are identified and even enable alerts to notify themselves when these patterns appear. Each pattern selected to appear will have their Profit or Loss (P/L) calculated starting from the first candle open succeeding the pattern to a candle close specified some number of candles ahead. These P/L calculations are then collected for each pattern, and split among partitions of prior price action of the asset the script is currently applied to (more on that in Higher Timeframes ).
BREAKOUT: In this mode, P/L calculations are held off until a breakout direction has been confirmed. The user may specify the number of candles ahead of a pattern's appearance (from one to five) that a pattern has to confirm a breakout in either an upward or downward direction. A breakout is constituted when there is a candle following the appearance of the pattern that closes above/at the highest high of the pattern, or below/at its lowest low. Only then will percent return calculations be performed for the pattern that's been identified, and these percent returns are broken up not only by the partition they had appeared in but also by the breakout direction itself. Patterns which do not breakout in either direction will be ignored, along with having their labels deleted.
In both of these modes, patterns may be overridden. Overrides occur when a smaller pattern has been detected and ends up becoming one (or more) of the candles of a larger pattern. A key example of this would be the Bearish Engulfing and the Three Outside Down patterns. A Three Outside Down necessitates a Bearish Engulfing as the first two candles in it, while the third candle closes lower. When a pattern is overridden, the return for that pattern will no longer be tracked. Overrides will not occur if the tail end of a larger pattern occurs at the beginning of a smaller pattern (Ex: a Bullish Engulfing occurs on the third candle of a Three Outside Down and the candle immediately following that pattern, the Three Outside Down pattern will not be overridden).
Important Functionality Note: These patterns are only searched for at the most recently closed candle, not on the currently closing candle, which creates an offset of one for this script's execution. (SEE LIMITATIONS)
Trend Direction - Many of the patterns require a trend direction prior to their appearance. Noting TradingView's own publication of candlestick patterns, I utilize a similar method for determining trend direction. Moving Averages are used to determine which trend is currently taking place for candlestick patterns to be sought out. The user has access to two Moving Averages which they may individually modify the following for each: Moving Average type (list of 9), their length, width, source values, and all variables associated with two special Moving Averages (Least Squares and Arnaud Legoux).
There are 3 settings for these Moving Averages, the first two switch between the two Moving Averages, and the third uses both. When using individual Moving Averages, the user may select a 'price point' to compare against the Moving Average (default is close). This price point is compared to the Moving Average at the candles prior to the appearance of candle patterns. Meaning: The close compared to the Moving Average two candles behind determines the trend direction used for Candlestick Analysis of one candle patterns; three candles behind for two candle patterns and so on. If the selected price point is above the Moving Average, then the current trend is an 'uptrend', 'downtrend' otherwise.
The third setting using both Moving Averages will compare the lengths of each, and trend direction is determined by the shorter Moving Average compared to the longer one. If the shorter Moving Average is above the longer, then the current trend is an 'uptrend', 'downtrend' otherwise. If the lengths of the Moving Averages are the same, or both Moving Averages are Symmetrical, then MA1 will be used by default. (SEE LIMITATIONS)
Higher Timeframes - This script employs the use of Higher Timeframes with a few request.security calls. The purpose of these calls is strictly for the partitioning of an asset's chart, splitting the returns of patterns into three separate groups. The four inputs in control of this partitioning split the chart based on: A given resolution to grab values from, the length of time in that resolution, and 'Upper' and 'Lower Limits' which split the trading range provided by that length of time in that resolution that forms three separate groups. The default values for these four inputs will partition the current chart by the yearly high-low range where: the 'Upper' partition is the top 20% of that trading range, the 'Middle' partition is 80% to 33% of the trading range, and the 'Lower' partition covers the trading range within 33% of the yearly low.
Patterns which are identified by this script will have their returns grouped together based on which partition they had appeared in. For example, a Bullish Engulfing which occurs within a third of the yearly low will have its return placed separately from a Bullish Engulfing that occurred within 20% of the yearly high. The idea is that certain patterns may perform better or worse depending on when they had occurred during an asset's trading range.
Price Analysis - Price Analysis is a major part of this script's functionality as it can fundamentally change how patterns are shown to the user. The settings related to Price Analysis include setting the number of candles ahead of a pattern's appearance to determine the return of that pattern. In 'BREAKOUT' mode, an additional setting allows the user to specify where the P/L calculation will begin for a pattern that had appeared and confirmed. (SEE LIMITATIONS)
The calculation for percent returns of patterns is illustrated with the following pseudo-code (CLASSIC mode, this is a simplified version of the actual code):
type patternObj
int ID
int partition
type returnsArray
float returns
// No pattern found = na returned
patternObj TEST_VAL = f_FindPattern()
priorTestVal = TEST_VAL
if not na( priorTestVal )
pnlMatrixRow = priorTestVal.ID
pnlMatrixCol = priorTestVal.partition
matrixReturn = matrix.get(PERCENT_RETURNS, pnlMatrixRow, pnlMatrixCol)
percentReturn = ( (close - open ) / open ) * 100%
array.push(matrixReturn.returns, percentReturn)
Statistic Analysis - This script uses Pine's built-in array functions to conduct the Statistic Analysis for patterns. When a pattern is found and its P/L calculation is complete, its return is added to a 'Return Array' User-Defined-Type that contains numerous fields which retain information on a pattern's prior performance. The actual UDT is as follows:
type returnArray
float returns = na
int size = 0
float avg = 0
float median = 0
float stdDev = 0
int polarities = na
All values within this UDT will be updated when a return is added to it (some based on user input). The array.avg , array.median and array.stdev will be ran and saved into their respective fields after a return is placed in the 'returns' array. The 'polarities' integer array is what will be changed based on user input. The user specifies two different percentages that declare 'Positive' and 'Negative' returns for patterns. When a pattern returns above, below, or in between these two values, different indices of this array will be incremented to reflect the kind of return that pattern had just experienced.
These values (plus the full name, partition the pattern occurred in, and a 95% confidence interval of expected returns) will be displayed to the user on the tooltip of the labels that identify patterns. Simply scroll over the pattern label to view each of these values.
Code Design - Overall this script is as much of an art piece as it is functional. Its design features numerous depictions of ASCII Art that illustrate what is being attempted by the functions that identify patterns, and an incalculable amount of time was spent rewriting portions of code to improve its efficiency. Admittedly, this final version is nearly 1,000 lines shorter than a previous version (one which took nearly 30 seconds after compilation to run, and didn't do nearly half of what this version does). The use of UDTs, especially the 'patternObj' one crafted and redesigned from the Hikkake Hunter 2.0 I published last month, played a significant role in making this script run efficiently. There is a slight rigidity in some of this code mainly around pattern IDs which are responsible for displaying the abbreviation for patterns (as well as the full names under the tooltips, and the matrix row position for holding returns), as each is hard-coded to correspond to that pattern.
However, one thing I would like to mention is the extensive use of global variables for pattern detection. Many scripts I had looked over for ideas on how to identify candlestick patterns had the same idea; break the pattern into a set of logical 'true/false' statements derived from historically referencing candle OHLC values. Some scripts which identified upwards of 20 to 30 patterns would reference Pine's built-in OHLC values for each pattern individually, potentially requesting information from TradingView's servers numerous times that could easily be saved into a variable for re-use and only requested once per candle (what this script does).
█ FEATURES
This script features a massive amount of switches, options, floating point values, detection settings, and methods for identifying/tailoring pattern appearances. All modifiable inputs for patterns are grouped together based on the number of candles they contain. Other inputs (like those for statistics settings and coloration) are grouped separately and presented in a way I believe makes the most sense.
Not mentioned above is the coloration settings. One of the aims of this script was to make patterns visually signify their behavior to the user when they are identified. Each pattern has its own collection of returns which are analyzed and compared to the inputs of the user. The user may choose the colors for bullish, neutral, and bearish patterns. They may also choose the minimum number of patterns needed to occur before assigning a color to that pattern based on its behavior; a color for patterns that have not met this minimum number of occurrences yet, and a color for patterns that are still processing in BREAKOUT mode.
There are also an additional three settings which alter the color scheme for patterns: Statistic Point-of-Reference, Adaptive coloring, and Hard Limiting. The Statistic Point-of-Reference decides which value (average or median) will be compared against the 'Negative' and 'Positive Return Tolerance'(s) to guide the coloration of the patterns (or for Adaptive Coloring, the generation of a color gradient).
Adaptive Coloring will have this script produce a gradient that patterns will be colored along. The more bullish or bearish a pattern is, the further along the gradient those patterns will be colored starting from the 'Neutral' color (hard lined at the value of 0%: values above this will be colored bullish, bearish otherwise). When Adaptive Coloring is enabled, this script will request the highest and lowest values (these being the Statistic Point-of-Reference) from the matrix containing all returns and rewrite global variables tied to the negative and positive return tolerances. This means that all patterns identified will be compared with each other to determine bullish/bearishness in Adaptive Coloring.
Hard Limiting will prevent these global variables from being rewritten, so patterns whose Statistic Point-of-Reference exceed the return tolerances will be fully colored the bullish or bearish colors instead of a generated gradient color. (SEE LIMITATIONS)
Apart from the Candle Detection Modes (CLASSIC and BREAKOUT), there's an additional two inputs which modify how this script behaves grouped under a "MASTER DETECTION SETTINGS" tab. These two "Pattern Detection Settings" are 'SWITCHBOARD' and 'TARGET MODE'.
SWITCHBOARD: Every single pattern has a switch that is associated with its detection. When a switch is enabled, the code which searches for that pattern will be run. With the Pattern Detection Setting set to this, all patterns that have their switches enabled will be sought out and shown.
TARGET MODE: There is an additional setting which operates on top of 'SWITCHBOARD' that singles out an individual pattern the user specifies through a drop down list. The names of every pattern recognized by this script will be present along with an identifier that shows the number of candles in that pattern (Ex: " (# candles)"). All patterns enabled in the switchboard will still have their returns measured, but only the pattern selected from the "Target Pattern" list will be shown. (SEE LIMITATIONS)
The vast majority of other features are held in the one, two, and three candle pattern sections.
For one-candle patterns, there are:
3 — Settings related to defining 'Tall' candles:
The number of candles to sample for previous candle-size averages.
The type of comparison done for 'Tall' Candles: Settings are 'RANGE' and 'BODY'.
The 'Tolerance' for tall candles, specifying what percent of the 'average' size candles must exceed to be considered 'Tall'.
When 'Tall Candle Setting' is set to RANGE, the high-low ranges are what the current candle range will be compared against to determine if a candle is 'Tall'. Otherwise the candle bodies (absolute value of the close - open) will be compared instead. (SEE LIMITATIONS)
Hammer Tolerance - How large a 'discarded wick' may be before it disqualifies a candle from being a 'Hammer'.
Discarded wicks are compared to the size of the Hammer's candle body and are dependent upon the body's center position. Hammer bodies closer to the high of the candle will have the upper wick used as its 'discarded wick', otherwise the lower wick is used.
9 — Doji Settings, some pulled from an old Doji Hunter I made a while back:
Doji Tolerance - How large the body of a candle may be compared to the range to be considered a 'Doji'.
Ignore N/S Dojis - Turns off Trend Direction for non-special Dojis.
GS/DF Doji Settings - 2 Inputs that enable and specify how large wicks that typically disqualify Dojis from being 'Gravestone' or 'Dragonfly' Dojis may be.
4 Settings related to 'Long Wick Doji' candles detailed below.
A Tolerance for 'Rickshaw Man' Dojis specifying how close the center of the body must be to the range to be valid.
The 4 settings the user may modify for 'Long Legged' Dojis are: A Sample Base for determining the previous average of wicks, a Sample Length specifying how far back to look for these averages, a Behavior Setting to define how 'Long Legged' Dojis are recognized, and a tolerance to specify how large in comparison to the prior wicks a Doji's wicks must be to be considered 'Long Legged'.
The 'Sample Base' list has two settings:
RANGE: The wicks of prior candles are compared to their candle ranges and the 'wick averages' will be what the average percent of ranges were in the sample.
WICKS: The size of the wicks themselves are averaged and returned for comparing against the current wicks of a Doji.
The 'Behavior' list has three settings:
ONE: Only one wick length needs to exceed the average by the tolerance for a Doji to be considered 'Long Legged'.
BOTH: Both wick lengths need to exceed the average of the tolerance of their respective wicks (upper wicks are compared to upper wicks, lower wicks compared to lower) to be considered 'Long Legged'.
AVG: Both wicks and the averages of the previous wicks are added together, divided by two, and compared. If the 'average' of the current wicks exceeds this combined average of prior wicks by the tolerance, then this would constitute a valid 'Long Legged' Doji. (For Dojis in general - SEE LIMITATIONS)
The final input is one related to candle patterns which require a Marubozu candle in them. The two settings for this input are 'INCLUSIVE' and 'EXCLUSIVE'. If INCLUSIVE is selected, any opening/closing variant of Marubozu candles will be allowed in the patterns that require them.
For two-candle patterns, there are:
2 — Settings which define 'Engulfing' parameters:
Engulfing Setting - Two options, RANGE or BODY which sets up how one candle may 'engulf' the previous.
Inclusive Engulfing - Boolean which enables if 'engulfing' candles can be equal to the values needed to 'engulf' the prior candle.
For the 'Engulfing Setting':
RANGE: If the second candle's high-low range completely covers the high-low range of the prior candle, this is recognized as 'engulfing'.
BODY: If the second candle's open-close completely covers the open-close of the previous candle, this is recognized as 'engulfing'. (SEE LIMITATIONS)
4 — Booleans specifying different settings for a few patterns:
One which allows for 'opens within body' patterns to let the second candle's open/close values match the prior candles' open/close.
One which forces 'Kicking' patterns to have a gap if the Marubozu setting is set to 'INCLUSIVE'.
And Two which dictate if the individual candles in 'Stomach' patterns need to be 'Tall'.
8 — Floating point values which affect 11 different patterns:
One which determines the distance the close of the first candle in a 'Hammer Inverted' pattern must be to the low to be considered valid.
One which affects how close the opens/closes need to be for all 'Lines' patterns (Bull/Bear Meeting/Separating Lines).
One that allows some leeway with the 'Matching Low' pattern (gives a small range the second candle close may be within instead of needing to match the previous close).
Three tolerances for On Neck/In Neck patterns (2 and 1 respectively).
A tolerance for the Thrusting pattern which give a range the close the second candle may be between the midpoint and close of the first to be considered 'valid'.
A tolerance for the two Tweezers patterns that specifies how close the highs and lows of the patterns need to be to each other to be 'valid'.
The first On Neck tolerance specifies how large the lower wick of the first candle may be (as a % of that candle's range) before the pattern is invalidated. The second tolerance specifies how far up the lower wick to the close the second candle's close may be for this pattern. The third tolerance for the In Neck pattern determines how far into the body of the first candle the second may close to be 'valid'.
For the remaining patterns (3, 4, and 5 candles), there are:
3 — Settings for the Deliberation pattern:
A boolean which forces the open of the third candle to gap above the close of the second.
A tolerance which changes the proximity of the third candle's open to the second candle's close in this pattern.
A tolerance that sets the maximum size the third candle may be compared to the average of the first two candles.
One boolean value for the Two Crows patterns (standard and Upside Gapping) that forces the first two candles in the patterns to completely gap if disabled (candle 1's close < candle 2's low).
10 — Floating point values for the remaining patterns:
One tolerance for defining how much the size of each candle in the Identical Black Crows pattern may deviate from the average of themselves to be considered valid.
One tolerance for setting how close the opens/closes of certain three candle patterns may be to each other's opens/closes.*
Three floating point values that affect the Three Stars in the South pattern.
One tolerance for the Side-by-Side patterns - looks at the second and third candle closes.
One tolerance for the Stick Sandwich pattern - looks at the first and third candle closes.
A floating value that sizes the Concealing Baby Swallow pattern's 3rd candle wick.
Two values for the Ladder Bottom pattern which define a range that the third candle's wick size may be.
* This affects the Three Black Crows (non-identical) and Three White Soldiers patterns, each require the opens and closes of every candle to be near each other.
The first tolerance of the Three Stars in the South pattern affects the first candle body's center position, and defines where it must be above to be considered valid. The second tolerance specifies how close the second candle must be to this same position, as well as the deviation the ratio the candle body to its range may be in comparison to the first candle. The third restricts how large the second candle range may be in comparison to the first (prevents this pattern from being recognized if the second candle is similar to the first but larger).
The last two floating point values define upper and lower limits to the wick size of a Ladder Bottom's fourth candle to be considered valid.
█ HOW TO USE
While there are many moving parts to this script, I attempted to set the default values with what I believed may help identify the most patterns within reasonable definitions. When this script is applied to a chart, the Candle Detection Mode (along with the BREAKOUT settings) and all candle switches must be confirmed before patterns are displayed. All switches are on by default, so this gives the user an opportunity to pick which patterns to identify first before playing around in the settings.
All of the settings/inputs described above are meant for experimentation. I encourage the user to tweak these values at will to find which set ups work best for whichever charts they decide to apply these patterns to.
Refer to the patterns themselves during experimentation. The statistic information provided on the tooltips of the patterns are meant to help guide input decisions. The breadth of candlestick theory is deep, and this was an attempt at capturing what I could in its sea of information.
█ LIMITATIONS
DISCLAIMER: While it may seem a bit paradoxical that this script aims to use past performance to potentially measure future results, past performance is not indicative of future results . Markets are highly adaptive and often unpredictable. This script is meant as an informational tool to show how patterns may behave. There is no guarantee that confidence intervals (or any other metric measured with this script) are accurate to the performance of patterns; caution must be exercised with all patterns identified regardless of how much information regarding prior performance is available.
Candlestick Theory - In the name, Candlestick Theory is a theory , and all theories come with their own limits. Some patterns identified by this script may be completely useless/unprofitable/unpredictable regardless of whatever combination of settings are used to identify them. However, if I truly believed this theory had no merit, this script would not exist. It is important to understand that this is a tool meant to be utilized with an array of others to procure positive (or negative, looking at you, short sellers ) results when navigating the complex world of finance.
To address the functionality note however, this script has an offset of 1 by default. Patterns will not be identified on the currently closing candle, only on the candle which has most recently closed. Attempting to have this script do both (offset by one or identify on close) lead to more trouble than it was worth. I personally just want users to be aware that patterns will not be identified immediately when they appear.
Trend Direction - Moving Averages - There is a small quirk with how MA settings will be adjusted if the user inputs two moving averages of the same length when the "MA Setting" is set to 'BOTH'. If Moving Averages have the same length, this script will default to only using MA 1 regardless of if the types of Moving Averages are different . I will experiment in the future to alleviate/reduce this restriction.
Price Analysis - BREAKOUT mode - With how identifying patterns with a look-ahead confirmation works, the percent returns for patterns that break out in either direction will be calculated on the same candle regardless of if P/L Offset is set to 'FROM CONFIRMATION' or 'FROM APPEARANCE'. This same issue is present in the Hikkake Hunter script mentioned earlier. This does not mean the P/L calculations are incorrect , the offset for the calculation is set by the number of candles required to confirm the pattern if 'FROM APPEARANCE' is selected. It just means that these two different P/L calculations will complete at the same time independent of the setting that's been selected.
Adaptive Coloring/Hard Limiting - Hard Limiting is only used with Adaptive Coloring and has no effect outside of it. If Hard Limiting is used, it is recommended to increase the 'Positive' and 'Negative' return tolerance values as a pattern's bullish/bearishness may be disproportionately represented with the gradient generated under a hard limit.
TARGET MODE - This mode will break rules regarding patterns that are overridden on purpose. If a pattern selected in TARGET mode would have otherwise been absorbed by a larger pattern, it will have that pattern's percent return calculated; potentially leading to duplicate returns being included in the matrix of all returns recognized by this script.
'Tall' Candle Setting - This is a wide-reaching setting, as approximately 30 different patterns or so rely on defining 'Tall' candles. Changing how 'Tall' candles are defined whether by the tolerance value those candles need to exceed or by the values of the candle used for the baseline comparison (RANGE/BODY) can wildly affect how this script functions under certain conditions. Refer to the tooltip of these settings for more information on which specific patterns are affected by this.
Doji Settings - There are roughly 10 or so two to three candle patterns which have Dojis as a part of them. If all Dojis are disabled, it will prevent some of these larger patterns from being recognized. This is a dependency issue that I may address in the future.
'Engulfing' Setting - Functionally, the two 'Engulfing' settings are quite different. Because of this, the 'RANGE' setting may cause certain patterns that would otherwise be valid under textbook and online references/definitions to not be recognized as such (like the Upside Gap Two Crows or Three Outside down).
█ PATTERN LIST
This script recognizes 85 patterns upon initial release. I am open to adding additional patterns to it in the future and any comments/suggestions are appreciated. It recognizes:
15 — 1 Candle Patterns
4 Hammer type patterns: Regular Hammer, Takuri Line, Shooting Star, and Hanging Man
9 Doji Candles: Regular Dojis, Northern/Southern Dojis, Gravestone/Dragonfly Dojis, Gapping Up/Down Dojis, and Long-Legged/Rickshaw Man Dojis
White/Black Long Days
32 — 2 Candle Patterns
4 Engulfing type patterns: Bullish/Bearish Engulfing and Last Engulfing Top/Bottom
Dark Cloud Cover
Bullish/Bearish Doji Star patterns
Hammer Inverted
Bullish/Bearish Haramis + Cross variants
Homing Pigeon
Bullish/Bearish Kicking
4 Lines type patterns: Bullish/Bearish Meeting/Separating Lines
Matching Low
On/In Neck patterns
Piercing pattern
Shooting Star (2 Lines)
Above/Below Stomach patterns
Thrusting
Tweezers Top/Bottom patterns
Two Black Gapping
Rising/Falling Window patterns
29 — 3 Candle Patterns
Bullish/Bearish Abandoned Baby patterns
Advance Block
Collapsing Doji Star
Deliberation
Upside/Downside Gap Three Methods patterns
Three Inside/Outside Up/Down patterns (4 total)
Bullish/Bearish Side-by-Side patterns
Morning/Evening Star patterns + Doji variants
Stick Sandwich
Downside/Upside Tasuki Gap patterns
Three Black Crows + Identical variation
Three White Soldiers
Three Stars in the South
Bullish/Bearish Tri-Star patterns
Two Crows + Upside Gap variant
Unique Three River Bottom
3 — 4 Candle Patterns
Concealing Baby Swallow
Bullish/Bearish Three Line Strike patterns
6 — 5 Candle Patterns
Bullish/Bearish Breakaway patterns
Ladder Bottom
Mat Hold
Rising/Falling Three Methods patterns
█ WORKS CITED
Because of the amount of time needed to complete this script, I am unable to provide exact dates for when some of these references were used. I will also not provide every single reference, as citing a reference for each individual pattern and the place it was reviewed would lead to a bibliography larger than this script and its description combined. There were five major resources I used when building this script, one book, two websites (for various different reasons including patterns, moving averages, and various other articles of information), various scripts from TradingView's public library (including TradingView's own source code for *all* candle patterns ), and PineScrypt's reference manual.
Bulkowski, Thomas N. Encyclopedia of Candlestick Patterns . Hoboken, New Jersey: John Wiley & Sons Inc., 2008. E-book (google books).
Various. Numerous webpages. CandleScanner . 2023. online. Accessed 2020 - 2023.
Various. Numerous webpages. Investopedia . 2023. online. Accessed 2020 - 2023.
█ AKNOWLEDGEMENTS
I want to take the time here to thank all of my friends and family, both online and in real life, for the support they've given me over the last few years in this endeavor. My pets who tried their hardest to keep me from completing it. And work for the grit to continue pushing through until this script's completion.
This belongs to me just as much as it does anyone else. Whether you are an institutional trader, gold bug hedging against the dollar, retail ape who got in on a squeeze, or just parents trying to grow their retirement/save for the kids. This belongs to everyone.
Private Beta for new features to be tested can be found here .
Vires In Numeris
Trend Oscillatorwhat is "Trend Oscillator"?
it is an indicator for determining the trend.
what it does?
analyzes the price action by reducing it to 4 different situations. Red means strong bear, orange means bearish, yellow means weak bull and green means strong bull. It was developed to help traders who trade in the direction of the trend and its biggest promise is to simplify price action.
how it does it?
He defines 4 different situations as follows. If the velocity of the price is positive and the acceleration is positive, it is a strong bull, if the velocity is positive and the acceleration is negative, it is a weak bull, if the velocity is negative and the acceleration is positive, it is a weak bear, if both velocity and acceleration are negative, it is a strong bear.
2 for strong bull
1 for the weak bull
-1 for weak bear
Creates a function that takes values of -2 for the strong bear. this function is the velocity of the principal indicator, and then the integral of this function forms the principal indicator.
how to use it?
"source" is used to change the source of the indicator,
"length" makes the indicator give a later but less signal.
you can use it to follow or analyze the trend. colors make it easy to use. learns about current or past trends by looking at colors. Like any trend indicator, it can give unsuccessful signals in a horizontal trend.
Probability Weighted Moving AverageThe Probability Weighted Moving Average uses a log-normal (continuous) distribution to calculate the probabilities of a range of lengths MAs to assess their performances, and respectively assign weights to a mean of this range. This assumes that the values of the MAs (call it A) aren't normally distributed, but instead log(A) is normally distributed, which can be a fair assumption. In P(t, t+X) where X is the number of trades assessed, it assumes the probability is not dependent on t and independent of previous price.
For P(t, t+X), the higher the value of X, the more trades are assessed.
Range of lengths comes in slow (default) or fast. Faster MAs are not preferable and should be limited to HTFs.
The color code can be either weighted (where lighter shades of blue suggests faster values have more weight, and darker shades suggest slower values have more weight) or coded for bull/bear: green when bullish, red when bearish.
SUPERTREND MIXED ICHI-DMI-DONCHIAN-VOL-GAP-HLBox@RLSUPERTREND MIXED ICHI-DMI-VOL-GAP-HLBox@RL
by RegisL76
This script is based on several trend indicators.
* ICHIMOKU (KINKO HYO)
* DMI (Directional Movement Index)
* SUPERTREND ICHIMOKU + SUPERTREND DMI
* DONCHIAN CANAL Optimized with Colored Bars
* HMA Hull
* Fair Value GAP
* VOLUME/ MA Volume
* PRICE / MA Price
* HHLL BOXES
All these indications are visible simultaneously on a single graph. A data table summarizes all the important information to make a good trade decision.
ICHIMOKU Indicator:
The ICHIMOKU indicator is visualized in the traditional way.
ICHIMOKU standard setting values are respected but modifiable. (Traditional defaults = .
An oriented visual symbol, near the last value, indicates the progression (Ascending, Descending or neutral) of the TENKAN-SEN and the KIJUN-SEN as well as the period used.
The CLOUD (KUMO) and the CHIKOU-SPAN are present and are essential for the complete analysis of the ICHIMOKU.
At the top of the graph are visually represented the crossings of the TENKAN and the KIJUN.
Vertical lines, accompanied by labels, make it possible to quickly visualize the particularities of the ICHIMOKU.
A line displays the current bar.
A line visualizes the end of the CLOUD (KUMO) which is shifted 25 bars into the future.
A line visualizes the end of the chikou-span, which is shifted 25 bars in the past.
DIRECTIONAL MOVEMENT INDEX (DMI) : Treated conventionally : DI+, DI-, ADX and associated with a SUPERTREND DMI.
A visual symbol at the bottom of the graph indicates DI+ and DI- crossings
A line of oriented and colored symbols (DMI Line) at the top of the chart indicates the direction and strength of the trend.
SUPERTREND ICHIMOKU + SUPERTREND DMI :
Trend following by SUPERTREND calculation.
DONCHIAN CHANNEL: Treated conventionally. (And optimized by colored bars when overshooting either up or down.
The lines, high and low of the last values of the channel are represented to quickly visualize the level of the RANGE.
SUPERTREND HMA (HULL) Treated conventionally.
The HMA line visually indicates, according to color and direction, the market trend.
A visual symbol at the bottom of the chart indicates opportunities to sell and buy.
VOLUME:
Calculation of the MOBILE AVERAGE of the volume with comparison of the volume compared to the moving average of the volume.
The indications are colored and commented according to the comparison.
PRICE: Calculation of the MOBILE AVERAGE of the price with comparison of the price compared to the moving average of the price.
The indications are colored and commented according to the comparison.
HHLL BOXES:
Visualizes in the form of a box, for a given period, the max high and min low values of the price.
The configuration allows taking into account the high and low wicks of the price or the opening and closing values.
FAIR VALUE GAP :
This indicator displays 'GAP' levels over the current time period and an optional higher time period.
The script takes into account the high/low values of the current bar and compares with the 2 previous bars.
The "gap" is generated from the lack of overlap between these bars. Bearish or bullish gaps are determined by whether the gap is above or below HmaPrice, as they tend to fill, and can be used as targets.
NOTE: FAIR VALUE GAP has no values displayed in the table and/or label.
Important information (DATA) relating to each indicator is displayed in real time in a table and/or a label.
Each information is commented and colored according to direction, value, comparison etc.
Each piece of information indicates the values of the current bar and the previous value (in "FULL" mode).
The other possible modes for viewing the table and/or the label allow a more synthetic view of the information ("CONDENSED" and "MINIMAL" modes).
In order not to overload the vision of the chart too much, the visualization box of the RANGE DONCHIAN, the vertical lines of the shifted marks of the ICHIMOKU, as well as the boxes of the HHLL Boxes indicator are only visualized intermittently (managed by an adjustable time delay ).
The "HISTORICAL INFO READING" configuration parameter set to zero (by default) makes it possible to read all the information of the current bar in progress (Bar #0). All other values allow to read the information of a historical bar. The value 1 reads the information of the bar preceding the current bar (-1). The value 10 makes it possible to read the information of the tenth bar behind (-10) compared to the current bar, etc.
At the bottom of the DATAS table and label, lights, red, green or white indicate quickly summarize the trend from the various indicators.
Each light represents the number of indicators with the same trend at a given time.
Green for a bullish trend, red for a bearish trend and white for a neutral trend.
The conditions for determining a trend are for each indicator:
SUPERTREND ICHIMOHU + DMI: the 2 Super trends together are either bullish or bearish.
Otherwise the signal is neutral.
DMI: 2 main conditions:
BULLISH if DI+ >= DI- and ADX >25.
BEARISH if DI+ < DI- and ADX >25.
NEUTRAL if the 2 conditions are not met.
ICHIMOKU: 3 main conditions:
BULLISH if PRICE above the cloud and TENKAN > KIJUN and GREEN CLOUD AHEAD.
BEARISH if PRICE below the cloud and TENKAN < KIJUN and RED CLOUD AHEAD.
The other additional conditions (Data) complete the analysis and are present for informational purposes of the trend and depend on the context.
DONCHIAN CHANNEL: 1 main condition:
BULLISH: the price has crossed above the HIGH DC line.
BEARISH: the price has gone below the LOW DC line.
NEUTRAL if the price is between the HIGH DC and LOW DC lines
The 2 other complementary conditions (Datas) complete the analysis:
HIGH DC and LOW DC are increasing, falling or stable.
SUPERTREND HMA HULL: The script determines several trend levels:
STRONG BUY, BUY, STRONG SELL, SELL AND NEUTRAL.
VOLUME: 3 trend levels:
VOLUME > MOVING AVERAGE,
VOLUME < MOVING AVERAGE,
VOLUME = MOVING AVERAGE.
PRICE: 3 trend levels:
PRICE > MOVING AVERAGE,
PRICE < MOVING AVERAGE,
PRICE = MOVING AVERAGE.
If you are using this indicator/strategy and you are satisfied with the results, you can possibly make a donation (a coffee, a pizza or more...) via paypal to: lebourg.regis@free.fr.
Thanks in advance !!!
Have good winning Trades.
**************************************************************************************************************************
SUPERTREND MIXED ICHI-DMI-VOL-GAP-HLBox@RL
by RegisL76
Ce script est basé sur plusieurs indicateurs de tendance.
* ICHIMOKU (KINKO HYO)
* DMI (Directional Movement Index)
* SUPERTREND ICHIMOKU + SUPERTREND DMI
* DONCHIAN CANAL Optimized with Colored Bars
* HMA Hull
* Fair Value GAP
* VOLUME/ MA Volume
* PRIX / MA Prix
* HHLL BOXES
Toutes ces indications sont visibles simultanément sur un seul et même graphique.
Un tableau de données récapitule toutes les informations importantes pour prendre une bonne décision de Trade.
I- Indicateur ICHIMOKU :
L’indicateur ICHIMOKU est visualisé de manière traditionnelle
Les valeurs de réglage standard ICHIMOKU sont respectées mais modifiables. (Valeurs traditionnelles par défaut =
Un symbole visuel orienté, à proximité de la dernière valeur, indique la progression (Montant, Descendant ou neutre) de la TENKAN-SEN et de la KIJUN-SEN ainsi que la période utilisée.
Le NUAGE (KUMO) et la CHIKOU-SPAN sont bien présents et sont primordiaux pour l'analyse complète de l'ICHIMOKU.
En haut du graphique sont représentés visuellement les croisements de la TENKAN et de la KIJUN.
Des lignes verticales, accompagnées d'étiquettes, permettent de visualiser rapidement les particularités de l'ICHIMOKU.
Une ligne visualise la barre en cours.
Une ligne visualise l'extrémité du NUAGE (KUMO) qui est décalé de 25 barres dans le futur.
Une ligne visualise l'extrémité de la chikou-span, qui est décalée de 25 barres dans le passé.
II-DIRECTIONAL MOVEMENT INDEX (DMI)
Traité de manière conventionnelle : DI+, DI-, ADX et associé à un SUPERTREND DMI
Un symbole visuel en bas du graphique indique les croisements DI+ et DI-
Une ligne de symboles orientés et colorés (DMI Line) en haut du graphique, indique la direction et la puissance de la tendance.
III SUPERTREND ICHIMOKU + SUPERTREND DMI
Suivi de tendance par calcul SUPERTREND
IV- DONCHIAN CANAL :
Traité de manière conventionnelle.
(Et optimisé par des barres colorées en cas de dépassement soit vers le haut, soit vers le bas.
Les lignes, haute et basse des dernières valeurs du canal sont représentées pour visualiser rapidement la fourchette du RANGE.
V- SUPERTREND HMA (HULL)
Traité de manière conventionnelle.
La ligne HMA indique visuellement, selon la couleur et l'orientation, la tendance du marché.
Un symbole visuel en bas du graphique indique les opportunités de vente et d'achat.
*VI VOLUME :
Calcul de la MOYENNE MOBILE du volume avec comparaison du volume par rapport à la moyenne mobile du volume.
Les indications sont colorées et commentées en fonction de la comparaison.
*VII PRIX :
Calcul de la MOYENNE MOBILE du prix avec comparaison du prix par rapport à la moyenne mobile du prix.
Les indications sont colorées et commentées en fonction de la comparaison.
*VIII HHLL BOXES :
Visualise sous forme de boite, pour une période donnée, les valeurs max hautes et min basses du prix.
La configuration permet de prendre en compte les mèches hautes et basses du prix ou bien les valeurs d'ouverture et de fermeture.
IX - FAIR VALUE GAP
Cet indicateur affiche les niveaux de 'GAP' sur la période temporelle actuelle ET une période temporelle facultative supérieure.
Le script prend en compte les valeurs haut/bas de la barre actuelle et compare avec les 2 barres précédentes.
Le "gap" est généré à partir du manque de recouvrement entre ces barres.
Les écarts baissiers ou haussiers sont déterminés selon que l'écart est supérieurs ou inférieur à HmaPrice, car ils ont tendance à être comblés, et peuvent être utilisés comme cibles.
NOTA : FAIR VALUE GAP n'a pas de valeurs affichées dans la table et/ou l'étiquette.
Les informations importantes (DATAS) relatives à chaque indicateur sont visualisées en temps réel dans une table et/ou une étiquette.
Chaque information est commentée et colorée en fonction de la direction, de la valeur, de la comparaison etc.
Chaque information indique la valeurs de la barre en cours et la valeur précédente ( en mode "COMPLET").
Les autres modes possibles pour visualiser la table et/ou l'étiquette, permettent une vue plus synthétique des informations (modes "CONDENSÉ" et "MINIMAL").
Afin de ne pas trop surcharger la vision du graphique, la boite de visualisation du RANGE DONCHIAN, les lignes verticales des marques décalées de l'ICHIMOKU, ainsi que les boites de l'indicateur HHLL Boxes ne sont visualisées que de manière intermittente (géré par une temporisation réglable ).
Le paramètre de configuration "HISTORICAL INFO READING" réglé sur zéro (par défaut) permet de lire toutes les informations de la barre actuelle en cours (Barre #0).
Toutes autres valeurs permet de lire les informations d'une barre historique. La valeur 1 permet de lire les informations de la barre précédant la barre en cours (-1).
La valeur 10 permet de lire les information de la dixième barre en arrière (-10) par rapport à la barre en cours, etc.
Dans le bas de la table et de l'étiquette de DATAS, des voyants, rouge, vert ou blanc indique de manière rapide la synthèse de la tendance issue des différents indicateurs.
Chaque voyant représente le nombre d'indicateur ayant la même tendance à un instant donné. Vert pour une tendance Bullish, rouge pour une tendance Bearish et blanc pour une tendance neutre.
Les conditions pour déterminer une tendance sont pour chaque indicateur :
SUPERTREND ICHIMOHU + DMI : les 2 Super trends sont ensemble soit bullish soit Bearish. Sinon le signal est neutre.
DMI : 2 conditions principales :
BULLISH si DI+ >= DI- et ADX >25.
BEARISH si DI+ < DI- et ADX >25.
NEUTRE si les 2 conditions ne sont pas remplies.
ICHIMOKU : 3 conditions principales :
BULLISH si PRIX au dessus du nuage et TENKAN > KIJUN et NUAGE VERT DEVANT.
BEARISH si PRIX en dessous du nuage et TENKAN < KIJUN et NUAGE ROUGE DEVANT.
Les autres conditions complémentaires (Datas) complètent l'analyse et sont présents à titre informatif de la tendance et dépendent du contexte.
CANAL DONCHIAN : 1 condition principale :
BULLISH : le prix est passé au dessus de la ligne HIGH DC.
BEARISH : le prix est passé au dessous de la ligne LOW DC.
NEUTRE si le prix se situe entre les lignes HIGH DC et LOW DC
Les 2 autres conditions complémentaires (Datas) complètent l'analyse : HIGH DC et LOW DC sont croissants, descendants ou stables.
SUPERTREND HMA HULL :
Le script détermine plusieurs niveaux de tendance :
STRONG BUY, BUY, STRONG SELL, SELL ET NEUTRE.
VOLUME : 3 niveaux de tendance :
VOLUME > MOYENNE MOBILE, VOLUME < MOYENNE MOBILE, VOLUME = MOYENNE MOBILE.
PRIX : 3 niveaux de tendance :
PRIX > MOYENNE MOBILE, PRIX < MOYENNE MOBILE, PRIX = MOYENNE MOBILE.
Si vous utilisez cet indicateur/ stratégie et que vous êtes satisfait des résultats,
vous pouvez éventuellement me faire un don (un café, une pizza ou plus ...) via paypal à : lebourg.regis@free.fr.
Merci d'avance !!!
Ayez de bons Trades gagnants.
Ichimoku [xdecow]The Ichimoku Kinko Hyo (Ichimoku Cloud) is a popular indicator / system.
In this version you will have a panel that shows the main signs of this system.
Each signal can have its status as bullish (weak, neutral or strong), consolidation and bearish (weak, neutral or strong).
Signals
Kijun-Sen Cross
Occurs when the price closes above/below the Kijun-sen.
Weak Bullish: Occurs below the Kumo.
Weak Bearish: Occurs above the Kumo.
Bullish/Bearish Neutral: Occurs inside the Kumo.
Strong Bullish: Occurs above the Kumo.
Strong Bearish: Occurs below the Kumo.
TK Cross
Occurs when the Tenkan-sen crosses the Kijun-sen.
Weak Bullish: Occurs when the crossing is below the Kumo.
Weak Bearish: Occurs when the crossing is above the Kumo.
Bullish/Bearish Neutral: Occurs when the crossing is inside the Kumo.
Strong Bullish: Occurs when the crossing is above the Kumo.
Strong Bearish: Occurs when the crossing is below the Kumo.
Chikou Span Cross
Occurs when the Chikou Span crosses the price.
Weak Bullish: Occurs when current price is below the Kumo.
Weak Bearish: Occurs when current price is above the Kumo.
Bullish/Bearish Neutral: Occurs when current price is inside the Kumo.
Strong Bullish: Occurs when current price is above the Kumo.
Strong Bearish: Occurs when current price is below the Kumo.
Kumo Breakout
Occurs when the price closes above/below the Kumo.
Kumo Twist
Occurs when the Senkou Span A crosses the Senkou Span B ahead.
Weak Bullish: Occurs when current price is below the Kumo.
Weak Bearish: Occurs when current price is above the Kumo.
Bullish/Bearish Neutral: Occurs when current price is inside the Kumo.
Strong Bullish: Occurs when current price is above the Kumo.
Strong Bearish: Occurs when current price is below the Kumo.
In addition, Senkou Span B turns golden when it is flat and the cloud is lighter when it is thin (default is half the average of the last 610).
Cyclic Smoothed RSI with Motive-Corrective Wave Indicator
This indicator uses the cyclic smoothed Relative Strength Index (cRSI) instead of the traditional Relative Strength Index (RSI). See below for more info on the benefits to the cRSI.
My key contributions
1) A Weighted Moving Average (WMA) to track the general trend of the cRSI signal. This is very helpful in determining when the equity switches from bullish to bearish, which can be used to determine buy/sell points. This is then is used to color the region between the upper and lower cRSI bands (green above, red below).
2) An attempt to detect the motive (impulse) and corrective and waves. Corrective waves are indicated A, B, C, D, E, F, G. F and G waves are not technically Elliot Waves, but the way I detect waves it is really hard to always get it right. Once and a while you could actually see G and F a second time. Motive waves are identified as s (strong) and w (weak). Strong waves have a peak above the cRSI upper band and weak waves have a peak below the upper band.
3) My own divergence indicator for bull, hidden bull, bear, and hidden bear. I was not able to replicate the TradingView style of drawing a line from peak to peak, but for this indicator I think in the end it makes the chart cleaner.
There is a latency issue with an indicator that is based on moving averages. That means they tend to trigger right after key events. Perfect timing is not possible strictly with these indicators, but they do work very well "on average." However, my implementation has minimal latency as peaks (tops/bottoms) only require one bar to detect.
As a bit of an Easter Egg, this code can be tweaked and run as a strategy to get buy/sell signals. I use this code for both my indicator and for trading strategy. Just copy and past it into a new strategy script and just change it from study to a strategy, something like this:
strategy("cRSI + Waves Strategy with VWMA overlay", overlay=overlay)
The buy/sell code is at the end and just needs to be uncommented. I make no promises or guarantees about how good it is as a strategy, but it gives you some code and ideas to work with.
Tuning
1) Volume Weighted Moving Average (VWMA): This is a “hidden strategy” feature implemented that will display the high-low bands of the VWMA on the price chart if run the code using “overlay = true”.
- If the equity does not have volume, then the VWMA will not show up. Uncheck this box and it will use the regular WMA (no volume).
- defines how far back the WMA averages price.
2) cRSI (Black line in the indicator)
- Increase to length that amount of time a band (upper/lower) stays high/low after a peak. Reduce the value to shorten the time. Just increment it up/down to see the effect.
- defines how far back the SMA averages the cRSI. This affects the purple line in the indicator.
- defines how many bars back the peak detector looks to determine if a peak has occurred. For example, a top is detected like this: current-bar down relative to the 1-bar-back, 1-bar-back up relative to 2-bars-back (look back = 1), c) 2-bars-back up relative to 3-bars-back (lookback = 2), and d) 3-bars-back up relative to 4-bars-back (lookback = 3). I hope that makes sense. There are only 2 options for this setting: 2 or 3 bars. 2 bars will be able to detect small peaks but create more “false” peaks that may not be meaningful. 3 bars will be more robust but can miss short duration peaks.
3) Waves
- The check boxes are self explanatory for which labels they turn on and off on the plot.
4) Divergence Indicators
- The check boxes are self explanatory for which labels they turn on and off on the plot.
Hints
- The most common parameter to change is the . Different stocks will have different levels of strength in their peaks. A setting of 2 may generate too many corrective waves.
- Different times scales will give you different wave counts. This is to be expected. A counter impulse wave inside a corrective wave may actually go above the cRSI WMA on a smaller time frame. You may need to increase it one or two levels to see large waves.
- Just because you see divergence (bear or hidden bear) does not mean a price is going to go down. Often price continues to rise through bears, so take note and that is normal. Bulls are usually pretty good indicators especially if you see them on C,E,G waves.
----------------------------------------------------------------------------------------------------------------------------
cyclic smoothed RSI (cRSI) indicator
----------------------------------------------------------------------------------------------------------------------------
The “core” code for the cyclic smoothed RSI (cRSI) indicator was written by Lars von Theinen and is subject to the terms of the Mozilla Public License 2.0 at mozilla.org Copyright (C) 2017 CC BY, whentotrade / Lars von Thienen. For more details on the cRSI Indicator:
The cyclic smoothed RSI indicator is an enhancement of the classic RSI, adding
1) additional smoothing according to the market vibration,
2) adaptive upper and lower bands according to the cyclic memory and
3) using the current dominant cycle length as input for the indicator.
It is much more responsive to market moves than the basic RSI. The indicator uses the dominant cycle as input to optimize signal, smoothing, and cyclic memory. To get more in-depth information on the cyclic-smoothed RSI indicator, please read Decoding The Hidden Market Rhythm - Part 1: Dynamic Cycles (2017), Chapter 4: "Fine-tuning technical indicators." You need to derive the dominant cycle as input parameter for the cycle length as described in chapter 4.
Hope this helps and good luck.
Ichimoku Score by KingThiesiScore, is an Ichimoku-based scoring system, in which individual Ichimoku events are measured by their impact, and then counted towards a greater score, leaning either bullish or bearish. The score tends to be between -3 and 3 for 99% of occurrences. Scores above or below this range are abnormal to say the least.
How the Score is Calculated
Bearish events are negative points. When the score is below zero, bears have control of the given TF. In theory, when the iScore is falling, the market is in downtrend. Note the divergences on reversals. iScore tends to lead price.
Bullish events are positive points. When the score is above zero, bulls have control of the given TF. In theory, when the iScore is rising, the market is in uptrend. Note the divergences on reversals. iScore tends to lead price.
Bullish Events Measured: TK Bull Cross, PK Bull Cross, Lagline Bull Cross, and Leadline Bull Cross
Bearish Events Measured: TK Bear Cross, PK Bear Cross, Lagline Bear Cross & LeadLine Bear Cross
The location of the events are also a factor in the scoring system. Locations include above the kumo, inside the kumo, and below the kumo, and are then prioritized in their own respects, based on the standard rules interpretation of Ichimoku signals, which users can read more into if interested. Links are provided below with further reading.
iScore can be applied to any ticker by any trader, and is not limited to any specific TF. Its programmed in Pine version 4 and uses Heikin Ashi inputs for OHLC, although traders are able to use with any chart type.
Links for Further Reading
Fidelity Ichimoku Summary
Investopedia Intro to Ichimoku Clouds
Cheers!
KT
Delta Volume Columns Pro [LucF]█ OVERVIEW
This indicator displays volume delta information calculated with intrabar inspection on historical bars, and feed updates when running in realtime. It is designed to run in a pane and can display either stacked buy/sell volume columns or a signal line which can be calculated and displayed in many different ways.
Five different models are offered to reveal different characteristics of the calculated volume delta information. Many options are offered to visualize the calculations, giving you much leeway in morphing the indicator's visuals to suit your needs. If you value delta volume information, I hope you will find the time required to master Delta Volume Columns Pro well worth the investment. I am confident that if you combine a proper understanding of the indicator's information with an intimate knowledge of the volume idiosyncrasies on the markets you trade, you can extract useful market intelligence using this tool.
█ WARNINGS
1. The indicator only works on markets where volume information is available,
Please validate that your symbol's feed carries volume information before asking me why the indicator doesn't plot values.
2. When you refresh your chart or re-execute the script on the chart, the indicator will repaint because elapsed realtime bars will then recalculate as historical bars.
3. Because the indicator uses different modes of calculation on historical and realtime bars, it's critical that you understand the differences between them. Details are provided further down.
4. Calculations using intrabar inspection on historical bars can only be done from some chart timeframes. See further down for a list of supported timeframes.
If the chart's timeframe is not supported, no historical volume delta will display.
█ CONCEPTS
Chart bars
Three different types of bars are used in charts:
1. Historical bars are bars that have already closed when the script executes on them.
2. The realtime bar is the current, incomplete bar where a script is running on an open market. There is only one active realtime bar on your chart at any given time.
The realtime bar is where alerts trigger.
3. Elapsed realtime bars are bars that were calculated when they were realtime bars but have since closed.
When a script re-executes on a chart because the browser tab is refreshed or some of its inputs are changed, elapsed realtime bars are recalculated as historical bars.
Why does this indicator use two modes of calculation?
Historical bars on TradingView charts contain OHLCV data only, which is insufficient to calculate volume delta on them with any level of precision. To mine more detailed information from those bars we look at intrabars , i.e., bars from a smaller timeframe (we call it the intrabar timeframe ) that are contained in one chart bar. If your chart Is running at 1D on a 24x7 market for example, most 1D chart bars will contain 24 underlying 1H bars in their dilation. On historical bars, this indicator looks at those intrabars to amass volume delta information. If the intrabar is up, its volume goes in the Buy bin, and inversely for the Sell bin. When price does not move on an intrabar, the polarity of the last known movement is used to determine in which bin its volume goes.
In realtime, we have access to price and volume change for each update of the chart. Because a 1D chart bar can be updated tens of thousands of times during the day, volume delta calculations on those updates is much more precise. This precision, however, comes at a price:
— The script must be running on the chart for it to keep calculating in realtime.
— If you refresh your chart you will lose all accumulated realtime calculations on elapsed realtime bars, and the realtime bar.
Elapsed realtime bars will recalculate as historical bars, i.e., using intrabar inspection, and the realtime bar's calculations will reset.
When the script recalculates elapsed realtime bars as historical bars, the values on those bars will change, which means the script repaints in those conditions.
— When the indicator first calculates on a chart containing an incomplete realtime bar, it will count ALL the existing volume on the bar as Buy or Sell volume,
depending on the polarity of the bar at that point. This will skew calculations for that first bar. Scripts have no access to the history of a realtime bar's previous updates,
and intrabar inspection cannot be used on realtime bars, so this is the only to go about this.
— Even if alerts only trigger upon confirmation of their conditions after the realtime bar closes, they are repainting alerts
because they would perhaps not have calculated the same way using intrabar inspection.
— On markets like stocks that often have different EOD and intraday feeds and volume information,
the volume's scale may not be the same for the realtime bar if your chart is at 1D, for example,
and the indicator is using an intraday timeframe to calculate on historical bars.
— Any chart timeframe can be used in realtime mode, but plots that include moving averages in their calculations may require many elapsed realtime bars before they can calculate.
You might prefer drastically reducing the periods of the moving averages, or using the volume columns mode, which displays instant values, instead of the line.
Volume Delta Balances
This indicator uses a variety of methods to evaluate five volume delta balances and derive other values from those balances. The five balances are:
1 — On Bar Balance : This is the only balance using instant values; it is simply the subtraction of the Sell volume from the Buy volume on the bar.
2 — Average Balance : Calculates a distinct EMA for both the Buy and Sell volumes, and subtracts the Sell EMA from the Buy EMA.
3 — Momentum Balance : Starts by calculating, separately for both Buy and Sell volumes, the difference between the same EMAs used in "Average Balance" and
an SMA of double the period used for the "Average Balance" EMAs. The difference for the Sell side is subtracted from the difference for the Buy side,
and an RSI of that value is calculated and brought over the −50/+50 scale.
4 — Relative Balance : The reference values used in the calculation are the Buy and Sell EMAs used in the "Average Balance".
From those, we calculate two intermediate values using how much the instant Buy and Sell volumes on the bar exceed their respective EMA — but with a twist.
If the bar's Buy volume does not exceed the EMA of Buy volume, a zero value is used. The same goes for the Sell volume with the EMA of Sell volume.
Once we have our two intermediate values for the Buy and Sell volumes exceeding their respective MA, we subtract them. The final "Relative Balance" value is an ALMA of that subtraction.
The rationale behind using zero values when the bar's Buy/Sell volume does not exceed its EMA is to only take into account the more significant volume.
If both instant volume values exceed their MA, then the difference between the two is the signal's value.
The signal is called "relative" because the intermediate values are the difference between the instant Buy/Sell volumes and their respective MA.
This balance flatlines when the bar's Buy/Sell volumes do not exceed their EMAs, which makes it useful to spot areas where trader interest dwindles, such as consolidations.
The smaller the period of the final value's ALMA, the more easily you will see the balance flatline. These flat zones should be considered no-trade zones.
5 — Percent Balance : This balance is the ALMA of the ratio of the "On Bar Balance" value, i.e., the volume delta balance on the bar (which can be positive or negative),
over the total volume for that bar.
From the balances and marker conditions, two more values are calculated:
1 — Marker Bias : It sums the up/down (+1/‒1) occurrences of the markers 1 to 4 over a period you define, so it ranges from −4 to +4, times the period.
Its calculation will depend on the modes used to calculate markers 3 and 4.
2 — Combined Balances : This is the sum of the bull/bear (+1/−1) states of each of the five balances, so it ranges from −5 to +5.
█ FEATURES
The indicator has two main modes of operation: Columns and Line .
Columns
• In Columns mode you can display stacked Buy/Sell volume columns.
• The buy section always appears above the centerline, the sell section below.
• The top and bottom sections can be colored independently using eight different methods.
• The EMAs of the Buy/Sell values can be displayed (these are the same EMAs used to calculate the "Average Balance").
Line
• Displays one of seven signals: the five balances or one of two complementary values, i.e., the "Marker Bias" or the "Combined Balances".
• You can color the line and its fill using independent calculation modes to pack more information in the display.
You can thus appraise the state of 3 different values using the line itself, its color and the color of its fill.
• A "Divergence Levels" feature will use the line to automatically draw expanding levels on divergence events.
Default settings
Using the indicator's default settings, this is the information displayed:
• The line is calculated on the "Average Balance".
• The line's color is determined by the bull/bear state of the "Percent Balance".
• The line's fill gradient is determined by the advances/declines of the "Momentum Balance".
• The orange divergence dots are calculated using discrepancies between the polarity of the "On Bar Balance" and the chart's bar.
• The divergence levels are determined using the line's level when a divergence occurs.
• The background's fill gradient is calculated on advances/declines of the "Marker Bias".
• The chart bars are colored using advances/declines of the "Relative Balance". Divergences are shown in orange.
• The intrabar timeframe is automatically determined from the chart's timeframe so that a minimum of 50 intrabars are used to calculate volume delta on historical bars.
Alerts
The configuration of the marker conditions explained further is what determines the conditions that will trigger alerts created from this script. Note that simply selecting the display of markers does not create alerts. To create an alert on this script, you must use ALT-A from the chart. You can create multiple alerts triggering on different conditions from this same script; simply configure the markers so they define the trigger conditions for each alert before creating the alert. The configuration of the script's inputs is saved with the alert, so from then on you can change them without affecting the alert. Alert messages will mention the marker(s) that triggered the specific alert event. Keep in mind, when creating alerts on small chart timeframes, that discrepancies between alert triggers and markers displayed on your chart are to be expected. This is because the alert and your chart are running two distinct instances of the indicator on different servers and different feeds. Also keep in mind that while alerts only trigger on confirmed conditions, they are calculated using realtime calculation mode, which entails that if you refresh your chart and elapsed realtime bars recalculate as historical bars using intrabar inspection, markers will not appear in the same places they appeared in realtime. So it's important to understand that even though the alert conditions are confirmed when they trigger, these alerts will repaint.
Let's go through the sections of the script's inputs.
Columns
The size of the Buy/Sell columns always represents their respective importance on the bar, but the coloring mode for tops and bottoms is independent. The default setup uses a standard coloring mode where the Buy/Sell columns are always in the bull/bear color with a higher intensity for the winning side. Seven other coloring modes allow you to pack more information in the columns. When choosing to color the top columns using a bull/bear gradient on "Average Balance", for example, you will have bull/bear colored tops. In order for the color of the bottom columns to continue to show the instant bar balance, you can then choose the "On Bar Balance — Dual Solid Colors" coloring mode to make those bars the color of the winning side for that bar. You can display the averages of the Buy and Sell columns. If you do, its coloring is controlled through the "Line" and "Line fill" sections below.
Line and Line fill
You can select the calculation mode and the thickness of the line, and independent calculations to determine the line's color and fill.
Zero Line
The zero line can display dots when all five balances are bull/bear.
Divergences
You first select the detection mode. Divergences occur whenever the up/down direction of the signal does not match the up/down polarity of the bar. Divergences are used in three components of the indicator's visuals: the orange dot, colored chart bars, and to calculate the divergence levels on the line. The divergence levels are dynamic levels that automatically build from the line's values on divergence events. On consecutive divergences, the levels will expand, creating a channel. This implementation of the divergence levels corresponds to my view that divergences indicate anomalies, hesitations, points of uncertainty if you will. It precludes any attempt to identify a directional bias to divergences. Accordingly, the levels merely take note of divergence events and mark those points in time with levels. Traders then have a reference point from which they can evaluate further movement. The bull/bear/neutral colors used to plot the levels are also congruent with this view in that they are determined by the line's position relative to the levels, which is how I think divergences can be put to the most effective use. One of the coloring modes for the line's fill uses advances/declines in the line after divergence events.
Background
The background can show a bull/bear gradient on six different calculations. As with other gradients, you can adjust its brightness to make its importance proportional to how you use it in your analysis.
Chart bars
Chart bars can be colored using seven different methods. You have the option of emptying the body of bars where volume does not increase, as does my TLD indicator, and you can choose whether you want to show divergences.
Intrabar Timeframe
This is the intrabar timeframe that will be used to calculate volume delta using intrabar inspection on historical bars. You can choose between four modes. The three "Auto-steps" modes calculate, from the chart's timeframe, the intrabar timeframe where the said number of intrabars will make up the dilation of chart bars. Adjustments are made for non-24x7 markets. "Fixed" mode allows you to select the intrabar timeframe you want. Checking the "Show TF" box will display in the lower-right corner the intrabar timeframe used at any given moment. The proper selection of the intrabar timeframe is important. It must achieve maximal granularity to produce precise results while not unduly slowing down calculations, or worse, causing runtime errors. Note that historical depth will vary with the intrabar timeframe. The smaller the timeframe, the shallower historical plots you will be.
Markers
Markers appear when the required condition has been confirmed on a closed bar. The configuration of the markers when you create an alert is what determines when the alert will trigger. Five markers are available:
• Balances Agreement : All five balances are either bullish or bearish.
• Double Bumps : A double bump is two consecutive up/down bars with +/‒ volume delta, and rising Buy/Sell volume above its average.
• Divergence confirmations : A divergence is confirmed up/down when the chosen balance is up/down on the previous bar when that bar was down/up, and this bar is up/down.
• Balance Shifts : These are bull/bear transitions of the selected signal.
• Marker Bias Shifts : Marker bias shifts occur when it crosses into bull/bear territory.
Periods
Allows control over the periods of the different moving averages used to calculate the balances.
Volume Discrepancies
Stock exchanges do not report the same volume for intraday and daily (or higher) resolutions. Other variations in how volume information is reported can also occur in other markets, namely Forex, where volume irregularities can even occur between different intraday timeframes. This will cause discrepancies between the total volume on the bar at the chart's timeframe, and the total volume calculated by adding the volume of the intrabars in that bar's dilation. This does not necessarily invalidate the volume delta information calculated from intrabars, but it tells us that we are using partial volume data. A mechanism to detect chart vs intrabar timeframe volume discrepancies is provided. It allows you to define a threshold percentage above which the background will indicate a difference has been detected.
Other Settings
You can control here the display of the gray dot reminder on realtime bars, and the display of error messages if you are using a chart timeframe that is not greater than the fixed intrabar timeframe, when you use that mode. Disabling the message can be useful if you only use realtime mode at chart timeframes that do not support intrabar inspection.
█ RAMBLINGS
On Volume Delta
Volume is arguably the best complement to interpret price action, and I consider volume delta to be the most effective way of processing volume information. In periods of low-volatility price consolidations, volume will typically also be lower than normal, but slight imbalances in the trend of the buy/sell volume balance can sometimes help put early odds on the direction of the break from consolidation. Additionally, the progression of the volume imbalance can help determine the proximity of the breakout. I also find volume delta and the number of divergences very useful to evaluate the strength of trends. In trends, I am looking for "slow and steady", i.e., relatively low volatility and pauses where price action doesn't look like world affairs are being reassessed. In my personal mythology, this type of trend is often more resilient than high-volatility breakouts, especially when volume balance confirms the general agreement of traders signaled by the low-volatility usually accompanying this type of trend. The volume action on pauses will often help me decide between aggressively taking profits, tightening a stop or going for a longer-term movement. As for reversals, they generally occur in high-volatility areas where entering trades is more expensive and riskier. While the identification of counter-trend reversals fascinates many traders to no end, they represent poor opportunities in my view. Volume imbalances often precede reversals, but I prefer to use volume delta information to identify the areas following reversals where I can confirm them and make relatively low-cost entries with better odds.
On "Buy/Sell" Volume
Buying or selling volume are misnomers, as every unit of volume transacted is both bought and sold by two different traders. While this does not keep me from using the terms, there is no such thing as “buy only” or “sell only” volume. Trader lingo is riddled with peculiarities.
Divergences
The divergence detection method used here relies on a difference between the direction of a signal and the polarity (up/down) of a chart bar. When using the default "On Bar Balance" to detect divergences, however, only the bar's volume delta is used. You may wonder how there can be divergences between buying/selling volume information and price movement on one bar. This will sometimes be due to the calculation's shortcomings, but divergences may also occur in instances where because of order book structure, it takes less volume to increase the price of an asset than it takes to decrease it. As usual, divergences are points of interest because they reveal imbalances, which may or may not become turning points. To your pattern-hungry brain, the divergences displayed by this indicator will — as they do on other indicators — appear to often indicate turnarounds. My opinion is that reality is generally quite sobering and I have no reliable information that would tend to prove otherwise. Exercise caution when using them. Consequently, I do not share the overwhelming enthusiasm of traders in identifying bullish/bearish divergences. For me, the best course of action when a divergence occurs is to wait and see what happens from there. That is the rationale underlying how my divergence levels work; they take note of a signal's level when a divergence occurs, and it's the signal's behavior from that point on that determines if the post-divergence action is bullish/bearish.
Superfluity
In "The Bed of Procrustes", Nassim Nicholas Taleb writes: To bankrupt a fool, give him information . This indicator can display lots of information. While learning to use a new indicator inevitably requires an adaptation period where we put it through its paces and try out all its options, once you have become used to it and decide to adopt it, rigorously eliminate the components you don't use and configure the remaining ones so their visual prominence reflects their relative importance in your analysis. I tried to provide flexible options for traders to control this indicator's visuals for that exact reason — not for window dressing.
█ LIMITATIONS
• This script uses a special characteristic of the `security()` function allowing the inspection of intrabars — which is not officially supported by TradingView.
It has the advantage of permitting a more robust calculation of volume delta than other methods on historical bars, but also has its limits.
• Intrabar inspection only works on some chart timeframes: 3, 5, 10, 15 and 30 minutes, 1, 2, 3, 4, 6, and 12 hours, 1 day, 1 week and 1 month.
The script’s code can be modified to run on other resolutions.
• When the difference between the chart’s timeframe and the intrabar timeframe is too great, runtime errors will occur. The Auto-Steps selection mechanisms should avoid this.
• All volume is not created equally. Its source, components, quality and reliability will vary considerably with sectors and instruments.
The higher the quality, the more reliably volume delta information can be used to guide your decisions.
You should make it your responsibility to understand the volume information provided in the data feeds you use. It will help you make the most of volume delta.
█ NOTES
For traders
• The Data Window shows key values for the indicator.
• While this indicator displays some of the same information calculated in my Delta Volume Columns ,
I have elected to make it a separate publication so that traders continue to have a simpler alternative available to them. Both code bases will continue to evolve separately.
• All gradients used in this indicator determine their brightness intensities using advances/declines in the signal—not their relative position in a pre-determined scale.
• Volume delta being relative, by nature, it is particularly well-suited to Forex markets, as it filters out quite elegantly the cyclical volume data characterizing the sector.
If you are interested in volume delta, consider having a look at my other "Delta Volume" indicators:
• Delta Volume Realtime Action displays realtime volume delta and tick information on the chart.
• Delta Volume Candles builds volume delta candles on the chart.
• Delta Volume Columns is a simpler version of this indicator.
For coders
• I use the `f_c_gradientRelativePro()` from the PineCoders Color Gradient Framework to build my gradients.
This function has the advantage of allowing begin/end colors for both the bull and bear colors. It also allows us to define the number of steps allowed for each gradient.
I use this to modulate the gradients so they perform optimally on the combination of the signal used to calculate advances/declines,
but also the nature of the visual component the gradient applies to. I use fewer steps for choppy signals and when the gradient is used on discrete visual components
such as volume columns or chart bars.
• I use the PineCoders Coding Conventions for Pine to write my scripts.
• I used functions modified from the PineCoders MTF Selection Framework for the selection of timeframes.
█ THANKS TO:
— The devs from TradingView's Pine and other teams, and the PineCoders who collaborate with them. They are doing amazing work,
and much of what this indicator does could not be done without their recent improvements to Pine.
— A guy called Kuan who commented on a Backtest Rookies presentation of their Volume Profile indicator using a `for` loop.
This indicator started from the intrabar inspection technique illustrated in Kuan's snippet.
— theheirophant , my partner in the exploration of the sometimes weird abysses of `security()`’s behavior at intrabar timeframes.
— midtownsk8rguy , my brilliant companion in mining the depths of Pine graphics.
9 Seasons Rainbow Indicator PRO [GO8686]Trading on 5 minutes frame can be as reasonable as on 4H frame, use 9 Seasons Rainbow Indicator PRO for both.
5分钟维度的交易可以与4小时维度一样合理,请使用9季彩虹指标 PRO 。
Market is full of life, with seasons.
9 Seasons Rainbow Indicator displays 9 seasons of any trading instrument in multiple time frames, helping traders and investors understand the flow of price.
The combination of seasons in different time dimensions may give perfect trading signals, for instance: overbought in both small time frame and big time frame has high success probability of shorting trade.
Please install the indicator: Demo, PRO or STANDARD Version. Apply the indicator to your favorites trading instruments: indices, stocks, futures , forex or crypto currencies. Find your patterns that make money.
---------- 9 Seasons ----------
Bull(Green), evolves into BullRest, OverBought, Bear, or Neutral
Bull Rest(Light Green): a pullback or retracement, evolves into Bull or Bear
OverBought(Yellow): may have defined a top or resistance, can happen in range, evolves into CrazyBought or Bear
CrazyBought(Lime): going up in a high volatility , evolves into Bear, OverBought, or BullRest
Neutral(White): a wandering season without direction, evolves into Bull or Bear
Bear(Red), evolves into BearRest, OverSold, Bull or Neutral
Bear Rest(Light Red): a bounce, evolves into Bear or Bull
OverSold(Blue): may have defined a bottom or support, can happen in range, evolves into CrazySold or Bull
CrazySold(Fuchsia): going down in a high volatility , evolves into Bull, OverSold, or BearRest
---------- Some important evolutions of seasons ----------
OverBought -> CrazyBought: can happen with a breakout
CrazyBought -> OverBought or Bear: could mean fading of a breakout
CrazyBought -> BullRest: can happen after rising over a new level
OverSold -> CrazySold: can happen with a breakdown
CrazySold -> OverSold or Bear: could mean fading of a breakdown
CrazySold -> BearRest: can happen after dropping to a new level
---------- Rainbow Ribbons for multiple time frames ----------
Each ribbon of the rainbow represents a time frame,
The difference between two frames is 1.4142 fold (square root of 2), if level 1 is 15 M, level 2 is 15 * (square root of 2) M. level 3 is 15*2 M, level 4 is 30 * (square root of 2) M, level 5 is 30 * 2 m etc.
The uppermost ribbon represents the smallest time frame - current time period of the chart.
The lower ribbons represent bigger time frames, which work as context.
Examples for time frame rainbow:
For DEMO in 30M: 30M - 42M - 60M(1H) - 85M - 120M(2H) - 170M - 240M(4H) - 339M
For STANDARD in 15M: 15M - 21M - 30M - 42M - 60M(1H) - 85M - 120M(2H) - 170M
For PRO in 15M: 15M - 21M - 30M - 42M - 60M(1H) - 85M - 120M(2H) - 170M - 240M(4H) - 339M - 480M(8H) - 679M
---------- Versions Description ----------
The features may change later, please refer to latest update.
PRO:
PRO version of 9 Seasons Rainbow Indicator is invite-only, with the following advanced features:
12 Ribbon Rainbow lets you discover trading opportunities hidden in the 1.4142 fold time dimension while monitoring market conditions spanning 45 times.
Advanced alert sets allows you set alerts for Overbought, Crazybought, OverSold, CrazySold on low, medium, and high time frames.
Option to input different trading instrument to compare with the current ticker.
Full time periods access allows you to watch the market on broadest time dimensions.
More new features in updates.
STANDARD:
This is STANDARD version of 9 Seasons Rainbow Indicator, invite-only, with the following advanced features:
8 Ribbon Rainbow lets you discover trading opportunities hidden in the 1.4142 fold time dimension while monitoring market conditions spanning 11 times.
Advanced alert sets allows you set alerts for Overbought, Crazybought, OverSold, CrazySold on upper and lower time frames.
Broad time periods access allows you to watch the market on popular time dimensions from 15M - 1D,2D,3D,4D,5D,6D,1W.
More new features in updates.
DEMO:
A DEMO of Standard version for trial purpose, having most the functions except alert preset conditions.
It is applicable to a list of trading instruments and specific time periods(30m-1D), which may change later. please refer to latest updates.
---List of tickers applicable for Demo version.
Currency Index:AXY, BXY , CXY , DXY , EXY , JXY , SXY , ZXY ,
Stock Index:SPX,TSX, DAX , NI225 ,KOSPI,399001, SHCOMP , HSI , XJO , TAIEX , SX5E ,
Crypto:BTCUSD
Commodity:BCOUSD, GOLD
---------- Access to Indicators ----------
Please use DEMO version to taste the indicator.
Please contact the author for access to PRO or Standard versions.
---------- About Loading Time ----------
It may take up to 2 minutes for your browser to load a new setting, depending on the your computer and network speed.
---------- List of the author's Indicators ----------
tradingview.com/u/go8686/#published-scripts
---------- Disclaim ----------
By using or requesting access to this indicator, you acknowledge that you have read and accepted that this indicator is for study purposes only and it does NOT guarantee you will make money.
I am not financial adviser and I am NOT responsible for any profits or losses you may incur by using this indicator!
Users should make their own decisions, carefully assess risks and be responsible for investment and trading activities.
The latest updates override the previous description. Please check the updates.
9季彩虹指标 PRO
市场充满生机。
9季彩虹指标在多个时间维度上显示任何交易品种的9个季节交替,帮助交易者和投资者了解价格流动。
不同时间维度的季节组合可以给出完美的交易信号,例如:在小时间框架和大时间框架上同时出现超买具有很高的卖空交易成功概率。
请安装指标:DEMO,STANDARD 或者 PRO 版本. 应用指标到您的交易品种:证券,期货,外汇或者加密货币。找到属于您的盈利模式。
---------- 季节的定义 ----------
牛(绿色),可以演变到牛市回调,超买,熊 或者 中性
牛市回调(淡绿色):可以演变到牛或者熊
超买(黄色),可能刚刚定义了一个头部或者阻力区,可以发生在盘整期,可以演变到狂买或者熊
狂买(亮绿色):高波动性上涨,可以演变到熊,超买或者牛市回调
中性(白色): 没有方向的徘徊期,可以演变到牛或者熊
熊(红色),可以演变到熊市反弹,超卖,牛 或者 中性
熊市反弹(淡红色),可以演变到熊或者牛
超卖(蓝色),可能刚刚定义了一个底部或者支撑,可以发生在盘整期,可以演变到狂卖或者牛
狂卖(紫红色),高波动性下跌,可以演变到牛,超卖 或者熊市反弹
一些重要的季节交替
超买 -> 狂买:可能发生在向上突破时
狂买 -> 熊 或者 超买:可能发生在突破失败时
狂买 -> 牛市回调: 可能发生在上平台后
超卖 -> 狂卖:可能发生在向下突破时
狂卖 -> 牛 或者 超卖:可能发生在突破失败时
狂卖 -> 熊市回调: 可能发生在下平台后
---------- 色带彩虹所代表的时间维度 ----------
每条色带代表一个时间维度。
色带间隔1.4142倍(2的开方),如果第一维度是15分钟,第二维度是15*1.4142=21分钟,第三维度是15*2=30分钟,以此类推。
最上面的色带代表最小的时间维度,也就是目前图表的时间维度
最下面的色带代表最大的时间维度。
例子:
演示版: 30m-42m-60m(1H)-85m-120m(2H)-170m-240m(4H)-339m
标准版: 15m-21m-30m-42m-60m(1H)-85m-120m(2H)-170m
专业版: 15m-21m-30m-42m-60m(1H)-85m-120m(2H)-170m-240m(4H)-339m-480m(8H)-679m
---------- 不同版本功能描述 ----------
这些特征及功能可能会发生变化,以更新为准。
---专业版PRO高级特征
12色带彩虹让您发现隐藏在1.4142时间维度的交易机会,同时监控时间跨度达四十五倍的市场状态
高级警报功能:允许您在低,中,高时间帧上设置超买,狂买,超卖,狂卖的警报。
可以输入不同的交易品种用于指标,便于与当前交易品种进行比较。
全时间维度(分钟到日线级别)给您全视角观察市场
更新中的更多新功能。
---标准版STANDARD特征
8色带彩虹让您发现隐藏在1.4142时间维度的交易机会,同时监控时间跨度达十一倍的市场状态
高级警报功能:允许您在低,高时间层级上设置超买,狂买,超卖,狂卖的警报。
宽时间维度(15分钟到日线级别)让您从更宽阔的视角观察市场
更新中的更多新功能。
--演示版DEMO
演示版用于标准版的演示和试用,适用于特定的资产列表和时间维度(30M-1D),后续可能调整.
适用的品种列表
AXY , BXY , CXY , DXY , EXY , JXY , SXY , ZXY ,
SPX ,TSX, DAX , NI225 ,KOSPI,399001, SHCOMP , HSI , XJO , TAIEX , SX5E ,
BTCUSD , BCOUSD , GOLD
---------- 获得使用权 ----------
请使用演示版以初步了解指标的运行机理。
联系指标开发者以取得标准版和专业版的使用权
---------- 开发者的指标列表 ----------
tradingview.com/u/go8686/#published-scripts
---------- 加载时间 ----------
可能需要2分钟,取决于网络和电脑配置。
---------- 免责声明 ----------
在要求获得本指标使用权之前以及在使用本指标之前,用户认可已经完全了解和接受:本指标仅供研究目的, 它不提供任何赢利的可能性。
本指标的开发者并非专业投资顾问,因此不对用户的任何赢亏负责。
用户应独立判断,审慎评估并自负投资和交易风险!
最近的更新会覆盖之前的说明。 请参阅更新来查看指标的新特征和功能。
9 Seasons Rainbow Indicator STANDARD [GO8686]Market is full of life, with seasons.
9 Seasons Rainbow Indicator displays 9 seasons of any trading instrument in multiple time frames, helping traders and investors understand the flow of price.
The combination of seasons in different time dimensions may give perfect trading signals, for instance: overbought in both small time frame and big time frame has high success probability of shorting trade.
Please install the indicator: Demo, PRO or STANDARD Version. Apply the indicator to your favorites trading instruments: indices, stocks, futures , forex or crypto currencies. Find your patterns that make money.
---------- 9 Seasons ----------
Bull(Green), evolves into BullRest, OverBought, Bear, or Neutral
Bull Rest(Light Green): a pullback or retracement, evolves into Bull or Bear
OverBought(Yellow): may have defined a top or resistance, can happen in range, evolves into CrazyBought or Bear
CrazyBought(Lime): going up in a high volatility , evolves into Bear, OverBought, or BullRest
Neutral(White): a wandering season without direction, evolves into Bull or Bear
Bear(Red), evolves into BearRest, OverSold, Bull or Neutral
Bear Rest(Light Red): a bounce, evolves into Bear or Bull
OverSold(Blue): may have defined a bottom or support, can happen in range, evolves into CrazySold or Bull
CrazySold(Fuchsia): going down in a high volatility , evolves into Bull, OverSold, or BearRest
---------- Some important evolutions of seasons ----------
OverBought -> CrazyBought: can happen with a breakout
CrazyBought -> OverBought or Bear: could mean fading of a breakout
CrazyBought -> BullRest: can happen after rising over a new level
OverSold -> CrazySold: can happen with a breakdown
CrazySold -> OverSold or Bear: could mean fading of a breakdown
CrazySold -> BearRest: can happen after dropping to a new level
---------- Rainbow Ribbons for multiple time frames ----------
Each ribbon of the rainbow represents a time frame,
The difference between two frames is 1.4142 fold (square root of 2), if level 1 is 15 M, level 2 is 15 * (square root of 2) M. level 3 is 15*2 M, level 4 is 30 * (square root of 2) M, level 5 is 30 * 2 m etc.
The uppermost ribbon represents the smallest time frame - current time period of the chart.
The lower ribbons represent bigger time frames, which work as context.
Examples for time frame rainbow:
For DEMO in 30M: 30M - 42M - 60M(1H) - 85M - 120M(2H) - 170M - 240M(4H) - 339M
For STANDARD in 15M: 15M - 21M - 30M - 42M - 60M(1H) - 85M - 120M(2H) - 170M
For PRO in 15M: 15M - 21M - 30M - 42M - 60M(1H) - 85M - 120M(2H) - 170M - 240M(4H) - 339M - 480M(8H) - 679M
---------- Versions Description ----------
The features may change later, please refer to latest update.
STANDARD:
This is STANDARD version of 9 Seasons Rainbow Indicator, invite-only, with the following advanced features:
8 Ribbon Rainbow lets you discover trading opportunities hidden in the 1.4142 fold time dimension while monitoring market conditions spanning 11 times.
Advanced alert sets allows you set alerts for Overbought, Crazybought, OverSold, CrazySold on upper and lower time frames.
Broad time periods access allows you to watch the market on popular time dimensions from 15M - 1D,2D,3D,4D,5D,6D,1W.
More new features in updates.
PRO:
PRO version of 9 Seasons Rainbow Indicator is invite-only, with the following advanced features:
12 Ribbon Rainbow lets you discover trading opportunities hidden in the 1.4142 fold time dimension while monitoring market conditions spanning 45 times.
Advanced alert sets allows you set alerts for Overbought, Crazybought, OverSold, CrazySold on low, medium, and high time frames.
Option to input different trading instrument to compare with the current ticker.
Full time periods access allows you to watch the market on broadest time dimensions.
More new features in updates.
DEMO:
A DEMO of Standard version for trial purpose, having most the functions except alert preset conditions.
It is applicable to a list of trading instruments and specific time periods(30m-1D), which may change later. please refer to latest updates.
---List of tickers applicable for Demo version.
Currency Index:AXY, BXY , CXY , DXY , EXY , JXY , SXY , ZXY ,
Stock Index:SPX,TSX, DAX , NI225 ,KOSPI,399001, SHCOMP , HSI , XJO , TAIEX , SX5E ,
Crypto:BTCUSD
Commodity:BCOUSD, GOLD
---------- Access to Indicators ----------
Please contact the author for access to PRO or Standard versions.
---------- About Loading Time ----------
It may take up to 2 minutes for your browser to load a new setting, depending on the your computer and network speed.
---------- List of the author's Indicators ----------
tradingview.com/u/go8686/#published-scripts
---------- Disclaim ----------
By using or requesting access to this indicator, you acknowledge that you have read and accepted that this indicator is for study purposes only and it does NOT guarantee you will make money.
I am not financial adviser and I am NOT responsible for any profits or losses you may incur by using this indicator!
Users should make their own decisions, carefully assess risks and be responsible for investment and trading activities.
The latest updates override the previous description. Please check the updates.
9季彩虹指标 标准版 STANDARD
市场充满生机。
9季彩虹指标在多个时间维度上显示任何交易品种的9个季节交替,帮助交易者和投资者了解价格流动。
不同时间维度的季节组合可以给出完美的交易信号,例如:在小时间框架和大时间框架上同时出现超买具有很高的卖空交易成功概率。
请安装指标:DEMO,STANDARD 或者 PRO 版本. 应用指标到您的交易品种:证券,期货,外汇或者加密货币。找到属于您的盈利模式。
---------- 季节的定义 ----------
牛(绿色),可以演变到牛市回调,超买,熊 或者 中性
牛市回调(淡绿色):可以演变到牛或者熊
超买(黄色),可能刚刚定义了一个头部或者阻力区,可以发生在盘整期,可以演变到狂买或者熊
狂买(亮绿色):高波动性上涨,可以演变到熊,超买或者牛市回调
中性(白色): 没有方向的徘徊期,可以演变到牛或者熊
熊(红色),可以演变到熊市反弹,超卖,牛 或者 中性
熊市反弹(淡红色),可以演变到熊或者牛
超卖(蓝色),可能刚刚定义了一个底部或者支撑,可以发生在盘整期,可以演变到狂卖或者牛
狂卖(紫红色),高波动性下跌,可以演变到牛,超卖 或者熊市反弹
一些重要的季节交替
超买 -> 狂买:可能发生在向上突破时
狂买 -> 熊 或者 超买:可能发生在突破失败时
狂买 -> 牛市回调: 可能发生在上平台后
超卖 -> 狂卖:可能发生在向下突破时
狂卖 -> 牛 或者 超卖:可能发生在突破失败时
狂卖 -> 熊市回调: 可能发生在下平台后
---------- 色带彩虹所代表的时间维度 ----------
每条色带代表一个时间维度。
色带间隔1.4142倍(2的开方),如果第一维度是15分钟,第二维度是15*1.4142=21分钟,第三维度是15*2=30分钟,以此类推。
最上面的色带代表最小的时间维度,也就是目前图表的时间维度
最下面的色带代表最大的时间维度。
例子:
演示版: 30m-42m-60m(1H)-85m-120m(2H)-170m-240m(4H)-339m
标准版: 15m-21m-30m-42m-60m(1H)-85m-120m(2H)-170m
专业版: 15m-21m-30m-42m-60m(1H)-85m-120m(2H)-170m-240m(4H)-339m-480m(8H)-679m
---------- 不同版本功能描述 ----------
这些特征及功能可能会发生变化,以更新为准。
---标准版STANDARD特征
8色带彩虹让您发现隐藏在1.4142时间维度的交易机会,同时监控时间跨度达十一倍的市场状态
高级警报功能:允许您在低,高时间层级上设置超买,狂买,超卖,狂卖的警报。
宽时间维度(15分钟到日线级别)让您从更宽阔的视角观察市场
更新中的更多新功能。
---专业版PRO高级特征
12色带彩虹让您发现隐藏在1.4142时间维度的交易机会,同时监控时间跨度达四十五倍的市场状态
高级警报功能:允许您在低,中,高时间帧上设置超买,狂买,超卖,狂卖的警报。
可以输入不同的交易品种用于指标,便于与当前交易品种进行比较。
全时间维度(分钟到日线级别)给您全视角观察市场
更新中的更多新功能。
--演示版DEMO
演示版用于标准版的演示和试用,适用于特定的资产列表和时间维度(30M-1D),后续可能调整.
适用的品种列表
AXY , BXY , CXY , DXY , EXY , JXY , SXY , ZXY ,
SPX ,TSX, DAX , NI225 ,KOSPI,399001, SHCOMP , HSI , XJO , TAIEX , SX5E ,
BTCUSD , BCOUSD , GOLD
---------- 获得使用权 ----------
联系指标开发者以取得标准版和专业版的使用权
---------- 开发者的指标列表 ----------
tradingview.com/u/go8686/#published-scripts
---------- 加载时间 ----------
可能需要2分钟,取决于网络和电脑配置。
---------- 免责声明 ----------
在要求获得本指标使用权之前以及在使用本指标之前,用户认可已经完全了解和接受:本指标仅供研究目的, 它不提供任何赢利的可能性。
本指标的开发者并非专业投资顾问,因此不对用户的任何赢亏负责。
用户应独立判断,审慎评估并自负投资和交易风险!
最近的更新会覆盖之前的说明。 请参阅更新来查看指标的新特征和功能。
Quantum Trading MatrixThe Quantum Trading Matrix is a sophisticated Pine Script indicator designed for TradingView that offers a comprehensive trading dashboard by combining multiple market analysis techniques in one interface. The indicator integrates price action, volume, momentum, trend detection, institutional activity, and technical oscillators to provide traders a unified perspective on the market.
At its core, the script uses fundamental market data like price (open, high, low, close) and volume to calculate various metrics. The VWAP (Volume Weighted Average Price) is a key element that helps traders understand if the price is trading above or below the average price weighted by volume, indicating market strength or weakness. The distance of the current price from the VWAP is computed as a percentage to signal how far the price has diverged from this benchmark.
Momentum is measured through a "Quantum Momentum Oscillator" derived from the difference between fast and slow exponential moving averages of price. Positive momentum signals bullish conditions while negative momentum signals bearish ones. Volume flow analysis breaks down buying versus selling pressure on each bar by observing where the close price lies within the daily range combined with volume, generating an order flow ratio. This aids in identifying if buyers or sellers dominate the market at a given time.
Trend detection involves calculating EMAs of different lengths (8, 21, and 50) and aggregating their relationships into a trend score. Scores range from strong uptrend to downtrend, providing a clear directional bias. Institutional activity is inferred by detecting volume spikes significantly above the average volume, suggesting large players might be active. A dark pool estimate provides an approximate volume figure representing hidden or off-exchange trading.
The script also identifies market structure by detecting pivot highs and lows which act as resistance and support levels, respectively. These levels offer valuable insight into potential price reversals or breakouts. The RSI (Relative Strength Index) is incorporated, including a basic divergence detection to suggest potential bull or bear reversals. Volatility is measured using the Average True Range (ATR), classifying the current volatility from low to extreme, helping traders gauge the risk environment.
All these metrics are combined into a scoring system that awards points for positive indications such as price above VWAP, positive order flow, bullish momentum, and an uptrend in EMAs. The overall score ranges from 0 to 100 and is interpreted visually with emojis: a rocket for strong bullish setups, a chart up emoji for positive bias, a balanced scale for neutral, and a chart down emoji for bearish conditions.
The indicator issues alerts based on the combination of these signals, including bullish and bearish setups when multiple criteria align favorably, volume spike alerts when abnormal volume events occur, and institutional activity alerts for high volume surges.
To use this indicator effectively, traders should first assess the trend direction indicated by the EMA-based scoring. Positive momentum and price trading above the VWAP confirm bullish bias, while the opposite suggests bearishness. Volume flow and institutional activity provide additional confirmation. Support and resistance levels derived from pivots help in planning entries and exits. The RSI and volatility readings inform traders of potential overbought or oversold conditions and market risk levels. Alerts provide timely notifications to act on significant setups.
The indicator is highly customizable, allowing users to adjust the dashboard's position, size, and color theme to suit personal preferences. Parameters such as the momentum period, volume profile bars, trend multiplier, and signal sensitivity can be fine-tuned to adapt to different markets and trading styles.
This tool requires foundational knowledge of key technical concepts such as EMAs, VWAP, ATR, RSI, and volume analysis for best utilization. For traders interested in expanding their understanding, recommended resources include the TradingView Pine Script manual, technical analysis books by John J. Murphy and Dr. Alexander Elder, and practical video tutorials focusing on volume spread analysis and institutional order flow.
Overall, the Quantum Trading Matrix™ serves as a powerful control panel for active traders, providing a multi-dimensional view of the market through combined technical indicators, helping to identify high probability trade setups and manage risk effectively.
________________________________________
⚠️ Warning:
• Trading financial markets involves substantial risk.
• You can lose more money than you invest.
• Past performance of indicators does not guarantee future results.
• This script must not be copied, resold, or republished without authorization from aiTrendview.
By using this material or the code, you agree to take full responsibility for your trading decisions and acknowledge that this is not financial advice.
________________________________________
⚠️ Disclaimer and Warning (From aiTrendview)
This Dynamic Trading Dashboard is created strictly for educational and research purposes on the TradingView platform. It does not provide financial advice, buy/sell recommendations, or guaranteed returns. Any use of this tool in live trading is completely at the user’s own risk. Markets are inherently risky; losses can exceed initial investment.
The intellectual property of this script and its methodology belongs to aiTrendview. Unauthorized reproduction, modification, or redistribution of this code is strictly prohibited. By using this study material or the script, you acknowledge personal responsibility for any trading outcomes. Always consult professional financial advisors before making investment decisions.
Sniper-2025 Sniper-2025 Indicator Explanation
Overview
The Sniper-2025 indicator is a versatile technical analysis tool designed for TradingView, combining a Hyper Wave oscillator, Smart Money Flow analysis, divergence detection, reversal signals, confluence visualization, and a machine learning-based k-Nearest Neighbors (k-NN) prediction model. It provides traders with actionable buy and sell signals, trend insights, and confluence indicators to enhance decision-making across various trading strategies. The indicator is highly customizable, allowing users to adjust sensitivity, colors, and display options to suit their preferences.
Key Features
1. Hyper Wave Oscillator: A normalized oscillator based on price data, smoothed with either a Simple Moving Average (SMA) or Exponential Moving Average (EMA), highlighting momentum and potential reversal points.
2. Smart Money Flow: Tracks bullish and bearish money flow using a smoothed Money Flow Index (MFI), providing insights into market strength and direction.
3. Divergence Detection: Identifies bullish and bearish divergences between price and the oscillator, with optional labels displaying price levels.
4. Reversal Signals: Detects major and minor reversal conditions based on volume, oscillator values, and RSI, visualized as triangles and circles on the chart.
5. Confluence Meter and Areas: Visualizes alignment between the oscillator and MFI, indicating bullish or bearish confluence with customizable colors and shaded areas.
6. Signal and Divergence Labels: Displays labels for key oscillator levels (e.g., Z-Buy, Z-V-Sell) and money flow conditions (e.g., C-Buy, T-Sell) with customizable visibility and sizes.
7. Trend and Control Table: Shows the current trend (Bullish/Bearish) and control (Bull/Bear) in a customizable table positioned on the chart.
8. k-NN Prediction: Uses a k-Nearest Neighbors algorithm to predict price movement direction based on RSI indicators, with adjustable prediction sensitivity.
9. Gradient Fills and Alerts: Visualizes overbought and oversold zones with gradient fills and provides alert conditions for key crossovers and crossunders.
How It Works
- Hyper Wave Oscillator: The oscillator is calculated by normalizing the close price relative to the highest, lowest, and average prices over a user-defined length (default: 15). It is smoothed using SMA or EMA (default: SMA, length 3) to generate a signal line. Crossovers and crossunders of the oscillator and signal line are plotted as circles, indicating potential buy or sell signals.
- Smart Money Flow: The MFI is calculated over a user-defined length (default: 10) and smoothed (default: 6). It tracks bullish (positive) or bearish (negative) money flow, with colors changing based on direction (blue for bullish, red for bearish). The indicator compares current MFI to its historical average to identify strong trends.
- Divergence Detection: The script identifies divergences by comparing oscillator peaks/troughs with price highs/lows. Bullish divergences (price makes lower lows, oscillator does not) and bearish divergences (price makes higher highs, oscillator does not) are plotted as lines, with optional labels showing the divergence type and price.
- Reversal Signals: Major reversals are detected when volume exceeds a threshold (based on a 7-period SMA and reversal factor, default: 4) and the oscillator exceeds ±4. Minor reversals consider RSI (±20) and oscillator crossovers. Signals are plotted as triangles (major) or circles (minor), with blue for bullish and red for bearish.
- Confluence Meter and Areas: The confluence meter, displayed on the right, shows alignment between the oscillator and MFI using a gradient from red (bearish) to blue (bullish). Shaded areas at ±55 highlight strong bullish or bearish confluence when both indicators align.
- Signal and Divergence Labels: Labels are plotted on the candlestick chart when the oscillator crosses key levels (±20, ±40) or when money flow conditions are met (e.g., MFI crossing 0 or ±20/±40). Users can toggle label visibility and adjust sizes (Small, Normal, Large, Huge).
- Trend and Control Table: A table displays the trend (based on oscillator SMA) and control (based on MFI direction), with customizable position (default: Top Right), text color, and background color. Sensitivity for trend and control calculations can be adjusted.
- k-NN Prediction: The k-NN algorithm predicts price movement direction by comparing current RSI values (5-period and 20-period WMAs) to historical data. The number of neighbors (default: 200) and trend length (default: 20) control prediction sensitivity. A green line shows the prediction, with gradient fills indicating overbought (lime) and oversold (red) zones.
- Gradient Fills and Alerts: Gradient fills highlight the prediction's position relative to overbought/oversold zones, calculated using a 2000-period lookback and standard deviation. Alerts are triggered for crossovers/crossunders of the prediction line with its WMA, overbought/oversold levels, or the zero line.
Usage Instructions
1. Add the Sniper-2025 indicator to your TradingView chart.
2. Interpret signals:
- Z-Buy/Z-V-Buy (green labels): Potential buy signals when the oscillator crosses below -20/-40.
- Z-Sell/Z-V-Sell (red labels): Potential sell signals when the oscillator crosses above 20/40.
- C-Buy/C-Sell (green/red labels): Money flow shifts to bullish/bearish when MFI crosses 0.
- T-Buy/T-Sell (green/red labels): Money flow crosses ±20, indicating stronger trends.
- T-V-Buy/T-V-Sell (green/red labels): Money flow crosses ±40, indicating very strong trends.
- Divergence Labels: Green (D-Bullish) or red (D-Bearish) labels indicate potential reversals.
- Reversal Signals: Blue triangles/circles for bullish reversals, red for bearish.
- Confluence Meter: Blue (bullish) or red (bearish) gradient indicates alignment strength.
- Table: Check "Trend" and "Control" for market direction (🟩/🟥 for trend, 🟢/🔴 for control).
- k-NN Prediction: Green line above 0 suggests bullish momentum; below 0 suggests bearish. Watch for crossovers with the WMA or overbought/oversold zones.
3. Set alerts for crossovers/crossunders of the prediction line, oscillator, or MFI to automate trading signals.
Customization Options
- Hyper Wave: Adjust Main Length (mL, default: 15) for oscillator sensitivity, Signal Type (sT, SMA/EMA), and Signal Length (sLHW, default: 3). Customize colors and transparency.
- Smart Money Flow: Set Money Flow Length (mfL, default: 10) and Smooth (mfS, default: 6) for MFI sensitivity. Choose bullish/bearish colors.
- Divergence: Modify Divergence Sensibility (dvT, default: 20) for short-term (lower) or long-term (higher) divergences. Toggle visibility and price display on labels.
- Reversal: Adjust Reversal Factor (rsF, default: 4) for signal strength (higher = fewer, stronger signals). Set colors for bullish/bearish signals.
- Confluence: Toggle Confluence Meter (sCNF) and Areas (sCNB), and customize colors.
- Labels: Enable/disable specific signal labels (e.g., showZBuy, showHSell) and adjust Label Size (default: Normal).
- Table: Toggle Trend and Control display, adjust sensitivities, and set position and colors.
- k-NN Prediction: Adjust Prediction Data (numNeighbors, default: 200) for sensitivity and Trend Length (momentumWindow, default: 20) for responsiveness.
Conclusion
The Sniper-2025 indicator is a powerful tool for traders seeking a comprehensive analysis of price momentum, money flow, divergences, reversals, and predictive signals. Its customizable settings and clear visualizations make it suitable for both novice and experienced traders. Use the indicator to identify high-probability trading opportunities, monitor market trends, and refine strategies with its machine learning-driven predictions.
Kio IQ [TradingIQ]Introducing: “Kio IQ ”
Kio IQ is an all-in-one trading indicator that brings momentum, trend strength, multi-timeframe analysis, trend divergences, pullbacks, early trend shift signals, and trend exhaustion signals together in one clear view.
🔶 The Philosophy of Kio IQ
Markets move in trends—and capturing them reliably is the key to consistency in trading. Without a tool to see the bigger picture, it’s easy to mistake a pullback for a breakout, a fakeout for the real deal, or random market noise as a meaningful price move.
Kio IQ cuts through that random market noise—scanning multiple timeframes, analyzing short, medium, and long-term momentum, and telling you on the spot whether a move is strong, weak, a trap, or simply a small move within a larger trend.
With Kio IQ, price action reveals its next move.
You’ll instantly see:
Which way it’s pushing — up, down, or stuck in the middle.
How hard it’s pushing — from fading weakness to full-blown strength.
When the gears are shifting — early warnings, explosive moves, smart pullbacks, or signs it’s running out of steam.
🔶 Why This Matters
Markets move in phases—sometimes they’re powering in one direction, sometimes they’re slowing down, and sometimes they’re reversing.
Knowing which phase you’re in can help you:
Avoid chasing a move that’s about to run out of steam.
Jump on a move when it’s just getting started.
Spot pullbacks inside a bigger trend (good for entries).
See when different timeframes are all pointing the same way.
🔶 What Kio IQ Shows You
Simple color-coded phases: “Strong Up,” “Up,” “Weak Up,” “Weak Down,” “Down,” “Strong Down.”
Clear visual signals
Full Shift: Strong momentum in one direction.
Half Shift: Momentum is building but not full power yet.
Pullback Shift: A small move against the trend that may be ending.
Early Scout / Lookout: First hints of a possible shift.
Exhaustion: Momentum is very stretched and may slow down.
Divergences: When price moves one way but momentum moves the opposite way—often a warning of a change.
Multi-Timeframe Table: See the trend strength for multiple timeframes (5m, current, 30m, 4h, 1D, and optional 1W/1M) all in one place.
Trend Strength %: A single number that tells you how strong the trend is across all timeframes.
Optional meters: A “momentum bar” and “trend strength gauge” for quick checks.
🔶 How It Works Behind the Scenes
Kio IQ measures price movement in different “speeds”:
Slow view: Big picture trend.
Medium view: The main engine for detecting the current phase.
Fast view: Catches recent changes in momentum.
Super-fast view: Finds tiny pullbacks inside the bigger move.
It compares these views to decide whether the market is strong up, weak up, weak down, strong down, or in between. Then it blends data from multiple timeframes so you see the whole picture, not just the current chart.
🔶 What You’ll See on the Chart
🔷 Full Shift Oscillator (FSO)
The image above highlights the Full Shift Oscillator (FSO).
The FSO is the cornerstone of Kio IQ, delivering mid-term momentum analysis. Using a proprietary formula, it captures momentum on a smooth, balanced scale — responsive enough to avoid lag, yet stable enough to prevent excessive noise or false signals.
The Key Upside Level for the FSO is +20, while the Key Downside Level is -20.
The image above shows the FSO above +20 and below -20, and the corresponding price movement.
FSML above +20 confirms sustained upside momentum — the market is being driven by consistent, broad-based buying pressure, not just a price spike.
FSML below -20 confirms sustained downside momentum — sellers are firmly in control across the market.
We do not chase the first sudden price move. Entries are only considered when the market demonstrates persistence, not impulse.
🔷 Half Shift Oscillator (HSO)
The image above highlights the Half Shift Oscillator (HSO).
The HSO is the FSO’s wingman — faster, more reactive, and designed to catch the earliest signs of strength, weakness, or momentum shifts.
While HSO reacts first, it is not a standalone confirmation of a major momentum change or trade-worthy strength.
Using the same proprietary formula as the FSO but scaled down, the HSO delivers smooth, balanced short-term momentum analysis. It is more responsive than the FSO, serving as the scout that spots potential setups before the main signal confirms.
The Key Upside Level for the FSO is +4, while the Key Downside Level is -4.
🔷 PlayBook Strategy: Shift Sync
Shift Sync is a momentum alignment play that triggers when short-term and mid-term momentum lock into the same direction, signaling strong directional control.
🔹 UpShift Sync – Bullish Alignment
HSO > +4 – Short-term momentum is firmly bullish.
FSO > +20 – Mid-term momentum confirms the bullish bias.
When both thresholds are met, buyers are in control and price is primed for continuation higher.
🔹 DownShift Sync – Bearish Alignment
HSO < -4 – Short-term momentum is firmly bearish.
FSO < -20 – Mid-term momentum confirms the bearish bias.
When both thresholds are met, sellers dominate and price is primed for continuation lower.
Execution:
Look for an entry opportunity in the direction of the alignment when conditions are met.
Avoid choppy conditions where alignment is frequently lost.
Why It Works
Think of the market as a tug-of-war between traders on different timeframes. Short-term traders (captured by the HSO) are quick movers — scalpers, intraday players, and algos hunting immediate edge. Mid-term traders (captured by the FSO) are swing traders, funds, and institutions who move slower but carry more weight.
Most of the time, these groups pull in opposite directions, creating chop and fakeouts. But when they suddenly lean the same way, the rope gets yanked hard in one direction. That’s when momentum has the highest chance to drive price further with minimal resistance.
Shift Sync works because it isolates those rare moments when multiple market “tribes” agree on direction — and when they do, price doesn’t just move, it flies.
Best Market Conditions
Shift Sync works best when the higher timeframe trend (daily, weekly, or monthly) is moving in the same direction as the alignment. This higher timeframe confluence increases follow-through potential and reduces the likelihood of false moves.
The image above shows an example of an UpShift Sync signal where the momentum table shows that the 1D momentum is bullish.
The image above shows bonus confluence, where the 1M and 1W momentum are also bullish.
The image above shows an example of a DownShift Sync signal where the momentum table shows that the 1D momentum is bearish. Bonus confluence also exists, where the 1W and 1M chart are also bearish.
Common Mistakes
Chasing late signals – Avoid entering if the Shift Sync trigger has been active for a long time. Instead, wait for a Shift Sync Pullback to look for opportunities to join in the direction of the trend.
Ignoring higher timeframe bias – Taking Shift Sync setups against the daily, weekly, or monthly trend reduces follow-through potential and increases the risk of a failed move.
🔷 Micro Shift Oscillator (MSO)
The image above highlights the Micro Shift Oscillator (MSO)
The MSO is the finishing touch to the FSO and HSO — the fastest and most reactive of the three. It’s built to spot pullback opportunities when the FSO and HSO are aligned, helping traders join strong price moves at the right time.
The MSO may reveal the earliest signs of a momentum shift, but that’s not its primary role. Its purpose is to identify retracement and pullback opportunities within the overarching trend, allowing traders to join the move while momentum remains intact.
🔷 Playbook Strategy: Shift Sync Pullback
Key Levels:
MSO Upside Trigger: +3
MSO Downside Trigger: -3
🔹 UpShift Pullback
Momentum Confirmation:
FSO > +20 – Mid-term momentum is strongly bullish.
HSO > +4 – Short-term momentum confirms alignment with the FSO.
Pullback Trigger:
MSO ≤ -3 – Signals a short-term retracement within the ongoing bullish trend and marks the earliest re-entry opportunity.
Entry Zone:
The blue arrow on the top chart shows where momentum remains intact while price pulls back into a zone primed for a move higher.
Setup Validity: Both FSO and HSO must remain above their bullish thresholds during the pullback.
Invalid Example:
If either the FSO or HSO drop below their bullish thresholds, momentum alignment breaks. No trade is taken.
🔹 DownShift Pullback
Momentum Confirmation:
FSO < -20 – Mid-term momentum is strongly bearish.
HSO < -4 – Short-term momentum aligns with the FSO, confirming seller dominance.
Pullback Trigger:
MSO ≥ +3 – Indicates a short-term retracement against the bearish trend, pointing to possible short-entry opportunities.
Entry Zone:
The purple arrow on the top chart marks valid pullback conditions — all three oscillators meet their bearish thresholds, and price is positioned to continue lower.
Setup Validity: Both FSO and HSO must remain below their bearish thresholds during the pullback.
Invalid Example:
If either oscillator rises above the bearish threshold, momentum alignment is lost and the MSO signal is ignored.
Why It Works
Even in strong trends, price rarely moves in a straight line. Supply and demand dynamics naturally create retracements as traders take profits, bet on reversals, or hedge positions.
While many momentum traders fear these pullbacks, they’re often the fuel for the next leg of the move — offering a “second chance” to join the trend at a more favorable price.
The Shift Sync Pullback pinpoints moments when both short-term (HSO) and mid-term (FSO) momentum remain firmly aligned, even as price moves temporarily against the trend. This alignment suggests the retracement is a pause, not a reversal.
By entering during a controlled pullback, traders often secure better entries, tighter stops, and stronger follow-through potential when the trend resumes.
Best Market Conditions:
Works best when the higher timeframe (daily, weekly, or monthly) is trending in the same direction as the pullback setup.
Consistent momentum is ideal — avoid erratic, news-driven chop.
Following a recent breakout (Gate Breaker setup) when momentum is still fresh.
Common Mistakes
Ignoring threshold breaks – Entering when either HSO or FSO dips through their momentum threshold often leads to taking trades in weakening trends.
Trading against higher timeframe bias – A pullback against the daily or weekly trend is more likely to fail; use higher timeframe confluence as a filter.
🔷 Macro Shift Oscillator (MaSO)
The chart above shows the MaSO in isolation.
While the MaSO is not part of any active Kio IQ playbook strategies, it delivers the clearest view of the prevailing macro trend.
MaSO > 0 – Macro trend is bullish. Readings above +4 signal extreme bullish conditions.
MaSO < 0 – Macro trend is bearish. Readings below -4 signal extreme bearish conditions.
Use the MaSO for context, not entries — it frames the environment in which all other signals occur
🔷 Shift Gates – Kio IQ Momentum Barriers
The image above shows UpShift Gates.
UpShift Gates mark the highest price reached during periods when the FSO is above +20 — moments when mid-term momentum is firmly bullish and buyers are in control.
UpShift Gates are upside breakout levels — key swing highs formed before a pullback during periods of strong bullish momentum. When price reclaims an UpShift Gate with momentum confirmation, it signals a potential continuation of the uptrend.
The image above shows DownShift Gates.
DownShift Gates Mark The Lowest Price Reached During Periods When The FSO Is Below -20 — Moments When Mid-Term Momentum Is Firmly Bearish And Sellers Are In Control.
DownShift Gates are downside breakout levels — key swing lows formed before an upside pullback during periods of strong bearish momentum. When price reclaims a DownShift Gate with momentum confirmation, it signals a potential continuation of the downtrend.
🔷 Playbook Strategy: Gate Breakers
Core Rule:
Long signal when price decisively closes beyond an UpGate (for longs) or DownGate (for shorts). The breakout must show commitment — no wick-only tests.
🔹 UpGate Breaker (UpGate)
Trigger: Price closes above the UpShift Gate level.
Bonus Confluence: MaSO > 0 at the moment of the break — confirms that the macro trend bias is in favor of the breakout.
Invalidation: Avoid taking the signal if the gate level forms part of a DownShift Rift (bearish divergence) — this signals underlying weakness despite the break.
The chart above shows valid UpGate Breakers.
The chart above shows an invalidated UpGate Breaker setup.
🔹 DownGate Breaker (DownGate)
Trigger: Price closes below the DownShift Gate level.
Bonus Confluence: MaSO < 0 at the moment of the break — confirms that the macro trend bias is in favor of the breakdown.
Invalidation: Avoid taking the trade if the gate level forms part of an UpShift Rift (bullish divergence) — this signals underlying strength despite the break.
The chart above shows a valid DownGate Breaker.
Why It Works
Key swing levels like Shift Gates attract a high concentration of resting orders — stop losses from traders caught on the wrong side and breakout orders from momentum traders waiting for confirmation.
When price decisively clears a gate with a strong close, these orders trigger in quick succession, creating a burst of directional momentum.
Adding the MaSO filter ensures you’re breaking gates with the prevailing macro bias, improving the odds that the move will continue rather than stall.
The divergence-based invalidation rule (Rift filter) prevents entries when underlying momentum is moving in the opposite direction, helping avoid “fake breakouts” that trap traders.
Best Market Conditions:
Works best in markets with clear trend structure and visible Shift Gates (not during chop).
Strongest when higher timeframe (1D, 1W, 1M) momentum aligns with the breakout direction.
MaSO > 0 for bullish breakouts, MaSO < 0 for bearish breakouts
Most reliable after a period of consolidation near the gate, where pressure builds before the break.
Common Mistakes
Trading wick-only tests – A breakout without a decisive candle close beyond the gate often fails.
Ignoring MaSO bias – Taking a break in the opposite macro direction greatly reduces follow-through odds.
Skipping the Rift filter – Entering when the gate forms part of a divergence setup exposes you to higher reversal risk.
Chasing extended moves – If price is already far beyond the gate by the time you see it, risk/reward is poor; wait for the next setup or a retest.
🔷 Shift Rifts - Kio IQ Divergences
This chart shows an UpShift Rift — a bullish divergence where price action and momentum part ways, signaling a potential trend reversal or acceleration.
Setup:
Price Action: Price is marking lower lows, indicating short-term weakness.
FSO Reading: The Full Shift Oscillator (FSO) is marking higher lows over the same period, showing underlying momentum strengthening despite falling prices.
The rift between price and the FSO suggests selling pressure is losing force while buyers quietly regain control.
When confirmed by broader trend alignment in Kio IQ’s multi-timeframe momentum table, the UpShift Rift becomes a setup for a bullish move.
This chart shows a DownShift Rift — a bearish divergence where price action and momentum split, signaling a potential downside reversal.
Setup:
Price Action: Price is marking higher highs, suggesting continued strength on the surface.
FSO Reading: The Full Shift Oscillator (FSO) is marking lower highs over the same period, revealing weakening momentum beneath the price advance.
The rift between price and momentum signals that buying pressure is fading, even as price makes new highs. This disconnect often precedes a momentum shift in favor of sellers.
When aligned with multi-timeframe bearish signals in Kio IQ’s momentum table, the DownShift Rift becomes a strong setup for downside continuation or reversal.
🔷 Playbook Strategy: Rift Reversal
The Rift Reversal is a divergence-based reversal play that signals when momentum is fading and an trend reversal is likely. It’s designed to catch early turning points before the broader market catches on.
Trader’s Note:
This strategy is not intended for beginners — it requires confidence in reading divergence and trusting momentum shifts even when price action still appears weak. Best suited for traders experienced in managing reversals, as entries often occur before the broader market confirms the move.
🔹 UpRift Reversal
Core Setup:
Price Action – Forms a lower low.
Momentum Rift – The FSO forms a higher low, signaling bullish divergence and weakening selling pressure.
Trigger:
A confirmed UpRift Reversal signal is printed when:
Bullish Divergence is detected — price makes a new low, but the oscillator fails to confirm.
Momentum begins turning up from the divergence low (marked on chart as ⇝)
The image above shows a valid UpRift Reversal play.
🔹 DownRift Reversal
Core Setup:
Price Action – Forms a higher high.
Momentum Rift – The FSO forms a lower high, signaling bearish divergence and weakening buying pressure.
Trigger
A confirmed DownRift Reversal signal is printed when:
Bearish Divergence is detected — price makes a new high, but the oscillator fails to confirm.
Momentum begins turning down from the divergence high (marked on chart as ⇝).
Why It Works
Shift Rifts work because momentum often fades before a price reverses.
Price is the final scoreboard — it reflects what has already happened. Momentum, on the other hand, is a leading indicator of pressure. When the FSO begins to move in the opposite direction of price, it signals that the dominant side in the market is losing steam, even if the scoreboard hasn’t flipped yet.
In an UpShift Rift, sellers keep pushing price lower, but each push has less force — buyers are quietly building pressure under the surface.
In a DownShift Rift, buyers keep marking new highs, but they’re spending more effort for less result — sellers are starting to take control.
These disconnects happen because large participants often scale into or out of positions gradually, creating momentum shifts before price reflects it. Shift Rifts capture those turning points early.
Best Market Conditions:
Best in markets that have been trending strongly but are starting to show signs of exhaustion.
Works well after a prolonged move into key support/resistance, where large players may take profits or reverse positions.
Higher win potential when the Rift aligns with higher timeframe momentum bias in Kio IQ’s multi-timeframe table.
Common Mistakes
Forcing Rifts in choppy markets – In sideways chop, small oscillations can look like divergences but lack conviction.
Ignoring multi-timeframe bias – Trading an UpShift Rift when higher timeframes are strongly bearish (or vice versa) reduces follow-through odds.
Entering too early – Divergences can extend before reversing; wait for momentum to confirm a turn (⇝) before making a trading decision.
Confusing normal pullbacks with Rifts – Not every dip in momentum is a divergence; the Rift requires a clear and opposing trend between price and FSO.
🔷 Shift Count – Momentum Stage Tracker
Purpose:
Shift Count measures how far a bullish or bearish push has progressed, from its first spark to potential exhaustion.
It tracks momentum in defined steps so traders can instantly gauge whether a move is just starting, picking up steam, fully extended, or at risk of reversing.
How It Works
Bullish Momentum:
Start (1–2) → New momentum emerging, early entry window.
Acceleration (3–4) → Momentum in full swing, best for holding or adding to a position.
Extreme Bullish Momentum / Final Stages (5) → Watch for signs of reversal or take partial profits.
Exhaust – Can only occur after 5 is reached, signaling that the rally may be losing steam.
Bearish Momentum:
Start (-1 to -2) → New selling pressure emerging.
Acceleration (-3 to -4) → Bear trend accelerating.
Extreme Bearish Momentum / Final Stages (-5) → Watch for reversal or scale out.
Exhaust – Can only occur after -5 is reached, signaling that the sell-off may be running out of force.
The chart above shows a full 5-UpShift count.
The chart above shows a full 5-DownShift count.
Why It’s Useful
Markets often move in momentum “steps” before reversing or taking a breather.
Shift Count makes these steps visible, helping traders:
Spot the early stages of a potential move.
Identify when a move is picking up steam.
Identify when a move is mature and vulnerable to reversal.
Combine with other Kio IQ strategies for better-timed entries and exits.
Why This Works
It’s visually obvious where you are in the momentum cycle without overthinking.
You can build rules like:
Only enter in Start phase when higher timeframe agrees.
Manage positions aggressively once in Acceleration phase.
Be ready to exit or fade in Exhaust phase.
Best Market Conditions
Trending markets where pullbacks are shallow.
Works best when combined with Shift Sync Pullback or Gate Breaker triggers to confirm timing.
Higher timeframe direction confluence.
Common Mistakes
Treating Exhaust as always a reversal — sometimes strong markets push past 5/-5 multiple times.
Ignoring higher timeframe bias — a “Start” on a 1-minute chart against a strong daily trend is much riskier.
🔷 Playbook Strategy: Exhaust Flip
Core idea: When Shift Count reaches 5 (or -5) and then prints Exhaust, momentum has likely climaxed, whether temporarily or leading to a full reversal. We take the first qualified signal against the prior move.
Trader’s Note:
This strategy is not intended for beginners — it requires confidence in trusting momentum shifts even when price action still appears strong. Best suited for traders experienced in managing reversals, as entries often occur before the broader market confirms the move.
🔹 UpExhaust Flip (fade a bullish run)
Setup:
Shift Count hits 5, then an Exhaust print occurs.
Invalidation
The local high is broken to the upside.
The chart above explains the UpExhaust Flip strategy in greater detail.
🔹 DownExhaust Flip (fade a bearish run)
Setup:
Shift Count hits -5, then an Exhaust print occurs.
Invalidation
The local low is broken to the downside.
The chart above explains the DownExhaust Flip strategy in greater detail.
Bonus Confluence (optional, not required)
Rift assist: An UpShift Rift (for longs) or DownShift Rift (for shorts) near Exhaust strengthens the flip.
MaSO context: Neutral or opposite-leaning MaSO helps. Avoid flips straight against a strong MaSO bias unless you have a structure break.
Why It Works
Exhaust marks climax behavior: the prior side has pushed hard, then failed to extend after meeting significant pushback. Liquidity gets thin at the edges; aggressive profit-taking meets early contrarians. A small confirmation (micro structure break or HSO turn) is often enough to flip the tape for a snapback.
Best Market Conditions
After extended, one-sided runs (multiple Shift Count steps without meaningful pullbacks).
Near Shift Gates or obvious swing extremes where trapped orders cluster.
When higher-timeframe momentum is neutral or softening (you’re fading the last thrust of a decisive move, not a fresh trend).
Common Mistakes
Fading too early: Taking the trade at 5 without waiting for the Exhaust.
Fading freight trains: Fighting a fresh Shift Sync in the same direction right after Exhaust (often just a pause).
No structure reference: Entering without a clear micro swing to anchor risk.
🔷 MTF Shift Table
The MTF Shift Table table provides a compact, multi-timeframe view of market momentum shifts. Each cell represents the current shift count within a given timeframe, while the classification label indicates whether momentum is strong, weak, or normal.
The chart above further outlines the MTF Shift Table.
Why It Works
Markets rarely move in a perfectly linear fashion — momentum develops, stalls, and transitions at different speeds across different timeframes. This table allows you to:
See momentum alignment at a glance – If multiple higher and lower timeframes show a sustained shift count in the same direction, the move has greater structural support.
Spot divergences early – A shorter timeframe reversing against a longer-term sustained count can warn of potential pullbacks or trend exhaustion before price confirms.
Identify “momentum stacking” opportunities – When shift counts escalate across timeframes in sequence, it often signals a stronger and more durable move.
Avoid false enthusiasm – A single timeframe spike without agreement from other periods may be noise rather than genuine momentum.
The Trend Score provides a concise, at-a-glance evaluation of an asset’s directional strength across multiple timeframes. It distills complex momentum and Shift data into a single, easy-to-read metric, allowing traders to quickly determine whether the prevailing conditions favor bullish or bearish continuation. The Trend Scale scales from -100 to 100.
How to Use It in Practice
Trend Confirmation – Confirm that your intended trade direction is backed by multiple timeframes maintaining consistent momentum.
Risk Timing – Reduce position size or take partial profits when lower timeframes begin shifting against the dominant momentum classification.
Multi-timeframe Confluence – Combine with other system signals (e.g., FSO, HSO) for higher-probability entries.
This table effectively turns a complex multi-timeframe read into a single, glanceable heatmap of momentum structure, enabling quicker and more confident decision-making.
The MTF Shift Table is the confluence backbone of every playbook strategy for Kio IQ.
🔷 Momentum Meter
The Momentum Meter is a composite gauge built from three of Kio IQ’s core momentum engines:
HSO – Short-term momentum scout
FSO – Mid-term momentum backbone
MaSO – Macro trend context
By combining these three readings, the meter provides the most strict and lagging momentum classification in Kio IQ.
It only flips direction when a composite score of all three oscillators reach defined thresholds, filtering out short-lived counter-moves and false starts.
Why It Works
Many momentum tools flip too quickly — reacting to short-lived spikes that don’t represent real directional commitment. The Momentum Meter avoids this by requiring alignment across short, mid, and macro momentum engines before it shifts bias.
This triple-confirmation rule filters out noise, catching only those moments when traders of all speeds — scalpers, swing traders, and long-term participants — are leaning in the same direction. When that happens, price movement tends to be more sustained and less prone to immediate reversal.
In other words, the Momentum Meter doesn’t just tell you “momentum looks good” — it tells you momentum looks good to everyone who matters, across all horizons.
How It Works
Blue = All three engines align bullish.
Pink = All three engines align bearish.
The meter ignores smaller pullbacks or temporary oscillations that might flip the faster indicators — it waits for total alignment before changing state.
Because of this strict confirmation requirement, the Momentum Meter reacts slower but delivers higher-conviction shifts.
How to Interpret Readings
Blue (Bullish Alignment):
Sustained buying pressure across short, mid, and macro views. Often marks the “full confirmation” stage of a move.
Pink (Bearish Alignment):
Sustained selling pressure across all views. Confirms sellers are in control.
Practical Uses
Trend Followers – Use as a “stay-in” confirmation once a position is already open.
Swing Traders – Great for filtering out low-conviction setups; if the Momentum Meter disagrees with your intended direction, conditions aren’t fully aligned.
Confluence and Direction Filter – The Momentum Meter can be used as a form of confluence i.e. blue = longs only, pink = shorts only.
Limitations
Will always turn after the faster oscillators (HSO/MSO). This is intentional.
Works best in trending markets — in choppy conditions it may lag shifts significantly.
Should be used as a bias filter, not a standalone entry signal.
🔷 Trend Strength Meter
The Trend Strength Meter is a compact visual gauge that scores the current trend’s strength on a scale from -5 to +5:
+5 = Extremely strong bullish trend
0 = Neutral, no clear trend
-5 = Extremely strong bearish trend
This is an optional tool in Kio IQ — designed for quick reference rather than as a primary trading trigger.
Why it works
Single-indicator trend reads can be misleading — they might look strong on one metric while quietly weakening on another. The Trend Strength Meter solves this by blending multiple inputs (momentum alignment, structure persistence, and multi-timeframe data) into one composite score.
This matters because trend health isn’t just about direction — it’s about persistence. A +5 or -5 score means the market is not only trending but holding that trend with structural support across multiple timeframes.
By tracking both direction and staying power, the Trend Strength Meter flags when a move is at risk of fading before price action fully confirms it — giving you a head start on adjusting your position or taking profits.
How It Works
The Trend Strength Meter evaluates multiple market inputs — including momentum alignment, price structure, and persistence — to assign a numeric value representing how firmly the current move is holding.
The scoring logic:
Positive values indicate bullish conditions.
Negative values indicate bearish conditions.
Higher magnitude (closer to ±5) = stronger conviction in that direction.
Values near zero suggest the market is in a transition or range.
How to Interpret Readings
+4 to +5 (Strong Up) – Trend is well-established, often with multi-timeframe agreement.
+1 to +3 (Up) – Bullish bias present, but not at maximum conviction.
0 (Neutral) – No dominant trend; could be consolidation or pre-shift phase.
-1 to -3 (Down) – Bearish bias present but moderate.
-4 to -5 (Strong Down) – Trend is firmly bearish, with consistent downside momentum.
Why It Works
A single timeframe or momentum reading can give a false sense of trend health.
The Trend Strength Meter aggregates multiple layers of market data into one simplified score, making it easy to see whether a move has the underlying support to continue — or whether it’s more likely to stall.
Because the score considers both direction and persistence, it can flag when a move is losing strength even before price structure fully shifts.
🔷 Kio IQ – Supplemental Playbook Strategies
These phases are part of the Kio IQ Playbook—situational tools that can help you anticipate potential momentum changes.
While they can be useful for planning and tactical adjustments, they are not primary trade triggers and should be treated as early, lower-conviction cues.
🔹 1. Scouting Phase (Light Early Cue)
Purpose: Provide the earliest possible hint that momentum may be shifting.
Upshift Trigger: FSO crosses above the 0 line.
Downshift Trigger: FSO crosses below the 0 line.
Why It Works
The 0 line in the Full Shift Oscillator (FSO) acts as a neutral momentum boundary.
When the FSO moves above 0, it suggests that medium-term momentum has shifted to bullish territory.
When it moves below 0, it suggests that medium-term momentum has shifted to bearish territory.
This crossover is often the first measurable sign of a momentum reversal or acceleration, well before slower indicators confirm it.
Think of it as "momentum poking its head above water"—you’re spotting the change before it becomes obvious on price alone.
Best Use
Works best when confirmed later by Lookout Phase or other primary Kio IQ signals.
Ideal for scouting in anticipation of potential opportunities.
Helpful when monitoring multiple assets and you want a quick filter for shifts worth watching.
Can act as a trade trigger when the MTF Shift Table shows confluence (i.e., UpShift Scouting Signal + Bullish MTF Table + High Trend Strength Score).
Common Mistakes
Acting on Scouting Phase signals against the MTF Shift Table as a stand-alone trade trigger. Without higher timeframe alignment or additional confirmation, many Scouting Phase crossovers can fade quickly or reverse, leading to premature entries.
Ignoring market context
A bullish Scouting Phase in a strong downtrend can easily fail.
Always check higher timeframe trend alignment.
Overreacting to noise: On lower timeframes, small fluctuations can create false scouting signals.
Best Practices
Filter with trend: Only act on Scouting Phases that align with the dominant higher timeframe trend.
Watch volatility: In low-volatility conditions, false scouting triggers are more likely.
🔹 2. Lookout Phase (Early Momentum Alert)
Purpose:
The Lookout Phase signals an early alert that momentum is potentially strengthening in a given direction. It’s more meaningful than the Scouting Phase, but still considered a preliminary cue.
Triggers:
Upshift: FSO crosses above the HSO.
Downshift: FSO crosses below the HSO.
Why It Works:
The Lookout Phase is designed to identify moments when mid-term momentum (FSO) overtakes short-term momentum (HSO). Since the FSO is smoother and reacts more gradually, its crossover of the faster-reacting HSO can indicate a shift from short-lived fluctuations to a more sustained directional move.
This makes it a valuable early read on momentum transitions—especially when supported by higher-timeframe context.
Best Practices:
Always check the MTF Shift Table for higher-timeframe alignment before acting on a Lookout Phase signal.
Look for confluence with the Momentum Meter
Treat Lookout Phase entries as probing positions—small, exploratory trades that can be scaled into if follow-through develops.
Common Mistakes:
Treating Lookout Phase signals as a definitive trade trigger without context
Entering solely on a Lookout Phase crossover, without considering the MTF Shift Table or broader market structure, can result in chasing short-lived momentum bursts that fail to follow through.
Ignoring prevailing higher-timeframe momentum
Trading a Lookout Phase signal that is counter to the dominant trend or higher-timeframe bias increases the risk of whipsaws and false moves.
🔶 Summary
Kio IQ is an all-in-one trading indicator that combines momentum, trend strength, multi-timeframe analysis, divergences, pullbacks, and exhaustion alerts into a clear, structured view. It helps traders cut through market noise by showing whether a move is strong, weak, a trap, or simply part of a larger trend. With tools like the Full Shift Oscillator, Multi-Timeframe Shift Table, Shift Gates, and Rift Divergences, Kio IQ simplifies complex market behavior into easy-to-read signals. It’s designed to help traders spot early shifts, align with momentum, and recognize when trends are building or losing steam—all in one place.
Scalper - Pattern Recognition & Price Action Scalper - Pattern Recognition & Price Action Educational Indicator
**Originality and Educational Innovation**
**Why This Comprehensive Integration Merits a New Publication**
This indicator addresses a specific educational gap in technical analysis learning: **the lack of integrated pattern recognition systems that systematically combine traditional candlestick analysis with modern price action concepts in a unified confluence framework**. While individual components like moving averages, RSI, CCI, and basic candlestick patterns are well-established tools, this indicator's originality lies in its **comprehensive educational methodology** and **systematic multi-signal confluence engine**.
**Original Educational Framework:**
1. **Multi-Layer Confluence System**: Original algorithm that systematically combines 6+ different signal categories with customizable threshold requirements for educational analysis
2. **Modern Price Action Integration**: Educational implementation of Fair Value Gaps (FVG) and Order Block detection integrated with traditional pattern recognition
3. **Dynamic Support/Resistance Education**: Original strength-validated S/R system using statistical touch-count methodology rather than simple pivot points
4. **Comprehensive Pattern Library**: Educational collection combining basic and advanced candlestick patterns with mathematical validation criteria
5. **Customizable Multi-Timeframe Framework**: Educational tool allowing cross-timeframe analysis for understanding trend context
**How the Educational Components Work Together Systematically**
**Educational Layer 1 - Trend Context Understanding**: Multi-timeframe moving averages (customizable SMA/EMA/WMA/VWMA/HMA) establish directional bias for learning trend analysis
**Educational Layer 2 - Pattern Recognition Learning**: 15+ mathematically-defined candlestick patterns from basic engulfing to complex three-soldier formations demonstrate systematic pattern identification
**Educational Layer 3 - Modern Price Action Education**: Fair Value Gaps and Order Blocks teach institutional footprint recognition and market structure analysis
**Educational Layer 4 - Dynamic S/R Framework**: Strength-validated support/resistance levels demonstrate statistical validation methodology
**Educational Layer 5 - Momentum Analysis Education**: RSI and CCI extreme reversal detection teaches momentum exhaustion identification
**Educational Layer 6 - Confluence Analysis Methodology**: Original multi-signal combination system demonstrates how to systematically analyze multiple factors
This integrated educational approach provides a comprehensive framework for learning how different technical analysis concepts work together in real market conditions, addressing the common problem of studying indicators in isolation.
**Detailed Technical Implementation and Educational Methodology**
**Original Multi-Signal Confluence Algorithm**
**Educational Confluence Scoring System:**
The indicator implements an original systematic approach to signal combination:
```
Bullish Signal Categories (Educational Analysis):
- Candlestick Patterns: Strong Engulfing, Morning Star, Hammer, Three White Soldiers
- Momentum Indicators: RSI oversold exit (75→70), CCI extreme reversal (-200→-180)
- Price Action: Volume-confirmed breakouts above resistance levels
Bearish Signal Categories (Educational Analysis):
- Candlestick Patterns: Bearish Engulfing, Evening Star, Hanging Man, Three Black Crows
- Momentum Indicators: RSI overbought exit (25→30), CCI extreme reversal (200→180)
- Price Action: Volume-confirmed breakdowns below support levels
Original Confluence Calculation:
User-configurable minimum threshold (2-6 signals required)
Real-time signal counting with dynamic visual feedback
Educational labels showing current signal strength
```
**Why This Systematic Approach is Original:**
Most indicators show patterns individually without systematic combination methodology. This indicator provides an educational framework for understanding how to weight and combine different types of analysis systematically.
**Advanced Pattern Recognition with Educational Validation**
**Original Pattern Validation Methodology:**
Each pattern includes multiple educational validation criteria:
```
Strong Engulfing Educational Criteria:
- Body size > ATR (volatility filter for market significance)
- Current body > previous body (strength confirmation)
- Complete price engulfment (mathematical validation)
- Volume confirmation (market participation validation)
Morning/Evening Star Educational Framework:
- First candle: Directional (bull/bear confirmation)
- Second candle: Indecision (body < 30% of current body)
- Third candle: Reversal confirmation with penetration validation
Three Soldiers/Crows Educational Requirements:
- Three consecutive candles meeting directional criteria
- Each candle body > ATR * 0.5 (significance filter)
- Progressive price advancement (momentum validation)
```
**Modern Price Action Educational Implementation**
**Original Fair Value Gap Detection Algorithm:**
```
Educational FVG Identification:
Bullish FVG: current_low > high AND close > open AND close < open
Bearish FVG: current_high < low AND close < open AND close > open
Educational Purpose: Understanding institutional inefficiencies
Visual Education: Semi-transparent boxes showing gap zones
Practical Learning: Identifying potential reversal or continuation areas
```
**Original Order Block Educational Detection:**
```
Educational Order Block Criteria:
Bullish: Previous candle bullish AND current close > previous high AND volume > 20-period average
Bearish: Previous candle bearish AND current close < previous low AND volume > 20-period average
Educational Purpose: Recognizing institutional accumulation/distribution
Visual Education: Highlighted zones showing institutional interest
Learning Application: Understanding market structure concepts
```
**Dynamic Support/Resistance Educational System**
**Original Strength-Validation Algorithm:**
```
Educational S/R Methodology:
1. Identify recent swing highs/lows over user-defined period
2. Calculate ATR-based tolerance levels (volatility adjustment)
3. Count historical touches within tolerance (statistical validation)
4. Create levels only when touches ≥ minimum strength requirement
5. Project levels forward for future price interaction analysis
Educational Advantage over Simple Pivots:
- Statistical validation through touch counting
- Volatility-adjusted tolerance (adapts to market conditions)
- Strength-based filtering (reduces noise)
- Forward-looking projection (practical application)
```
**Comprehensive Educational Features and Customization**
**Multi-Timeframe Educational Framework**
- **MA 1**: SMA 34 with customizable timeframe (short-term trend education)
- **MA 2**: SMA 63 with customizable timeframe (medium-term trend education)
- **MA 3**: User-selectable type (SMA/EMA/WMA/VWMA/HMA) with customizable timeframe
- **MA 4**: User-selectable type for long-term trend context
- **Educational Purpose**: Understanding cross-timeframe trend analysis
**Educational Pattern Detection Parameters**
- **ATR Length**: Volatility measurement for pattern significance (default: 14)
- **Volume Validation**: Historical volume comparison for pattern confirmation
- **Mathematical Ratios**: Precise wick/body ratios for pattern classification
- **Strength Filters**: Size and volume thresholds ensuring pattern validity
**Educational Price Action Configuration**
- **FVG Detection**: Three-candle gap analysis with directional confirmation
- **Order Block Settings**: Volume threshold and visual projection length
- **S/R Parameters**: Detection period, minimum touch count, tolerance calculation
- **Educational Visualization**: Clear boxes and labels for learning identification
**Customizable Educational Dashboard**
- **Position Control**: 6 different dashboard positions for optimal viewing
- **Color Customization**: Full color control for text, backgrounds, and signals
- **Real-Time Education**: Current RSI, CCI, ATR values for learning
- **Signal Analysis**: Live bullish/bearish signal counts for confluence education
- **Educational Branding**: Clear identification as learning tool
Educational Applications and Learning Outcomes
**Progressive Learning Structure for Technical Analysis**
**Beginner Level Education:**
- Moving average trend identification across timeframes
- Basic candlestick pattern recognition with mathematical criteria
- Introduction to support/resistance concepts with visual validation
**Intermediate Level Education:**
- Multi-pattern analysis and pattern strength assessment
- RSI and CCI momentum analysis with extreme level identification
- Volume analysis integration with pattern confirmation
**Advanced Level Education:**
- Fair Value Gap theory and practical institutional analysis
- Order Block detection and market structure understanding
- Multi-signal confluence methodology and systematic signal combination
**Practical Educational Workflow**
1. **Setup Phase**: Configure moving averages for chosen timeframes and enable desired patterns
2. **Context Analysis**: Study trend direction using multi-timeframe MA alignment
3. **Pattern Study**: Identify candlestick formations meeting mathematical validation criteria
4. **Price Action Learning**: Analyze FVG and Order Block formations for institutional insight
5. **Confluence Education**: Count and analyze multiple signal types for probability assessment
6. **Real-Time Practice**: Use dashboard for ongoing market analysis and signal tracking
**Educational Risk Management Concepts**
- **Pattern Reliability Understanding**: Learning which patterns have higher success rates
- **Signal Strength Analysis**: Understanding how confluence affects probability
- **Market Context Education**: Learning when patterns are most/least reliable
- **Systematic Analysis**: Developing consistent methodology for market evaluation
**Technical Requirements and Optimization**
**Performance Optimization for Education**
- **Visual Element Limits**: 500 maximum boxes, lines, and labels for stable performance
- **Efficient Calculations**: S/R updates every 10 bars for smooth operation
- **Memory Management**: Proper array management for dynamic level storage
- **Clean Interface**: Organized input groups for easy educational navigation
**Educational Visualization Standards**
- **Color-Coded Learning**: Consistent color scheme for pattern identification
- **Clear Labeling**: Educational text labels for all major patterns and signals
- **Professional Layout**: Organized visual hierarchy for systematic learning
- **Customizable Display**: User control over visual elements and positioning
**Educational Disclaimers and Learning Focus**
**Educational Purpose Statement**
This indicator is designed as a comprehensive educational tool for learning technical analysis concepts. It demonstrates how traditional candlestick analysis, modern price action concepts, and systematic confluence methodology can be integrated for educational purposes.
**Learning Tool Disclaimer**
The indicator provides an educational framework for studying:
- Traditional and modern technical analysis integration
- Systematic pattern recognition methodology
- Multi-signal confluence analysis techniques
- Price action and market structure principles
- Statistical validation approaches for support/resistance
**Risk Education and Understanding**
Technical analysis education requires understanding that:
- Patterns and indicators show historical relationships, not future guarantees
- Confluence analysis increases probability understanding but not certainty
- Educational study should focus on methodology rather than signal generation
- Proper risk management principles must be learned alongside technical analysis
- Real market conditions may differ from educational examples
**Systematic Learning Approach**
This educational tool emphasizes:
- **Methodology over Signals**: Focus on learning systematic analysis approaches
- **Understanding over Automation**: Developing analytical skills rather than relying on automated signals
- **Education over Trading**: Comprehensive learning framework for technical analysis concepts
- **Progressive Development**: Building skills systematically from basic to advanced concepts
**Technical Documentation and Implementation**
**Original Algorithm Documentation**
All custom algorithms are documented for educational transparency:
- Pattern detection mathematics with specific criteria
- Confluence scoring methodology with threshold requirements
- Support/resistance validation with statistical touch counting
- Price action detection with institutional footprint identification
**Educational Code Structure**
- **Comprehensive Comments**: Every section includes educational purpose explanation
- **Version Tracking**: Clear version documentation for educational development
- **Performance Notes**: Optimization techniques explained for learning
- **Customization Guidance**: Clear parameter explanation for educational experimentation
---
**Educational Innovation Summary:**
This implementation represents an original approach to technical analysis education, systematically combining traditional pattern recognition with modern price action concepts in an integrated confluence framework. The educational methodology addresses common learning gaps by providing systematic approaches to multi-signal analysis, statistical validation, and institutional footprint recognition.
**Learning Value:**
The comprehensive educational framework eliminates the need to study multiple separate indicators by providing an integrated learning platform that demonstrates how different technical analysis concepts work together systematically in real market conditions.
**Educational Commitment:**
This indicator prioritizes education and systematic learning over simple signal generation, providing traders with the analytical framework needed to develop comprehensive technical analysis skills through hands-on practice and systematic methodology development.
📱 EMA Stability Mobile + Pulse BG + Alerts (edegrano)User Manual: 📱 EMA Stability Mobile + Pulse BG + Alerts
Overview
This indicator monitors the stability of the market trend by analyzing the relative positions and gaps between the 50, 100, and 200 EMAs (Exponential Moving Averages) on a user-defined higher timeframe. It detects when the EMAs align bullishly or bearishly with a minimum gap tolerance and provides visual signals, background pulses, and alerts when such stable conditions start.
Key Features
Uses 3 EMAs (50, 100, 200) from a selectable timeframe.
Checks if EMAs are aligned in a stable bullish or bearish order with configurable minimum percentage gaps.
Confirms that price is not touching the EMA50 (to avoid instability).
Displays arrow, text status ("Bull", "Bear", or "Unst" for unstable).
Shows a strength score representing the average EMA gap relative to tolerance.
Pulses the chart background green or red when stability starts.
Sends alerts when a new bullish or bearish stability condition begins.
Displays a table summary at the top center of the chart.
Inputs
Parameter Description Default Value
EMA TF Timeframe to fetch EMA values from. "15" (15 min)
Min Gap (%) Minimum % gap required between EMAs for stability. 0.1%
Background Opacity Opacity level (0-100) for the pulse background color. 85
How It Works
The indicator fetches EMA50, EMA100, and EMA200 values from the chosen timeframe.
It calculates the percentage gap between EMA50 & EMA100 and EMA100 & EMA200.
It checks if:
For bullish stability: EMA50 > EMA100 by at least the tolerance and EMA100 > EMA200 by at least tolerance, AND current candle’s low is above EMA50.
For bearish stability: EMA50 < EMA100 by at least the tolerance and EMA100 < EMA200 by at least tolerance, AND current candle’s high is below EMA50.
When a stable bullish or bearish condition starts (i.e., it was not stable the previous bar), it triggers a pulse on the background and sends an alert.
The strength score reflects how strong the EMA gaps are relative to the minimum gap set.
A table displays key info: stability arrow, status, strength percentage, and gap percentages.
Visuals on Chart
Arrow:
▲ = Bullish Stability
▼ = Bearish Stability
• = Unstable (no stability detected)
Status Text: "Bull", "Bear", or "Unst"
Background Pulse: Green for bullish stability start, red for bearish stability start (fades based on opacity setting).
Table at top center shows:
EMA stability arrow and status
Strength score (%)
Percentage gaps between EMAs 50-100 and 100-200
Alerts
The indicator sends alerts when a new stable bullish or bearish trend begins.
Alert messages include:
📈 Bullish Stability detected on ( )
📉 Bearish Stability detected on ( )
Alerts are triggered only once per bar close on the condition's start.
Recommended Usage Tips
Adjust EMA TF to your preferred higher timeframe for trend confirmation.
Set Min Gap (%) depending on how strict you want the gap between EMAs for stability (smaller gap = more sensitive).
Use Background Opacity to make pulses subtle or prominent according to your preference.
Combine this indicator with price action or other tools for entry/exit timing.
Use alerts to be notified instantly when stable trends form.
Nifty50 Swing Trading Super Indicator# 🚀 Nifty50 Swing Trading Super Indicator - Complete Guide
**Created by:** Gaurav
**Date:** August 8, 2025
**Version:** 1.0 - Optimized for Indian Markets
---
## 📋 Table of Contents
1. (#quick-start-guide)
2. (#indicator-overview)
3. (#installation-instructions)
4. (#parameter-settings)
5. (#signal-interpretation)
6. (#trading-strategy)
7. (#risk-management)
8. (#optimization-tips)
9. (#troubleshooting)
---
## 🎯 Quick Start Guide
### What You Get
✅ **2 Complete Pine Script Indicators:**
- `swing_trading_super_indicator.pine` - Universal version for all markets
- `nifty_optimized_super_indicator.pine` - Specifically optimized for Nifty50 & Indian stocks
✅ **Key Features:**
- Multi-component signal confirmation system
- Optimized for daily and 3-hour timeframes
- Built-in risk management with dynamic stops and targets
- Real-time signal strength monitoring
- Gap analysis for Indian market characteristics
### Immediate Setup
1. Copy the Pine Script code from `nifty_optimized_super_indicator.pine`
2. Paste into TradingView Pine Editor
3. Add to chart on daily or 3-hour timeframe
4. Look for 🚀BUY and 🔻SELL signals
5. Use the information table for signal confirmation
---
## 🔍 Indicator Overview
### Core Components Integration
**🎯 Range Filter (35% Weight)**
- Primary trend identification using adaptive volatility filtering
- Optimized sampling period: 21 bars for Indian market volatility
- Enhanced range multiplier: 3.0 to handle market gaps
- Provides trend direction and strength measurement
**⚡ PMAX (30% Weight)**
- Volatility-adjusted trend confirmation using ATR-based calculations
- Dynamic multiplier adjustment based on market volatility
- 14-period ATR with 2.5 multiplier for swing trading sensitivity
- Offers trailing stop functionality
**🏗️ Support/Resistance (20% Weight)**
- Dynamic level identification using pivot point analysis
- Tighter channel width (3%) for precise Indian market levels
- Enhanced strength calculation with historical interaction weighting
- Provides entry/exit timing and breakout signals
**📊 EMA Alignment (15% Weight)**
- Multi-timeframe moving average confirmation
- Key EMAs: 9, 21, 50, 200 (popular in Indian markets)
- Hierarchical alignment scoring for trend strength
- Additional trend validation layer
### Advanced Features
**🌅 Gap Analysis**
- Automatic detection of significant price gaps (>2%)
- Gap strength measurement and impact on signals
- Specific optimization for Indian market overnight gaps
- Visual gap markers on chart
**⏰ Multi-Timeframe Integration**
- Higher timeframe bias from daily/weekly data
- Configurable daily bias weight (default 70%)
- 3-hour confirmation for precise entry timing
- Prevents counter-trend trades against major timeframe
**🛡️ Risk Management**
- Dynamic stop-loss calculation using multiple methods
- Automatic profit target identification
- Position sizing guidance based on signal strength
- Anti-whipsaw logic to prevent false signals
---
## 📥 Installation Instructions
### Step 1: Access TradingView
1. Open TradingView.com
2. Navigate to Pine Editor (bottom panel)
3. Create a new indicator
### Step 2: Copy the Code
**For Nifty50 & Indian Stocks (Recommended):**
```pinescript
// Copy entire content from nifty_optimized_super_indicator.pine
```
**For Universal Use:**
```pinescript
// Copy entire content from swing_trading_super_indicator.pine
```
### Step 3: Configure and Apply
1. Click "Add to Chart"
2. Select daily or 3-hour timeframe
3. Adjust parameters if needed (defaults are optimized)
4. Enable alerts for signal notifications
### Step 4: Verify Installation
- Check that all components are visible
- Confirm information table appears in top-right
- Test with known trending stocks for signal validation
---
## ⚙️ Parameter Settings
### 🎯 Range Filter Settings
```
Sampling Period: 21 (optimized for Indian market volatility)
Range Multiplier: 3.0 (handles overnight gaps effectively)
Source: Close (most reliable for swing trading)
```
### ⚡ PMAX Settings
```
ATR Length: 14 (standard for daily/3H timeframes)
ATR Multiplier: 2.5 (balanced for swing trading sensitivity)
Moving Average Type: EMA (responsive to price changes)
MA Length: 14 (matches ATR period for consistency)
```
### 🏗️ Support/Resistance Settings
```
Pivot Period: 8 (shorter for Indian market dynamics)
Channel Width: 3% (tighter for precise levels)
Minimum Strength: 3 (higher quality levels only)
Maximum Levels: 4 (focus on strongest levels)
Lookback Period: 150 (sufficient historical data)
```
### 🚀 Super Indicator Settings
```
Signal Sensitivity: 0.65 (balanced for swing trading)
Trend Strength Requirement: 0.75 (high quality signals)
Gap Threshold: 2.0% (significant gap detection)
Daily Bias Weight: 0.7 (strong higher timeframe influence)
```
### 🎨 Display Options
```
Show Range Filter: ✅ (trend visualization)
Show PMAX: ✅ (trailing stops)
Show S/R Levels: ✅ (key price levels)
Show Key EMAs: ✅ (trend confirmation)
Show Signals: ✅ (buy/sell alerts)
Show Trend Background: ✅ (visual trend state)
Show Gap Markers: ✅ (gap identification)
```
---
## 📊 Signal Interpretation
### 🚀 BUY Signals
**Requirements for BUY Signal:**
- Price above Range Filter with upward trend
- PMAX showing bullish direction (MA > PMAX line)
- Support/resistance breakout or favorable positioning
- EMA alignment supporting upward movement
- Higher timeframe bias confirmation
- Overall signal strength > 75%
**Signal Strength Indicators:**
- **90-100%:** Extremely strong - Maximum position size
- **80-89%:** Very strong - Large position size
- **75-79%:** Strong - Standard position size
- **65-74%:** Moderate - Reduced position size
- **<65%:** Weak - Wait for better opportunity
### 🔻 SELL Signals
**Requirements for SELL Signal:**
- Price below Range Filter with downward trend
- PMAX showing bearish direction (MA < PMAX line)
- Resistance breakdown or unfavorable positioning
- EMA alignment supporting downward movement
- Higher timeframe bias confirmation
- Overall signal strength > 75%
### ⚖️ NEUTRAL Signals
**Characteristics:**
- Conflicting signals between components
- Low overall signal strength (<65%)
- Range-bound market conditions
- Wait for clearer directional bias
### 📈 Information Table Guide
**Component Status:**
- **BULL/BEAR:** Current signal direction
- **Strength %:** Component contribution strength
- **Status:** Additional context (STRONG/WEAK/ACTIVE/etc.)
**Overall Signal:**
- **🚀 STRONG BUY:** All systems aligned bullish
- **🔻 STRONG SELL:** All systems aligned bearish
- **⚖️ NEUTRAL:** Mixed or weak signals
---
## 💼 Trading Strategy
### Daily Timeframe Strategy
**Setup:**
1. Apply indicator to daily chart of Nifty50 or Indian stocks
2. Wait for 🚀BUY or 🔻SELL signal with >75% strength
3. Confirm higher timeframe bias alignment
4. Check for significant support/resistance levels
**Entry:**
- Enter on signal bar close or next bar open
- Use 3-hour chart for precise entry timing
- Avoid entries during major news events
- Consider gap analysis for overnight positions
**Position Sizing:**
- **>90% Strength:** 3-4% of portfolio
- **80-89% Strength:** 2-3% of portfolio
- **75-79% Strength:** 1-2% of portfolio
- **<75% Strength:** Avoid or minimal size
### 3-Hour Timeframe Strategy
**Setup:**
1. Confirm daily timeframe bias first
2. Apply indicator to 3-hour chart
3. Look for signals aligned with daily trend
4. Use for entry/exit timing optimization
**Entry Refinement:**
- Wait for 3H signal confirmation
- Enter on pullbacks to key levels
- Use tighter stops for better risk/reward
- Monitor intraday support/resistance
### Risk Management Rules
**Stop Loss Placement:**
1. **Primary:** Use indicator's dynamic stop level
2. **Secondary:** Below/above nearest support/resistance
3. **Maximum:** 2-3% of portfolio per trade
4. **Trailing:** Move stops with PMAX line
**Profit Taking:**
1. **Target 1:** First resistance/support level (50% position)
2. **Target 2:** Second resistance/support level (30% position)
3. **Runner:** Trail remaining 20% with PMAX
**Position Management:**
- Review positions at daily close
- Adjust stops based on new signals
- Exit if trend changes to opposite direction
- Reduce size during high volatility periods
---
## 🎯 Optimization Tips
### For Nifty50 Trading
- Use daily timeframe for primary signals
- Monitor sector rotation impact
- Consider index futures for better liquidity
- Watch for RBI policy and global cues impact
### For Individual Stocks
- Verify stock follows Nifty correlation
- Check sector-specific news and events
- Ensure adequate liquidity for position size
- Monitor earnings calendar for volatility
### Market Condition Adaptations
**Trending Markets:**
- Increase position sizes for strong signals
- Use wider stops to avoid whipsaws
- Focus on trend continuation signals
- Reduce counter-trend trading
**Range-Bound Markets:**
- Reduce position sizes
- Use tighter stops and quicker profits
- Focus on support/resistance bounces
- Increase signal strength requirements
**High Volatility Periods:**
- Reduce overall exposure
- Use smaller position sizes
- Increase stop-loss distances
- Wait for clearer signals
### Performance Monitoring
- Track win rate and average profit/loss
- Monitor signal quality over time
- Adjust parameters based on market changes
- Keep trading journal for pattern recognition
---
## 🔧 Troubleshooting
### Common Issues
**Q: Signals appear too frequently**
A: Increase "Trend Strength Requirement" to 0.8-0.9
**Q: Missing obvious trends**
A: Decrease "Signal Sensitivity" to 0.5-0.6
**Q: Too many false signals**
A: Enable "3H Confirmation" and increase strength requirements
**Q: Indicator not loading**
A: Check Pine Script version compatibility (requires v5)
### Parameter Adjustments
**For More Sensitive Signals:**
- Decrease Signal Sensitivity to 0.5-0.6
- Decrease Trend Strength Requirement to 0.6-0.7
- Increase Range Filter multiplier to 3.5-4.0
**For More Conservative Signals:**
- Increase Signal Sensitivity to 0.7-0.8
- Increase Trend Strength Requirement to 0.8-0.9
- Enable all confirmation features
### Performance Issues
- Reduce lookback periods if chart loads slowly
- Disable some visual elements for better performance
- Use on liquid stocks/indices for best results
---
## 📞 Support & Updates
This super indicator combines the best of Range Filter, PMAX, and Support/Resistance analysis specifically optimized for Indian market swing trading. The multi-component approach significantly improves signal quality while the built-in risk management features help protect capital.
**Remember:** No indicator is 100% accurate. Always combine with proper risk management, market analysis, and your trading experience for best results.
**Happy Trading! 🚀**