Support, Resistance & Liquidity Pool ZonesSupport, Resistance & Liquidity Pool Zones
This indicator automatically detects and plots support and resistance levels based on pivot points and highlights liquidity pool zones, areas where the trading volume exceeds the average over a set number of bars. It is designed to help traders identify key price levels and liquidity traps that can trigger significant market reactions.
Key Features:
Support & Resistance Levels:
The indicator identifies pivot highs and pivot lows as potential resistance and support levels, respectively.
You can customize the number of levels shown on the chart, making it easier to focus on the most recent and relevant price levels.
Liquidity Pool Zones:
The script detects liquidity pool zones, which are areas with above-average trading volume. These zones often act as regions of interest where price accumulation or distribution occurs, potentially leading to significant price moves.
Liquidity zones are shaded to help traders visually identify areas of high interest in the market.
Customizable Settings:
You can adjust the pivot period to fine-tune how the indicator calculates support and resistance.
Control the number of support/resistance levels displayed on the chart and the period used to detect liquidity pools.
Customize the colors for support, resistance, and liquidity zones to match your charting preferences.
Alerts:
The script includes built-in alerts for when the price breaks above resistance or falls below support, helping traders catch key breakout opportunities.
How It Works:
The script calculates support and resistance levels using pivot highs and lows based on the user-defined pivot period.
It monitors liquidity pool zones by comparing the current trading volume with the average volume over a customizable period. When the volume exceeds the set threshold, a liquidity pool zone is highlighted, providing insight into where the market may accumulate or distribute.
Alerts are triggered when the price breaks above the first resistance level or falls below the first support level, giving traders immediate notification of key market events.
How to Use:
Tune the Pivot Period: Adjust the pivot period to your preferred time horizon (default: 10 bars).
Set Liquidity Pool Parameters: Customize the number of bars considered for liquidity pool detection and the volume multiplier to detect high-volume zones.
Monitor Breakouts: Use the built-in alerts to catch potential breakout or breakdown opportunities near support and resistance levels.
This script is ideal for traders looking for an easy-to-use tool to visualize support and resistance levels and liquidity pools, aiding in decision-making and trade management.
Trend Analysis
Fibonacci Swing Trading BotStrategy Overview for "Fibonacci Swing Trading Bot"
Strategy Name: Fibonacci Swing Trading Bot
Version: Pine Script v5
Purpose: This strategy is designed for swing traders who want to leverage Fibonacci retracement levels and candlestick patterns to enter and exit trades on higher time frames.
Key Components:
1. Multiple Timeframe Analysis:
The strategy uses a customizable timeframe for analysis. You can choose between 4hour, daily, weekly, or monthly time frames to fit your preferred trading horizon. The high and low-price data is retrieved from the selected timeframe to identify swing points.
2. Fibonacci Retracement Levels:
The script calculates two key Fibonacci retracement levels:
0.618: A common level where price often retraces before resuming its trend.
0.786: A deeper retracement level, often used to identify stronger support/resistance areas.
These levels are dynamically plotted on the chart based on the highest high and lowest low over the last 50 bars of the selected timeframe.
3. Candlestick Based Entry Signals:
The strategy uses candlestick patterns as the only indicator for trade entries:
Bullish Candle: A green candle (close > open) that forms between the 0.618 retracement level and the swing high.
Bearish Candle: A red candle (close < open) that forms between the 0.786 retracement level and the swing low.
When these candlestick patterns align with the Fibonacci levels, the script triggers buy or sell signals.
4. Risk Management:
Stop Loss: The stop loss is set at 1% below the entry price for long trades and 1% above the entry price for short trades. This tight risk management ensures controlled losses.
Take Profit: The strategy uses a 2:1 risk-to-reward ratio. The take profit is automatically calculated based on this ratio relative to the stop loss.
5. Buy/Sell Logic:
Buy Signal: Triggered when a bullish candle forms above the 0.618 retracement level and below the swing high. The bot then places a long position.
Sell Signal: Triggered when a bearish candle forms below the 0.786 retracement level and above the swing low. The bot then places a short position.
The stop loss and take profit levels are automatically managed once the trade is placed.
Strengths of This Strategy:
Swing Trading Focus: The strategy is ideal for swing traders, targeting longer-term price moves that can take days or weeks to play out.
Simple Yet Effective Indicators: By only relying on Fibonacci retracement levels and basic candlestick patterns, the strategy avoids complexity while capitalizing on well-known support and resistance zones.
Automated Risk Management: The built-in stop loss and take profit mechanism ensures trades are protected, adhering to a strict 2:1 risk/reward ratio.
Multiple Timeframe Analysis: The script adapts to various market conditions by allowing users to switch between different timeframes (4hour, daily, weekly, monthly), giving traders flexibility.
Strategy Use Cases:
Retracement Traders: Traders who focus on entering the market at key retracement levels (0.618 and 0.786) will find this strategy especially useful.
Trend Reversal Traders: The strategy’s reliance on candlestick formations at Fibonacci levels helps traders spot potential reversals in price trends.
Risk Conscious Traders: With its 1% risk per trade and 2:1 risk/reward ratio, the strategy is ideal for traders who prioritize risk management in their trades.
Elder AutoEnvelope with Overbought/Oversold Levels with LabelsThe **"Elder AutoEnvelope with Overbought/Oversold Levels with Labels"** is a technical analysis tool designed to help identify overbought and oversold levels in the market, as well as potential reversal points. It uses moving averages and price volatility to detect possible price extremes.
### Indicator Description:
- **Center EMA (26)**: Acts as the main trend line.
- **Envelope Channels**: These are constructed around the central EMA using the current price volatility. The main channel lines are determined by multiplying the standard deviation of the price by the chosen multiplier.
- **Additional Overbought/Oversold Levels**: Displayed on the chart with different colors and thicknesses to highlight small, moderate, strong, and very strong levels.
- **Labels**: Show specific levels when the price reaches areas of overbought or oversold conditions.
### How to Apply in Practice:
1. **Identifying Extremes**: The indicator shows areas where the price is considered overbought or oversold relative to the current trend. When the price touches or exceeds these levels, it can indicate a potential reversal or correction.
2. **Entry/Exit Signals**:
- **Entry on Oversold**: If the price reaches the lower Envelope lines (especially at strong or very strong oversold levels), it may be a good buying signal.
- **Exit on Overbought**: If the price touches the upper lines (especially at strong or very strong overbought levels), it signals a potential selling opportunity.
3. **Combining with Other Indicators**: It’s recommended to use this indicator alongside oscillators like RSI or MACD for signal confirmation.
4. **Trend Analysis**: The central EMA (26) helps identify the trend direction. If the price is above it, the trend is considered bullish; if below, bearish.
This indicator is particularly useful in volatile markets and helps detect price movements near highs or lows.
Trend Following Moron TFM 10% System
Trend Following Moron TFM 10% System
The TFM 10% Market Timing System
The Trend Following Moron TFM 10% System is a powerful trading tool designed using Pine Script™, following the principles outlined by Dave S. Landry. This script helps traders identify optimal entry and exit points based on moving averages and market trends.
What the Script Does:
Visual representation of trend strength.
As long as it is trending in green band, trend is very strong and price is contained within 5% of the high.
As price drops to yellow band, strength is weakening and caution is advised. Price is between 5% to 10% away from52 week high.
As price drops in red band, it is to be avoided as trend is rolling over. Price is more than 10% way from 52 week high.
Moving Averages Calculation:
Users can choose between Simple Moving Average (SMA) and Exponential Moving Average (EMA) for daily, weekly, and monthly periods. The script calculates the moving averages to provide trend direction.
Trend Color Coding:
Moving averages are displayed in different colors based on market conditions: green indicates an uptrend, red for a downtrend, and gray for neutral conditions.
Highs Calculation:
The script calculates the 52-week and 12-month closing highs, which are crucial for identifying potential breakout points.
Level Definition:
Traders can set levels based on either Average True Range (ATR) or percentage changes from these highs, allowing for flexible risk management strategies.
Buy and Sell Conditions:
The script defines specific buy conditions: when the price is within 10% of the highest close and trading above the moving averages, and sell conditions: when the price falls below these thresholds.
Visual Indicators:
Buy and sell signals are visually represented on the chart with arrows, making it easy for traders to see potential trading opportunities at a glance.
Performance Labels:
The script includes performance labels that track the number of bars above or below the moving averages and the percentage change from the moving average, providing users with key metrics to evaluate their trades.
Interactive Table:
A table summarizing the buy and sell rules is displayed on the chart, ensuring that traders have quick access to the system’s trading logic.
Benefits of Using the TFM 10% System:
Streamlined Decision Making:
The script simplifies the trading process by clearly outlining buy and sell signals, making it accessible even for novice traders.
Customizable Parameters:
Users can tailor the script to their preferences by adjusting moving average types and lengths, ATR levels, and percentage thresholds. Bands are interchange able for ATR and Percent below 52 week high for volatility looks. But buy and sell are fixed in 10% threshold.
Risk Management:
By utilizing ATR and percentage levels, traders can effectively manage their risk, making the trading process more systematic.
Comprehensive Market Analysis:
The combination of multiple time frames (daily, weekly, monthly) allows for a well-rounded analysis of market trends, enhancing trading accuracy.
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.
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.
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.
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.
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.
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.
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!
EMA Regime FilterEMA REGIME FILTER INDICATOR
✦ OVERVIEW
The EMA Regime Filter is a custom indicator, designed to identify and visualize different market regimes based on the relationship between price action and an Exponential Moving Average (EMA).
✦ KEY FEATURES
Identifies four distinct market regimes: Strong Bullish, Weak Bullish, Strong Bearish, and Weak Bearish
Uses a current/higher timeframe for calculations to reduce noise
Incorporates ATR (Average True Range) to determine significant price moves
Includes an inactivity timer to revert to a neutral state after periods of low volatility
Visualizes the regime through bar colors and candle plots
✦ INPUT PARAMETERS
Source Timeframe : The timeframe used for calculations (default is the chart's timeframe)
ATR Threshold For Significant Move : Multiplier for ATR to determine significant price moves (default: 0.5)
Inactive Regime Period : Number of periods of inactivity before reverting to neutral (default: 10)
EMA Length : Period for the Exponential Moving Average calculation (default: 22)
✦ HOW IT WORKS
Higher Timeframe Data: The indicator requests data from a higher timeframe specified by the user.
Significant Move Detection:
Calculates ATR and multiplies it by the user-defined threshold.
Compares the body width of each candle to this threshold to determine if it's a significant move.
EMA Calculation: Computes an EMA based on the user-defined length.
Regime Determination:
Strong Bullish (2): Significant bullish move above EMA
Weak Bullish (1): Transitioning from bearish, but still above EMA
Strong Bearish (-2): Significant bearish move below EMA
Weak Bearish (-1): Transitioning from bullish, but still below EMA
Neutral (0): After a period of inactivity or at the start
Regime Transitions:
The indicator tracks the current regime and updates it based on new significant moves and the price's relation to the EMA.
An inactivity counter reverts the regime to neutral if no significant moves occur for the specified period.
Visualization:
Bar colors change based on the current regime (lime for bullish, red for bearish, white for neutral).
The intensity of the color indicates the strength of the regime.
✦ USING THE INDICATOR
Add the indicator to your TradingView chart.
Adjust the input parameters as needed:
Increase the ATR threshold for fewer but more significant regime changes.
Adjust the inactive period to change how quickly the indicator reverts to neutral.
Modify the EMA length to suit your trading timeframe.
Observe the changing bar colors to identify the current market regime.
Use the regime information to inform your trading decisions, such as:
Looking for long opportunities in bullish regimes
Considering short positions in bearish regimes
Being cautious or staying out of the market during neutral regimes
Periodic Linear Regressions [LuxAlgo]The Periodic Linear Regressions (PLR) indicator calculates linear regressions periodically (similar to the VWAP indicator) based on a user-set period (anchor).
This allows for estimating underlying trends in the price, as well as providing potential supports/resistances.
🔶 USAGE
The Periodic Linear Regressions indicator calculates a linear regression over a user-selected interval determined from the selected "Anchor Period".
The PLR can be visualized as a regular linear regression (Static), with a fit readjusting for new data points until the end of the selected period, or as a moving average (Rolling), with new values obtained from the last point of a linear regression fitted over the calculation interval. While the static method line is prone to repainting, it has value since it can further emphasize the linearity of an underlying trend, as well as suggest future trend directions by extrapolating the fit.
Extremities are included in the indicator, these are obtained from the root mean squared error (RMSE) between the price and calculated linear regression. The Multiple setting allows the users to control how far each extremity is from the other.
Periodic Linear Regressions can be helpful in finding support/resistance areas or even opportunities when ranging in a channel.
The anchor - where a new period starts - can be shown (in this case in the top right corner).
The shown bands can be visualized by enabling Show Extremities in settings ( Rolling or Static method).
The script includes a background gradient color option for the bands, which only applies when using the Rolling method.
The indicator colors can be suggestive of the detected trend and are determined as follows:
Method Rolling: a gradient color between red and green indicates the trend; more green if the output is rising, suggesting an uptrend, and more red if it is decreasing, suggesting a downtrend.
Method Static: green if the slope of the line is positive, suggesting an uptrend, red if negative, suggesting a downtrend.
🔶 DETAILS
🔹 Anchor Type
When the Anchor Type is set to Periodic , the indicator will be reset when the "Anchor Period" changes, after which calculations will start again.
An anchored rolling line set at First Bar won't reset at a new session; it will continue calculating the linear regression from the first bar to the last; in other words, every bar is included in the calculation. This can be useful to detect potential long-term tops/bottoms.
Note that a linear regression needs at least two values for its calculation, which explains why you won't see a static line at the first bar of the session. The rolling linear regression will only show from the 3rd bar of the session since it also needs a previous value.
🔹 Rolling/Static
When Anchor Type is set at Periodic , a linear regression is calculated between the first bar of the chosen session and the current bar, aiming to find the line that best fits the dataset.
The example above shows the lines drawn during the session. The offered script, though, shows the last calculated point connected to the previous point when the Rolling method is chosen, while the Static method shows the latest line.
Note that linear regression needs at least two values, which explains why you won't see a static line at the first bar of the session. The rolling line will only show from the 3rd bar of the session since it also needs a previous value.
🔶 SETTINGS
Method: Indicator method used, with options: "Static" (straight line) / "Rolling" (rolling linear regression).
Anchor Type: "Periodic / First Bar" (the latter works only when "Method" is set to "Rolling").
Anchor Period: Only applicable when "Anchor Type" is set at "Periodic".
Source: open, high, low, close, ...
Multiple: Alters the width of the bands when "Show Extremities" is enabled.
Show Extremities: Display one upper and one lower extremity.
🔹 Color Settings
Mono Color: color when "Bicolor" is disabled
Bicolor: Toggle on/off + Colors
Gradient: Background color when "Show extremities" is enabled + level of gradient
🔹 Dashboard
Show Dashboard
Location of dashboard
Text size