Advanced Supertrend Enhanced ADXEnhanced Supertrend ADX Indicator - Technical Documentation
Overview
The Enhanced Supertrend ADX indicator combines ADX directional strength with Supertrend trend-following capabilities, creating a comprehensive trend detection system. It's enhanced with normalization techniques and multiple filters to provide reliable trading signals.
Key Features and Components
The indicator incorporates three main components:
Core ADX and Supertrend Fusion
Uses a shorter ADX period for increased sensitivity
Integrates Supertrend signals for trend confirmation
Applies a long-term moving average for trend context
Advanced Filtering System
Volatility filter: Identifies periods of significant market movement
Momentum filter: Confirms the strength and sustainability of trends
Lateral market detection: Identifies ranging market conditions
Data Normalization
Standardizes indicator readings across different instruments
Makes signals comparable across various market conditions
Reduces extreme values and false signals
Model Assumptions
The indicator operates under several key assumptions:
Market Behavior
Markets alternate between trending and lateral phases
Strong trends correlate with increased volatility
Price momentum confirms trend strength
Market transitions follow identifiable patterns
Signal Reliability
Low ADX values indicate lateral markets
Valid signals require both volatility and momentum confirmation
Multi-filter confirmation increases signal reliability
Price normalization enhances signal quality
Trading Applications
The indicator supports different trading approaches:
Trend Trading
Strong signals when all filters align
Clear distinction between bullish and bearish trends
Momentum confirmation for trend continuation
Range Trading
Clear identification of lateral markets
Band-based trading boundaries
Reduced false breakout signals
Transition Trading
Early identification of trend-to-range transitions
Clear signals for range-to-trend transitions
Momentum-based confirmation of breakouts
Risk Considerations
Important factors to consider:
Signal Limitations
Potential delay in fast-moving markets
False signals during extreme volatility
Time frame dependency
Best Practices
Use in conjunction with other indicators
Apply proper position sizing
Focus on liquid instruments
Consider market context
Performance Characteristics
The indicator shows optimal performance under specific conditions:
Ideal Conditions
Daily timeframe analysis
Clear trending market phases
Liquid market environments
Normal volatility conditions
Challenging Conditions
Choppy market conditions
Extremely low volatility
Highly volatile markets
Illiquid instruments
Implementation Recommendations
For optimal use, consider:
Market Selection
Best suited for major markets
Requires adequate liquidity
Works well with trending instruments
Timeframe Selection
Primary: Daily charts
Secondary: 4-hour charts
Caution on lower timeframes
Risk Management
Use appropriate position sizing
Set clear stop-loss levels
Consider market volatility
Monitor overall exposure
This indicator serves as a comprehensive tool for market analysis, combining traditional technical analysis with modern filtering techniques. Its effectiveness depends on proper implementation and understanding of market conditions.
Indicadores e estratégias
Adaptive Supply and Demand [EdgeTerminal]Adaptive Supply and Demand is a dynamic supply and demand indicator with a few unique twists. It considers volume pressure, volatility-based adjustments and multi-time frame momentum for confidence scoring (multi-step confirmation) to generate dynamic lines that adjust based on the market and also to generate dynamic support/resistance levels for the supply and demand lines.
The dynamic support and resistance lines shown gives you a better situational awareness of the current state of the market and add more context to why the market is moving into a certain direction.
> Trading Scenarios
When the confidence score is over 80%, strong volume pressure in trend direction (up or down), volatility is low and momentum is aligned across timeframes, there is an indication of a strong upward or downward trend.
When the supply and demand line crossover, the confidence score is over 75% and the volume pressure is shifting, this can be an indicator of trend reversal. Use tight initial stops, scale into position as trend develops, monitor the volume pressure for continuation and wait for confidence confirmation.
When the confiance score is below 60%, the volume pressure is choppy, volatility is high, you want to avoid trading or reduce position size, wait for confidence improvements, use support and resistance for entries/exits and use tighter stops due to market conditions. This is an indication of a ranging market.
Another scenario is when there is a sudden volume pressure increase, and a raising confidence score, the volatility is expanding and the bar momentum is aligning the volatility direction. This can indicate a breakout scenario.
> How it Works
1. Volume Pressure Analysis
Volume Pressure Analysis is a key component that measures the true buying and selling force in the market. Here's a detailed breakdown. The idea is to standardize volume to prevent large spikes from skewing results.
The indicator employs an adaptive volume normalization technique to detect genuine buying and selling pressure.
It takes current volume and divides it by average volume.
If normVol > 1: Current volume is above average
If normVol < 1: Current volume is below average
An example if this would be If current volume is 1500 and average is 1000, normVol = 1.5 (50% above average)
Another component of the volume pressure analysis is the Price Change Calculation sub-module. The purpose of this is to measure price movement relative to recent average.
It works by subtracting the average price from the current price. If the value is positive, price is average and if negative, price is below average.
Finally, the volume pressure is calculated to combine volume and price for true pressure reading.
2. Savitzky-Golay Filtering
SG filtering implements advanced signal smoothing while preserving important trend features. It uses weighted moving average approximation, preserves higher moments of data and reduces noise while maintaining signal integrity.
This results in smoother signal lines, reduced false crossovers and better trend identification. Traditional moving averages tend to lag and smooth out important features. Additionally, simple moving averages can miss critical turning points and regular smoothing can delay signal generation.
SG filtering preserves higher moments such as peaks, valleys and trends, reduces noise while maintaining signal sharpness.
It works by creating a symmetric weighting scheme. This way center points get the highest weights while edge points get the lowest weight.
3. Parkinson's Volatility
Parkinson's Volatility is an advanced volatility measurement formula using high-low range data. It uses high-low range for volatility calculation, incorporates logarithmic returns and annualized the volatility measure.
This results in more accurate volatility measurement, better risk assessment and dynamic signal sensitivity.
4. Multi-timeframe Momentum
This combines signals from each module for each timeframe to calculate momentum across three timeframes. It also applies weighted importance to each timeframe and generates a composite momentum signal.
This results in a more comprehensive trend analysis, reduced timeframe bias and better trend confirmation.
> Indicator Settings
Short-term Period:
Lower values makes it more sensitive, meaning it will generate more signals. Higher values makes it less sensitive, resulting in fewer signals. We recommend a 5 to 15 range for day trading, and 10 to 20 for swing trading
Medium-term Period:
Lower values result in faster trend confirmation and higher values show slower and more reliable confirmation. We recommend a range of 15-25 for day trading and 20-30 for swing trading.
Long-term Period:
Lower values makes it more responsive to trend changes and higher values are better for major trend identification. We recommend a range of 40-60 for day trading and 50-100 for swing trading.
Volume Analysis Window:
Lower values result in more sensitivity to volume changes and higher values result in smoother volume analysis. The optimal range is 15-25 for most trading styles.
Confidence Threshold:
Lower values generate more signals but quality decreases. Higher values generate fewer signals but accuracy increases.The optimal range is 0.65-0.8 for most trading conditions.
Multi-Asset Ratio (20 vs 5) - LuchapThis indicator calculates and displays the ratio between the sum of the prices of several base assets and the sum of the prices of several quote assets. You can select up to 20 base assets and 5 quote assets, and enable or disable each asset individually to refine your analysis. This ratio allows you to quickly evaluate the relative performance of different groups of assets.
SL Hunting Detector📌 Step 1: Identify Liquidity Zones
The script plots high-liquidity zones (red) and low-liquidity zones (green).
These are areas where big players target stop-losses before reversing the price.
Example:
If price is near a red liquidity zone, expect a potential stop-loss hunt & reversal downward.
If price is near a green liquidity zone, expect a potential stop-loss hunt & reversal upward.
📌 Step 2: Watch for Stop-Loss Hunts (Fakeouts)
The indicator marks stop-loss hunts with red (bearish) or green (bullish) arrows.
When do stop-loss hunts occur?
✅ A long wick below support (with high volume) = Stop hunt before reversal upward.
✅ A long wick above resistance (with high volume) = Stop hunt before reversal downward.
Confirmation:
Volume must spike (volume > 1.5x the average volume).
ATR-based wicks must be longer than usual (showing a stop-hunt trap).
📌 Step 3: Enter a Trade After a Stop-Hunt
🔹 Bullish Trade (Buying a Dip)
If a green arrow appears (stop-hunt below support):
✅ Enter a long (buy) trade at or just above the wick’s recovery level.
✅ Stop-loss: Below the wick’s low (avoid getting hunted again).
✅ Take-profit: Next resistance level or mid-range of the liquidity zone.
🔹 Bearish Trade (Shorting a Fakeout)
If a red arrow appears (stop-hunt above resistance):
✅ Enter a short (sell) trade at or just below the wick’s rejection level.
✅ Stop-loss: Above the wick’s high (avoid getting stopped out).
✅ Take-profit: Next support level or mid-range of the liquidity zone.
📌 Step 4: Set Alerts & Automate
✅ The indicator triggers alerts when a stop-hunt is detected.
✅ You can set TradingView to notify you instantly when:
A bullish stop-hunt occurs → Look for long entry.
A bearish stop-hunt occurs → Look for short entry.
📌 Example Trade Setup
Example (BTC Long Trade on Stop-Hunt)
BTC is near $40,000 support (green liquidity zone).
A long wick drops to $39,800 with a green arrow (bullish stop-hunt signal).
Volume spikes, and price recovers quickly back above $40,000.
Trade entry: Buy at $40,050.
Stop-loss: Below wick ($39,700).
Take-profit: $41,500 (next resistance).
Result: BTC pumps, stop-loss remains safe, and trade profits.
🔥 Final Tips
Always wait for confirmation (don’t enter blindly on signals).
Use higher timeframes (15m, 1H, 4H) for better accuracy.
Combine with Order Flow tools (like Bookmap) to see real liquidity zones.
🚀 Now try it on TradingView! Let me know if you need adjustments. 📈🔥
Reversal Probability Zone & Levels [LuxAlgo]The Reversal Probability Zone & Levels tool allows traders to identify a zone starting from the last detected reversal to highlight the probability of where the next reversal would be from a price and time perspective.
Price and time levels within the zone are displayed for up to 4 percentiles defined by the user.
🔶 USAGE
By default, the tool displays a zone with the 25th, 50th, 75th and 90th percentiles on both the price and time axis, indicating where, when and how many of the past reversals have occurred.
Traders can select the length for swing detection and the maximum number of reversals for probability calculations. The tool considers both bullish and bearish reversals separately, which means that if the last reversal was a swing high, the zone would show the probabilities for the last defined Maximum reversals
The Maximum reversals value has a direct impact on the probabilities, the more data traders use the more significant the result, probabilities over 10 occurrences are far weak compared to probabilities over 1000 occurrences.
🔹 Percentiles
Traders can fine-tune the percentile parameters in the settings panel.
A given percentile means that the number of occurrences in the data set is less than or equal to the percentile.
In English, this means
Percentile 20th: 20% of the occurrences are less than or equal to this value, so 80% of the occurrences are greater than this value.
Percentile 50th: 50% of the occurrences are below and 50% are above this value.
Percentile 80th: 80% of occurrences are lower than or equal to this value, so 20% of occurrences are greater than this value.
🔹 Normalize data
The Normalize Data feature allows traders to make an apples to apples comparison when we have a lot of historical data on high timeframe charts, using returns between swings instead of raw price.
🔹 Display Style
By default, the tool has the No overlapping feature enabled to display a clean chart, traders can turn it off, but this can fill the chart with too much information and barely see the price.
Traders can enable/disable settings to show only the last zone and the swing markers on the chart.
🔶 SETTINGS
Swing Length: The maximum length in bars used to identify a swing
Maximum Reversals: Maximum number of reversals included in calculations
Normalize Data: Use returns between swings instead of raw price
Percentiles: Enable/disable each of the four percentiles and select the percentile number, line style, colors, and size
🔹 Style
No Overlapping Zones: Enable or disable the No overlap between zones feature
Show Only Last Zone: Enable/disable display of last zone only
Show Marks: Enable/disable reversal markers
SNR Quarter Pointsfor btmm swingers
this is qp /quater point find in trading view
Here's a description for your TradingView Pine Script indicator:
---
**Support & Resistance (SNR) Lines Indicator**
This TradingView indicator automatically draws Support and Resistance (SNR) lines on the chart at every 250-pip level, starting from 0.0000. The indicator aims to help traders identify key price levels where the market is likely to experience reversal or consolidation. By plotting lines at regular intervals, the script provides a clear visual representation of potential support and resistance zones, aiding traders in making more informed trading decisions. The levels are dynamically adjusted based on market price movement, ensuring they stay relevant for active trading.
---
Let me know if you’d like to tweak it further!
Global Liquidity IndexThis custom indicator provides a composite measure of global liquidity by combining key central bank balance sheet data with additional liquidity proxies. The script aggregates asset data from major economies—including the United States, Japan, China, and the Eurozone—converting non-USD values into U.S. dollars using real-time exchange rates. It then subtracts selected liability measures (such as reverse repurchase agreements and other adjustments) to approximate net central bank liquidity.
Key features include:
• Multi-Regional Coverage:
Incorporates data from the U.S. Federal Reserve, Bank of Japan, Chinese central bank proxies, and the European Central Bank, allowing you to gauge liquidity across major global markets.
• Dynamic Currency Conversion:
Uses live exchange rates (JPY/USD, CNY/USD, EUR/USD) to ensure that all regional figures are consistently expressed in U.S. dollars.
• Customizable Weighting:
Assign adjustable weights to each region’s data, so you can reflect economic size or your own view of their relative importance.
• Additional Liquidity Proxies:
Optionally integrates measures for global money supply and global credit/repo activity (or other proxies of your choice) with user-defined scaling factors.
• User-Friendly Configuration:
All key parameters—including weights and scaling factors—are available as inputs, making the indicator flexible and easy to tailor to your analysis needs.
This indicator is designed for traders and analysts seeking a broad view of global monetary conditions. Whether you’re tracking shifts in central bank policies or assessing global market liquidity, the Global Liquidity Index provides an insightful, customizable tool to help you visualize and interpret liquidity trends over time.
Pure Price Action Breakout with 1:5 RR
Description of the Price Action Trading Script (Pine Script v6)
Overview
This script is a pure price action-based breakout strategy designed for TradingView. It identifies key breakout levels and executes long and short trades based on market structure. The strategy ensures a minimum risk-to-reward ratio (RR) of 1:5, aiming for high profitability with well-defined stop-loss and take-profit levels.
How the Script Works
1️⃣ Breakout Identification
The script uses a lookback period to find the highest high and lowest low over the last n bars.
A bullish breakout occurs when the price closes above the previous highest high.
A bearish breakout happens when the price closes below the previous lowest low.
2️⃣ Entry & Exit Strategy
Long Entry: If a bullish breakout is detected, the script enters a long position.
Short Entry: If a bearish breakout is detected, the script enters a short position.
The stop-loss is placed at the recent swing low (for long trades) or recent swing high (for short trades).
The target price is calculated based on a risk-to-reward ratio of 1:5, ensuring profitable trades.
3️⃣ Risk Management
The stop-loss prevents excessive losses by exiting trades when the market moves unfavorably.
The strategy ensures that each trade has a reward potential at least 5 times the risk.
Positions are executed based on price action only, without indicators like moving averages or RSI.
4️⃣ Visual Representation
The script plots breakout levels to help traders visualize potential trade setups.
Entry points, stop-loss, and take-profit levels are labeled on the chart for easy tracking.
Key Features & Benefits
✔ Pure Price Action – No lagging indicators, only real-time price movements.
✔ High Risk-to-Reward Ratio (1:5) – Ensures high-profit potential trades.
✔ Real-time Entry & Exit Signals – Provides accurate trade setups.
✔ Dynamic Stop-loss Calculation – Adjusts based on recent market structure.
✔ Customizable Parameters – Lookback periods and risk ratios can be modified.
Emotion Line with Volume Confirmation by langshenHow to Use It?
Add the Indicator:
Copy the code into TradingView's Pine Script editor.
Save and add the indicator to your chart.
Understand the Lines:
Emotion Line (Green): Represents the current market sentiment.
MA Emotion Line (Red): A smoothed version of the Emotion Line.
Horizontal Lines:
20% (Gray): Indicates potential positive sentiment (Attention Zone).
40% (Orange): Suggests strong market sentiment (Entry Zone).
80% (Red): Signals overly optimistic sentiment (Reduce Position Zone).
Interpret the Signals:
When the Emotion Line crosses above 20%, it may indicate a positive shift in sentiment.
When the Emotion Line crosses above 40%, it suggests a strong market sentiment, which could be a potential entry point.
When the Emotion Line crosses above 80%, it may indicate an overbought market, signaling a potential reduction in positions.
When the Emotion Line crosses below the MA Emotion Line, it may indicate a weakening sentiment, signaling an exit.
Customize the Inputs:
N Period: Adjust the period for calculating the Emotion Line (default is 7).
MA Period: Adjust the period for the moving average of the Emotion Line (default is 6).
Logic Explanation
Ray Calculation:
The Ray is a smoothed price value calculated as the simple moving average (SMA) of (2 * close + high + low) / 4.
Close Line (CL):
The CL is derived from the Ray and represents the core price trend.
Directional Change (DlR1):
Measures the absolute difference between the current CL and its value two bars ago (CL ).
Volume in Range (VlR1):
Sums the absolute differences between the current CL and its previous value (CL ) over a specified period.
Efficiency Ratio (ER1):
Calculates the ratio of directional change (DlR1) to volume in range (VlR1), representing the efficiency of price movement.
Cumulative Strength (CS1):
Simplified as the efficiency ratio (ER1).
Cumulative Quotient (CQ1):
Squares the cumulative strength (CS1) to amplify its effect.
Adjusted Moving Average (AMA5):
A dynamic moving average that adjusts based on the CQ1 value, simulating a responsive trend line.
Cost (7-day SMA of AMA5):
The 7-period SMA of the AMA5.
Composite Line (CLX):
The average of AMA5 and Cost.
Emotion Line:
Calculated as the percentage of days where the CLX is higher than its previous value over the last N periods.
MA Emotion Line:
The moving average of the Emotion Line, smoothing out its fluctuations.
Key Features
Trend Identification: Helps identify shifts in market sentiment.
Customizable Periods: Adjust N and M to fit your trading style.
Visual Cues: Horizontal lines provide clear levels for attention, entry, and reduce position signals.
Best Practices
Use this indicator in conjunction with other tools (e.g., RSI, MACD) for confirmation.
Adjust the N and M periods based on your trading timeframe (e.g., shorter periods for scalping, longer periods for swing trading).
Combine the indicator with volume analysis to confirm signals.
This indicator is designed to be simple yet powerful, providing clear insights into market sentiment while adhering to TradingView's coding standards.
Blackflag FTS (1H Trailing) + MSB-OB FibThis indicator combines a 1-hour trailing stop system with multi-timeframe Fibonacci retracement levels and ZigZag structure detection to assist traders in identifying trend direction and potential reversal zones.
Features:
✅ 1-Hour Trailing Stop: Uses an ATR-based trailing stop mechanism to track trend direction and dynamic support/resistance.
✅ Multi-Timeframe Approach: The trailing stop is calculated on the 1-hour timeframe, while the ZigZag and Fibonacci retracement levels are based on the 15-minute chart.
✅ ZigZag Structure Detection: Helps filter market swings and trend reversals dynamically.
✅ Fibonacci Levels (0.5 & 0.786): Key retracement levels to watch for price reactions.
✅ Alerts for Key Levels: Get notified when the price crosses important levels (1H trailing stop, Fib 0.5, Fib 0.786).
How It Works:
The trailing stop adapts dynamically based on ATR values and determines trend direction.
ZigZag detection filters out minor price movements to highlight major swing points.
Fibonacci levels are calculated based on ZigZag swings, helping traders spot potential reversal zones.
This tool is useful for trend-following traders, breakout traders, and Fibonacci-based strategies.
Let me know if you'd like any modifications! 🚀
Opening Range, Initial Balance, Opening Price, Pre-market Levels### Description of the Indicator: **Opening Range, Initial Balance, Opening Price, Pre-market Levels**
This custom TradingView indicator provides a comprehensive view of key price levels for intraday trading, specifically designed to track important levels from the Opening Range (OR), Initial Balance (IB), Opening Price (OP), and Pre-market session (PM). These levels are essential for traders to gauge potential market movements and identify critical areas of support and resistance.
#### **Features:**
1. **Opening Range (OR):**
- This is the high and low of the first 30 minutes of the regular market session (09:30 - 10:00 EST).
- The OR high and low act as significant levels that may influence price movement for the rest of the day.
- The mid-level of the Opening Range (OR Mid) is also plotted to give a more detailed view of potential price action.
2. **Initial Balance (IB):**
- The Initial Balance is the range created during the first hour of market activity (09:30 - 10:30 EST).
- This range often sets the tone for the market's direction. The IB high and low, along with the IB midline, are plotted for quick reference.
3. **Opening Price (OP):**
- The opening price of the market is marked as a circle and labeled "OP."
- This level provides context for market sentiment when compared to the high and low levels.
4. **Pre-market Levels (PM):**
- The pre-market session (04:00 - 09:30 EST) has its own important levels that are calculated for the high, low, and mid range (PM High, PM Low, and PM Mid).
- These levels are plotted and are useful for traders to understand where the market stood before the regular session opened.
#### **Customization Options:**
- **Exchange Timezone:** You can choose whether to display the times in the exchange's local timezone or in your own preferred timezone.
- **Mid Levels Display:** You can toggle whether the mid levels for each range (OR, IB, PM) should be shown on the chart.
- **Level Color Change:** The colors of the plotted levels (high, low, mid) change based on whether the price is above or below the respective level, making it easy to visualize potential support and resistance.
- **Label Positions:** The position of the labels (OR, IB, OP, PM) on the chart can be customized to avoid overlap with other data points.
#### **Key Use Cases:**
- **Intraday Trend Analysis:** Use the OR and IB to identify key levels for the day, providing insights into the possible trend or range for the day.
- **Pre-market Insights:** The PM levels are crucial for understanding where the market stood during the pre-market hours and can be used as reference points during the regular session.
- **Potential Support and Resistance:** The high and low levels of the OR, IB, and PM sessions can act as potential support or resistance, which are useful for setting stop-loss and take-profit levels.
#### **How to Use:**
- Pay attention to the levels provided for OR, IB, and PM as potential entry and exit points.
- Watch for breakouts or reversals around these levels, especially when combined with other technical indicators or price action patterns.
- The mid levels offer an additional reference to assess price direction or identify possible areas of consolidation.
This indicator is perfect for day traders who rely on key intraday levels and pre-market activity to make informed trading decisions. It helps to streamline the process of identifying potential breakouts, reversals, and ranges in the market.
Momentum Edge Strategy - 1D BTC OptimizedMomentum Edge Strategy - 1D BTC Optimized
Description
The Momentum Edge Strategy - 1D BTC Optimized is a trend-following and momentum-based trading strategy specifically designed and optimized for Bitcoin (BTC) on the Daily (1D) timeframe. This strategy leverages a confluence of proven technical indicators, including the Ichimoku Cloud, MACD Histogram, and Bollinger Band Width, to identify high-probability trading opportunities in trending markets.
By incorporating multi-timeframe analysis (Weekly trend confirmation) and adaptive risk management using ATR-based stop-loss levels, this strategy ensures robust performance with minimal drawdowns. It is ideal for swing traders looking to capture significant price movements while maintaining strong capital preservation.
Key Features
Trend Detection with Ichimoku Cloud:
Determines whether the market is trending bullish or bearish by analyzing price action relative to the Ichimoku Cloud.
Momentum Confirmation with MACD Histogram:
Confirms trade entries by analyzing bullish or bearish momentum using the MACD histogram.
Volatility Filtering with Bollinger Band Width:
Ensures trades are only executed in sufficiently volatile markets, reducing false signals in low-volatility conditions.
Multi-Timeframe Trend Confirmation:
Aligns entries on the Daily (1D) chart with the broader Weekly (1W) trend for enhanced signal reliability.
Dynamic Risk Management:
Uses ATR-based stop-loss levels that adapt to market volatility, ensuring tight risk control while allowing trades to breathe.
Strong Backtesting Results:
Optimized for Bitcoin on the Daily timeframe, achieving:
Net Profit: +10.80%.
Profit Factor: 2.593.
Percent Profitable: 50.70%.
Max Drawdown: -1.47%.
How It Works
Long Entry Conditions:
Price is above the Ichimoku Cloud.
MACD histogram is greater than -0.05.
Weekly trend confirmation (price above 50-period SMA on Weekly chart).
Bollinger Band Width exceeds the threshold (> 0.02).
Short Entry Conditions:
Price is below the Ichimoku Cloud.
MACD histogram is less than 0.
Weekly trend confirmation indicates bearish conditions (price below 50-period SMA on Weekly chart).
Bollinger Band Width exceeds the threshold (> 0.02).
Stop-Loss Logic:
Stop-loss levels are dynamically adjusted based on ATR and Bollinger Band Width:
In low-volatility conditions, stop-loss is set at recent highs/lows.
In high-volatility conditions, stop-loss is set using ATR multipliers.
Recommended Timeframe and Asset
Optimized for Bitcoin (BTC) on the Daily (1D) timeframe.
While designed for BTC, it may also perform well on other cryptocurrencies with similar trend-driven characteristics after proper backtesting and optimization.
Disclaimers
Not Financial Advice:
This script is provided for educational purposes only and should not be considered financial or investment advice. Always consult a qualified financial advisor before making trading decisions.
Use at Your Own Risk:
Trading involves significant risk, including the potential loss of all invested capital. Past performance is not indicative of future results.
Backtesting Limitations:
Backtesting results are based on historical data and do not account for slippage, spreads, or execution delays in live trading environments.
Timeframe-Specific Optimization:
This strategy has been specifically optimized for Bitcoin on the Daily timeframe. Performance may vary significantly on other assets or timeframes.
User Responsibility:
Users are encouraged to backtest and optimize this strategy for their specific use case before deploying it in live trading.
Users can adjust key parameters such as:
1. ATR Length (`atrLength`) and Multiplier (`atrMultiplier`) to fine-tune risk management.
2. Bollinger Band Width Threshold (`bbWidthThreshold`) to adapt volatility filtering to different assets or market conditions.
Final Thoughts
The Momentum Edge Strategy - 1D BTC Optimized has demonstrated elite-level performance metrics during backtesting on Bitcoin on the 1D timeframe. But backtesting doesn't tell the future, so study how it works, use at your own risk and enjoyment, and let me know any recommendations.
Refined Ichimoku with MACD and RSI Strategy - HTF OptimizedIndicator Summary: Refined Ichimoku with MACD and RSI Strategy
Philosophy and Approach
The "Refined Ichimoku with MACD and RSI Strategy" is designed as a hybrid trend-following and range-bound trading strategy. It leverages the Ichimoku Cloud for market regime detection, MACD for momentum confirmation, RSI for overbought/oversold conditions, and ATR for dynamic stop-loss placement. The strategy seeks to capture trends in trending markets while also identifying reversal opportunities in range-bound conditions.
Core Philosophy:
Use the Ichimoku Cloud as the foundation for detecting trending vs. range-bound markets.
Combine multiple indicators (MACD, RSI, Stochastic RSI) to improve signal quality and reduce false entries.
Implement robust risk management using ATR-based stop-loss levels.
Approach:
Trending Markets: Enter long trades when price is above the Ichimoku Cloud with bullish momentum (e.g., RSI > 55, MACD histogram > 0). Enter short trades when price is below the cloud with bearish momentum.
Range-Bound Markets: Enter mean-reversion trades at overbought/oversold levels (e.g., RSI < 30 or > 70, Stochastic RSI extremes).
Strengths
Robust Market Regime Detection:
The Ichimoku Cloud effectively distinguishes between trending and range-bound markets, allowing the strategy to adapt dynamically.
Confluence of Indicators:
The use of MACD, RSI, and Stochastic RSI ensures that trades are only taken when multiple conditions align, reducing false signals.
Dynamic Risk Management:
ATR-based stop-loss levels adapt to market volatility, minimizing drawdowns while allowing trades to breathe.
Visualization:
Highlights trending markets (green background) and range-bound markets (red background) for easy interpretation.
Plots the Ichimoku Cloud for visual confirmation of market structure.
Performance on Higher Timeframes:
Backtesting results show strong performance on daily (D1) charts, with a profit factor of 2.159 and a net profit of +10.71% over the testing period.
Weaknesses
Low Percent Profitable:
Across all timeframes, the percent profitable is below 40%, indicating that many trades are unprofitable.
This suggests that the entry/exit logic may need further refinement.
Overtrading on Lower Timeframes:
On H4 charts, the strategy executed 430 trades with a profit factor of only 1.219, indicating overtrading and reduced efficiency.
Missed Opportunities in Range-Bound Markets:
While designed to trade reversals in range-bound conditions, the strategy's filters may be too restrictive, leading to missed opportunities.
Complexity:
The combination of multiple indicators (Ichimoku Cloud, MACD, RSI, Stochastic RSI) increases complexity, which may make it harder for users to understand or optimize.
Recommended Timeframes
Daily (D1):
Best performance observed during backtesting.
Strong profit factor (2.159) and manageable drawdowns (-2.10%) make it ideal for swing traders looking to capture long-term trends.
4-Hour (H4):
Marginal profitability observed during backtesting (profit factor of 1.219).
Suitable for traders willing to refine filters to reduce overtrading and improve signal quality.
Avoid Lower Timeframes (e.g., M15):
High noise levels lead to frequent false signals and poor profitability.
Performance Metrics from Backtesting (BTCUSDT)
Timeframe Net Profit Profit Factor Total Trades Percent Profitable Max Drawdown
Daily (D1) +10.71% 2.159 58 37.93% 2.10%
4-Hour (H4) +6.16% 1.219 430 32.56% 2.47%
Final Thoughts
The "Refined Ichimoku with MACD and RSI Strategy" is a versatile tool for traders who prefer higher timeframes like D1 or H4 charts. While it excels in capturing long-term trends with robust risk management, it struggles with low percent profitable rates and overtrading on lower timeframes. By focusing on simplicity and refining entry/exit logic, this strategy has the potential to deliver consistent results for swing traders seeking a balance between trend-following and mean-reversion approaches. By making the code open, it is hoped that experts might be able to adjust the variables within the script to their liking while still benefiting from the overall approach and philosophy of the strategy.
Regarding the three Strategy Indicator Settings:
1. Conversion Line Length (Default: 9)
What It Does:
The Conversion Line (Tenkan-sen) is a short-term moving average that represents the midpoint of the highest high and lowest low over the specified period (default: 9).
It acts as a fast-moving signal line, similar to a short-term moving average.
Recommendations:
Default Setting (9): Works well for most timeframes, especially higher timeframes like Daily (D1) or Weekly, as it captures short-term momentum effectively.
Shorter Timeframes (M15, H1): Consider reducing this value to 6 or 7 to make the Conversion Line more responsive to rapid price changes.
Higher Timeframes (D1, Weekly): Stick with the default value of 9 to avoid excessive noise.
When to Adjust:
Decrease if you want faster signals for scalping or intraday trading.
Increase slightly (e.g., to 10 or 12) if you want smoother signals for swing trading.
2. Base Line Length (Default: 26)
What It Does:
The Base Line (Kijun-sen) is a medium-term moving average that represents the midpoint of the highest high and lowest low over the specified period (default: 26).
It serves as a key support/resistance level and a trend confirmation signal when crossed by the Conversion Line.
Recommendations:
Default Setting (26): Standard for most markets and timeframes. It balances responsiveness with stability.
Shorter Timeframes: Reduce to 20–22 for faster signals in volatile markets.
Higher Timeframes: Stick with the default value of 26 or increase slightly to 30 for smoother trend confirmation.
When to Adjust:
Decrease for quicker trend signals in fast-moving markets.
Increase for long-term trading strategies where you want stronger support/resistance levels.
3. Lagging Span Length (Default: 52)
What It Does:
The Lagging Span (Chikou Span) plots the current closing price shifted backward by the specified number of periods (default: 52).
It helps confirm trends by comparing current price action to past price levels.
Recommendations:
Default Setting (52): Works well across most timeframes, as it aligns with traditional Ichimoku settings designed for long-term trends.
Shorter Timeframes: Reduce slightly to around 40–45 if you want quicker trend confirmations in intraday trading.
Higher Timeframes: Keep at the default value of 52, as it provides reliable confirmation of long-term trends.
When to Adjust:
Decrease for faster confirmation in high-volatility environments.
Increase only if you are focusing on very long-term trends, such as on Monthly charts.
General Disclaimer
Not Financial Advice:
This script is provided for educational and informational purposes only. It should not be considered financial or investment advice. Always consult with a qualified financial advisor before making trading decisions.
Use at Your Own Risk:
Trading involves significant risk, and past performance is not indicative of future results. Users are solely responsible for any losses incurred while using this strategy.
No Guarantee of Profitability:
While this strategy has been backtested on historical data, there is no guarantee that it will perform similarly in live market conditions due to differences in market behavior, slippage, and latency.
Technical Disclaimer
Indicator Limitations:
This strategy relies on technical indicators such as the Ichimoku Cloud, MACD, RSI, and ATR. These indicators are lagging or reactive by nature and may not accurately predict future price movements.
Timeframe-Specific Performance:
This strategy has shown better performance on higher timeframes (e.g., Daily). It may not perform well on lower timeframes (e.g., M15) due to increased market noise.
Customization Required:
The default settings (e.g., Conversion Line Length = 9, Base Line Length = 26, Lagging Span Length = 52) are optimized for general use but may require adjustment based on the user's trading style, asset class, or timeframe.
Market Risks Disclaimer
Market Conditions Matter:
The effectiveness of this strategy depends heavily on market conditions. It performs best in trending markets and may struggle in highly volatile or range-bound environments without adjustments.
Slippage and Execution Risks:
Backtesting results do not account for slippage, spreads, or order execution delays that occur in live trading environments.
No Adaptation to News Events:
This strategy does not incorporate fundamental analysis or news events that can significantly impact price movements.
User Responsibility Disclaimer
Backtesting and Optimization:
Users are encouraged to backtest and optimize the strategy on their chosen assets and timeframes before deploying it in live trading.
Monitor Regularly:
This strategy is not a "set-and-forget" tool. Users should monitor trades regularly and adjust settings as needed to adapt to changing market conditions.
Risk Management Required:
Proper risk management practices (e.g., position sizing, stop-loss placement) are crucial when using this strategy to minimize potential losses.
Money Flow Index MTF + Alerts with Candle Opacity & LabelsHow to Use the Money Flow Index MTF + Alerts with Candle Opacity & Labels Indicator
Overview:
This indicator is designed to help you gauge the buying and selling pressure in a market by using the Money Flow Index (MFI). Unlike many momentum oscillators, the MFI incorporates both price and volume, providing a unique perspective on market activity. It is particularly useful when you want to visually assess potential overbought or oversold conditions.
Indicator Components:
Money Flow Index (MFI) Calculation:
The indicator computes the MFI using a user-defined look-back period (default is 14 bars). The MFI is scaled between 0 and 100, where values above 80 typically indicate overbought conditions and values below 20 suggest oversold conditions.
Multi-Timeframe (MTF) Capability:
You can choose to calculate the MFI using either the current chart’s timeframe or a custom timeframe (for example, a 4-hour chart). This flexibility allows you to compare longer-term money flow trends against your primary trading timeframe.
Candle Opacity Based on MFI:
The opacity of the candles on your chart is dynamically adjusted based on the current MFI reading. When the MFI is high (near 100), candles become more opaque; when the MFI is low (near 0), candles appear more transparent. This visual cue can help you quickly spot changes in market momentum.
Visual Labels for Overbought/Oversold Conditions:
When the MFI crosses into the overbought territory, a red label reading “Overbought” is displayed above the high of the bar. Similarly, when it crosses into the oversold territory, a green label reading “Oversold” is placed below the low of the bar. These labels provide an immediate visual alert to potential reversal points or areas of caution.
Alert Conditions:
The script also includes alert conditions for both overbought and oversold signals. You can set up TradingView alerts so that you are notified in real time when the indicator detects these conditions.
Theory Behind the Money Flow Index (MFI):
The Money Flow Index is a momentum oscillator that uses both price and volume to signal the strength behind price moves.
Overbought Conditions: When the MFI is above 80, it suggests that buying pressure is very strong and the asset might be due for a pullback or consolidation.
Oversold Conditions: Conversely, when the MFI falls below 20, selling pressure is high and the asset might be oversold, potentially priming it for a bounce.
Keep in mind that in strong trending markets, overbought or oversold readings can persist for extended periods, so the MFI should be used in conjunction with other technical analysis tools.
Position Management Guidance:
While the indicator is useful for spotting potential overbought and oversold conditions, it is not designed to serve as an automatic signal to completely close a position. Instead, you might consider using it as a guide for pyramiding—gradually adding to your position over several days rather than exiting all at once. This approach allows you to better manage risk by:
Scaling In or Out Gradually: Instead of making one large position change, you can add or reduce your position in increments as market conditions evolve.
Diversifying Risk: Pyramiding helps you avoid the pitfalls of trying to time the market perfectly on a single trade exit or entry.
How to Get Started:
Apply the Indicator:
Add the indicator to your TradingView chart. Adjust the input settings (length, oversold/overbought levels, and resolution) as needed for your trading style and the market you’re analyzing.
Watch the Candles:
Observe the dynamic opacity of your candles. A sudden change in opacity can be a sign that the underlying money flow is shifting.
Monitor the Labels:
Pay attention to the “Overbought” or “Oversold” labels that appear. Use these cues in combination with your broader analysis to decide if it might be a good time to add to or gradually exit your position.
Set Up Alerts:
Configure TradingView alerts based on the indicator’s alert conditions so that you are notified when the MFI reaches extreme levels.
Use as Part of a Broader Strategy:
Remember, no single indicator should dictate your entire trading decision. Combine MFI signals with other technical analysis, risk management rules, and market insights to guide your trades.
Master Litecoin Dominance Network Value ModelUse this indicator on the LTC.D (Litecoin daily) chart to get a comprehensive view of Litecoin's network value relative to Bitcoin. It analyzes on-chain metrics and market data to help assess Litecoin's intrinsic worth and market trends.
Price Action Trend and Margin EquityThe Price Action Trend and Margin Equity indicator is a multifunctional market analysis tool that combines elements of money management and price pattern analysis. The indicator helps traders identify key price action patterns and determine optimal entry, exit and stop loss levels based on the current trend.
The main components of the indicator:
Money Management:
Allows the trader to set risk management parameters such as the percentage of possible loss on the position, the use of fixed leverage and the total capital.
Calculates the required leverage level to achieve a specified percentage of loss.
Price Action:
Correctly identifies various price patterns such as Pin Bar, Engulfing Bar, PPR Bar and Inside Bar.
Displays these patterns on the chart with the ability to customize candle colors and display styles.
Allows the trader to customize take profit and stop loss points to display them on the chart.
The ability to display patterns only in the direction of the trend.
Trend: (some code taken from ChartPrime)
Uses a trend cloud to visualize the current market direction.
The trend cloud is displayed on the chart and helps traders determine whether the market is in an uptrend or a downtrend.
Alert:
Allows you to set an alert that will be triggered when the pattern is formed.
Example of use:
Let's say a trader uses the indicator to trade the crypto market. He sets the money management parameters, setting the maximum loss per position to 5% and using a fixed leverage of 1:100. The indicator automatically calculates the required position size to meet these parameters ($: on the label). Or displays the leverage (X: on the label) to achieve the required risk.
The trader receives an alert when a Pin Bar is formed. The indicator displays the entry, exit, and stop loss levels based on this pattern. The trader opens a position for the recommended amount in the direction indicated by the indicator and sets the stop loss and take profit at the recommended levels.
General Settings:
Position Loss Percentage: Sets the maximum loss percentage you are willing to take on a single position.
Use Fixed Leverage: Enables or disables the use of fixed leverage.
Fixed Leverage: Sets the fixed leverage level.
Total Equity: Specifies the total equity you are using for trading. (Required for calculation when using fixed leverage)
Turn Patterns On/Off: You can turn on or off the display of various price patterns such as Pin Bar, Outside Bar (Engulfing), Inside Bar, and PPR Bar.
Pattern Colors: Sets the colors for displaying each pattern on the chart.
Candle Color: Allows you to set a neutral color for candles that do not match the price action.
Show Lines: Allows you to turn on or off the display of labels and lines.
Line Length: Sets the length of the stop, entry, and take profit lines.
Label color: One color for all labels (configured below) or the color of the labels in the color of the candle pattern.
Pin entry: Select the entry point for the pin bar: candle head, bar close, or 50% of the candle.
Coefficients for stop and take lines.
Use trend for price action: When enabled, will show price action signals only in the direction of the trend.
Display trend cloud: Enables or disables the display of the trend cloud.
Cloud calculation period: Sets the period for which the maximum and minimum values for the cloud are calculated. The longer the period, the smoother the cloud will be.
Cloud colors: Sets the colors for uptrends and downtrends, as well as the transparency of the cloud.
The logic of the indicator:
Pin Bar is a candle with a long upper or lower shadow and a short body.
Logic: If the length of one shadow is twice the body and the opposite shadow of the candle, it is considered a Pin Bar.
An Inside Bar is a candle that is completely engulfed by the previous candle.
Logic: If the high and low of the current candle are inside the previous candle, it is an Inside Bar.
An Outside Bar or Engulfing is a candle that completely engulfs the previous candle.
Logic: If the high and low of the current candle are outside the previous candle and close outside the previous candle, it is an Outside Bar.
A PPR Bar is a candle that closes above or below the previous candle.
Logic: If the current candle closes above the high of the previous candle or below its low, it is a PPR Bar.
Stop Loss Levels: Calculated based on the specified ratios. If set to 1.0, it shows the correct stop for the pattern by pushing away from the entry point.
Take Profit Levels: Calculated based on the specified ratios.
Create a Label: The label is created at the stop loss level and contains information about the potential leverage and loss.
The formula for calculating the $ value is:
=(Total Capital x (Maximum Loss Percentage on Position/100)) / (Difference between Entry Level and Stop Loss Level × Ratio that sets the stop loss level relative to the length of the candlestick shadow × Fixed Leverage Value) .
Labels contain the following information:
The percentage of price change from the recommended entry point to the stop loss level.
Required Leverage (X: ): The amount of leverage required to achieve the specified loss percentage. (Or a fixed value if selected).
Required Capital ($: ): The amount of capital required to open a position with the specified leverage and loss percentage (only displayed when using fixed leverage).
The trend cloud identifies the maximum and minimum price values for the specified period.
The cloud value is set depending on whether the current price is equal to the high or low values.
If the current closing price is equal to the high value, the cloud is set at the low value, and vice versa.
RU
Индикатор "Price Action Trend and Margin Equity" представляет собой многофункциональный инструмент для анализа рынка, объединяющий в себе элементы управления капиталом и анализа ценовых паттернов. Индикатор помогает трейдерам идентифицировать ключевые прайс экшн паттерны и определять оптимальные уровни входа, выхода и стоп-лосс на основе текущего тренда.
Основные компоненты индикатора:
Управление капиталом:
Позволяет трейдеру задавать параметры управления рисками, такие как процент возможного убытка по позиции, использование фиксированного плеча и общий капитал.
Рассчитывает необходимый уровень плеча для достижения заданного процента убытка.
Price Action:
Правильно идентифицирует различные ценовые паттерны, такие как Pin Bar, Поглащение Бар, PPR Bar и Внутренний Бар.
Отображает эти паттерны на графике с возможностью настройки цветов свечей и стилей отображения.
Позволяет трейдеру настраивать точки тейк профита и стоп лосса для отображения их на графике.
Возможность отображения паттернов только в натправлении тренда.
Trend: (часть кода взята у ChartPrime)
Использует облако тренда для визуализации текущего направления рынка.
Облако тренда отображается на графике и помогает трейдерам определить, находится ли рынок в восходящем или нисходящем тренде.
Оповещение:
Дает возможность установить оповещение которое будет срабатывать при формировании паттерна.
Пример применения:
Предположим, трейдер использует индикатор для торговли на крипто рынке. Он настраивает параметры управления капиталом, устанавливая максимальный убыток по позиции в 5% и используя фиксированное плечо 1:100. Индикатор автоматически рассчитывает необходимый объем позиции для соблюдения этих параметров ($: на лейбле). Или отображает плечо (Х: на лейбле) для достижения необходимого риска.
Трейдер получает оповещение о формировании Pin Bar. Индикатор отображает уровни входа, выхода и стоп-лосс, основанные на этом паттерне. Трейдер открывает позицию на рекомендуемую сумму в направлении, указанном индикатором, и устанавливает стоп-лосс и тейк-профит на рекомендованных уровнях.
Общие настройки:
Процент убытка по позиции: Устанавливает максимальный процент убытка, который вы готовы понести по одной позиции.
Использовать фиксированное плечо: Включает или отключает использование фиксированного плеча.
Уровень фиксированного плеча: Задает уровень фиксированного плеча.
Общий капитал: Указывает общий капитал, который вы используете для торговли. (Необходим для расчета при использовании фиксированного плеча)
Включение/отключение паттернов: Вы можете включить или отключить отображение различных ценовых паттернов, таких как Pin Bar, Outside Bar (Поглощение), Inside Bar и PPR Bar.
Цвета паттернов: Задает цвета для отображения каждого паттерна на графике.
Цвет свечей: Позволяет задать нейтральный цвет для свечей неподходящих под прйс экшн.
Показывать линии: Позволяет включить или отключить отображение лейблов и линий.
Длинна линий: Настройка длинны линий стопа, линии входа и тейк профита.
Цвет лейбла: Один цвет для всех лейблов (настраивается ниже) или цвет лейблов в цвет паттерна свечи.
Вход в пин: Выбор точки входа для пин бара: голова свечи, точка закрытия бара или 50% свечи.
Коэффиценты для стоп и тейк линий.
Использовать тренд для прайс экшна: При включении будет показывать прайс экшн сигналы только в направлении тренда.
Отображение облака тренда: Включает или отключает отображение облака тренда.
Период расчета облака: Устанавливает период, за который рассчитываются максимальные и минимальные значения для облака. Чем больше период, тем более сглаженным будет облако.
Цвета облака: Задает цвета для восходящего и нисходящего трендов, а также прозрачность облака.
Логика работы индикатора:
Pin Bar — это свеча с длинной верхней или нижней тенью и коротким телом.
Логика: Если длина одной тени вдвое больше тела и противоположной тени свечи, считается, что это Pin Bar.
Inside Bar — это свеча, полностью поглощенная предыдущей свечой.
Логика: Если максимум и минимум текущей свечи находятся внутри предыдущей свечи, это Inside Bar.
Outside Bar или Поглощение — это свеча, которая полностью поглощает предыдущую свечу.
Логика: Если максимум и минимум текущей свечи выходят за пределы предыдущей свечи и закрывается за пределами предыдущей свечи, это Outside Bar.
PPR Bar — это свеча, которая закрывается выше или ниже предыдущей свечи.
Логика: Если текущая свеча закрывается выше максимума предыдущей свечи или ниже ее минимума, это PPR Bar.
Уровни стоп-лосс: Рассчитываются на основе заданных коэффициентов. При значении 1.0 показывает правильный стоп для паттерна отталкиваясь от точки входа.
Уровки тейк-профита: Рассчитываются на основе заданных коэффициентов.
Создание метки: Метка создается на уровне стоп-лосс и содержит информацию о потенциальном плече и убытке.
Формула для вычисления значения $:
=(Общий капитал x (Максимальный процент убытка по позиции/100)) / (Разница между уровнем входа и уровнем стоп-лосс × Коэффициент, задающий уровень стоп-лосс относительно длины тени свечи × Значение фиксированного плеча).
Метки содержат следующую информацию:
Процент изменения цены от рекомендованной точки входа до уровня стоп-лосс.
Необходимое плечо (Х: ): Уровень плеча, необходимый для достижения заданного процента убытка. (Или фиксированное значение если оно выбрано).
Необходимый капитал ($: ): Сумма капитала, необходимая для открытия позиции с заданным плечом и процентом убытка (отображается только при использовании фиксированного плеча).
Облако тренда определяет максимальные и минимальные значения цены за указанный период.
Значение облака устанавливается в зависимости от того, совпадает ли текущая цена с максимальными или минимальными значениями.
Если текущая цена закрытия равна максимальному значению, облако устанавливается на уровне минимального значения, и наоборот.
EMA/SMA Ribbon Pro (AUTO HTF + Labels)This indicator is a multi-timeframe (MTF) moving average ribbon that dynamically adjusts to the next highest timeframe. It provides a visual representation of market trends by stacking multiple EMAs and SMAs with customizable color fills and labels.
Features
✅ Multi-Timeframe (MTF) Support: Automatically detects the next highest time frame or allows for manual selection
✅ Customizable Moving Averages: Supports EMA and SMA with different lengths for flexible configuration
✅ Ribbon Visualization: Smooth color transitions between different moving averages for better trend identification
✅ Crossover Labels: Detects bullish and bearish EMA/SMA crossovers and marks them on the chart
✅ Price Labels & Timeframe Display: Displays moving average values to the right of the price axis with customizable label padding and colors
How It Works
Select the HTF mode: Manual or automatic
Choose EMA/SMA lengths to create different ribbons
Enable/disable price labels for each moving average
Customize colors and transparency for ribbons and labels
Crossover labels appear when faster moving averages cross slower ones and vice versa
Use Cases
📌 Trend Identification: Identify bullish and bearish trends using multiple EMAs and SMAs
📌 Support & Resistance Zones: MAs can act as dynamic support and resistance levels
📌 Reversal & Confirmation Signals: Watch for MTF crossovers to confirm trend changes
Customization
🔹 Standard EMA Lengths: 6, 8, 13, 21, 34, 48, 100, 200, 300, 400
🔹 SMA Lengths: 48, 100, 200
🔹 Color Adjustments: Set custom colors for bullish/bearish ribbons
🔹 Crossovers: Enable/disable custom crossover pairs (e.g., 100/200 EMA, 200 EMA/SMA).
This indicator is perfect for traders who rely on multi-timeframe confluence while seeking to enhance their market analysis and decision-making process.
As always, by combining EMA/SMA Ribbon with other tools, traders ensure that they are not relying on a single indicator. This layered approach can reduce the likelihood of false signals and improve overall trading accuracy.
As always, be sure to use any indicator with price action and volume indicators for better trade confirmation!
Enhanced Momentum Divergence Radar+ [Alpha Extract]Enhanced Momentum Divergence Radar+
The AE's Enhanced Momentum Divergence Radar+ is designed to detect momentum shifts and divergence patterns, helping traders identify potential trend reversals and continuation points. By normalizing momentum readings and applying divergence detection, it enhances market timing for entries and exits.
🔶 CALCULATION
The indicator calculates normalized momentum using a combination of Detrended Price Oscillator (DPO) and volatility-adjusted smoothing techniques. It highlights overbought and oversold conditions while identifying bullish and bearish divergences.
Core Calculation:
ATR-based volatility adjustment ensures dynamic sensitivity.
DPO is derived from the price minus a simple moving average (SMA) to isolate cyclical movements.
Momentum score is normalized using historical max values for consistent scaling.
Thresholds are dynamically adjusted based on average absolute momentum.
dpo = close - ma
sd = (dpo / volatility) * 100
normalizedSD = sd / maxAbsSD
The momentum score is plotted as a histogram, where:
Green bars indicate strong upward momentum.
Red bars indicate strong downward momentum.
Neutral values fade into gray.
🔶 DETAILS
📊 Visual Features:
Histogram bars dynamically color-coded based on momentum strength.
Threshold bands provide reference points for overbought and oversold levels.
Divergence markers (Bullish/Bearish & Hidden Bullish/Bearish) highlight key reversal signals.
🛠 How Divergences Work:
Bullish Divergence (𝓞𝓢): Price makes a lower low while momentum makes a higher low.
Bearish Divergence (𝓞𝓑): Price makes a higher high while momentum makes a lower high.
Hidden Divergences confirm trend continuations rather than reversals.
📌 Example of Divergence Logic:
bullishDiv = (low == priceLow) and (sd > momentumLow)
bearishDiv = (high == priceHigh) and (sd < momentumHigh)
🔶 EXAMPLES
📍 The chart below illustrates price reacting to momentum divergences, identifying potential tops and bottoms before major price moves.
📌 Example snapshots:
A bullish divergence leading to a reversal in price.
A bearish divergence marking the beginning of a downtrend.
🔶 SETTINGS
🔹 Customization Options:
Lookback Period: Adjusts sensitivity to market cycles.
Smoothing Period: Controls signal clarity.
Color Options: Enables bar coloring based on momentum strength.
Divergence Sensitivity: Choose to display hidden divergences.
Fibonacci Cycle Finder🟩 Fibonacci Cycle Finder is an indicator designed to explore Fibonacci-based waves and cycles through visualization and experimentation, introducing a trigonometric approach to market structure analysis. Unlike traditional Fibonacci tools that rely on static horizontal levels, this indicator incorporates the dynamic nature of market cycles, using adjustable wavelength, phase, and amplitude settings to visualize the rhythm of price movements. By applying a sine function, it provides a structured way to examine Fibonacci relationships in a non-linear context.
Fibonacci Cycle Finder unifies Fibonacci principles with a wave-based method by employing adjustable parameters to align each wave with real-time price action. By default, the wave begins with minimal curvature, preserving the structural familiarity of horizontal Fibonacci retracements. By adjusting the input parameters, the wave can subtly transition from a horizontal line to a more pronounced cycle,visualizing cyclical structures within price movement. This projective structure extends potential cyclical outlines on the chart, opening deeper exploration of how Fibonacci relationships may emerge over time.
Fibonacci Cycle Finder further underscores a non-linear representation of price by illustrating how wave-based logic can uncover shifts that are missed by static retracement tools. Rather than imposing immediate oscillatory behavior, the indicator encourages a progressive approach, where the parameters may be incrementally modified to align wave structures with observed price action. This refinement process deepens the exploration of Fibonacci relationships, offering a systematic way to experiment with non-linear price dynamics. In doing so, it revisits fundamental Fibonacci concepts, demonstrating their broader adaptability beyond fixed horizontal retracements.
🌀 THEORY & CONCEPT 🌀
What if Fibonacci relationships could be visualized as dynamic waves rather than confined to fixed horizontal levels? Fibonacci Cycle Finder introduces a trigonometric approach to market structure analysis, offering a different perspective on Fibonacci-based cycles. This tool provides a way to visualize market fluctuations through cyclical wave motion, opening the door to further exploration of Fibonacci’s role in non-linear price behavior.
Traditional Fibonacci tools, such as retracements and extensions, have long been used to identify potential support and resistance levels. While valuable for analyzing price trends, these tools assume linear price movement and rely on static horizontal levels. However, market fluctuations often exhibit cyclical tendencies , where price follows natural wave-like structures rather than strictly adhering to fixed retracement points. Although Fibonacci-based tools such as arcs, fans, and time zones attempt to address these patterns, they primarily apply geometric projections. The Fibonacci Cycle Finder takes a different approach by mapping Fibonacci ratios along structured wave cycles, aligning these relationships with the natural curvature of market movement rather than forcing them onto rigid price levels.
Rather than replacing traditional Fibonacci methods, the Fibonacci Cycle Finder supplements existing Fibonacci theory by introducing an exploratory approach to price structure analysis. It encourages traders to experiment with how Fibonacci ratios interact with cyclical price structures, offering an additional layer of insight beyond static retracements and extensions. This approach allows Fibonacci levels to be examined beyond their traditional static form, providing deeper insights into market fluctuations.
📊 FIBONACCI WAVE IMPLEMENTATION 📊
The Fibonacci Cycle Finder uses two user-defined swing points, A and B, as the foundation for projecting these Fibonacci waves. It first establishes standard horizontal levels that correspond to traditional Fibonacci retracements, ensuring a baseline reference before wave adjustments are applied. By default, the wave is intentionally subtle— Wavelength is set to 1 , Amplitude is set to 1 , and Phase is set to 0 . In other words, the wave starts as “stretched out.” This allows a slow, measured start, encouraging users to refine parameters incrementally rather than producing abrupt oscillations. As these parameters are increased, the wave takes on more distinct sine and cosine characteristics, offering a flexible approach to exploring Fibonacci-based cyclicity within price action.
Three parameters control the shape of the Fibonacci wave:
1️⃣ Wavelength Controls the horizontal spacing of the wave along the time axis, determining the length of one full cycle from peak to peak (or trough to trough). In this indicator, Wavelength acts as a scaling input that adjusts how far the wave extends across time, rather than a strict mathematical “wavelength.” Lower values further stretch the wave, increasing the spacing between oscillations, while higher values compress it into a more frequent cycle. Each full cycle is divided into four quarter-cycle segments, a deliberate design choice to minimize curvature by default. This allows for subtle oscillations and smoother transitions, preventing excessive distortion while maintaining flexibility in wave projections. The wavelength is calculated relative to the A-B swing, ensuring that its scale adapts dynamically to the selected price range.
2️⃣ Amplitude Defines the vertical displacement of the wave relative to the baseline Fibonacci level. Higher values increase the height of oscillations, while lower values reduce the height, Negative values will invert the wave’s initial direction. The amplitude is dynamically applied in relation to the A-B swing direction, ensuring that an upward swing results in upward oscillations and a downward swing results in downward oscillations.
3️⃣ Phase Shifts the wave’s starting position along its cycle, adjusting alignment relative to the swing points. A phase of 0 aligns with a sine wave, where the cycle starts at zero and rises. A phase of 25 aligns with a cosine wave, starting at a peak and descending. A phase of 50 inverts the sine wave, beginning at zero but falling first, while a phase of 75 aligns with an inverted cosine , starting at a trough and rising. Intermediate values between these phases create gradual shifts in wave positioning, allowing for finer alignment with observed market structures.
By fine-tuning these parameters, users can adapt Fibonacci waves to better reflect observed market behaviors. The wave structure integrates with price movements rather than simply overlaying static levels, allowing for a more dynamic representation of cyclical price tendencies. This indicator serves as an exploratory tool for understanding potential market rhythms, encouraging traders to test and visualize how Fibonacci principles extend beyond their traditional applications.
🖼️ CHART EXAMPLES 🖼️
Following this downtrend, price interacts with curved Fibonacci levels, highlighting resistance at the 0.236 and 0.382 levels, where price stalls before pulling back. Support emerges at the 0.5, 0.618, and 0.786 levels, where price finds stability and rebounds
In this Fibonacci retracement, price initially finds support at the 1.0 level, following the natural curvature of the cycle. Resistance forms at 0.786, leading to a pullback before price breaks through and tests 0.618 as resistance. Once 0.618 is breached, price moves upward to test 0.5, illustrating how Fibonacci-based cycles may align with evolving market structure beyond static, horizontal retracements.
Following this uptrend, price retraces downward and interacts with the Fibonacci levels, demonstrating both support and resistance at key levels such as 0.236, 0.382, 0.5, and 0.618.
With only the 0.5 and 1.0 levels enabled, this chart remains uncluttered while still highlighting key price interactions. The short cycle length results in a mild curvature, aligning smoothly with market movement. Price finds resistance at the 0.5 level while showing strong support at 1.0, which follows the natural flow of the market. Keeping the focus on fewer levels helps maintain clarity while still capturing how price reacts within the cycle.
🛠️ CONFIGURATION AND SETTINGS 🛠️
Wave Parameters
Wavelength : Stretches or compresses the wave along the time axis, determining the length of one full cycle. Higher values extend the wave across more bars, while lower values compress it into a shorter time frame.
Amplitude : Expands or contracts the wave along the price axis, determining the height of oscillations relative to Fibonacci levels. Higher values increase the vertical range, while negative values invert the wave’s initial direction.
Phase : Offsets the wave along the time axis, adjusting where the cycle begins. Higher values shift the starting position forward within the wave pattern.
Fibonacci Levels
Levels : Enable or disable specific Fibonacci levels (0.0, 0.236, 0.382, 0.5, 0.618, 0.786, 1.0) to focus on relevant price zones.
Color : Modify level colors for enhanced visual clarity.
Visibility
Trend Line/Color : Toggle and customize the trend line connecting swing points A and B.
Setup Lines : Show or hide lines linking Fibonacci levels to projected waves.
A/B Labels Visibility : Control the visibility of swing point labels.
Left/Right Labels : Manage the display of Fibonacci level labels on both sides of the chart.
Fill % : Adjust shading intensity between Fibonacci levels (0% = no fill, 100% = maximum fill).
A and B Points (Time/Price):
These user-defined anchor points serve as the basis for Fibonacci wave calculations and can be manually set. A and B points can also be adjusted directly on the chart, with automatic synchronization to the settings panel, allowing for seamless modifications without needing to manually input values.
⚠️ DISCLAIMER ⚠️
The Fibonacci Cycle Finder is a visual analysis tool designed to illustrate Fibonacci relationships and serve as a supplement to traditional Fibonacci tools. While the indicator employs mathematical and geometric principles, no guarantee is made that its calculations will align with other Fibonacci tools or proprietary methods. Like all technical and visual indicators, the Fibonacci levels generated by this tool may appear to visually align with key price zones in hindsight. However, these levels are not intended as standalone signals for trading decisions. This indicator is intended for educational and analytical purposes, complementing other tools and methods of market analysis.
🧠 BEYOND THE CODE 🧠
Fibonacci Cycle Finder is the latest indicator in the Fibonacci Geometry Series. Building on the concepts of the Fibonacci Time-Price Zones and the Fibonacci 3-D indicators, this tool introduces a trigonometric approach to market structure analysis.
The Fibonacci Cycle Finder indicator, like other xxattaxx indicators , is designed to encourage both education and community engagement. Your feedback and insights are invaluable to refining and enhancing the Fibonacci Cycle Finder indicator. We look forward to the creative applications, observations, and discussions this tool inspires within the trading community.
ATR Trailing Stop by GideonMATR Trailing Stop Indicator
This ATR Trailing Stop Indicator is designed for traders who wish to enhance their exit strategies by leveraging volatility-based stops. It offers a systematic approach to trend management and risk control, enabling traders to capture extended trends while protecting their capital during market reversals. Works on Indian Indices as well.
Overview:
The ATR Trailing Stop indicator is a dynamic trend-following tool that adjusts stop levels based on market volatility. By incorporating the Average True Range (ATR), the indicator provides a flexible exit strategy that adapts to changing market conditions, helping traders lock in profits during trends and limit losses during reversals.
How It Works:
True Range and ATR Calculation:
The indicator first calculates the True Range (TR) for each bar, defined as the maximum of:
The difference between the high and low,
The absolute difference between the high and the previous close, and
The absolute difference between the low and the previous close.
Using the TR values, the ATR is computed over a user-defined period (default is 14 bars) with an option to use either a Simple Moving Average (SMA) or an Exponential Moving Average (EMA) as the smoothing method.
Trailing Stop Determination:
Two potential stop levels are calculated:
For an uptrend, the stop is determined as:
Stop = Close – (Multiplier × ATR)
For a downtrend, the stop is:
Stop = Close + (Multiplier × ATR)
The indicator maintains a persistent trailing stop that dynamically adjusts:
In an uptrend, the trailing stop only moves upward (or remains flat) to secure gains.
In a downtrend, it only moves downward, thereby protecting the position from excessive losses.
A reversal in trend is identified when the price crosses the trailing stop level, at which point the indicator flips the trend and resets the stop level accordingly.
Rationale:
Utilizing the ATR for trailing stops ensures that the stop levels are directly influenced by market volatility. This dynamic adjustment helps accommodate the natural price fluctuations of the market, providing a more adaptive risk management tool compared to fixed stop-loss levels. The approach is particularly useful in volatile markets where traditional static stops might be triggered prematurely.
Customization:
Key parameters that can be adjusted include:
ATR Period: The number of bars used to calculate the ATR.
ATR Multiplier: The factor that determines how far the trailing stop is set from the current price.
Smoothing Method: Option to choose between SMA and EMA for ATR calculation, allowing traders to tailor the sensitivity of the indicator to their specific trading style.
Volume Alert with Adaptive Trend - MissouriTimElevate your market analysis with our "Volume Alert with Adaptive Trend" indicator. This powerful tool combines real-time volume spike notifications with a sophisticated adaptive trend channel, providing traders with both immediate and long-term market insights. Customize your trading experience with adjustable volume alert thresholds and trend visualization options.
Features Summary
Volume Alert Features:
Volume Spike Detection:
Alerts you when volume exceeds a user-defined multiplier of the 20-period Simple Moving Average (SMA) of volume, helping identify potential market interest or significant price movements.
Visual Notification:
A "Volume Alert" label appears on the chart in a striking purple color (#7300E6) with white text, making high volume bars easily noticeable.
Customizable Sensitivity:
The volume spike threshold is adjustable, allowing you to set how sensitive the alert should be to volume changes, tailored to your trading strategy.
Alerts:
An alert condition is set to notify you when a volume spike occurs, ensuring you don't miss potential trading opportunities.
Adaptive Trend Features
Adaptive Channel:
Visualizes market trends through a dynamic channel that adjusts to price movements, offering insights into trend direction, strength, and potential reversal points.
Lookback Period:
Choose between short-term or long-term trend analysis with a toggle that adjusts the calculation period for the trend channel.
Channel Customization:
Fine-tune the trend channel with options for deviation multiplier, line styles, colors, transparency, and extension preferences to match your visual trading preferences.
Non-Repainting:
The trend lines are updated only on the current bar, ensuring the integrity of historical data for backtesting and strategy development.
Integrated Utility
Combination of Tools: This indicator marries the immediacy of volume alerts with the strategic depth of trend analysis, offering a comprehensive view of market dynamics.
User Customization: With inputs for both volume alerts and trend visualization, the indicator can be tailored to suit various trading styles, from scalping to swing trading.
This indicator ensures you're always in tune with market movements, providing crucial information at a glance to inform your trading decisions.
Timeframe Display + Countdown📘 Help Guide: Timeframe Display + Countdown + Alert
🔹 Overview
This indicator displays:
✅ The selected timeframe (e.g., 5min, 1H, 4H)
✅ A countdown timer showing minutes and seconds until the current candle closes
✅ An optional alert that plays a sound when 1 minute remains before the new candle starts
⚙️ How to Use
1️⃣ Add the Indicator
• Open TradingView
• Click on Pine Script Editor
• Copy and paste the script
• Click Add to Chart
2️⃣ Customize Settings
• Text Color: Choose a color for the displayed text
• Text Size: Adjust the font size (8–24)
• Transparency: Set how transparent the text is (0%–100%)
• Position: Choose where the text appears (Top Left, Top Right, Bottom Left, Bottom Right)
• Enable Audible Alert: Turn ON/OFF the alert when 1 minute remains
3️⃣ Set Up an Audible Alert in TradingView
🚨 Important: Pine Script cannot play sounds directly; you must set up a manual alert in TradingView.
Steps:
1. Click “Alerts” (🔔 icon in TradingView)
2. Click “Create Alert” (+ button)
3. In “Condition”, select this indicator (Timeframe Display + Countdown)
4. Under “Options”, choose:
• Trigger: “Once Per Bar”
• Expiration: Set a valid time range
• Alert Actions: Check “Play Sound” and choose a sound
5. Click “Create” ✅
🛠️ How It Works
• Countdown Timer:
• Updates in real time, displaying MM:SS until the candle closes
• Resets when a new candle starts
• Alert Trigger:
• When 1:00 minute remains, an alert is sent
• If properly configured in TradingView, it plays a sound
Candle Momentum ExhaustionCandle Momentum Exhaustion
The Candle Momentum Exhaustion indicator is designed to help traders spot potential turning points in a trend by identifying when the prevailing momentum may be “running on empty.” The indicator works by comparing the size of each candle’s body (the absolute difference between the open and close) to the average body size over a recent period. When a candle’s body exceeds a user‐defined multiple of this average, it is flagged as an “exhaustion” candle.
• A bullish exhaustion (shown with a red down–facing triangle above the bar) occurs when a very large bullish candle (close > open) is detected, suggesting that buyers may have pushed the price too far and the rally could be near its end.
• A bearish exhaustion (shown with a green up–facing triangle below the bar) occurs when a very large bearish candle (close < open) is detected, implying that selling pressure might be overdone.
These signals can alert you to a potential reversal or consolidation point. The script also includes alert conditions so that you can set up notifications whenever an exhaustion signal is generated.
How It Works
1. Average Candle Body:
The script computes a simple moving average (SMA) of the absolute candle bodies over a user-defined period (default is 14 bars).
2. Exhaustion Candidate:
A candle is flagged as an exhaustion candidate if its body size exceeds the average by more than the set multiplier (default is 2.0).
3. Signal Identification:
• If the exhaustion candle is bullish (close > open), it is marked with a red down–facing triangle above the bar.
• If it is bearish (close < open), it is marked with a green up–facing triangle below the bar.
4. Alerts:
The built-in alertcondition() calls allow you to set alerts (via TradingView’s alert system) so that you can be notified when an exhaustion event occurs.
Risk Disclaimer:
This indicator is provided for educational and informational purposes only and does not constitute financial, investment, or trading advice. Trading and investing involve significant risk, and you should not rely solely on this indicator when making any trading decisions. Past performance is not indicative of future results. Always perform your own due diligence and consult with a qualified financial advisor before making any financial decisions. The creator of this indicator shall not be held responsible for any losses incurred through its use.