Wick/Tail Candle MeasurementsThis indicator runs on trading view. It was programmed with pine script v5.
Once the indicator is running you can scroll your chart to any year or date on the chart, then for the input select the date your interested in knowing the length of the tails and wicks from a bar and their lengths are measured in points.
To move the measurement, you can select the vertical bar built into the indicator AFTER clicking the green label and moving it around using the vertical bar *only*. You must click the vertical bar in the middle of the label to move the indicator calculation to another bar. You can also just select the date using the input as mentioned. This indicator calculates just one bar at a time.
measurements are from bar OPEN to bar HIGH for measured WICKS regardless of the bar being long or short and from bar OPEN to bar LOW for measured TAILS also regardless of the bar being long or short.
This indicator calculates tails and wicks including the bar body in the calculations. Basically showing you how much the market moved in a certain direction for the entire duration of that Doji candle.
Its designed to measure completed bars on the daily futures charts. (Dow Jones, ES&P500, Nasdaq, Russell 2000, etc) Although it may work well on other markets. The indicator could easily be tweaked in order to work well with other markets. It is not designed for forex markets currently.
Trend Analysis
ANN Trend PredictionThis trend indicator utilizes an artificial neural network (ANN) to predict the next market reversal within a certain range of previous candles. The larger the range of previous candles you set, the fewer reversals will be predicted, and trends will tend to last longer.
The ANN is trained on the BTCUSD 4-hour chart, so using it on other assets or timeframes may yield suboptimal results. It takes three input values: the closing price, the Stochastic RSI, and a Choppiness Indicator. Based on these inputs, the ANN categorizes the current candle as part of an uptrend, downtrend, or as undefined.
Compared to an EMA-based trend indicator, this ANN identifies reversals several candles earlier. It achieves this by detecting subtle patterns in the input values that typically appear before a market turnaround. These patterns are somewhat specific to that chosen asset and timeframe.
The results are displayed using rows of triangles that indicate the predicted price direction. The price levels of the triangles correspond to the closing price at the last reversal. The area between the triangle row and the price is colored green if the ANN correctly predicted the move, and red if it did not.
This indicator is designed to showcase the capabilities and potential of ANNs, and is not intended for actual trading use. The ANN can be trained on any other input values, assets and timeframes for several predictions tasks.
You can use the Predicted_Trend_Signal of this Indicator in any backtest indicator. In the Backtester just grap the Predicted_Trend_Signal. downtrend = 1, uptrend = -1, undefined = 0
Feel free to write me a comment.
Trend Filtered Signals with Confidence LevelThe Trend Filtered Signals with Confidence Level is a powerful technical analysis tool designed for trend-following traders. It provides clear buy and sell signals, enhanced by a unique confidence level indicator, helping traders filter out market noise and focus on higher-probability trades. This indicator is built with advanced trend detection, volatility filtering, and volume confirmation, making it suitable for various markets such as stocks, forex, and cryptocurrencies.
Key Features:
Precise Trend Detection:
The indicator uses the Average Directional Index (ADX) to measure the strength of the trend, only generating signals when the trend is strong enough (above a user-defined threshold). This prevents false signals during sideways markets and ensures the system follows meaningful trends.
Buy and Sell Signals:
Buy signals are generated when the price crosses above the fast moving average, and the market is in a strong uptrend based on ADX and other filters. Conversely, sell signals are created when the price crosses below the fast moving average in a strong downtrend. These signals appear directly on the chart with visual markers, making them easy to spot in real-time trading.
Confidence Level for Signals:
Each buy and sell signal is given a confidence percentage, calculated from multiple factors:
The strength of the trend (ADX).
The price’s relationship to moving averages (fast MA and slow MA).
The current trading volume compared to its moving average.
The distance between the price and the moving averages, which is checked against the ATR (Average True Range).
A higher confidence percentage indicates a stronger, more reliable signal. Traders can choose to act only on signals that meet or exceed their preferred confidence level.
ATR-Based Volatility Filtering:
To avoid over-trading or receiving signals that are too close together, the ATR (Average True Range) is used as a volatility filter. This ensures that the signals are spaced out, and traders only receive alerts when the price has moved a meaningful distance, considering market volatility.
Volume Confirmation:
Volume plays a crucial role in signal accuracy. The indicator compares the current volume to its moving average, ensuring that signals are generated only when there is sufficient market participation. This feature helps traders avoid signals during low-volume or illiquid market conditions.
Exit Alerts for Trend Reversals:
The indicator doesn’t just help you enter trades; it also assists with exits. When the trend shows signs of weakening or reversing (such as price crossing back over the moving average or losing ADX strength), the indicator will issue an exit alert, helping traders lock in profits or minimize losses.
How to Use the Indicator:
Choosing Timeframes:
The Trend Filtered Signals with Confidence Level works on multiple timeframes. For intraday traders, it can be applied on 5-minute or 15-minute charts. Swing traders might prefer the 1-hour or daily timeframe to capture longer-term trends. Adjust the inputs based on the volatility of the asset you're trading and the timeframe.
Customizing Inputs:
ADX Length: Defines the length for calculating ADX. A typical setting is 14, but this can be adjusted based on how quickly or slowly you want the indicator to react to changes in trend strength.
ADX Threshold: Set this value to filter out weak trends. The default is 20, but for stronger trend signals, a threshold of 25 or 30 may be more suitable.
ATR Length & Multiplier: Used to calculate the average true range, helping to filter out signals that are too close to each other. The ATR multiplier increases the signal’s precision in volatile markets.
Fast and Slow Moving Averages: These moving averages help define the short- and long-term trend. The default fast MA is 9, and the slow MA is 21, but traders can adjust these based on their strategy.
Volume MA: Defines the length of the moving average applied to volume. A longer setting may be more appropriate for swing trading, while a shorter setting can work better for day trading.
Interpreting the Confidence Percentage:
Signals with a confidence level above 50% are generally considered reliable. However, traders can choose to filter trades based on their risk tolerance by only acting on signals above a certain confidence level (e.g., 70% or higher for conservative traders).
Use the confidence percentage as a guide to increase the likelihood of entering higher-probability trades.
Signal Alerts:
The indicator provides customizable alerts for both buy and sell signals. It also generates alerts when it's time to exit a position due to weakening trend conditions.
Alerts can be set up through TradingView’s alert system to notify you via mobile, email, or browser pop-up, so you never miss an opportunity.
Managing Entries and Exits:
Combine the buy and sell signals with the confidence level to time entries more effectively. After entering a position, keep an eye on the exit signals generated by the indicator to manage your trades.
For trend-following strategies, stay in the trade as long as the indicator shows a strong trend. When the confidence level drops significantly, or the exit alert triggers, it may be time to close the trade.
Inputs Overview:
ADX Length: Default 14, for trend strength.
ADX Threshold: Default 20, minimum trend strength for signal generation.
ATR Length & Multiplier: Adjust for volatility filtering.
Fast MA & Slow MA Lengths: Define the short-term and long-term trend.
Volume MA Length: Confirm signals with volume strength.
Minimum Signal Distance: Prevents excessive signal clustering.
Conclusion:
The Trend Filtered Signals with Confidence Level indicator by Danytradehit is a comprehensive tool that not only identifies trends and trend reversals but also helps you gauge the reliability of each signal through a confidence percentage. It simplifies decision-making for traders by filtering out weak or low-probability trades, ensuring you only act on the most promising market opportunities. This indicator is highly customizable and works across various timeframes and asset classes.
Volume-Weighted Trend Strength indexVolume-Weighted Trend Strength index (VWTSI)
Introduction
The VWTSI is a custom indicator designed to combine trend strength, volume, and volatility to give traders a comprehensive view of market dynamics. It provides flexibility by allowing you to visualize the indicator as either an oscillator or a moving average.
Features
Dual Visualization: Can be displayed either as an oscillator or as a moving average on the chart.
Volume-Weighted: Adjusts trend strength based on current volume compared to its average.
Volatility-Adjusted: Incorporates market volatility into the trend strength calculation.
Customizable: Various parameters can be fine-tuned to suit different trading environments.
How It Works
1. Trend Strength Calculation
The difference between the fast (10-period) and slow (30-period) EMAs is used to calculate trend strength, which gives a percentage-based indication of the trend's strength
2. Volatility Adjustment
The ATR-based volatility is calculated and used to amplify or reduce the trend strength based on the current market conditions
3. Volume Adjustment
The ratio of current volume to the volume SMA adds another layer of adjustment to the final VWTSI value
4. Final VWTSI Calculation
The VWTSI value is the product of trend strength, volatility factor, and volume ratio
5. Normalization
The final VWTSI is normalized to fit within a range of -100 to 100 for better visualization in oscillator mode
Customization Inputs
Fast EMA Length: Default is 10.
Slow EMA Length: Default is 30.
Volume Length: Default is 14.
Volatility Length (ATR): Default is 20.
Oscillator or MA Mode: Toggle between displaying the indicator as an oscillator or moving average.
Consecutive Beta with Dynamic Support Resistance [TrendX_]The Consecutive Beta with Dynamic Support Resistance indicator is tailored to harness trend momentum, recognize top & bottom reversals, and leverage dynamic support and resistance levels. This indicator introduces a new approach by combining the concepts of beta, consecutive counting mechanisms, and the supertrend structure, making it a fresh tool for understanding market trends and patterns.
💎 KEY FEATURES
Candle’s Relative Valuation Using Beta: The core of the TrendX indicator lies in using beta to gauge volatility. Beta serves as a measure of how an asset moves relative to the broader market, helping traders understand whether the asset is more or less volatile in different market conditions.
Counting Techniques for Momentum & Reversals: By employing counting techniques to reach a significant threshold, the indicator can measure trend momentum and spot top/bottom reversals.
Dynamic Support & Resistance: This feature relies on consecutive beta counting to dynamically adapt support and resistance levels. These levels are key in predicting potential entry and exit points following the general trend direction.
⚙️ USAGES
Initial Start and Distance: Customize the initial start point and distance for better control over trading strategies. For instance, starting at 1 and using an even distance of 2 will yield odd consecutive counting series;
Phase 1 Completion for Reversal Strategies: This initial phase focuses on identifying short-term reversals;
Phase 2 Completion for Support/Resistance: A support level forms after completing two bullish phases, while a resistance level forms after completing two bearish phases. This structure helps in clarifying trend directions when breakout these key levels.
🔎 BREAKDOWN
Phase 1:
The indicator counts consecutive candles that show a higher Beta than in previous periods over a given length. The completion of countings only succeed when the whole series is uninterruptedly counted, or else countings will be canceled. This strict adherence to consecutive counts serves to ensure that only strong, sustained momentum is recognized and also helps filter out noise, weak signals and establish the initial direction catalyst, setting up for further trend analysis.
Phase 2:
After Phase 1 ends, the Phase 2 counting mechanism begins. This phase focuses on bottom reversals through consecutive higher beta candles, and top reversals by counting lower beta candles. At this stage, interuptions will not cancel the counting process. The ability to continue counting in Phase 2 allows for a broader perspective on market behavior. Even if individual candles do not consistently meet the criteria for consecutive counts, the cumulative effect of higher or lower beta readings over time provides valuable insights into market sentiment and trend direction.
Dynamic Support & Resistance:
After Phase 2 completion, if the average of high, low, and close surpasses both recent support and resistance levels from Phase 2, an uptrend is confirmed, which the support level is displayed. If it drops below these levels, a downtrend is indicated, where resistance is displayed instead of support. The result is displayed through a colored supertrend-line (teal for uptrend, red for downtrend).
DISCLAIMER
This indicator is not financial advice, it can only help traders make better decisions. There are many factors and uncertainties that can affect the outcome of any endeavor, and no one can guarantee or predict with certainty what will occur. Therefore, one should always exercise caution and judgment when making decisions based on past performance.
Engulfing Candles Alert - Multi Symbol (Miu)This indicator plots triangle shapes on each engulfing candles (bullish or bearish) on current chart.
The main use for this indication is to set alerts on multiple symbols at once.
Please follow steps below to set your alarms:
1) Add indicator to the chart
2) Go to settings
3) Check symbols you want to receive alerts (choose up to 8 different symbols)
4) Check if you want only bullish or bearish alerts or both
5) Once all is set go back to the chart and click on 3 dots to set alert in this indicator, rename your alert and confirm
6) You can remove indicator after alert is set and it'll keep working as expected
What does this indicator do?
This indicator will generate alerts anytime a candle closes and reaches bullish or bearish engulfing condition for any of symbol set.
Alert messages example: "Bullish alert on {Symbol}"
This script requests open and close information for each symbol through request.security() built-in function.
Detailed indicator description:
If current bar open is less than or equal to the previous bar close AND current bar open is less than previous bar open AND current bar close is greater than previous bar open THEN True
bullishEngulfing = (openBarCurrent <= closeBarPrevious) and (openBarCurrent < openBarPrevious) and (closeBarCurrent > openBarPrevious)
The opposite condition will be bearishEngulfing
Feel free to give feedbacks on comments section below. Enhancement suggestions are welcome =).
Enjoy!
Qualitative and Quantitative Candlestick Score [CHE] Qualitative and Quantitative Candlestick Score
Overview
The Qualitative and Quantitative Candlestick Score is a powerful indicator for TradingView that combines both qualitative and quantitative analyses of candlestick patterns. This indicator provides traders with a comprehensive assessment of market conditions to make informed trading decisions.
Key Features
- Quantitative Analysis: Calculates a quantitative score based on the price movement of each candle.
- Qualitative Analysis: Evaluates candles based on body size, wick size, trend, and trading volume.
- Cumulative Scores: Displays cumulative green (bullish) and red (bearish) scores over a defined period.
- Trend Analysis: Identifies trend direction, strength, and provides trading recommendations (Long/Short).
- Customizable Settings: Adjust parameters for time periods, thresholds, and volume analysis.
Settings and Customizations
1. Time Period Settings:
- Period: Number of periods to calculate moving averages and cumulative scores (Default: 14).
2. Qualitative Evaluation:
- Body Size Threshold (%): Minimum size of the candle body to be considered significant (Default: 0.5%).
- Wick Size Threshold (%): Maximum size of the wicks to be considered minimal (Default: 0.3%).
3. Volume Settings:
- Include Volume in Evaluation: Whether to include trading volume in the qualitative score (Default: Enabled).
- Volume MA Period: Number of periods to calculate the moving average of volume (Default: 14).
4. Trend Settings:
- Moving Average Length: Number of periods for the Simple Moving Average used to determine the trend (Default: 50).
Calculations and Visualizations
- Quantitative Score: Difference between the closing and opening price, normalized to the opening price.
- Qualitative Score: Evaluation based on body size, wick size, trend, and volume.
- Cumulative Scores: Average of green and red scores over the defined period.
- Score Difference: Difference between cumulative green and red scores to determine trend direction.
- Trend Analysis Table: Displays trend direction, trend strength, and trading recommendation in an easy-to-read table.
Plotting and Display
- Cumulative Scores: Displays cumulative green and red scores in green and red colors.
- Score Difference: Blue line chart to visualize the difference between green and red scores.
- Zero Line: Horizontal gray line as a reference point.
- Trend Analysis Table: Table in the top right of the chart showing current trend direction, strength, and trading recommendation.
Use Cases
- Trend Identification: Use the score difference and trend analysis table to quickly assess the current market sentiment.
- Trading Recommendations: Based on the table, decide whether a long or short entry is appropriate.
- Volume Analysis: Including volume helps to better understand the strength of a trend.
Benefits
- Comprehensive Analysis: Combines quantitative and qualitative methods for a deeper market analysis.
- User-Friendly: Easy parameter adjustments allow for personalized use.
- Visually Appealing: Clear charts and tables facilitate data interpretation.
- Flexible: Adaptable to various trading strategies and timeframes.
Installation and Usage
1. Installation:
- Copy the provided Pine Script code.
- Go to TradingView and open the Pine Script Editor.
- Paste the code and save the script.
- Add the indicator to your chart.
2. Customization:
- Adjust the parameters according to your trading preferences.
- Monitor the cumulative scores and the trend analysis table for trading decisions.
Conclusion
The Qualitative and Quantitative Candlestick Score offers a comprehensive analysis of market conditions by combining quantitative and qualitative evaluation methods. With its user-friendly settings and clear visualizations, this indicator is a valuable tool for traders seeking informed and precise trading decisions.
Best regards and happy trading
Chervolino
Developed by: Chervolino
Version: 1.0
License: Free to use and customize on TradingView.
For any questions or feedback, feel free to contact me through the TradingView community.
Note: This indicator is a tool to assist with trading decisions and does not replace professional financial advice. Use it responsibly and thoroughly test it before incorporating it into your trading strategies.
Pivot Volume ConfluenceThe Pivot Volume Confluence indicator is designed to help traders identify significant pivot points (local highs and lows) that are accompanied by increased trading volume. This combination can signal important market turning points and provides valuable insights into potential support and resistance areas.
Key Features:
• Pivot Point Identification: Automatically detects local highs and lows on the chart based on a customizable pivot length.
• Volume Analysis: Compares the volume at the pivot point with the average volume of the last N bars to recognize significant volume spikes.
• Timeframe-Based Adjustment: Automatically adjusts the indicator parameters according to the current timeframe for optimal performance across different timeframes.
• Custom Settings: Allows you to set your own values for pivot length and volume multiplier to tailor the indicator to your trading strategy.
• Visual Markers: Clearly highlights significant pivot points with high volume using colored symbols on the chart.
• Alerts: Integrates alert functionalities to notify you when important pivot points are detected.
Settings:
• Use Custom Settings: Enable this option to use your own parameters instead of automatic adjustments.
• Custom Pivot Length: Set the number of bars to be used for determining pivot points.
• Custom Volume Multiplier: Define the factor by which the average volume is multiplied to set the threshold for significant volume.
• Show Settings in Chart: Displays the current indicator settings directly on the chart.
How to Use the Indicator:
1. Add to Chart:
• Add the “Pivot Volume Confluence” indicator to your desired financial instrument.
2. Adjust Settings:
• Adjust the settings according to your needs or use the preset default values.
• Enable “Use Custom Settings” to input your own values for pivot length and volume multiplier.
3. Interpret the Signals:
• Red downward triangles mark pivot highs with significantly high volume and may indicate potential downward reversal points.
• Green upward triangles mark pivot lows with significantly high volume and may indicate potential upward reversal points.
• Use these markers to identify entry and exit points or to confirm existing trading positions.
4. Set Up Alerts:
• Set up alerts to be notified when a significant pivot point occurs.
• This allows you to react promptly to market movements without having to monitor the chart constantly.
Notes:
• Delay in Pivot Detection: Due to the calculation method, pivot points are recognized only after confirmation by subsequent bars. This leads to a natural delay that should be considered when interpreting the signals.
• Adjusting the Volume Multiplier: A lower multiplier will result in more signals, while a higher multiplier will highlight only the most significant volume spikes.
• Compatibility: The indicator is universally applicable and suitable for various markets such as stocks, forex, commodities, and cryptocurrencies.
• Performance: Using very short timeframes or having many charts open simultaneously may affect performance.
Benefits:
• Deep Market Analysis: By combining price and volume data, you gain a more comprehensive view of market activities.
• Flexibility: The ability to adjust settings allows you to fine-tune the indicator to your specific trading strategy.
• Notifications: With integrated alerts, you won’t miss important signals and can make timely trading decisions.
Disclaimer:
Please note that trading financial instruments involves risks and is not suitable for all investors. Past performance is not indicative of future results. Use this indicator as part of a comprehensive trading strategy and always conduct your own analysis.
COT INDEX v2The **Commitment of Traders (COT)** report is a valuable tool for analyzing market sentiment, providing insight into the positions of futures traders at the close of the Tuesday trading session. Prepared by the Commodity Futures Trading Commission (CFTC), the report is published every Friday at 3:30 p.m. Eastern Time, and the data is freely available on the CFTC website.
Traders are categorized into three groups: **Commercial Traders**, **Non-Commercial Traders** (large speculators), and **Nonreportable** (small speculators). This information can be applied to charts to visualize the direction of the positions held by major market participants and to receive key COT signals.
The **COT index** ranges from 0% to 100%, reflecting market sentiment over the past 26 weeks. Extreme values, below 25% or above 75%, represent bearish or bullish sentiment, respectively. However, it is important to note that the COT index is not a timing tool but rather an indicator of the overall sentiment of major market players.
For a more tailored analysis, you can adjust the period for index calculation, customize chart styles, and highlight extreme areas.
MENTFX AVERAGES MULTI TIMEFRAMEThe MENTFX AVERAGES MULTIME TIMEFRAME indicator is designed to provide traders with the ability to visualize multiple moving averages (MAs) from higher timeframes on their current chart, regardless of the chart's timeframe. It combines the power of exponential moving averages (EMAs) to help traders identify trends, spot potential reversal points, and make more informed trading decisions.
Key Features:
Multi-Timeframe Moving Averages: This indicator plots moving averages from daily timeframes directly on your chart, helping you keep track of higher timeframe trends while trading in any timeframe.
Customizable Moving Averages: You can adjust the length and visibility of up to three EMAs (default settings are 5, 10, and 20-period EMAs) to suit your trading style.
Overlay on Price: The indicator is designed to be overlaid on your price chart, seamlessly integrating with your existing analysis.
Simple but Effective: By offering a clear visual guide to where price is trading relative to important higher timeframe levels, this indicator helps traders avoid trading against major trends.
Why It’s Unique:
Validation Timeframe Flexibility: Unlike traditional moving average indicators that only work within the same chart's timeframe, the MENTFX AVERAGES M indicator allows you to pull moving averages from higher timeframes (default: Daily) and overlay them on any chart you're currently viewing, whether it's intraday (minutes) or even weekly. This cross-timeframe visibility is critical in determining the true market trend, adding context to your trades.
Customizability: Although the default settings focus on daily EMAs (5, 10, and 20 periods), traders can modify the parameters, including the type of moving average (Simple, Weighted, etc.), making it adaptable for any strategy. Whether you want shorter-term or longer-term averages, this indicator covers your needs.
Trend Confirmation Tool: The use of multiple EMAs helps traders confirm trend direction and potential price breakouts or reversals. For example, when the shorter-term 5 EMA crosses above the 20 EMA, it can signal a potential bullish trend, while the opposite could indicate bearish pressure.
How This Indicator Helps:
Identify Key Support and Resistance Levels: Higher timeframe moving averages often act as dynamic support and resistance. This indicator helps you stay aware of those critical levels, even when trading lower timeframes.
Trend Identification: Knowing where the market is relative to the 5, 10, and 20 EMAs from a higher timeframe gives you a clearer picture of whether you're trading with or against the prevailing trend.
Improved Decision Making: By aligning your trades with the direction of higher timeframe trends, you can increase your confidence in trade entries and exits, avoiding low-probability setups.
Multi-Market Use: This indicator works well across various asset classes—stocks, forex, crypto, and commodities—making it versatile for any trader.
How to Use:
Intraday Trading: Use the daily EMAs as a guide to see if intraday price movements align with longer-term trends.
Swing Trading: Plot daily EMAs to track the strength of a larger trend, using pullbacks to the moving averages as potential entry points.
Trend Trading: Monitor crossovers between the moving averages to signal potential changes in trend direction.
Default Settings:
5 EMA (Daily) – Blue Line
10 EMA (Daily) – Black Line
20 EMA (Daily) – Red Line
These lines will plot on your chart with a subtle opacity (33%) to ensure they don’t obstruct price action, while still providing crucial visual guidance on market trends.
This indicator is perfect for traders who want to blend technical analysis with multi-timeframe insights, helping you stay in sync with broader market movements while executing trades on any timeframe.
XAU/USD Strategy with Correct ADX and Bollinger Bands Fill1. *Indicators Used*:
- *Exponential Moving Averages (EMAs)*: Two EMAs (20-period and 50-period) are used to identify the trend direction and potential entry points based on crossovers.
- *Relative Strength Index (RSI)*: A momentum oscillator that measures the speed and change of price movements. It identifies overbought and oversold conditions.
- *Bollinger Bands*: These consist of a middle line (simple moving average) and two outer bands (standard deviations away from the middle). They help to identify price volatility and potential reversal points.
- *Average Directional Index (ADX)*: This indicator quantifies trend strength. It's derived from the Directional Movement Index (DMI) and helps confirm the presence of a strong trend.
- *Average True Range (ATR)*: Used to calculate position size based on volatility, ensuring that trades align with the trader's risk tolerance.
2. *Entry Conditions*:
- *Long Entry*:
- The 20 EMA crosses above the 50 EMA (indicating a potential bullish trend).
- The RSI is below the oversold level (30), suggesting the asset may be undervalued.
- The price is below the lower Bollinger Band, indicating potential price reversal.
- The ADX is above a specified threshold (25), confirming that there is sufficient trend strength.
- *Short Entry*:
- The 20 EMA crosses below the 50 EMA (indicating a potential bearish trend).
- The RSI is above the overbought level (70), suggesting the asset may be overvalued.
- The price is above the upper Bollinger Band, indicating potential price reversal.
- The ADX is above the specified threshold (25), confirming trend strength.
3. *Position Sizing*:
- The script calculates the position size dynamically based on the trader's risk per trade (expressed as a percentage of the total capital) and the ATR. This ensures that the trader does not risk more than the specified percentage on any single trade, adjusting the position size according to market volatility.
4. *Exit Conditions*:
- The strategy uses a trailing stop-loss mechanism to secure profits as the price moves in the trader's favor. The trailing stop is set at a percentage (1.5% by default) below the highest price reached since entry for long positions and above the lowest price for short positions.
- Additionally, if the RSI crosses back above the overbought level while in a long position or below the oversold level while in a short position, the position is closed to prevent losses.
5. *Alerts*:
- Alerts are set to notify the trader when a buy or sell condition is met based on the strategy's rules. This allows for timely execution of trades.
### Summary
This strategy aims to capture significant price movements in the XAU/USD market by combining trend-following (EMAs, ADX) and momentum indicators (RSI, Bollinger Bands). The dynamic position sizing based on ATR helps manage risk effectively. By implementing trailing stops and alert mechanisms, the strategy enhances the trader's ability to act quickly on opportunities while mitigating potential losses.
Neural Momentum StrategyThis strategy combines Exponential Moving Average (EMA) analysis with a multi-timeframe approach. It uses a neural scoring system to evaluate market momentum and generate precise trading signals. The strategy is implemented in Pine Script v5 and is designed for use on TradingView.
Key Components
The strategy utilizes short-term (10-period) and long-term (25-period) EMAs. It calculates the difference between these EMAs to assess trend direction and strength. A neural scoring system evaluates EMA crossovers (weight: 12 points), trend strength (weight: 10 points), and price acceleration (weight: 4 points). The system implements a score smoothing algorithm using a 10-period EMA.
Multi-timeframe Analysis
The strategy automatically selects a higher timeframe based on the current chart timeframe. It calculates scores for both the current and higher timeframes, then combines these scores using a weighted average. The higher timeframe factor ranges from 3 to 6, depending on the current timeframe.
Trading Logic
Entry occurs when the final combined score turns positive after a change. Exit happens when the final combined score turns negative after a change. The strategy recalculates scores on each bar, ensuring responsive trading decisions.
Risk Management
An optional adaptive stop-loss system based on Average True Range (ATR) is available. The default ATR period is 10, and the stop factor is 1.2. Stop levels are dynamically adjusted on the higher timeframe.
Customization Options
Users can adjust EMA periods, signal line period, scoring weights, and enable/disable multi-timeframe analysis. The strategy allows setting specific date ranges for backtesting and deployment.
Position Sizing
The strategy uses a percentage-of-equity position sizing method, with a default of 30% of account equity per trade.
Code Structure
The strategy is built using TradingView's strategy framework. It employs efficient use of the request.security() function for multi-timeframe analysis. The main calculation function, calculate_score(), computes the neural score based on EMA differences and acceleration.
Performance Considerations
The strategy adapts to various market conditions through its multi-faceted scoring system. Multi-timeframe analysis helps filter out noise and identify stronger trends. The neural scoring approach aims to capture subtle market dynamics often missed by traditional indicators.
Limitations
Performance may vary across different markets and timeframes. The strategy's effectiveness relies on proper calibration of its numerous parameters. Users should thoroughly backtest and forward test before live implementation.
To summarize, the Neural Momentum Strategy represents a sophisticated approach to market analysis. It combines traditional technical indicators with advanced scoring techniques and multi-timeframe analysis. This strategy is designed for traders seeking a data-driven and adaptive method. It aims to identify high-probability trading opportunities across various market conditions.
This Neural Momentum Strategy is for informational and educational purposes only. It should not be considered financial advice. The strategy may exhibit slight repainting behavior due to the nature of multi-timeframe analysis and the use of the request.security() function. Historical values might change as new data becomes available.
Trading carries a high level of risk, and may not be suitable for all investors. Before deciding to trade, you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment. Therefore, you should not invest money that you cannot afford to lose.
Past performance is not indicative of future results. The author and TradingView are not responsible for any losses incurred as a result of using this strategy. Always exercise caution when using this or any trading strategy, and thoroughly test it before implementing in live trading scenarios.
Users are solely responsible for any trading decisions they make based on this strategy. It is strongly recommended that you seek advice from an independent financial advisor if you have any doubts.
Dynamic Sentiment RSI [UAlgo]The Dynamic Sentiment RSI is a technical analysis tool that combines the classic RSI (Relative Strength Index) concept with dynamic sentiment analysis, offering traders enhanced insights into market conditions. Unlike the traditional RSI, this indicator integrates volume weighting, sentiment factors, and smoothing features to provide a more nuanced view of momentum and potential market reversals. It is designed to assist traders in detecting overbought/oversold conditions, momentum shifts, and to generate potential buy or sell signals using crossover and crossunder techniques. By dynamically adjusting based on sentiment and volume factors, this RSI offers better adaptability to varying market conditions, making it suitable for different trading styles and timeframes.
This tool is particularly helpful for traders who wish to explore not only price movement but also the underlying market sentiment, offering a more comprehensive approach to momentum analysis. The sentiment factor amplifies the RSI's sensitivity to price shifts, making it easier to detect early signals of market reversals or the continuation of a trend.
🔶 Key Features
Dynamic Sentiment Calculation: The indicator incorporates a "Sentiment Factor" that adjusts the RSI length dynamically based on a multiplier, helping traders better understand market sentiment at different time intervals.
Volume Weighting: When enabled, the RSI calculations are weighted by volume, allowing traders to give more importance to price movements with higher trading volume, which may provide more accurate signals.
Smoothing Feature: A customizable smoothing period is applied to the RSI to help filter out noise and make the signal smoother. This feature is particularly useful for traders who prefer to focus on long-term trends while minimizing false signals.
Step Size Customization: A "Step Size" input allows users to round the sentiment RSI to predefined intervals, making the results easier to interpret and act upon. This feature allows you to focus on significant sentiment changes and ignore minor fluctuations.
Crossover/Crossunder Alerts: The indicator includes crossover and crossunder signals on the zero-line, helping traders identify potential buy and sell opportunities as the smoothed RSI crosses these levels.
The indicator offers a clear visual display with multiple color-coded lines and areas:
Sentiment RSI: Plotted as an area chart, color-coded based on sentiment strength.
Raw RSI: A purple line representing the raw adjusted RSI.
Smoothed RSI: A dynamic line, color-coded aqua or orange based on its position relative to the zero line.
Buy/Sell Signals: Triangle shapes are plotted at crossovers and crossunders, providing clear entry and exit points.
🔶 Interpreting the Indicator
Sentiment RSI
-This line represents the sentiment-adjusted RSI, where the higher the value, the stronger the bullish sentiment, and the lower the value, the stronger the bearish sentiment. It is rounded to step intervals, making it easier to detect significant shifts in sentiment.
- A positive sentiment RSI (above 0) suggests bullish market conditions, while a negative sentiment RSI (below 0) suggests bearish conditions.
Smoothed RSI
The smoothed RSI helps reduce noise and shows the trend more clearly.
Crossovers of the zero line are significant:
- Crossover above zero: Indicates that bullish momentum is building, potentially signaling a buying opportunity.
- Crossunder below zero: Signals a shift towards bearish momentum, potentially indicating a sell signal.
Traders should look for these crossovers in conjunction with other signals for more accurate entry/exit points.
Raw RSI (Adjusted)
The raw adjusted RSI offers a less smoothed, more responsive version of the RSI. While it may be noisier, it provides early signals of market reversals and trends.
Crossover/Crossunder Signals
- When the smoothed RSI crosses above the zero line, a "Signal Up" triangle appears, indicating a potential buying opportunity.
- When the smoothed RSI crosses below the zero line, a "Signal Down" triangle appears, signaling a potential sell opportunity.
These signals help traders time their entries and exits by identifying momentum shifts.
Volume Weighting (Optional)
- If volume weighting is enabled, the RSI will give more weight to periods of higher trading volume, making the signals more reliable when the market is highly active.
Strong Up/Down Levels (40/-40)
- These dotted lines represent extreme sentiment levels. When the sentiment RSI reaches 40 or -40, the market may be nearing an overbought or oversold condition, respectively. This could be a signal for traders to prepare for potential reversals or shifts in momentum.
By combining the various components of this indicator, traders can gain a comprehensive view of market sentiment and price action, helping them make more informed trading decisions. The combination of sentiment factors, volume weighting, and smoothing makes this indicator highly flexible and suitable for a variety of trading strategies.
🔶 Disclaimer
Use with Caution: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Users should exercise caution and perform their own analysis before making trading decisions based on the indicator's signals.
Not Financial Advice: The information provided by this indicator does not constitute financial advice, and the creator (UAlgo) shall not be held responsible for any trading losses incurred as a result of using this indicator.
Backtesting Recommended: Traders are encouraged to backtest the indicator thoroughly on historical data before using it in live trading to assess its performance and suitability for their trading strategies.
Risk Management: Trading involves inherent risks, and users should implement proper risk management strategies, including but not limited to stop-loss orders and position sizing, to mitigate potential losses.
No Guarantees: The accuracy and reliability of the indicator's signals cannot be guaranteed, as they are based on historical price data and past performance may not be indicative of future results.
Options Series - Ichimoku Cloud and HalfTrend
The provided script combines two powerful technical indicators, Ichimoku Cloud and HalfTrend, to create a hybrid trading tool. Here's an analysis of the key components and how they work together:
Ichimoku Cloud and HalfTrend
⭐ 1. Indicator Title and Settings:
The script sets the title as "Options Series - Ichimoku Cloud and HalfTrend" and uses the overlay=true option to display the indicators directly on the price chart.
⭐ 2. Color Definitions:
Several colors are defined for later use:
Green and Red for different types of candles and signals.
Fluorescent Colors for highlighting significant trends or changes in market conditions.
⭐ 3. Ichimoku Cloud Setup:
The Ichimoku Cloud is a comprehensive indicator used to identify support, resistance, and trend direction. Here’s how the script configures it:
Conversion Periods, Base Periods, Lagging Span 2 Periods, and Displacement are customizable via input options, giving flexibility to adjust Ichimoku settings based on different market conditions.
The function donchian(len) calculates the Donchian Channel average, which is used to define the Conversion Line and Base Line. The crossover of these lines is crucial in determining bullish or bearish trends.
Color Logic for Kijun Cross: If the Conversion Line is above the Base Line, the trend is bullish (green color), while a bearish trend is indicated by red. A neutral condition is marked with orange.
⭐ 4. HalfTrend Indicator Setup:
The HalfTrend indicator detects trend reversals based on high/low price deviations from a moving average:
Amplitude and Channel Deviation inputs allow users to control the sensitivity of the indicator.
showArrows and showChannels toggle the display of buy/sell arrows and trend channels.
maxLowPrice and minHighPrice variables are initialized to track significant high/low points during the trend, used to confirm trend reversals.
⭐ 5. ATR and Trend Calculations:
The Average True Range (ATR) is used to calculate the volatility-based channels. The script calculates atr2 and uses this to create atrHigh and atrLow for plotting the channel.
The trend detection logic is as follows:
When the trend is upward, the script seeks confirmation by comparing the high moving average with previous lows, signaling a continuation of the uptrend if it holds.
Conversely, a downtrend is confirmed when the low moving average exceeds previous highs.
⭐ 6. Customized Candle Coloring:
A custom color scheme is applied to candles based on a combination of trend direction and Ichimoku Cloud signals:
GreenFluorescent for strong bullish conditions where price is above the HalfTrend line, and the Conversion Line is above the Base Line.
RedFluorescent for strong bearish conditions, with price below the HalfTrend line and Conversion Line below the Base Line.
Gray for neutral or indecisive conditions.
⭐ 7. Plots and Shapes:
The script plots various elements:
HalfTrend Line: The main trendline is plotted in either green (buy) or red (sell), with adjustable line width.
Ichimoku Base Line: This is plotted with the dynamic color based on crossovers.
Buy/Sell Arrows: These are drawn on the chart when valid buy/sell conditions are met.
Custom Candles: The script overrides default chart candles with custom-colored candles based on the previously discussed logic.
⭐ 8. Improvements:
Optimization: Parameters like the amplitude, channel deviation, and Ichimoku periods can be fine-tuned based on backtesting results to maximize performance for specific assets or timeframes.
Alerts: The script could be enhanced by adding alert conditions for real-time buy/sell notifications, leveraging alertcondition() in Pine Script.
In summary, this script merges two trend-following techniques for a multi-faceted view of the market, using visual cues and trendline logic to provide a robust trading tool.
🚀 Conclusion:
Trend-Following System: The combination of Ichimoku Cloud and HalfTrend provides a comprehensive view of both long-term trends (via Ichimoku) and shorter-term reversals (via HalfTrend).
Visual Signals: The script includes clear visual signals (arrows and custom-colored candles) to help traders quickly spot buy/sell opportunities.
Dynamic Customization: Through user inputs, this indicator can be tailored to different market conditions, making it versatile.
Feigenbaum Inspired Bifurcation IndicatorIts a work in progess but here you go. I pair it with a 50 EMA for better direction.
1. Bullish Trend Signal:
Green Labels ("Bullish") are plotted below the price chart when a bullish trend is detected.
This is based on a crossover of two simple moving averages (short and long):
The short-term moving average (SMA) crosses above the long-term moving average, indicating a potential upward trend or buying opportunity.
2. Bearish Trend Signal:
Red Labels ("Bearish") are plotted above the price chart when a bearish trend is detected.
This occurs when the short-term moving average crosses below the long-term moving average, signaling a potential downward trend or selling opportunity.
3. Mid-Range Line (Optional):
A Blue Line is plotted on the chart, representing the mid-point between the highest high and lowest low over the given period (default is 14 bars).
This line can help visualize where the price is relative to its recent range.
Summary:
Bullish Labels (Green): Appear when a bullish crossover happens.
Bearish Labels (Red): Appear when a bearish crossover happens.
Mid-Range Line (Blue): Helps identify the midpoint of recent price ranges (can be turned off if not needed).
This is a simplified trend-following indicator based on moving average crossovers, giving you a quick visual cue of when trends are shifting. Let me know if you’d like further adjustments!
Advanced MA Difference (and more)This Pine Script indicator calculates the difference between the price and a main moving average (SMA or EMA), allowing you to track deviations in either absolute or relative (percentage) terms. It offers several features to help visualize and smooth this difference:
- Main MA Difference: Shows the price deviation from the moving average, either as an absolute dollar amount or as a percentage.
- Fast and Slow Moving Averages: Optionally smooths the difference using fast and slow moving averages, giving insights into short-term and long-term trends in price deviations.
- Difference Between Fast and Slow MAs : Highlights the gap between these MAs, helping to identify momentum shifts.
- Customizable Visuals: Offers flexibility in displaying the difference and moving averages using lines or histograms, and includes a zero line for reference.
When to Use It:
- Use the absolute difference for tracking raw price deviations if you’re focused on concrete moves in the asset’s price.
- Use the relative difference for normalized, percentage-based deviations, especially useful when comparing different assets or time frames.
This indicator is suitable for traders looking to spot trends, price deviations, or momentum shifts relative to a moving average. Its flexibility makes it a good fit for both short-term and long-term analysis.
ADX by GTCADX with 6 configurable lines
Average Directional Index (ADX)
Definition
The Average Directional Index (ADX) is a specific indicator used by technical analysts and traders to determine the strength of a trend. The trend can be either bullish or bearish, which is shown by two indicators that often accompany the ADX, the positive directional indicator, commonly known as +DI, and the negative directional indicator, also known as -DI. For this reason, the Average Directional Index is presented with three separate lines, which symbolize each indicator. Each line is used to help evaluate a trade and whether it should be taken long or short, if at all. The ADX indicator on TradingView does not show the +DI and -DI lines by itself, but you can use the Directional Movement Index (DMI) indicator to view all three at the same time.
History
The Average Directional Index was initially designed by Welles Wilder for daily commodity charts, but was later modified so that it could be used in other markets and for various time frames. These modifications allowed the ADX to become what it is today: an indicator for tracking the strength of market trends and analyzing those trends with the help of additional directional indicators.
Calculations
Due to the fact that the Average Directional Index includes multiple lines, the indicator requires a sequence of calculations, which are outlined below.
Start by calculating the +DM, -DM, and True Range (TR) for each period you are analyzing. Please note:
+DM = Current High - Previous High
-DM = Previous Low - Current Low
You can use +DM when Current High - Previous High > Previous Low - Current Low.
Use -DM when Previous Low - Current Low > Current High - Previous High.
The TR is the largest of the following values: Current High - Current Low, Current High - Previous Close, or Current Low - Previous Close.
Go ahead and smooth your +DM, -DM, and TR period averages. Then plug in the -DM and +DM values to calculate the smoothed averages of them.
First xTR = Sum of first x TR readings (x = number of...)
Next xTR value = First xTR - (Previous xTR/14) + Current TR
Next, divide the smoothed +DM value by the smoothed TR value to get your +DI value. Multiply this value by 100.
Divide the smoothed -DM value by the smoothed TR value to get your -DI value. Multiply this value by 100.
The formula for the Directional Movement Index (DX) is +DI minus -DI, then divided by the sum of +DI and -DI (these are all absolute values). Multiply this value by 100.
To get the ADX, you will need to keep calculating the DX values for x periods. Smooth the results over the periods to get your ADX value.
First ADX = the sum of x periods of DX / x
Lastly, ADX = ((Previous ADX * 13) + Current DX) / x
Conclusions and what to look for
The Average Directional Index (ADX), as well as the Negative (-DI) / Positive (+DI) Directional Indicators, are momentum indicators and help investors determine the strength of a trend and the direction of the trend...
The Average Directional Index projects the market price and is clearly seen when prices are rising (when +DI is above -DI), and when prices are falling (when -DI is above +DI). When there are crossovers between the +DI and -DI lines, it can mean potential trading signals as a bearish or bullish market is emerging.
A trend shows the most strength when the Average Directional Index is above 25 (potential buy signal), and a trend is weak or the price is considered trendless if the ADX is below 20, according to the creator of the concept, Wilder. Thought, if the ADX is below 20, it may not be the most suitable time to enter a trade.
If the market presents itself as not following a particular trend, this does not mean that the price is not moving, but it could be making a change or that the direction is not present at that moment.
Limitations
Crossovers between the lines of the indicators can occur quite frequently. In the event that this occurs too frequently, there is most likely to be confusion among traders and the potential for losing money can be high. These moments in question are known as "false signals" and are more frequent when the ADX is calculated below 25.
The Average Directional Index should be combined with other indicators that examine price and with others that can help filter signals and control risk to get the most out of the tool. Like most indicators, it works best when combined with well-functioning data processors and other analytical tools.
Summary
In short, the Average Directional Index
Price vs 200 EMA IndicatorPurpose :
The Price vs. 200 MA (EMA) Indicator measures the deviation of the current price from its 200-period Exponential Moving Average (EMA). Instead of merely plotting the raw difference, the indicator calculates a standardized difference (similar to a z-score), which quantifies the deviation in terms of standard deviations over time. This helps traders understand how extreme the price is relative to its long-term average and its typical volatility.
Use Cases :
Trend Analysis:
Traders can use the standardized difference to assess how extreme the current price is relative to its long-term trend (200 EMA) while normalizing for volatility.
When the z-score approaches extreme levels (e.g., above 2 or below -2), it may indicate that the asset is overextended in either direction.
Mean Reversion Strategy:
Since the indicator identifies when the price deviates far from the 200 EMA (in terms of standard deviations), traders can use it to time mean-reversion trades, buying when the price is below -2 (oversold) and selling when it’s above +2 (overbought).
Trend Continuation or Exhaustion:
If the price continues to stay above +2 for extended periods, it could indicate a strong trend, whereas a reversion toward the EMA after reaching +2 or -2 could signal trend exhaustion or reversal.
Summary :
The Price vs. 200 MA (EMA) Indicator calculates the standardized difference (z-score) between the price and its 200-period EMA, giving traders a normalized measure of how far the price is from its long-term average, relative to typical price volatility. The color-coded plot provides a clear visual representation of potential overbought/oversold conditions and highlights when the price has deviated significantly from the 200 EMA in either direction.
RSI with Swing Trade by Kelvin_VAlgorithm Description: "RSI with Swing Trade by Kelvin_V"
1. Introduction:
This algorithm uses the RSI (Relative Strength Index) and optional Moving Averages (MA) to detect potential uptrends and downtrends in the market. The key feature of this script is that it visually changes the candle colors based on the market conditions, making it easier for users to identify potential trend swings or wave patterns.
The strategy offers flexibility by allowing users to enable or disable the MA condition. When the MA condition is enabled, the strategy will confirm trends using two moving averages. When disabled, the strategy will only use RSI to detect potential market swings.
2. Key Features of the Algorithm:
RSI (Relative Strength Index):
The RSI is used to identify potential market turning points based on overbought and oversold conditions.
When the RSI exceeds a predefined upper threshold (e.g., 60), it suggests a potential uptrend.
When the RSI drops below a lower threshold (e.g., 40), it suggests a potential downtrend.
Moving Averages (MA) - Optional:
Two Moving Averages (Short MA and Long MA) are used to confirm trends.
If the Short MA crosses above the Long MA, it indicates an uptrend.
If the Short MA crosses below the Long MA, it indicates a downtrend.
Users have the option to enable or disable this MA condition.
Visual Candle Coloring:
Green candles represent a potential uptrend, indicating a bullish move based on RSI (and MA if enabled).
Red candles represent a potential downtrend, indicating a bearish move based on RSI (and MA if enabled).
3. How the Algorithm Works:
RSI Levels:
The user can set RSI upper and lower bands to represent potential overbought and oversold levels. For example:
RSI > 60: Indicates a potential uptrend (bullish move).
RSI < 40: Indicates a potential downtrend (bearish move).
Optional MA Condition:
The algorithm also allows the user to apply the MA condition to further confirm the trend:
Short MA > Long MA: Confirms an uptrend, reinforcing a bullish signal.
Short MA < Long MA: Confirms a downtrend, reinforcing a bearish signal.
This condition can be disabled, allowing the user to focus solely on RSI signals if desired.
Swing Trade Logic:
Uptrend: If the RSI exceeds the upper threshold (e.g., 60) and (optionally) the Short MA is above the Long MA, the candles will turn green to signal a potential uptrend.
Downtrend: If the RSI falls below the lower threshold (e.g., 40) and (optionally) the Short MA is below the Long MA, the candles will turn red to signal a potential downtrend.
Visual Representation:
The candle colors change dynamically based on the RSI values and moving average conditions, making it easier for traders to visually identify potential trend swings or wave patterns without relying on complex chart analysis.
4. User Customization:
The algorithm provides multiple customization options:
RSI Length: Users can adjust the period for RSI calculation (default is 4).
RSI Upper Band (Potential Uptrend): Users can customize the upper RSI level (default is 60) to indicate a potential bullish move.
RSI Lower Band (Potential Downtrend): Users can customize the lower RSI level (default is 40) to indicate a potential bearish move.
MA Type: Users can choose between SMA (Simple Moving Average) and EMA (Exponential Moving Average) for moving average calculations.
Enable/Disable MA Condition: Users can toggle the MA condition on or off, depending on whether they want to add moving averages to the trend confirmation process.
5. Benefits of the Algorithm:
Easy Identification of Trends: By changing candle colors based on RSI and MA conditions, the algorithm makes it easy for users to visually detect potential trend reversals and trend swings.
Flexible Conditions: The user has full control over the RSI and MA settings, allowing them to adapt the strategy to different market conditions and timeframes.
Clear Visualization: With the candle color changes, users can quickly recognize when a potential uptrend or downtrend is forming, enabling faster decision-making in their trading.
6. Example Usage:
Day traders: Can apply this strategy on short timeframes such as 5 minutes or 15 minutes to detect quick trends or reversals.
Swing traders: Can use this strategy on longer timeframes like 1 hour or 4 hours to identify and follow larger market swings.
LiquidityFlow Dominance+Alerts (btc.d, T3, Stables)LiquidityFlow Dominance+Alerts: Overview & Usage Guide
Overview
The LiquidityFlow Dominance+Alerts indicator provides a dynamic view of liquidity flow across Bitcoin, Altcoins, and Stablecoins, helping track liquidity shifts and identify market sentiment. By integrating moving averages, custom alerts, and thresholds for extreme outliers, this indicator helps to anticipate bullish and bearish shifts in liquidity and alert market tops and bottoms.
Key features include:
1. Liquidity Flow Monitoring : Track liquidity flow across Bitcoin (BTC), Altcoins (TOTAL3), and Stablecoins (USDT, USDC, DAI).
2. Custom Alerts : Set alerts for key liquidity shifts and extreme conditions in Stablecoin dominance, both with static and moving average (MA)-based calculations.
3. Moving Averages : Use Simple, Exponential, or Weighted Moving Averages to smooth out market data for more reliable signals.
4. Outlier Detection : Identify potential tops and bottoms using thresholds for Stablecoin dominance, with alerts for extreme movements.
Functionality
Data Inputs and Key Metrics
- Symbols Monitored:
- Bitcoin Dominance (BTC.D)
- Altcoin Market Cap (TOTAL3)
- Stablecoins (USDT.D, USDC.D, DAI.D)
- Liquidity Flow Conditions:
- Track percentage changes in dominance across sectors to detect liquidity flow into Bitcoin, Altcoins, or Stablecoins.
- Custom Metrics:
- Liquidity Flow Index: BTC Dominance minus Stablecoin Dominance.
- Liquidity Flow Ratio: BTC Dominance divided by the combined dominance of Stablecoins and Altcoins.
Moving Average Integration
- Select from SMA, EMA, or WMA to apply moving averages to the dominance metrics. Moving averages help smooth out short-term volatility and provide more consistent signals.
- Moving averages are applied to each sector (BTC, Altcoins, and Stablecoins) and compared to their previous period values to determine shifts in liquidity.
Alerts and Thresholds
- % Change Lookback Period: Adjust the lookback period to align with the timeframe of your chart. Shorter timeframes may require a lower lookback period, while higher timeframes may benefit from longer periods.
- Stables Bull/Bear % for Alerts: Set a threshold for when Stablecoin dominance becomes a bullish or bearish signal relative to BTC and Altcoins. A higher threshold may be used in volatile markets to filter out noise.
- Extreme Outliers Detection: Use the **Stables Up/Down Extreme Threshold** to identify potential market tops or bottoms when Stablecoin dominance deviates significantly from historical trends. The **Extreme Lookback Period** controls the time window for detecting these anomalies.
How to Use the Indicator
Adjusting the % Change Lookback Period
- The `% Change Lookback Period` should be adjusted based on your chart’s timeframe. For example, a shorter period (e.g., 7) works well for intraday charts, while longer periods (e.g., 14) might be more suitable for daily or weekly charts.
Setting Thresholds for Alerts
- Stables Bull/Bear % for Alerts: Adjust this setting to define when Stablecoin dominance triggers bullish or bearish alerts. A value like 1% could be a good starting point for most market conditions but can be fine-tuned based on volatility.
- Extreme Lookback Period: Define the lookback period for detecting extreme moves in Stablecoin dominance. This will help identify major tops and bottoms in the market. For shorter-term trades, consider using a shorter extreme lookback (e.g., 7-10 periods).
Alerts for Liquidity Shifts
- The indicator supports alerts for key liquidity shifts, which are useful for staying ahead of market movements. Alerts can be set to notify you when liquidity moves into:
- Bitcoin: Indicating a potential bullish trend for Bitcoin.
- Altcoins: Signaling altcoins are bullish.
- Stablecoins: Suggesting a risk-off environment or market correction.
Extreme Alerts for Stables
- Extreme Up/Down Alerts: These are triggered when Stablecoin dominance crosses extreme thresholds. For example, if Stablecoin dominance rises more than 14% over a set period, it could signal a market top, while a significant drop could indicate a market bottom.
Moving Average Calculations
- In addition to static percentage changes, moving averages can be applied to smooth out dominance values. The type and length of the moving average can be customized:
- SMA (Simple Moving Average): Best for smoothing out volatility in a linear way.
- EMA (Exponential Moving Average): More responsive to recent data, making it useful in faster markets.
- WMA (Weighted Moving Average): Emphasizes more recent data, but less reactive than the EMA.
Additional Usage Tips:
- Background Colors: The indicator visually highlights the dominant liquidity flow:
- Orange: Liquidity is shifting toward Bitcoin.
- Aqua: Liquidity is flowing into Altcoins.
- Red: Liquidity is moving into Stablecoins.
Day & Swing Trading EMA Clouds with Adaptive LevelsDay & Swing Trading EMA Clouds with Adaptive Levels is a tool designed for traders who need a flexible indicator that adapts to both short-term (day trading) and long-term (swing trading) strategies. The indicator blends EMA clouds and adaptive support/resistance levels, making it suitable for analyzing trend strength and key price zones.
How It Works:
EMA Clouds for Trend Detection:
This indicator uses three EMAs (Fast, Intermediate, Slow) to create two clouds:
Fast Cloud: The area between the fast and Intermediate EMAs.
Slow Cloud: The area between the Intermediate and slow EMAs.
The cloud colors change based on trend direction:
Positive (uptrend): When the fast EMA is above the Intermediate EMA (turquoise) or the Intermediate EMA is above the slow EMA (teal).
Negative (downtrend): When the fast EMA is below the Intermediate EMA (pink) or the Intermediate EMA is below the slow EMA (magenta).
Traders can use these clouds to visually gauge market momentum and trend reversals.
Adaptive EMA Settings Based on Trading Mode:
The EMA lengths adjust automatically depending on whether you're in Day Trading or Swing Trading mode:
Day Trading Mode uses shorter periods to capture quick price movements:
Fast EMA: 5-period
Mid EMA: 13-period
Slow EMA: 21-period
Swing Trading Mode uses longer periods to capture broader trends:
Fast EMA: 12-period
Mid EMA: 26-period
Slow EMA: 50-period
This dynamic adjustment allows you to switch between trading styles seamlessly, with the EMAs reflecting the most relevant timeframes for each strategy.
Adaptive Support and Resistance Levels:
Depending on the selected trading mode, the indicator dynamically plots key levels:
Day Trading Mode: Previous day’s high, low, and midpoint, as well as 2-day levels.
Swing Trading Mode: Previous month’s high, low, and midpoint, as well as 2-month levels.
These levels act as dynamic support and resistance zones, giving traders critical areas to monitor for potential reversals or breakouts.
Buy & Sell Signals:
Visual buy/sell signals are generated when the fast EMA crosses above or below the slow EMA. These signals can help traders identify potential trend reversals.
Customization:
You can fully adjust the transparency and colors of the clouds to fit your personal preferences and trading style.
Why This Combination?
Combining EMA clouds with adaptive levels provides traders with a complete picture. The clouds highlight the underlying market momentum and trend strength, while the adaptive levels offer potential entry/exit points based on historical price action. This unique mashup allows traders to follow trends and plan trades around key support and resistance zones.
3-Bar (Outside Bar) Scanner with Table Display# 3-Bar (Outside Bar) Scanner with Table Display
## Overview
The **3-Bar (Outside Bar) Scanner with Table Display** is a custom TradingView indicator designed for traders who utilize **The Strat** methodology. This indicator scans for **3-bar (Outside Bar)** patterns across multiple symbols and displays the results in a convenient table format directly on your chart.
## Purpose
- **Efficient Multi-Symbol Scanning**: Monitor up to four symbols simultaneously for 3-bar patterns without the need to switch between charts.
- **Real-Time Updates**: The table dynamically updates with new price data, providing immediate insights into potential trading opportunities.
- **Visual Clarity**: Displays whether a 3-bar is bullish ("3 Up") or bearish ("3 Down"), helping you quickly interpret market sentiment.
## How It Works
- **Data Retrieval**: The indicator uses `request.security()` to fetch high, low, open, and close prices for the specified symbols and timeframe.
- **3-Bar Detection**:
- **Outside Bar Criteria**: Checks if the current candle's high is higher than the previous candle's high and the current low is lower than the previous low.
- **Direction Determination**:
- **"3 Up"**: If the candle closes higher than it opens (bullish candle).
- **"3 Down"**: If the candle closes lower than it opens (bearish candle).
- **Table Display**:
- The table shows the **Symbol**, **Timeframe**, and **State** ("3 Up", "3 Down", or blank if no pattern detected).
- Customizable colors and positioning to fit your chart's aesthetics.
## Best Use Cases
- **Rapid Market Analysis**: Ideal for traders needing a quick overview of multiple assets for potential 3-bar setups.
- **Strategic Decision-Making**: Helps identify key reversal or continuation patterns in alignment with **The Strat** principles.
- **Scalable Monitoring**: By utilizing TradingView's multi-chart layouts, you can expand monitoring beyond four symbols.
## Instructions for Use
### Adding the Indicator to Your Chart
1. **Copy the Code**: Use the provided Pine Script code for the indicator.
2. **Create a New Indicator**:
- In TradingView, click on **Pine Editor** at the bottom of the platform.
- Paste the code into the editor.
3. **Save and Add to Chart**:
- Click **Save** and give your indicator a name.
- Click **Add to Chart** to apply it.
### Customizing the Inputs
- **Symbols**:
- **Symbol 1**: Leave blank to use the current chart's symbol or enter a specific symbol (e.g., `AAPL`).
- **Symbol 2 to Symbol 4**: Enter additional symbols or leave them blank.
- **Timeframe**: Select your desired timeframe (e.g., `D` for Daily, `60` for 60-minute).
- **Table Colors**:
- Customize header and data colors for better visibility against your chart background.
### Interpreting the Table
- **Symbol**: Displays the symbol without the exchange prefix for clarity.
- **Timeframe**: Shows the timeframe applied to the analysis.
- **State**:
- **"3 Up"**: A bullish outside bar where the candle closed higher than it opened.
- **"3 Down"**: A bearish outside bar where the candle closed lower than it opened.
- **Blank**: No 3-bar pattern detected on the latest candle.
### Monitoring More Than Four Symbols
- **Multi-Chart Layout**:
- Use TradingView's multi-chart feature to display multiple charts within a single workspace.
- Apply the indicator to each chart. For example:
- **Four-Chart Grid**: Monitor up to 16 symbols by setting up four charts, each with the indicator tracking four symbols.
- **Steps**:
1. Arrange your workspace into a multi-chart layout.
2. Add the indicator to each chart.
3. Input different symbols into the indicator on each chart.
## Example Usage
Suppose you want to monitor the following symbols on a Daily timeframe:
- **Symbol 1**: *(Leave blank to use the current chart's symbol, e.g., `SPY`)*
- **Symbol 2**: `AAPL`
- **Symbol 3**: `TSLA`
- **Symbol 4**: `AMZN`
After adding the indicator and entering these symbols:
- **SPY**: The table shows "3 Up" in the State column, indicating a bullish outside bar.
- **AAPL**: No 3-bar pattern detected; the State column is blank.
- **TSLA**: The table shows "3 Down," indicating a bearish outside bar.
- **AMZN**: The table shows "3 Up," indicating another bullish outside bar.
This setup allows you to quickly assess which symbols are exhibiting significant patterns that may warrant further analysis or action.
## Notes
- **Customization**: Feel free to adjust the table's position and colors to suit your preferences.
- **Limitations**:
- Be aware of TradingView's limitations on `request.security()` calls, which may vary based on your subscription plan.
- The indicator is designed to monitor up to four symbols per instance due to these limitations.
- **Scalability**:
- By using multi-chart layouts, you can effectively monitor more symbols without overloading a single chart.
- This approach allows you to scale up your monitoring capabilities to fit your trading strategy.
## Conclusion
The **3-Bar (Outside Bar) Scanner with Table Display** is a valuable tool for traders who utilize **The Strat** methodology. It streamlines the process of identifying key 3-bar patterns across multiple symbols and timeframes, enhancing your ability to make informed trading decisions quickly.
By integrating this indicator into your trading routine, you can:
- Stay alert to significant market movements.
- Reduce the time spent manually scanning charts.
- Increase efficiency in executing your trading strategy.
---
Feel free to share this indicator with the Strat community. Feedback and suggestions are welcome to further enhance its functionality. Happy trading!
Quantoshi Global Liquidity StrategyThis strategy leverages global liquidity data alongside technical indicators like the Rate of Change (ROC) and Double Exponential Moving Average (DEMA) to identify optimal long-entry points during major market trends. The script is designed to capture long-term, sustained momentum and includes built-in risk management by filtering out rapid price spikes. It is best suited for swing trading or long-term trend trading.
Key Features:
Global Liquidity Data:
The strategy incorporates data from major global central banks and M2 money supply to calculate a comprehensive liquidity index, which is a critical component for long-term trend detection.
ROC-DEMA Crossover:
It combines the Rate of Change (ROC) and a 100-period Double Exponential Moving Average (DEMA) to identify momentum shifts. Long entries are triggered when these indicators confirm an upward trend.
Price Thresholds:
The strategy compares the current price to the price from several candles ago to ensure positions are not entered during unsustainable price surges.
Custom Alerts:
Automated alerts for long entries and exits allow users to automate their trades or receive timely notifications when market conditions are met.
How It Works:
The strategy enters long positions when ROC and DEMA signals confirm a positive trend, and the price conditions suggest a sustainable upward momentum. Long exits occur when the momentum reverses, with a clear crossover signal of ROC below DEMA. Custom alert messages make it ideal for automated trading setups.
Why It's Unique:
This strategy combines liquidity data with technical indicators to filter noise and focus on significant market shifts. It allows traders to capture major trend reversals without needing to actively monitor the charts, making it useful for those focused on swing or long-term trading.
Backtesting & Risk Management:
Given its long-term focus, this strategy generates only a few signals per decade when used on a weekly timescale. As a result, traditional backtesting show few trades, but historical analysis reveals its effectiveness in capturing major market movements.
Account Size:
The backtest is based on a $1,000 account size to represent a realistic trading scenario.
Commissions & Tick size: Commission fees of 0.1% and a tick size of 100 are applied to reflect real-world trading conditions.
Trade Size:
Risk per trade is limited to 5% of the account balance to align with sound risk management practices.