GAP Momentum Oscillator
This function calculates GAP Momentum, a measure of momentum based on the gaps between opening and closing prices over several periods.
Gaps are calculated for defined periods (here, by default, 14 periods). It determines :
UpGaps: the sum of positive gaps, i.e. openings that are higher than the previous period's close.
DnGaps: the sum of negative gaps, i.e. openings below the previous period's close.
It then calculates the GAP Momentum as the ratio between the sum of the up gaps and the sum of the down gaps, multiplied by 100. If the total of the down gaps is zero, the ratio takes a default value of 1 to avoid division by zero.
Candlestick analysis
Essa's Indicator 2.0Essa's Indicator V2: Beginner's Guide
This custom TradingView indicator has been designed to help you identify key trading opportunities based on session highs/lows, volatility, and moving averages. Below is a breakdown of the main features:
1. Exponential Moving Averages (EMAs)
Fast EMA (Blue Line): Tracks the short-term market trend (default: 9-period EMA).
Slow EMA (Red Line): Tracks the longer-term market trend (default: 21-period EMA).
You can turn on/off the EMAs using the "Show EMAs" option in the settings.
EMAs help smooth out price action and give a clearer picture of trends. A crossover of the fast EMA above the slow EMA can signal an upward trend, while the reverse may indicate a downward trend.
2. Session Highs and Lows
The indicator tracks price highs and lows for three major trading sessions:
London Session (Red): Highlighted in red. Active between 08:00 and 17:00 (LDN timezone) or 03:00 and 12:00 (NY timezone).
New York Session (Blue): Highlighted in blue. Active between 12:00 and 21:00 (LDN timezone) or 07:00 and 16:00 (NY timezone).
Asia Session (Yellow): Highlighted in yellow. Active between 22:00 and 08:00 (LDN timezone) or 18:00 and 03:00 (NY timezone).
Highs and lows for each session are plotted on the chart as lines. Breakouts from these levels can signal important trading opportunities:
London High/Low: Red lines.
New York High/Low: Blue lines.
Asia High/Low: Yellow lines.
The background color also changes depending on the active session:
London: Light red background.
New York: Light blue background.
Asia: Light yellow background.
3. Breakout Alerts
You can set alerts when the price breaks above or below session highs/lows:
Break Above London High: Alert triggered when the price crosses the London session high.
Break Below London Low: Alert triggered when the price falls below the London session low.
Similar alerts exist for the New York and Asia sessions as well.
4. Volatility-Adjusted EMA
The EMAs in this indicator are adjusted based on volatility (ATR - Average True Range). This allows the EMAs to respond to market conditions more dynamically, giving you more accurate trend readings in volatile markets.
5. ZigZag Feature (Optional)
You can enable the ZigZag feature to help visualize the price action's highs and lows:
ZigZag Lines: Highlight major peaks and troughs in price movements, helping you spot trends more easily.
This is helpful for identifying reversals or trend continuations.
6. Fractal Markers
This indicator uses fractals to mark potential turning points in the market:
Green Triangles (Above the Price): Indicate up fractals (potential reversal points where the price could move upwards).
Red Triangles (Below the Price): Indicate down fractals (potential reversal points where the price could move downwards).
Fractals can be a helpful confirmation tool when identifying entry and exit points.
7. Custom Timezone Options
You can choose between London (LDN) and New York (NY) timezones in the settings to adapt the session times to your trading location. This ensures the session high/low markers are displayed correctly for your trading region.
By default, the New York (NY) timezone is enabled for FXCM charts in the UK.
For BTC charts, you will need to switch to the appropriate time zone manually.
Thanks
Essa
E9 Shark-32 PatternUnderstanding the Shark-32 Pattern and its Trading Applications
The Shark-32 Pattern is a bearish technical trading formation used to predict market reversals or trend continuations. It highlights a downward move followed by a corrective rally, signaling a potential resumption of the downtrend. Here’s a breakdown of how it works:
What is the Shark-32 Pattern?
The Shark-32 pattern is a five-wave structure typically observed in bearish markets:
Wave 0 to X: A significant price decline starts the pattern.
Wave X to A: A correction pushes the price slightly upward.
Wave A to B: The price drops again but doesn’t reach the initial low.
Wave B to C: A final sharp decline concludes the pattern.
Once Wave C is formed, it suggests that the market will continue to move downward, presenting a potential selling or shorting opportunity.
Using the Pattern in Trading
This pattern is valuable for traders seeking high-probability bearish setups. The goal is to capitalize on the continuation of a downtrend following the corrective rally (X to A). Identifying the Shark-32 pattern helps anticipate the next wave of selling pressure.
Trading Setup
Identify a Shark-32 pattern.
If the price closes above the pattern's high, buy at the open the next day.
If the price closes below the pattern's low, short at the open the next day.
Sell/cover when the price moves 7% in the direction of the breakout.
Close the trade for a loss if the price moves 7% in the opposite direction.
For example, in a bull market after an upward breakout from a Shark-32, the net gain was $69.55. The method won 56% of the time with 5,218 winning trades and an average gain of $714.07. Conversely, 44% of trades were losers, with an average loss of $747.33. The average holding period was 26 calendar days.
The gains and losses were closely aligned with the 7% threshold set for this test.
Key Target Levels
To enhance the strategy, use dotted projection lines as target levels:
Upper Target: Drawn above the high of the corrective rally (Wave A). If the price breaks above this line, it may signal further upward movement, indicating a potentially weaker downtrend.
Lower Target: Positioned below the low of Wave C, providing a target for bearish trades.
These lines help determine future price targets and assist in setting take-profit or stop-loss levels.
Trading the Breakout
Look for breakouts once the Shark-32 pattern is identified:
Upward Breakout: If the price closes above the green line (high from two bars ago), it indicates a potential reversal to the upside.
Downward Breakout: If the price breaks below the red line (low from two bars ago), it confirms the bearish continuation.
Breakouts allow traders to adjust their positions based on market shifts.
Trading Tips
Continuation: The Shark-32 pattern acts as a continuation 60% of the time, confirming the ongoing trend.
Breakout Confirmation: Wait for the price to close above or below the pattern’s key levels before entering a trade.
Trade with the Trend: Since the Shark-32 is a continuation pattern, expect the breakout to align with the inbound price trend.
Symmetry: Patterns with symmetry often perform better. For more insights, refer to detailed trading literature.
Half-Staff: The Shark-32 can form midway in a trend, similar to flags and pennants.
Shark-32: Trading Performance
Based on an analysis of 23,369 trades, the following performance metrics were observed:
Bull Market with Upward Breakout: The average net profit was $69.55. This method won 56% of the time, with winning trades averaging $714.07. Losing trades, which constituted 44% of the total, had an average loss of $747.33. The average holding period was 26 calendar days.
Bull Market with Downward Breakout: The average net loss was $(76.36). This method won 43% of the time, with winning trades averaging $753.56. Losing trades, which constituted 57% of the total, had an average loss of $706.32. The average holding period was 23 calendar days.
Bear Market with Upward Breakout: The average net loss was $(89.13). This method won 46% of the time, with winning trades averaging $710.77. Losing trades, which constituted 54% of the total, had an average loss of $756.97. The average holding period was 16 calendar days.
Bear Market with Downward Breakout: The average net profit was $65.17. This method won 52% of the time, with winning trades averaging $781.62. Losing trades, which constituted 48% of the total, had an average loss of $722.41. The average holding period was 13 calendar days.
RSI ProfitGuard [CHE]The RSI ProfitGuard Indicator is a comprehensive tool designed to assist traders in making informed decisions by integrating the Relative Strength Index (RSI) with automated Take Profit (TP) and Stop Loss (SL) levels. This indicator enhances trading strategies by providing clear entry signals and risk management parameters.
Key Features
RSIBased Signals: Utilizes RSI crossovers and crossunders to generate trade signals.
Automated TP and SL: Automatically calculates and plots Take Profit and Stop Loss levels based on userdefined methods.
Customizable Trade Types: Supports Long trades, Short trades, or both simultaneously.
Flexible Calculation Methods: Choose between Percentagebased or ATRbased methods for determining TP and SL levels.
Visual Enhancements: Highlights overbought and oversold RSI regions with background colors and marks trade entries with arrows.
Alerts: Provides realtime alerts when TP or SL levels are reached, ensuring timely trade management.
How It Works
1. RSI Calculation: The indicator calculates the RSI value based on the specified length.
2. Trade Signals:
Long Entry: Triggered when RSI crosses above the defined crossover threshold.
Short Entry: Triggered when RSI crosses below the defined crossunder threshold.
3. TP/SL Level Determination:
Percentage Method: Sets TP and SL as a percentage above and below the entry price.
ATR Method: Sets TP and SL based on the Average True Range (ATR), allowing for dynamic adjustments based on market volatility.
4. Visualization: Draws lines and labels on the chart to indicate TP, SL, and entry points.
5. Trade Management: Monitors price movements to determine if TP or SL levels are hit, automatically managing the trade state.
Customization Options
Trade Type Selection: Choose to execute Long trades, Short trades, or both.
RSI Settings:
RSI Length: Defines the period for RSI calculation (default is 14).
Crossover Threshold: RSI level above which a Long entry is signaled (default is 65).
Crossunder Threshold: RSI level below which a Short entry is signaled (default is 35).
Delay Settings: Sets the minimum number of bars between consecutive trade signals to avoid overtrading.
TP/SL Settings:
Method Selection: Choose between Percentage or ATRbased calculations.
Percentage Values: Define the percentage for TP and SL levels.
ATR Settings: Define ATR length and multipliers for TP and SL when using the ATR method.
Visual Settings:
Line Colors and Styles: Customize the appearance of TP, SL, crossover, and crossunder lines.
Transparency: Adjust the transparency of lines for better chart visibility.
Label Offset: Position labels at a specified number of bars to the right for clarity.
Using the Indicator
1. Add to Chart: Apply the RSI ProfitGuard Indicator to your TradingView chart.
2. Configure Settings: Adjust the parameters according to your trading strategy and risk tolerance.
3. Interpret Signals:
Long Entries: Look for green upward arrows indicating potential buy opportunities.
Short Entries: Look for red downward arrows indicating potential sell opportunities.
4. Monitor TP and SL Levels: Observe the plotted lines and labels to manage your trades effectively.
5. Set Up Alerts: Enable alerts to receive notifications when TP or SL levels are reached, ensuring you can act promptly.
Benefits
Enhanced DecisionMaking: Combines RSI signals with clear risk management levels.
Time Efficiency: Automates the calculation and plotting of TP and SL, saving time and reducing manual errors.
Flexibility: Adapts to various trading styles and market conditions through customizable settings.
Risk Management: Helps in defining and adhering to risk parameters, essential for longterm trading success.
Conclusion
The RSI ProfitGuard Indicator is an invaluable tool for traders seeking to integrate technical analysis with automated risk management. Its customizable features and realtime alerts provide a robust framework for executing and managing trades with confidence.
Disclaimer
The content provided with our RSI ProfitGuard Indicator, including all code, scripts, lessons, and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell, or an offer of any financial product or service.
Key Points:
Educational Purpose:
All strategies, tools, and examples included within the RSI ProfitGuard Indicator are provided solely for illustrative purposes. They are designed to demonstrate coding techniques and the functionality of Pine Script within a trading context.
No Financial Advice:
The RSI ProfitGuard Indicator does not constitute financial advice. Users should not rely on it as a basis for making investment or trading decisions.
Hypothetical Results:
Any results or performance metrics derived from using the RSI ProfitGuard Indicator are purely hypothetical. Past performance is not indicative of future results, and there is no guarantee of profitability.
Risk Disclosure:
Trading and investing involve significant risks, including the potential loss of principal. The RSI ProfitGuard Indicator is not suitable for all persons, and users should be aware of the inherent risks involved in trading.
Professional Consultation:
Before making any trading decisions, it is strongly recommended to consult with a qualified financial professional to fully understand the risks and ensure that such decisions align with your financial situation and goals.
User Responsibility:
By using the RSI ProfitGuard Indicator, you acknowledge and agree that all trading decisions are made solely at your own discretion and risk. The developers and providers of the RSI ProfitGuard Indicator assume no responsibility or liability for any losses or damages resulting from its use.
Additional Notes:
No Guarantees:
There are no guarantees regarding the accuracy, reliability, or completeness of the RSI ProfitGuard Indicator. Users utilize the tool at their own risk.
No Endorsement:
Any mention of third-party products, services, or strategies within the RSI ProfitGuard Indicator does not constitute an endorsement or recommendation.
Updates and Modifications:
The RSI ProfitGuard Indicator may be updated or modified over time. Users are responsible for staying informed about any changes and understanding how they may impact the use of the tool.
Summary
This disclaimer clearly states that the RSI ProfitGuard Indicator is intended for educational purposes and should not be used as financial advice. It highlights the risks associated with trading, the hypothetical nature of any results, and the importance of consulting with a financial professional. Additionally, it emphasizes that users are solely responsible for their trading decisions and any outcomes that result from using the indicator.
Tips for Implementation:
Visibility:
Ensure that this disclaimer is prominently displayed wherever the RSI ProfitGuard Indicator is offered, such as on your website, within the TradingView description, or in any accompanying documentation.
Clarity:
Use clear and concise language to make sure that all users understand the limitations and responsibilities associated with using the indicator.
Legal Review:
Consider having the disclaimer reviewed by a legal professional to ensure that it meets all necessary legal requirements and adequately protects your interests.
Regular Updates:
Periodically review and update the disclaimer to reflect any changes in the indicator's functionality or in relevant laws and regulations.
Multi-Symbol Volume Increase Screener [CHE] MultiSymbol Volume Increase Screener
Designed for TradingView
Presented by Chervolino
Introduction
Welcome to the presentation of the MultiSymbol Volume Increase Screener—a powerful tool designed to enhance your trading strategy on TradingView. Developed at the request of jscott143, this screener provides traders with realtime insights into significant volume movements across multiple symbols, enabling more informed and timely trading decisions.
Purpose and Objectives
Identify HighVolume Opportunities: Detect symbols experiencing a significant increase in volume compared to their historical average.
Monitor Multiple Symbols Simultaneously: Efficiently track up to five symbols in one view.
RealTime Alerts: Receive instant notifications when predefined volume conditions are met.
Comprehensive Overview: Display volume data and percentage increases in an organized table for easy analysis.
Key Features
1. MultiSymbol Monitoring
Track up to five different symbols simultaneously.
Customize the list of symbols based on your trading portfolio.
2. Volume Analysis
Compare current candle volume against the average volume over a specified period.
Calculate and display the percentage increase in volume.
3. RealTime Alerts
Set a volume increase multiplier (e.g., 1.5x) to trigger alerts.
Receive alerts via email, popup, or SMS when conditions are met.
4. UserFriendly Table Display
View symbols, their current volume, and percentage increase in a clear, concise table.
Colorcoded indicators highlight significant volume changes.
5. Customizable Parameters
Adjust the average volume period to suit different trading strategies.
Set your preferred volume increase multiplier for alerts.
How It Works
1. User Inputs:
Symbols Selection: Choose up to five symbols you wish to monitor.
Average Volume Period: Define the number of bars over which the average volume is calculated (default is 20).
Volume Increase Multiplier: Set the threshold for volume increase to trigger alerts (default is 1.5x).
2. Volume Calculation:
The screener fetches the current volume and calculates the simple moving average (SMA) of volume over the defined period for each symbol.
It then determines if the current volume exceeds the average volume by the specified multiplier.
3. Data Display:
A table is generated on the chart displaying each symbol, its current volume, and the percentage increase.
Green text indicates that the volume increase condition has been met.
4. Alert Generation:
When a symbol's current volume surpasses the average volume by the set multiplier, an alert is triggered.
Alerts are customizable and can be set to notify you through various channels.
Benefits
Enhanced DecisionMaking: Quickly identify highvolume trading opportunities across multiple assets.
Time Efficiency: Monitor several symbols without the need to switch between charts.
Proactive Trading: Stay informed with realtime alerts, allowing for timely trading actions.
Customization: Tailor the screener settings to align with your unique trading strategies and preferences.
Setup Instructions
1. Add the Screener to TradingView:
Navigate to TradingView and open the Pine Editor.
Add the MultiSymbol Volume Increase Screener indicator to your chart.
Save and apply the indicator.
2. Configure User Inputs:
Select up to five symbols you wish to monitor in the input fields "Symbol 1" to "Symbol 5".
Adjust the "Average Volume Period" and "Volume Increase Multiplier" as needed.
3. Set Up Alerts:
Click on the Alarm icon (🔔) in the TradingView toolbar.
In the "Condition" dropdown, select the "MultiSymbol Volume Increase Screener".
Choose the specific alert condition for each symbol (e.g., "Volume Increase Alert for Symbol 1").
Configure the alert actions (e.g., email, popup, SMS) and click "Create".
Repeat this process for each symbol you wish to monitor.
Visual Demonstration
Table Display Example:
| Symbol | Volume | % Increase |
| AAPL | 150,000 | 50.00% |
| MSFT | 120,000 | 20.00% |
| GOOGL | 180,000 | 80.00% |
| AMZN | 130,000 | 30.00% |
| TSLA | 160,000 | 60.00% |
Green Text: Indicates that the volume increase condition has been met for that symbol.
Alert Notification Example:
```
🚀 Symbol 1 shows a volume increase!
```
Note: Replace "Symbol 1" with the actual symbol as per your configuration.
Customization Options
Increase the Number of Symbols:
While the current screener monitors five symbols, it can be extended to monitor more by adding additional input fields and corresponding calculations. However, be mindful of TradingView's Pine Script limitations and potential performance impacts.
Adjust Volume Period and Multiplier:
Tailor the "Average Volume Period" and "Volume Increase Multiplier" to align with your specific trading strategies and market conditions.
Enhance Table Information:
Incorporate additional data points such as current price, price change percentage, or other technical indicators to enrich your analysis.
Benefits of Using the Screener
Efficiency: Saves time by providing a consolidated view of multiple symbols' volume activity.
Proactive Trading: Enables you to act swiftly on significant volume movements, which often precede price changes.
DataDriven Decisions: Facilitates informed trading decisions based on realtime volume analysis.
Customization: Offers flexibility to adapt the screener to various trading styles and preferences.
Conclusion
The MultiSymbol Volume Increase Screener is an invaluable tool for traders looking to capitalize on significant volume movements across multiple assets. Developed at the request of jscott143, this screener integrates seamlessly with TradingView, providing realtime insights and alerts to enhance your trading strategy.
Q&A
Feel free to ask any questions or request further customization to better suit your trading needs.
Contact Information
Created for: jscott143
Thank you for your attention!
PERFECT PIVOT RANGE DR ABIRAM SIVPRASAD (PPR)PERFECT PIVOT RANGE (PPR) by Dr. Abhiram Sivprasad
The Perfect Pivot Range (PPR) indicator is designed to provide traders with a comprehensive view of key support and resistance levels based on pivot points across different timeframes. This versatile tool allows users to visualize daily, weekly, and monthly pivots along with high and low levels from previous periods, helping traders identify potential areas of price reversals or breakouts.
Features:
Multi-Timeframe Pivots:
Daily, weekly, and monthly pivot levels (Pivot Point, Support 1 & 2, Resistance 1 & 2).
Helps traders understand price levels across various timeframes, from short-term (daily) to long-term (monthly).
Previous High-Low Levels:
Displays the previous week, month, and day high-low levels to highlight key zones of historical support and resistance.
Traders can easily see areas of price action from prior periods, giving context for future price movements.
Customizable Options:
Users can choose which pivot levels and high-lows to display, allowing for flexibility based on trading preferences.
Visual settings can be toggled on and off to suit different trading strategies and timeframes.
Real-Time Data:
All pivot points and levels are dynamically calculated based on real-time price data, ensuring accurate and up-to-date information for decision-making.
How to Use:
Pivot Points: Use daily, weekly, or monthly pivot points to find potential support or resistance levels. Prices above the pivot suggest bullish sentiment, while prices below indicate bearishness.
Previous High-Low: The high-low levels from previous days, weeks, or months can serve as critical zones where price may reverse or break through, indicating potential trade entries or exits.
Confluence: When pivot points or high-low levels overlap across multiple timeframes, they become even stronger levels of support or resistance.
This indicator is suitable for all types of traders (scalpers, swing traders, and long-term investors) looking to enhance their technical analysis and make more informed trading decisions.
Here are three detailed trading strategies for using the Perfect Pivot Range (PPR) indicator for options, stocks, and commodities:
1. Options Buying Strategy with PPR Indicator
Strategy: Buying Call and Put Options Based on Pivot Breakouts
Objective: To capitalize on sharp price movements when key pivot levels are breached, leading to high returns with limited risk in options trading.
Timeframe: 15-minute to 1-hour chart for intraday option trading.
Steps:
Identify the Key Levels:
Use weekly pivots for intraday trading, as they provide more significant levels for options.
Enable the "Previous Week High-Low" to gauge support and resistance from the previous week.
Call Option Setup (Bullish Breakout):
Condition: If the price breaks above the weekly pivot point (PP) with high momentum (indicated by a strong bullish candle), it signifies potential bullishness.
Action: Buy Call Options at the breakout of the weekly pivot.
Confirmation: Check if the price is sustaining above the pivot with a minimum of 1-2 candles (depending on timeframe) and the first resistance (R1) isn’t too far away.
Target: The first resistance (R1) or previous week’s high can be your target for exiting the trade.
Stop-Loss: Set a stop-loss just below the pivot point (PP) to limit risk.
Put Option Setup (Bearish Breakdown):
Condition: If the price breaks below the weekly pivot (PP) with strong bearish momentum, it’s a signal to expect a downward move.
Action: Buy Put Options on a breakdown below the weekly pivot.
Confirmation: Ensure that the price is closing below the pivot, and check for declining volumes or bearish candles.
Target: The first support (S1) or the previous week’s low.
Stop-Loss: Place the stop-loss just above the pivot point (PP).
Example:
Let’s say the weekly pivot point (PP) is at 1500, the price breaks above and sustains at 1510. You buy a Call Option with a strike price near 1500, and the target will be the first resistance (R1) at 1530.
2. Stock Trading Strategy with PPR Indicator
Strategy: Swing Trading Using Pivot Points and Previous High-Low Levels
Objective: To capture mid-term stock price movements using pivot points and historical high-low levels for better trade entries and exits.
Timeframe: 1-day or 4-hour chart for swing trading.
Steps:
Identify the Trend:
Start by determining the overall trend of the stock using the weekly pivots. If the price is consistently above the pivot point (PP), the trend is bullish; if below, the trend is bearish.
Buy Setup (Bullish Trend Reversal):
Condition: When the stock bounces off the weekly pivot point (PP) or previous week’s low, it signals a bullish reversal.
Action: Enter a long position near the pivot or previous week’s low.
Confirmation: Look for a bullish candle pattern or increasing volumes.
Target: Set your first target at the first resistance (R1) or the previous week’s high.
Stop-Loss: Place your stop-loss just below the previous week’s low or support (S1).
Sell Setup (Bearish Trend Reversal):
Condition: When the price hits the weekly resistance (R1) or previous week’s high and starts to reverse downwards, it’s an opportunity to short-sell the stock.
Action: Enter a short position near the resistance.
Confirmation: Watch for bearish candle patterns or decreasing volume at the resistance.
Target: Your first target would be the weekly pivot point (PP), with the second target as the previous week’s low.
Stop-Loss: Set a stop-loss just above the resistance (R1).
Use Previous High-Low Levels:
The previous week’s high and low are key levels where price reversals often occur, so use them as reference points for potential entry and exit.
Example:
Stock XYZ is trading at 200. The previous week’s low is 195, and it bounces off that level. You enter a long position with a target of 210 (previous week’s high) and place a stop-loss at 193.
3. Commodity Trading Strategy with PPR Indicator
Strategy: Trend Continuation and Reversal in Commodities
Objective: To capitalize on the strong trends in commodities by using pivot points as key support and resistance levels for trend continuation and reversal.
Timeframe: 1-hour to 4-hour charts for commodities like Gold, Crude Oil, Silver, etc.
Steps:
Identify the Trend:
Use monthly pivots for long-term commodities trading since commodities often follow macroeconomic trends.
The monthly pivot point (PP) will give an idea of the long-term trend direction.
Trend Continuation Setup (Bullish Commodity):
Condition: If the price is consistently trading above the monthly pivot and pulling back towards the pivot without breaking below it, it indicates a bullish continuation.
Action: Enter a long position when the price tests the monthly pivot (PP) and starts moving up again.
Confirmation: Look for a strong bullish candle or an increase in volume to confirm the continuation.
Target: The first resistance (R1) or previous month’s high.
Stop-Loss: Place the stop-loss below the monthly pivot (PP).
Trend Reversal Setup (Bearish Commodity):
Condition: When the price reverses from the monthly resistance (R1) or previous month’s high, it’s a signal for a bearish reversal.
Action: Enter a short position at the resistance level.
Confirmation: Watch for bearish candle patterns or decreasing volumes at the resistance.
Target: Set your first target as the monthly pivot (PP) or the first support (S1).
Stop-Loss: Stop-loss should be placed just above the resistance level.
Using Previous High-Low for Swing Trades:
The previous month’s high and low are important in commodities. They often act as barriers to price movement, so traders should look for breakouts or reversals near these levels.
Example:
Gold is trading at $1800, with a monthly pivot at $1780 and the previous month’s high at $1830. If the price pulls back to $1780 and starts moving up again, you enter a long trade with a target of $1830, placing your stop-loss below $1770.
Key Points Across All Strategies:
Multiple Timeframes: Always use a combination of timeframes for confirmation. For example, a daily chart may show a bullish setup, but the weekly pivot levels can provide a larger trend context.
Volume: Volume is key in confirming the strength of price movement. Always confirm breakouts or reversals with rising or declining volume.
Risk Management: Set tight stop-loss levels just below support or above resistance to minimize risk and lock in profits at pivot points.
Each of these strategies leverages the powerful pivot and high-low levels provided by the PPR indicator to give traders clear entry, exit, and risk management points across different markets
Heikin Ashi & Swing Highs/LowsHeikin Ashi & Swing Highs/Lows
Indicator Description:
The "Heikin Ashi & Swing Highs/Lows" indicator combines Heikin Ashi candle analysis with the identification of significant swing highs and lows on the chart. This indicator is useful for traders looking to spot trend changes and key points in the market.
Key Features:
Heikin Ashi:
Calculation and Visualization: Utilizes the Heikin Ashi method to smooth out the candlestick chart, helping to visualize trends and reduce market noise. Heikin Ashi candles are calculated from the standard candles (Open, High, Low, Close) and are displayed on the chart with a green color for bullish signals and red for bearish signals.
Vertical Offset Adjustment: Provides options to adjust the vertical offset of the candles based on the selected timeframe, with specific adjustments for short, medium, long, and super-long periods.
Swing Highs/Lows:
Key Point Identification: Marks significant swing highs and lows on the chart using a configurable period. Swing highs are displayed in red and swing lows in green.
Candlestick Patterns: Detects and labels common candlestick patterns such as:
Hammer: A bullish candlestick pattern with a small body and a long lower wick.
Inverted Hammer: Similar to the Hammer, but with a long upper wick.
Bullish Engulfing: A two-candle pattern where a bullish candle completely engulfs a previous bearish candle.
Hanging Man: A bearish pattern with a small body and a long lower wick, appearing at the end of an uptrend.
Shooting Star: A bearish pattern with a small body and a long upper wick, appearing at the end of an uptrend.
Bearish Engulfing: A two-candle pattern where a bearish candle completely engulfs a previous bullish candle.
Settings:
Timeframe: Allows you to select the desired timeframe to adjust the Heikin Ashi candle analysis.
Vertical Offset: Customize the vertical offset of Heikin Ashi candles based on the selected timeframe.
Swing Point Style: Configure the colors of the significant swing highs and lows on the chart.
Recommended Use:
This indicator is ideal for traders looking for a clear representation of trends through Heikin Ashi candles and who want to identify key reversal points in the market by detecting swing highs/lows and candlestick patterns.
Benefits:
Facilitates the identification of smooth trends and trend reversals.
Provides a clear visual representation of critical market points.
Helps traders recognize important candlestick patterns that may indicate changes in market direction.
Candle Closing Strength Indicator (CCS)This indicator measures and displays the closing strength of each candle relative to its range.
It assigns a value from 0 to 100, where
- 0 indicates a close at the candle's low,
- 100 indicates a close at the high, and
- 50 represents a close at the midpoint.
The strength is shown as a number on each candle, color-coded green for values 50 and above (bullish) and red for values below 50 (bearish). This visual representation helps traders quickly assess the strength and direction of price movements across different timeframes.
This is only the price action strength. Further strength can be verified with volume.
Morning Star Pattern### Purpose and Use of the Output
- **Identifying Bullish Reversal**: The Morning Star pattern is a bullish reversal signal that traders look for at the end of a downtrend. When this pattern appears, it suggests that the market may be shifting from bearish to bullish sentiment.
- **Trading Decisions**: Traders can use this indicator to make informed decisions about entering long positions. The appearance of the Morning Star pattern may prompt traders to buy, anticipating a price increase.
- **Visual Representation**: The plotted shape on the chart provides a visual cue for traders, making it easier to spot potential trading opportunities without having to analyze each candle manually.
### Conclusion
This Pine Script code is a useful tool for traders who want to automate the detection of the Morning Star candlestick pattern on their charts. By visually marking this pattern, traders can quickly identify potential bullish reversal points and make more informed trading decisions.
ICT Indicator with Paper TradingThe strategy implemented in the provided Pine Script is based on **ICT (Inner Circle Trader)** concepts, particularly focusing on **order blocks** to identify key levels for potential reversals or continuations in the market. Below is a detailed description of the strategy:
### 1. **Order Block Concept**
- **Order blocks** are price levels where large institutional orders accumulate, often leading to a reversal or continuation of price movement.
- In this strategy, **order blocks** are identified when:
- The high of the current bar crosses above the high of the previous bar (for bullish order blocks).
- The low of the current bar crosses below the low of the previous bar (for bearish order blocks).
### 2. **Buy and Sell Signal Generation**
The core of the strategy revolves around identifying the **breakout** of order blocks, which is interpreted as a signal to either enter or exit trades:
- **Buy Signal**:
- Generated when the closing price crosses **above** the last identified bullish order block (i.e., the highest point during the last upward crossover of highs).
- This signals a potential upward trend, and the strategy enters a long position.
- **Sell Signal**:
- Generated when the closing price crosses **below** the last identified bearish order block (i.e., the lowest point during the last downward crossover of lows).
- This signals a potential downward trend, and the strategy exits any open long positions.
### 3. **Strategy Execution**
The strategy is executed using the `strategy.entry()` and `strategy.close()` functions:
- **Enter Long Positions**: When a buy signal is generated, the strategy opens a long position (buying).
- **Exit Positions**: When a sell signal is generated, the strategy closes the long position.
### 4. **Visual Indicators on the Chart**
To make the strategy easier to follow visually, buy and sell signals are marked directly on the chart:
- **Buy signals** are indicated with a green upward-facing triangle above the bar where the signal occurred.
- **Sell signals** are indicated with a red downward-facing triangle below the bar where the signal occurred.
### 5. **Key Elements of the Strategy**
- **Trend Continuation and Reversals**: This strategy is attempting to capture trends based on the breakout of important price levels (order blocks). When the price breaks above or below a significant order block, it is expected that the market will continue in that direction.
- **Order Block Strength**: Order blocks are considered strong areas where price action could reverse or accelerate, based on how institutional investors place large orders.
### 6. **Paper Trading**
This script uses **paper trading** to simulate trades without actual money being involved. This allows users to backtest the strategy, seeing how it would have performed in historical market conditions.
### 7. **Basic Strategy Flow**
1. **Order Block Identification**: The script constantly monitors price movements to detect bullish and bearish order blocks.
2. **Buy Signal**: If the closing price crosses above the last order block high, the strategy interprets it as a sign of bullish momentum and enters a long position.
3. **Sell Signal**: If the closing price crosses below the last order block low, it signals a bearish momentum, and the strategy closes the long position.
4. **Visual Representation**: Buy and sell signals are displayed on the chart for easy identification.
### **Advantages of the Strategy:**
- **Simple and Clear Rules**: The strategy is based on clearly defined rules for identifying order blocks and trade signals.
- **Effective for Trend Following**: By focusing on breakouts of order blocks, this strategy attempts to capture strong trends in the market.
- **Visual Aids**: The plot of buy/sell signals helps traders to quickly see where trades would have been placed.
### **Limitations:**
- **No Shorting**: This strategy only enters long positions (buying). It does not account for shorting opportunities.
- **No Risk Management**: There are no built-in stop losses, trailing stops, or profit targets, which could expose the strategy to large losses during adverse market conditions.
- **Whipsaws in Range Markets**: The strategy could produce false signals in sideways or choppy markets, where breakouts are short-lived and prices quickly reverse.
### **Overall Strategy Objective:**
The goal of the strategy is to enter into long positions when the price breaks above a significant order block, and exit when it breaks below. The strategy is designed for trend-following, with the assumption that price will continue in the direction of the breakout.
Let me know if you'd like to enhance or modify this strategy further!
KINGThis indicator generates buy and sell signals based on specific candle patterns involving the size of the candle's body and wicks. A buy signal is triggered when a large bearish candle (body twice the size of its wicks) is followed by a bullish candle with a long lower wick (twice the size of its body and upper wick), and the close is above the low of the bearish candle, while the low of the current candle is lower. A sell signal occurs when a large bullish candle is followed by a candle with a long upper wick, and the close is below the high of the bullish candle, while the high of the current candle is higher. The indicator includes a reset mechanism to avoid premature signals when large candles with contradicting patterns appear.
Large Candle Detector (6-Candle Comparison)This indicator identifies large price candles that are bigger than the previous six candles, helping traders spot potential breakout or reversal signals. By highlighting significant candles compared to recent price action, it provides insights into key moments of increased volatility or momentum shifts in the market.
BTC Arcturus IndicatorBTC Arcturus Indicator: This indicator is designed to create buy and sell signals based on the market value of Bitcoin. It also predicts potential market tops with the Pi Cycle Top indicator.
How Does It Work?
1. MVRVZ (Market Value to Realized Value-Z Score) Calculation:
MC: Bitcoin's market cap (Market Cap) is pulled daily from Glassnode data.
MCR: Realized Market Cap of Bitcoin is taken daily from Coinmetrics data.
MVRVZ: It is calculated by dividing the difference between Bitcoin's market value and realized market value by one standard deviation. This value indicates whether the market is overvalued or undervalued.
2. Reception and Warning Signals:
Buy Signal: When MVRVZ falls below the -0.255 threshold value, the indicator gives a "Buy" signal. This indicates that Bitcoin is undervalued and may be a buying opportunity.
Warning Signal: A warning signal turns on when MVRVZ exceeds the threshold value of 2.765. This indicates that the market is approaching saturation and caution is warranted.
3. Tracking the Highest MVRVZ Value:
The indicator records the highest MVRVZ value in the last 10 candlesticks. This value is used to determine whether the market has reached its highest risk levels.
4. Warning Display:
If the MVRVZ value matches the highest value in the last 10 bars and this warning has not been displayed before, a "Warning" signal is displayed.
Once the warning signal is shown, no further warnings are shown for 10 candles.
5. Pi Cycle Top Indicator:
Pi Cycle Top: This indicator predicts Bitcoin tops by comparing two moving averages (350-day and 111-day). If the short-term moving average falls below the long-term moving average, this is considered a sell signal.
The indicator displays this signal with the label "Sell", indicating a potential market top.
User Guide:
Green Buy Signal: It means Bitcoin is cheap and offers a buying opportunity.
Yellow Warning Signal: Indicates that Bitcoin has reached possible profit taking points and caution should be exercised.
Red Sell Signal: Indicates that Bitcoin has reached market saturation and it may be appropriate to sell.
Decoding the Volume of candlesThe indicator is designed for traders who are more interested in market structures and price action using volumes. Volume analysis can help traders build a clearer understanding of zones of buyer and seller interest, as well as liquidity gathering points (traders' stop levels).
Key Features:
The indicator visualizes on the chart the volumes selected according to the trader's chosen settings.
The indicator highlights candle volumes in selected colors, where the volume is greater individually than the volumes of the trader's chosen number of preceding candles. Or the volume that is greater than the sum of volumes of the trader's chosen number of preceding candles.
The indicator mark selected volumes on the chart based on the type of candle. The candle type (1, 2, or 3) is determined by its result (close) relative to other candles.
Volume marked for a type 3 candle draws the trader’s attention to the lack of results from the applied volume compared to the previous candle, indicating potential weakness of the candle’s owner. This is especially important in buyer or seller context areas.
Volume marked for a type 2 candle highlights the presence of results from the applied volume but only relative to the previous candle. In buyer or seller context areas, this can signal weakness of the candle’s owner.
Volume marked for a type 1 candle signals a strong result from the applied volume, indicating potential strength of the candle’s owner.
The marking of volumes can be displayed either on the main chart or on the volume chart, depending on the trader's preference. Colors and symbols for marking can be customized on the Style tab.
Volumes can be filtered on both the volume chart and the main chart according to their marking. This feature can be useful, for example, for traders who don’t work with signs of buyer or seller weakness. In such cases, they can filter out volumes only for type 1 candles.
Good luck exploring the impact of volumes on price behavior!
Grandfather-Father-Son RSI Buy Indicator-only for daily TFGrandfather-Father-Son RSI Buy and Sell Indicator
This script identifies buy and sell opportunities by combining RSI values across multiple timeframes to capture market trends and reversals. The "Grandfather-Father-Son" concept breaks down RSI analysis into three key timeframes:
Grandfather (Monthly): Represents the long-term trend, helping to filter trades that align with the overall market direction.
Father (Weekly): Provides intermediate-term momentum, confirming market conditions before signaling entry or exit points.
Son (Daily): Tracks short-term corrections and movements to pinpoint precise buy and sell opportunities.
Key Features:
Buy Signal: A buy signal is triggered when:
Monthly RSI (Grandfather) and Weekly RSI (Father) are both above 70.
Daily RSI (Son) is between 40 and 45, signaling a potential market pullback before resuming the upward trend.
The indicator checks for alignment across these timeframes to generate a reliable buy signal.
Sell Signal: A sell signal occurs when the Daily RSI (Son) crosses above 70, indicating a potential overbought condition.
Multi-Timeframe Analysis: The script pulls data from higher timeframes (monthly and weekly) to ensure that signals reflect larger market trends rather than short-term fluctuations.
Instructions:
Optimal Timeframe: This script works best on the Daily timeframe, as it uses Monthly and Weekly RSI for trend confirmation. The indicator will display a warning if applied to other timeframes to ensure it is used optimally.
Trend Alignment: The strategy ensures that buy signals are triggered only when there is a strong uptrend in both the Grandfather (Monthly) and Father (Weekly) RSI, while sell signals are based on potential overbought conditions in the Son (Daily) RSI.
Limitations:
Timeframe Dependency: Signals are based on higher timeframe data (Weekly and Monthly), which may only update at the close of those respective time periods. Therefore, it is designed to work in real-time but will be most reliable when trading in alignment with these longer-term trends.
Replay Mode: The script has been optimized to function correctly during live market conditions, with no reliance on future data (no lookahead). This ensures signals appear accurately during both backtesting and live trading.
Disclaimer:
This script is for educational purposes and should be used with caution. Always backtest before using in live trading and adjust parameters to fit your trading strategy and risk management plan.
Custom Date CVDThis indicator allows setting a custom date for the beginning of cumulative volume delta calculations.
Why is it important? CVD shows aggressiveness of buyers and sellers. And in order for a bull run to sustain you need aggressive buyers hitting the ask. If the price goes up, but CVD goes down - unlikely this bull trend will last long.
You might want to choose a recent top or bottom as the start point and check whether the aggressiveness of market participants corresponds to the price movement since that peak. For example on the chart above we can see that the price was going up and down, but the aggressiveness clearly points down. Does it mean that we will have a long bear market? No. It means that until the aggressiveness starts pointing up we should not expect a bull market. It might happen tomorrow, or might happen in a month. Nobody knows. But until it starts happening - don't expect the real bull.
Additionally, candles where the aggressiveness went the opposite direction from the price are marked with a blue dot above them.
Note: the smaller the custom time frame of the indicator - the more correct the results are. However, the drawback is that shorter the lookback period will be. The actual length will depend on your subscription level and the number of subcandles of the selected instrument.
EMA14 Second Time BUY/SELL AlertsEMA14 Crossover Strategy with Conditional BUY/SELL Alerts
This powerful script provides dynamic BUY and SELL alerts based on the interaction between price action and the EMA14 (Exponential Moving Average 14). Ideal for traders looking to capitalize on trend reversals and breakout patterns, this indicator helps you time entries and exits with precision.
Key Features:
Second-Time Crossover Alerts: The script tracks when the price crosses the EMA14 for the second time. This adds confirmation to price movements and helps filter out false signals.
Conditional BUY/SELL Alerts:
BUY Alert: Triggered when the price closes above the EMA14 after a previous SELL signal, indicating a potential trend reversal or breakout to the upside.
SELL Alert: Triggered when the price closes below the EMA14 after a previous BUY signal, signaling a possible shift to the downside.
Advanced Crossover Tracking:
The script counts each crossover of the price relative to the EMA14, generating a BUY or SELL signal on the second instance to provide additional confirmation of trend strength.
Visual Alerts: Labels are plotted directly on the chart to highlight when a BUY or SELL signal has occurred, providing immediate visual feedback for traders to react in real-time.
How It Works:
The script combines the simplicity of EMA14 with enhanced logic that tracks both crossovers and closes relative to the moving average. This ensures that the signals are based not only on quick movements but also on price confirmation, reducing noise and false breakouts.
This script is perfect for traders who rely on moving average strategies and want additional filtering to confirm trends and optimize trade timing.
Charan_Trading_IndicatorCharan_Trading_Indicator Overview:
The Charan_Trading_Indicator combines several technical analysis tools, including Bollinger Bands, RSI (Relative Strength Index), VWAP (Volume-Weighted Average Price), and ATR (Average True Range), to provide buy and sell signals. The script incorporates multiple strategies, such as crack snap setups, overbought/oversold levels, and trend continuation indicators, all tailored for precise market entry and exit points.
Key Components:
RSI (Relative Strength Index):
The indicator uses RSI to detect overbought (RSI > 70) and oversold (RSI < 30) market conditions.
Alerts are triggered when prices are within the specified buy/sell range and RSI crosses these thresholds.
Bollinger Bands:
Bollinger Bands are calculated based on a configurable moving average and standard deviation.
The script identifies potential buy signals when the price dips below the lower Bollinger Band and recovers, and sell signals when the price exceeds the upper Bollinger Band and retraces.
Crack Snap Strategies:
The indicator incorporates multiple variations of the crack snap strategy:
Buy Signals: Triggered when price opens below the lower Bollinger Band and closes above it, alongside certain conditions in previous candles.
Sell Signals: Triggered when price opens above the upper Bollinger Band and closes below it, with similar candle patterns.
Variations such as 3-candle (3C) and 4-candle (4C) versions refine the crack snap setups for more robust signals.
Isolated Candle Conditions:
The indicator tracks isolated candles, where the entire candle lies above or below the Bollinger Bands, to identify potential reversal points.
Trend Continuation Signals:
Conditions based on the candle range and previous highs/lows allow the indicator to generate signals for trend continuation:
Buy signals when price breaks above the previous two highs.
Sell signals when price breaks below the previous two lows.
VWAP (Volume-Weighted Average Price):
The indicator integrates VWAP to give additional support and resistance levels, ensuring signals align with volume trends.
ATR-Based Stop Loss:
For both buy and sell conditions, the script plots stop-loss levels based on the ATR (Average True Range), giving dynamic risk management levels.
Buy/Sell Ranges:
The user can set minimum and maximum price ranges for buy and sell signals, ensuring that the indicator only generates alerts within desired price ranges.
How It Works:
Buy Signals: The script generates buy signals based on multiple conditions, including the crack snap strategy, oversold RSI levels, and trend continuation setups. When these conditions are met, green triangles appear below the price bars, and an alert is triggered.
Sell Signals: Sell signals are triggered when the opposite conditions are met (overbought RSI, crack snap sell setups, trend breaks), and red triangles appear above the price bars.
Visual Indicators: The script plots upper and lower Bollinger Bands, stop loss levels, and VWAP on the chart, providing a comprehensive view of market conditions and support/resistance levels.
This indicator is versatile, combining multiple technical tools for robust decision-making in trading. It generates alerts, plots visual markers, and integrates risk management, making it a well-rounded tool for technical analysis.
This indicator is versatile, combining multiple technical tools for robust decision-making in trading. It generates alerts, plots visual markers, and integrates risk management, making it a well-rounded tool for technical analysis.
Yesterday's Levels with 50% wick and Equilibrium## Script Description
This Pine Script indicator highlights key levels from the previous day’s daily candle on any timeframe chart. It focuses exclusively on marking the following:
1. **Previous Day’s High, Low, Open, and Close**:
- Horizontal lines are drawn to indicate the previous day's high, low, open, and close prices.
- These lines are white and extend across the chart.
2. **50% of Candle Wicks**:
- If the previous day’s candle has wicks, two additional lines mark 50% of the top wick and 50% of the bottom wick.
- These lines are green and dotted, representing half the wick’s height.
3. **Equilibrium (50% of the Full Candle)**:
- A horizontal red line marks the midpoint (equilibrium) of the entire previous day’s candle, from high to low.
- This line is thicker than the others to emphasize the equilibrium level.
The script works by focusing only on the previous day’s daily candle, ensuring that it doesn’t plot lines for any older candles. These levels are visible on all timeframes.
RCYC Bullish Bearish Indicator
Summary: The RCYC Bullish Bearish Indicator is a custom trading tool designed to help traders identify potential bullish and bearish conditions in the market using a combination of KDJ and RSI indicators. This indicator uses color-coded candles to visually represent bullish and bearish signals, making it easy to identify trend changes on the chart. The script is particularly useful for traders who prefer visual signals and want to incorporate both trend momentum (KDJ) and relative strength (RSI) in their analysis.
Description:
The RCYC Bullish Bearish Indicator is a unique mashup of the KDJ and RSI indicators, optimized to provide a clear visual representation of market conditions through color-coded candles. This indicator not only identifies the potential trend shifts but also provides alerts for significant crossover points, enhancing a trader's ability to make informed decisions.
How It Works:
KDJ Calculation:
The KDJ is a variation of the Stochastic Oscillator that includes the %J line, which can go beyond the typical 0-100 range of %K and %D.
The KDJ component of this indicator calculates the highest high and lowest low over a specified period (KDJ Length), using these values to derive the %K line.
The %D line is a smoothed version of %K, and the %J line is derived from %K and %D using the formula: J = 3 * %K - 2 * %D.
This indicator focuses on the behavior of the %J line in relation to a mid-point level (50), identifying crossovers and crossunders that signal potential shifts in market sentiment.
RSI Calculation:
The Relative Strength Index (RSI) is a momentum oscillator that measures the speed and change of price movements. It is widely used to identify overbought or oversold conditions.
In this indicator, RSI values are adjusted and plotted to align visually with the KDJ values, providing a complementary momentum analysis.
Crossover Logic and Candle Coloring:
The indicator tracks two main events:
CrossOver50: When the %J line crosses above the 50 level, indicating potential bullish momentum.
CrossUnder50: When the %J line crosses below the 50 level, indicating potential bearish momentum.
Depending on the crossover events, the script changes the color of the candles on the chart:
Red candles on the initial crossover above 50, followed by dark blue candles to maintain bullish sentiment.
Yellow candles on the initial crossover below 50, followed by light blue candles to maintain bearish sentiment.
Alerts:
The indicator includes alert conditions for both bullish and bearish signals:
Red Candle Alert: Notifies the trader when the %J line crosses above 50.
Yellow Candle Alert: Notifies the trader when the %J line crosses below 50.
These alerts allow traders to react promptly to key market signals without continuously monitoring the chart.
Usage and Benefits:
This indicator is designed for traders looking to combine momentum and trend analysis into a single visual tool. It is particularly useful for those trading in trending markets or looking for entry/exit signals based on momentum shifts.
The color-coded candles provide an intuitive way to assess market conditions at a glance, reducing the complexity associated with analyzing multiple indicators separately.
By integrating both KDJ and RSI, the RCYC Bullish Bearish Indicator offers a balanced approach to trend detection and momentum confirmation, making it versatile for various trading styles, including scalping, swing trading, and position trading.
Originality and Usefulness:
While the indicator builds upon the familiar concepts of KDJ and RSI, it uniquely merges them into a cohesive visual tool with distinct crossover-based alerts and candle coloring.
This approach makes the indicator original, as it simplifies the interpretation of complex signals into straightforward visual cues, enhancing the decision-making process for traders who prefer chart-based analysis.
ICT Vacuum BlocksThe indicator draws a box between the closing price of one candle and the opening price of the next whenever a gap occurs, helping traders easily spot potential areas of interest where the market has skipped over price levels. The boxes do not extend beyond the gap itself, keeping the chart clean and focused on the price action.
Features:
Detects both upward and downward gaps.
Non-extending boxes that accurately represent the size of each gap.
Customizable colors for up and down gaps to match your chart style.
best indicator at 15 minut This Pine Script code builds an indicator called EMA Crossover with Historical Price Projection that combines two components:
EMA Crossover Strategy:
EMA 9 and EMA 21: The script calculates two exponential moving averages (EMAs) using the ta.ema() function. The crossover between these EMAs generates buy/sell signals.
A bullish crossover (when EMA 9 crosses above EMA 21) signals a buy.
A bearish crossover (when EMA 9 crosses below EMA 21) signals a sell.
These buy/sell signals are visualized on the chart using the plotshape() function with green and red symbols.
Historical Price Projection:
The code projects future prices based on historical price trends. It takes into account growth factors (user-defined drift percentages) to estimate future prices.
Projection Line: It draws a projection line from the anchor point (set by the user) using historical data. The drift factor allows you to control the projection's slope.
Forecasting Area: It shows an optional area around the projected price, adjusting the width with a user-defined growth factor for the forecast's uncertainty.
Key Sections:
Inputs:
User-defined inputs for controlling the growth factor, line styles, and forecasting area settings.
An anchoring point is provided to determine from which bar the price projection should start.
EMA Crossover:
The crossover conditions for EMA 9 and EMA 21 are defined, and the script generates buy and sell signals at those crossovers.
Historical Price Projection:
It stores the percentage changes between bars in barDeltaPercents.
It projects the future price based on these percentages and the user-defined drift factor.
The projected price is visualized using polyline.new(), and a shaded area can be added to show the range of price possibilities.
Execution Logic:
The script runs when the current time is greater than the anchor point.
If the anchor point is too far back in history, it gives a warning via the showInfoPanel function.
As new bars are confirmed, the drift is calculated, and the projection line and area are updated based on historical price changes.
Overall Flow:
It gathers price data up to 500 bars from the anchor point.
Based on the historical price trend, it forecasts the future price with a projection line and an optional shaded area.
The crossover logic for EMA 9 and 21 provides actionable signals on when to buy or sell.
Multi-Asset Cross Timeframe Divergence Ind. (MACDI) // AlgoFyreThe Multi-Asset Cross Timeframe Divergence Indicator (MACDI) identifies divergences in momentum like RSI across multiple assets and timeframes. It visually highlights lagging correlated asset momentum divergences, helping traders spot inefficiencies and potential trade opportunities in the following asset.
🔶 KEY FEATURES
🔸Average Momentum Trendline for Each Timeframe
The Average Momentum Trendline feature calculates the average momentum of multiple assets over specified timeframes. It uses smoothed values to determine the momentum trend for each timeframe on the average aggregated momentum of both assets. This trendline helps traders identify the overall direction of the market momentum, providing a clearer picture of potential price movements.
🔸Real-time Divergence Indication and Alert Table
The Real-time Divergence Indications and Alert Table feature visualizes detected divergences between the momentum values of the two assets across different timeframes. It identifies both bullish and bearish divergences, signaling lagging reversals in the the following asset and potential trading opportunities. When a divergence is detected, the system generates real-time visual indications on the chart and in an overview table for traders to act promptly. The alert table provides a comprehensive overview of all detected divergences, making it easier for traders to monitor and respond to market changes.
🔸Color and Size Based Labels on Price Chart based on Divergence Type
The Color and Size Based Labels feature visually represents divergences directly on the price chart. Bullish and bearish divergences are marked with distinct colors and sizes, making them easily identifiable at a glance. Larger labels indicate higher timeframes and thus generally more significance.
🔶 INSTRUCTION GUIDELINES
🔸Identify Divergence Clusters
The more divergences align, the higher the probability of a potential trend reversal in the asset. When multiple multi-timeframe divergences occur in both lower and higher timeframes within a local cluster, the probability of a reversal increases. This is valid for both for bullish and bearish divergences.
🔸Spot Low Probability Divergences
To further increase the probability, analyze the current state of the average momentum trendline. For a bullish reversal, a relatively low level of the average momentum trendline is preferred, whereas for a bearish reversal, a relatively high level is preferred.
🔶 INDIVIDUAL CONFIGURATION
🔸Leading Asset
This input allows the user to select the leading asset for the divergence analysis.
🔸Following Asset
This input allows the user to select the following asset for the divergence analysis.
🔸Higher Timeframe
This input sets the higher timeframe for the analysis.
🔸Lower Timeframe
This input sets the lower timeframe for the analysis.
🔸Show RSI Divergence
This input enables or disables the display of RSI divergence signals.
🔸RSI Length
This input sets the length of the RSI calculation.
🔸RSI Source
This input sets the source data for the RSI calculation (e.g., close price).
🔸RSI Smoothing Length
This input sets the length of the smoothing applied to the RSI values.
🔸Smoothing Method
This input sets the method used for smoothing the RSI values.
🔶 CONCLUSION
The Multi-Asset Cross Timeframe Divergence Indicator (MACDI) is a powerful tool for identifying momentum divergences across multiple assets and timeframes. Its visual cues and customizable table make it easy to use and interpret, providing valuable insights for trading decisions.