Trend Confluence Indicator identify potential trend reversals by combining signals from three popular technical indicators: MACD, Stochastic Oscillator, and ADX.
Here's a breakdown of its components and how it defines confluence:
MACD (Moving Average Convergence Divergence):
Purpose: This indicator helps to spot changes in the strength, direction, momentum, and duration of a trend.
Signals:
A bullish MACD signal is generated when the MACD line crosses above its signal line, indicating increasing bullish momentum.
A bearish MACD signal is generated when the MACD line crosses below its signal line, indicating increasing bearish momentum.
Stochastic Oscillator:
Purpose: This momentum indicator compares a security's closing price to its price range over a given period, identifying overbought and oversold conditions. It also shows momentum shifts.
Signals:
A bullish Stochastic signal is typically a crossover of the %K line above the %D line.
A bearish Stochastic signal is a crossover of the %K line below the %D line.
ADX (Average Directional Index):
Purpose: The ADX measures the strength of a trend, not its direction. Higher ADX values indicate a stronger trend, while lower values suggest a weak or ranging market.
Role in Confluence: For reversal signals, the indicator looks for the ADX to be below a specified threshold (defaulting to 25). The idea is that reversals are more likely to occur when the existing trend is weak or the market is consolidating, rather than when a strong trend is in full force.
How Confluence is Currently Defined (Simplified for Debugging):
In its current state (with the debugging simplification active in the Canvas), a signal is generated when:
Bullish Reversal (Trend Up): The MACD line crosses above its signal line AND the Stochastic %K line crosses above its %D line.
Bearish Reversal (Trend Down): The MACD line crosses below its signal line AND the Stochastic %K line crosses below its %D line.
When these simplified conditions are met, the indicator plots "Reversal Up" (▲) or "Reversal Down" (▼) labels directly on your chart. It also plots the individual MACD, Stochastic, and ADX lines on separate sub-panes to help you visualize the underlying indicator movements.
Original (More Comprehensive) Confluence (Commented Out):
The Canvas also contains commented-out code for the original, more stringent confluence conditions. These would have added further filters:
For Bullish Reversal: The Stochastic %K and %D lines would also need to be below the stochOversold level (e.g., 20) when the crossover occurred, and the ADX would need to be below the adxThreshold.
For Bearish Reversal: The Stochastic %K and %D lines would also need to be above the stochOverbought level (e.g., 80) when the crossover occurred, and the ADX would need to be below the adxThreshold.
Once you confirm the indicator is showing signals with the simplified logic, you can uncomment these original lines in the Canvas to activate the more precise confluence criteria, or adjust the input parameters to fine-tune its sensitivity.
Hanssome
Trend Reversal ConfluenceThe "Trend Reversal Confluence Indicator" I just made is designed to identify potential trend reversals by looking for a strong alignment (confluence) of signals from three different technical indicators:
MACD (Moving Average Convergence Divergence): This indicator is used to detect shifts in momentum.
A bullish MACD signal occurs when the MACD line crosses above its signal line.
A bearish MACD signal occurs when the MACD line crosses below its signal line.
Stochastic Oscillator: This momentum indicator identifies overbought and oversold conditions, as well as potential shifts in momentum.
A bullish Stochastic signal is typically a crossover of the %K line above the %D line, especially when both are coming out of oversold territory (below 20).
A bearish Stochastic signal is a crossover of the %K line below the %D line, especially when both are coming out of overbought territory (above 80).
ADX (Average Directional Index): This indicator measures the strength of a trend.
For reversal signals, the indicator looks for the ADX to be below a certain threshold (e.g., 25 by default). This suggests that the current trend is weak or the market is ranging, making it a more opportune time for a reversal to occur rather than a continuation of a strong trend.
How Confluence is Defined (Simplified for Debugging):
Currently, for debugging purposes, the indicator's confluence for a signal is simplified to:
Bullish Reversal: When the MACD line crosses above its signal line AND the Stochastic %K line crosses above its %D line.
Bearish Reversal: When the MACD line crosses below its signal line AND the Stochastic %K line crosses below its %D line.
Original Confluence (Commented Out in the Code):
The original, more stringent confluence conditions (which are currently commented out in the Canvas but can be reactivated) also included:
For Bullish Reversal: The Stochastic %K and %D lines also needed to be below the oversold level (e.g., 20) when the crossover occurred, and the ADX needed to be below the adxThreshold.
For Bearish Reversal: The Stochastic %K and %D lines also needed to be above the overbought level (e.g., 80) when the crossover occurred, and the ADX needed to be below the adxThreshold.
When these combined conditions are met, the indicator plots "Reversal Up" (▲) or "Reversal Down" (▼) labels directly on your chart, indicating a strong confluence of factors suggesting a potential trend change. You can also see the individual indicator plots (MACD, Stochastic, ADX) on separate panes to understand the components of the signal.
Volume Breakout SignalsScript by Hanssome
The Volume Breakout Signals indicator is a trading tool designed to identify potential entry points by pinpointing high-momentum price breakouts on your main chart. It operates on a simple but powerful principle: a true breakout should be supported by a significant increase in trading volume.
The indicator plots two primary visual elements on your price chart:
Pivot Highs and Lows: These are marked with green and red circles and represent the most recent significant swing points in the price. They act as dynamic support and resistance levels, and the script watches for the price to break past them.
BUY and SELL Labels: These signals appear directly on the chart to indicate a potential trading opportunity.
A signal is only generated when two specific conditions are met simultaneously:
Price Breakout: A BUY signal requires the price to cross decisively above the most recent pivot high. A SELL signal requires the price to cross below the most recent pivot low.
Volume Confirmation: This price breakout must be accompanied by a recent spike in trading volume. This confirmation suggests strong momentum and conviction behind the move, increasing the probability of a successful breakout.
All the parameters, such as the sensitivity of the pivot points and the definition of a volume spike, can be adjusted in the indicator's settings to fit your specific trading style and the asset you are viewing.