DivergenceUnderstanding the Divergence Indicator
This indicator is designed to identify and analyze divergences between price action and multiple technical indicators across different timeframes. Divergence occurs when the price of an asset moves in one direction while a technical indicator moves in the opposite direction, potentially signaling a trend reversal or continuation.
Key Features
1. Customizable Parameters: Users can adjust settings for divergence detection, including:
- Bullish/Bearish divergence detection
- Regular/Hidden divergence identification
- Pivot lookback periods
- Weighting for different divergence types
2. Strength Calculation: The indicator calculates divergence strength based on the magnitude of divergence and user-defined weightings.
3. Visual Representation: Divergences are displayed on the chart with lines connecting price and indicator pivots, along with labels showing divergence strength.
Utility in Trading
1. Early Trend Reversal Signals: By identifying divergences, traders can anticipate potential trend reversals before they occur in price action.
2. Trend Continuation Confirmation: Hidden divergences can help confirm the continuation of an existing trend.
3. Multi-Timeframe Analysis: The indicator allows for divergence detection across various timeframes, enhancing the reliability of signals.
4. Risk Management: Traders can use divergence signals to adjust their stop-loss levels or take profits on existing positions.
5. Comprehensive Market View: By analyzing multiple indicators simultaneously, traders gain a more robust assessment of market conditions.
6. Objective Strength Evaluation: The divergence strength calculation provides an objective measure of signal significance.
By incorporating this divergence indicator into their trading strategy, traders can potentially improve their market timing, risk management, and overall trading performance.
Indicators and strategies
Cumulative Force Oscillator with MACDCumulative Force Oscillator with MACD
The Cumulative Force Oscillator with MACD is an advanced technical indicator designed to provide traders with a unique perspective on market momentum and trend strength. By combining the power of cumulative candle force analysis with MACD crossover signals, this indicator offers a multifaceted approach to market analysis.
Key Features
1. Cumulative Force Calculation**: Measures the net force of price movements over a specified number of candles.
2. MACD Integration**: Incorporates MACD crossover signals for additional trend confirmation.
3. Visual Cues**: Utilizes color-coded oscillator lines and background zones for easy interpretation.
4. **Dynamic Labeling**: Displays real-time force values and percentage changes.
How It Works
Cumulative Force Calculation
The indicator calculates the "force" of each candle by subtracting the open price from the close price. It then sums this force over a user-defined number of candles to create a cumulative force value. This value oscillates above and below zero, indicating bullish or bearish pressure respectively.
MACD Crossover Detection
The indicator uses the standard MACD (12, 26, 9) to detect bullish and bearish crossovers. These crossovers are visually represented by colored background zones, providing an additional layer of trend confirmation.
Visual Representation
- The main oscillator line is plotted in green when above zero (bullish) and red when below zero (bearish).
- Background colors change based on MACD crossovers: light blue for bullish crossovers and light orange for bearish crossovers.
- A dynamic label displays the current cumulative force value and its percentage change from the previous period.
Interpretation
1. Oscillator Line : When the line is above zero, it indicates net bullish pressure; below zero suggests net bearish pressure.
2. Oscillator Momentum : The steepness and direction of the oscillator line indicate the strength and direction of the current market force.
3. MACD Crossovers : Blue background zones suggest potential bullish trends, while orange zones indicate potential bearish trends.
4. Divergences : Look for divergences between the oscillator and price action for potential trend reversal signals.
Customization
Users can customize several aspects of the indicator :
- Number of candles for force calculation
- Label offset and text size
- Color schemes (through code modification)
Conclusion
The Cumulative Force Oscillator with MACD is a versatile tool that combines momentum analysis with trend confirmation signals. By providing a visual representation of cumulative market force alongside MACD crossovers, it offers traders a comprehensive view of market dynamics. This indicator can be particularly useful for identifying potential trend reversals, confirming existing trends, and gauging overall market strength.
Eroina Trend Reversal Indicator with ConfirmationsEroina Trend Reversal Indicator with Confirmations
Overview (English):
The Trend Reversal Indicator with Confirmations is designed to identify potential trend reversals by analyzing dynamic resistance and support levels. This script uses a robust confirmation system to reduce false signals, making it ideal for traders who seek disciplined, data-driven decisions.
Key Features:
• Dynamic Levels: Calculates resistance and support levels based on user-defined lengths.
• Breakout Confirmation: Confirms trend reversals by validating price action over a specified number of candles.
• Visual Cues: Displays “LONG” and “SHORT” signals directly on the chart, alongside resistance/support levels.
• Customizable Parameters: Adaptable to different timeframes and market conditions.
How It Works:
1. Resistance & Support Levels:
• Resistance: Calculated as the highest high over the last N bars.
• Support: Calculated as the lowest low over the last N bars.
2. Breakout Detection:
• A resistance breakout occurs when the price closes above the resistance level.
• A support breakout occurs when the price closes below the support level.
3. Confirmation Logic:
• Signals are validated only if the price remains above/below the levels for a user-defined number of candles.
4. Entry Signals:
• “LONG” signals indicate a confirmed breakout above resistance.
• “SHORT” signals indicate a confirmed breakdown below support.
Settings:
• Resistance Length: Defines the number of candles used to calculate resistance levels.
• Support Length: Defines the number of candles used to calculate support levels.
• Confirmation Candles: Specifies how many candles are required to confirm breakouts.
Usage:
This indicator is ideal for identifying trend reversals and optimizing entry points. Combine it with volume analysis or other technical indicators to enhance accuracy. For example:
• Use in conjunction with RSI to avoid overbought/oversold conditions.
• Combine with moving averages to confirm the trend direction.
Overview (Additional Language):
(Your additional language description can go here after English, e.g., Russian, Spanish, etc.)
Smart Moving Average Trend IndicatorThe Smart Moving Average Trend Indicator is designed to provide traders with a comprehensive analysis of market trends, confirmations, and potential reversals. Here’s a detailed description of its technical features:
Technical Features
Moving Average Calculation:
Simple Moving Average (SMA): The indicator calculates a simple moving average over a user-defined period (default is 14 bars). This average helps smooth out price fluctuations and identify the overall direction of the trend.
Trend Detection:
Primary Trend: Identifies long-term trends (weeks to months) based on price movement above or below the SMA.
Secondary Trend: Tracks short-term corrections or retracements against the primary trend.
Minor Trend: Monitors short-term fluctuations, providing insights into immediate market movements.
Volume Confirmation:
The indicator assesses whether the current volume exceeds a threshold (default is 1.5 times the SMA of volume). A price increase accompanied by higher volume indicates stronger trend validity.
Trendline Detection:
The script draws trendlines for primary, secondary, and minor trends, visually assisting traders in identifying potential support and resistance levels. These trendlines help visualize the overall market structure.
Trend Reversal Signals:
The indicator highlights potential trend reversals based on specific conditions (e.g., lower troughs or peaks). This feature allows traders to anticipate changes in trend direction, increasing the likelihood of capturing significant price moves.
Alerts:
Alert Conditions: The indicator includes alert conditions for potential trend reversals and volume confirmations. Traders can set up alerts to be notified when these conditions are met, facilitating timely decision-making.
Visual Indications:
Background Color: Changes the background color to red when a potential trend reversal is detected, providing a clear visual cue.
Volume Confirmation Markers: Displays small upward labels below bars when volume confirmation is present, indicating significant trading activity accompanying price movements.
Overall Benefits
Multi-Faceted Analysis: The combination of trend detection, volume analysis, and reversal signals provides a holistic view of market dynamics.
Enhanced Decision-Making: With alerts and visual cues, traders can make more informed decisions, potentially increasing their success in identifying entry and exit points.
Flexibility: Users can customize the moving average length and volume threshold, allowing the indicator to adapt to different trading strategies and timeframes.
This Smart Moving Average Trend Indicator is particularly useful for traders looking to capture trends while minimizing noise and false signals, making it a valuable tool in technical analysis.
Dynamic Signal EngineDynamic Signal Engine
The Dynamic Signal Engine is a powerful and versatile indicator, designed to help traders make informed decisions by combining trend analysis with key support and resistance levels. This tool is inspired by the Linear Regression Oscillator , which laid the foundation for this enhanced implementation. By building on the original concept, this script introduces additional features, customization, and integration with dynamic trading strategies to suit diverse trading styles.
Key Features
Inspiration and Foundation
This indicator draws inspiration from the Linear Regression Oscillator , leveraging its robust trend detection capabilities while adding custom enhancements for broader functionality and user adaptability.
Trading Style Customization
Adaptable for Scalping, Intraday, and Swing Trading with dynamic parameter adjustments for each style.
User-defined inputs for thresholds, lookback periods, and visualization options provide further control.
Enhanced Linear Regression Oscillator (LRO)
A refined implementation of the LRO calculates deviations from a regression line, normalized for improved trend detection.
Identifies bullish and bearish crossovers with added alerts and visual markers.
Includes proximity alerts for critical thresholds to help traders anticipate key market movements.
Dynamic Support and Resistance Integration
Incorporates ENIGMA Signal Logic to identify swing highs and lows, dynamically marking them as fractal support and resistance levels.
When a sell signal from ENIGMA is generated, traders can choose to sell immediately or use the low of the previous candle as the entry point. Similarly, for a buy signal, traders can buy immediately or use the high of the previous candle for entry. These signals are visually indicated by a green triangle for buy signals, ensuring clear and actionable insights.
Advanced Visualization
Displays key levels with customizable horizontal lines (solid, dashed, or dotted) and labels for clarity.
Candle colours and mini arrows highlight trends and potential trading opportunities.
Real-Time Alerts
Alerts for LRO threshold crossings and swing-level breaches keep you updated without the need for constant monitoring.
Optimized for Usability
Designed to keep charts clean by limiting displayed trades and signals to recent activity.
Adjustable parameters ensure flexibility and a user-friendly experience.
How It Works
Trend Detection with Enhanced LRO
The indicator builds on the Linear Regression Oscillator , calculating oscillations of price movements and normalizing them for trend analysis. Crossovers and threshold proximity are visualized on the chart and trigger alerts for potential market shifts.
Dynamic Support and Resistance Levels
The ENIGMA Signal Logic identifies recent swing highs and lows, marking them as key levels. These levels are dynamically updated as new swing points are detected, providing actionable support and resistance zones.
Signal Confirmation
Buy or sell signals are confirmed when:
Price breaches the swing levels.
The LRO aligns with directional bias (e.g., bearish crossover for sell signals).
Signals are further clarified by ENIGMA's green triangle indicators, showing key buy and sell opportunities.
Visualization and Alerts
Signals are displayed using arrows, labelled horizontal lines, and optional candle colours. Alerts notify traders of key events, such as LRO threshold crossings or swing-level breaches.
How to Use
Choose your Trading Style: Scalping, Intraday, or Swing Trading. The indicator adjusts its default settings automatically.
Fine-tune parameters like LRO thresholds, line lengths, and the number of visible trades to suit your preferences.
Observe the chart for signals:
Green arrows and lines indicate buy opportunities.
Red arrows and lines signal sell opportunities.
Use the alert system to stay informed about LRO thresholds and signal confirmations.
Integrate the indicator with your existing trading strategy for better decision-making.
Acknowledgement
This script was inspired by the Linear Regression Oscillator . While it builds on the core concept, this implementation introduces unique enhancements, such as dynamic signal integration, trading style adaptability, and advanced visualization tools, making it a highly customizable and versatile tool for traders.
Disclaimer
This indicator is intended for educational purposes only and should not be considered financial advice. Always perform due diligence and apply appropriate risk management when trading.
Kernel Regression Envelope with SMI OscillatorThis script combines the predictive capabilities of the **Nadaraya-Watson estimator**, implemented by the esteemed jdehorty (credit to him for his excellent work on the `KernelFunctions` library and the original Nadaraya-Watson Envelope indicator), with the confirmation strength of the **Stochastic Momentum Index (SMI)** to create a dynamic trend reversal strategy. The core idea is to identify potential overbought and oversold conditions using the Nadaraya-Watson Envelope and then confirm these signals with the SMI before entering a trade.
**Understanding the Nadaraya-Watson Envelope:**
The Nadaraya-Watson estimator is a non-parametric regression technique that essentially calculates a weighted average of past price data to estimate the current underlying trend. Unlike simple moving averages that give equal weight to all past data within a defined period, the Nadaraya-Watson estimator uses a **kernel function** (in this case, the Rational Quadratic Kernel) to assign weights. The key parameters influencing this estimation are:
* **Lookback Window (h):** This determines how many historical bars are considered for the estimation. A larger window results in a smoother estimation, while a smaller window makes it more reactive to recent price changes.
* **Relative Weighting (alpha):** This parameter controls the influence of different time frames in the estimation. Lower values emphasize longer-term price action, while higher values make the estimator more sensitive to shorter-term movements.
* **Start Regression at Bar (x\_0):** This allows you to exclude the potentially volatile initial bars of a chart from the calculation, leading to a more stable estimation.
The script calculates the Nadaraya-Watson estimation for the closing price (`yhat_close`), as well as the highs (`yhat_high`) and lows (`yhat_low`). The `yhat_close` is then used as the central trend line.
**Dynamic Envelope Bands with ATR:**
To identify potential entry and exit points around the Nadaraya-Watson estimation, the script uses **Average True Range (ATR)** to create dynamic envelope bands. ATR measures the volatility of the price. By multiplying the ATR by different factors (`nearFactor` and `farFactor`), we create multiple bands:
* **Near Bands:** These are closer to the Nadaraya-Watson estimation and are intended to identify potential immediate overbought or oversold zones.
* **Far Bands:** These are further away and can act as potential take-profit or stop-loss levels, representing more extreme price extensions.
The script calculates both near and far upper and lower bands, as well as an average between the near and far bands. This provides a nuanced view of potential support and resistance levels around the estimated trend.
**Confirming Reversals with the Stochastic Momentum Index (SMI):**
While the Nadaraya-Watson Envelope identifies potential overextended conditions, the **Stochastic Momentum Index (SMI)** is used to confirm a potential trend reversal. The SMI, unlike a traditional stochastic oscillator, oscillates around a zero line. It measures the location of the current closing price relative to the median of the high/low range over a specified period.
The script calculates the SMI on a **higher timeframe** (defined by the "Timeframe" input) to gain a broader perspective on the market momentum. This helps to filter out potential whipsaws and false signals that might occur on the current chart's timeframe. The SMI calculation involves:
* **%K Length:** The lookback period for calculating the highest high and lowest low.
* **%D Length:** The period for smoothing the relative range.
* **EMA Length:** The period for smoothing the SMI itself.
The script uses a double EMA for smoothing within the SMI calculation for added smoothness.
**How the Indicators Work Together in the Strategy:**
The strategy enters a long position when:
1. The closing price crosses below the **near lower band** of the Nadaraya-Watson Envelope, suggesting a potential oversold condition.
2. The SMI crosses above its EMA, indicating positive momentum.
3. The SMI value is below -50, further supporting the oversold idea on the higher timeframe.
Conversely, the strategy enters a short position when:
1. The closing price crosses above the **near upper band** of the Nadaraya-Watson Envelope, suggesting a potential overbought condition.
2. The SMI crosses below its EMA, indicating negative momentum.
3. The SMI value is above 50, further supporting the overbought idea on the higher timeframe.
Trades are closed when the price crosses the **far band** in the opposite direction of the trade. A stop-loss is also implemented based on a fixed value.
**In essence:** The Nadaraya-Watson Envelope identifies areas where the price might be deviating significantly from its estimated trend. The SMI, calculated on a higher timeframe, then acts as a confirmation signal, suggesting that the momentum is shifting in the direction of a potential reversal. The ATR-based bands provide dynamic entry and exit points based on the current volatility.
**How to Use the Script:**
1. **Apply the script to your chart.**
2. **Adjust the "Kernel Settings":**
* **Lookback Window (h):** Experiment with different values to find the smoothness that best suits the asset and timeframe you are trading. Lower values make the envelope more reactive, while higher values make it smoother.
* **Relative Weighting (alpha):** Adjust to control the influence of different timeframes on the Nadaraya-Watson estimation.
* **Start Regression at Bar (x\_0):** Increase this value if you want to exclude the initial, potentially volatile, bars from the calculation.
* **Stoploss:** Set your desired stop-loss value.
3. **Adjust the "SMI" settings:**
* **%K Length, %D Length, EMA Length:** These parameters control the sensitivity and smoothness of the SMI. Experiment to find settings that work well for your trading style.
* **Timeframe:** Select the higher timeframe you want to use for SMI confirmation.
4. **Adjust the "ATR Length" and "Near/Far ATR Factor":** These settings control the width and sensitivity of the envelope bands. Smaller ATR lengths make the bands more reactive to recent volatility.
5. **Customize the "Color Settings"** to your preference.
6. **Observe the plots:**
* The **Nadaraya-Watson Estimation (yhat)** line represents the estimated underlying trend.
* The **near and far upper and lower bands** visualize potential overbought and oversold zones based on the ATR.
* The **fill areas** highlight the regions between the near and far bands.
7. **Look for entry signals:** A long entry is considered when the price touches or crosses below the lower near band and the SMI confirms upward momentum. A short entry is considered when the price touches or crosses above the upper near band and the SMI confirms downward momentum.
8. **Manage your trades:** The script provides exit signals when the price crosses the far band. The fixed stop-loss will also close trades if the price moves against your position.
**Justification for Combining Nadaraya-Watson Envelope and SMI:**
The combination of the Nadaraya-Watson Envelope and the SMI provides a more robust approach to identifying potential trend reversals compared to using either indicator in isolation. The Nadaraya-Watson Envelope excels at identifying potential areas where the price is overextended relative to its recent history. However, relying solely on the envelope can lead to false signals, especially in choppy or volatile markets. By incorporating the SMI as a confirmation tool, we add a momentum filter that helps to validate the potential reversals signaled by the envelope. The higher timeframe SMI further helps to filter out noise and focus on more significant shifts in momentum. The ATR-based bands add a dynamic element to the entry and exit points, adapting to the current market volatility. This mashup aims to leverage the strengths of each indicator to create a more reliable trading strategy.
AriVestHub_Inside Bars/Candles
Introduction:
This script identifies and marks inside bars on your TradingView charts. An inside bar pattern is a two-bar candlestick pattern where the second bar is entirely within the range of the first bar. This pattern often signals consolidation and can indicate a potential breakout or trend continuation.
Trading Signals:
Inside bars can indicate potential trading signals. Traders often watch for breakouts above or below the inside bar to identify potential entry points.
Customization:
You can customize the colors, styles, and labels to suit your preferences.
Conclusion
This script is a useful tool for traders looking to identify inside bar patterns on their TradingView charts. By highlighting these patterns, traders can make more informed trading decisions based on potential market consolidations and breakouts.
Custom Price Red Line IndicatorCustom Price Red Line Indicator is a tool used in trading platforms to visually represent key price levels on a chart. This indicator typically draws a red line at a specific price, which can serve as a threshold or a level of interest, such as a resistance or support level. It is customizable to allow traders to set the price at which the red line will appear, making it useful for highlighting critical price points that may signal potential trade entries or exits.
Key Features:
• Customizable Price Level: Set the exact price where the red line will be drawn.
• Visual Signal: The red line acts as a visual aid to indicate important price levels.
• Alerts: Traders can set alerts when the price crosses the red line to track market movements.
• Trend Analysis: The red line can represent key support, resistance, or psychological price levels for trend analysis.
This indicator can be used in various timeframes and across different asset classes to assist traders in their technical analysis.
TAPDA Hourly Open Lines (Candle Body Box)-What is TAPDA?
TAPDA (Time and Price Displacement Analysis) is based on the belief that markets are driven by algorithms that respond to key time-based price levels, such as session opens. Traders who follow TAPDA track these levels to anticipate price movements, reversals, and breakouts, aligning their strategies with the patterns left by these underlying algorithms. By plotting lines at specific hourly opens, the indicator allows traders to visualize where the market may react, providing a structured way to trade alongside the algorithmic flow.
***************
**Sauce Alert** "TAPDA levels essentially act like algorithmic support and resistance" By plotting these hourly opens, the TAPDA Hourly Open Lines indicator helps traders track where algorithms might engage with the market.
***************
-How It Works:
The indicator draws a "candle body box" at selected hours, marking the open and close prices to highlight price ranges at significant times. This creates dynamic zones that reflect market sentiment and structure throughout the day. TAPDA levels are commonly respected by price, making them useful for identifying potential entry points, stop placements, and trend reversals.
-Key Features:
Customizable Hour Levels – Enable or disable specific times to fit your trading approach.
Color & Label Control – Assign unique colors and labels to each hour for better visualization.
Line Extension – Project lines for up to 24 hours into the future to track key levels.
Dynamic Cleanup – Old lines automatically delete to maintain chart clarity.
Manual Time Offset – Adjust for broker or server time zone differences.
-Current Development:
This indicator is still in development, with further updates planned to enhance functionality and customization. If you find this script helpful, feel free to copy the code and stay tuned for new features and improvements!
Golden & Death Cross with Re-Activation [By Oberlunar]🎄 Merry Christmas to All Traders! 🎄
Let me introduce you to a practical and customizable classic tool: the Golden & Death Cross with Re-Activation. This script is designed to help you navigate the markets with precision and adaptability.
Why Is This Script Important?
1. Customizable Moving Averages
You can choose from SMA, EMA, WMA, HMA, or RMA for both moving averages. This flexibility allows you to tailor the strategy to fit different markets and trading styles.
2. Smart Signal Handling
The script generates Golden Cross (LONG) and Death Cross (SHORT) signals while deactivating them automatically when the moving averages start to converge, avoiding unnecessary noise.
3. Reactivation Based on Distance Threshold
With the treshold parameter, signals are reactivated only when the moving averages move apart sufficiently, ensuring that the signals remain meaningful and not just random market noise.
What Are These Moving Averages?
SMA (Simple Moving Average),
EMA (Exponential Moving Average),
WMA (Weighted Moving Average),
HMA (Hull Moving Average),
RMA (Relative Moving Average)
Community Input
We invite you to test this script on various markets (forex, stocks, crypto) and share your insights:
Which moving average combination works best for EUR/USD?
How about BTC/USD?
Does the treshold make a noticeable difference?
Let us know in the comments!
Example Settings
MA 1 Type: HMA, Length: 21
MA 2 Type: HMA, Length: 200
Reactivation Threshold: 0.5
Experiment with it, and let us know your findings.
Wishing you a calm holiday season and a profitable new year ahead! 🎁
🎄 Merry Christmas and Happy Trading! 🎄
Trend Trading SetupTrend Trading Setup is an indicator that is designed to assist with trend trading by indicating when the basic conditions for a trade in either direction are met.
Note: Default values assume the 1-hour chart
The idea is that this will allow a trader to know for the first glance if a market is worthy of closer inspection or not.
Indicator Features:
1. Simple Moving Averages - defining the basic trade conditions
5 - Day Moving Average
20 - Day Moving Average
50 - Day Moving Average
2. Visualisation of The Price Location In Relation To The 5 - Day Moving Average
If price is above the 5-day Moving Average, the space between them is green. If price is below the 5-day Moving Average, the space between them is red.
3. Risk Management Section - calculates an ATR-based stop loss.
4. Indication When The Conditions Are Met
If the conditions for a bullish bias are met, the chart background is green. If the conditions for a bearish bias are met, the chart background is red. If none of the conditions are met, the chart background is left as is.
A user can adjust the length of any of the Moving Averages as well as the length of the ATR and the ATR Multiplier for the stop loss size. Default values assume the 1-hour chart, but surprisingly the settings seem to show logical results also on other time frames.
The Setup:
Bullish - 5-day Moving Average is above the 50-day Moving Average. The slope of both of the Moving Averages is positive and the price has to be above the 5-day Moving Average.
Bearish - Exactly the same as for the bullish bias, but opposite.
I do not recommend to take this Trend Trading Setup indicator as the only reason for a position. However, I believe it can be very useful to show when the overall conditions are in favour of a long position or in favour of a short position.
IU 4 Bar UP StrategyIU 4 Bar UP Strategy
The IU 4 Bar UP Strategy is a trend-following strategy designed to identify and execute long trades during strong bullish momentum, combined with confirmation from the SuperTrend indicator. This strategy is suitable for traders aiming to capitalize on sustained upward market movements.
Features :
1. SuperTrend Confirmation: Incorporates the SuperTrend indicator as a dynamic support/resistance line to filter trades in the direction of the trend.
2. 4 Consecutive Bullish Bars: Detects a series of 4 bullish candles as a signal for strong upward momentum, ensuring robust trade setups.
3. Dynamic Alerts: Sends alerts for trade entries and exits to keep traders informed.
4. Visual Enhancements:
- Plots the SuperTrend indicator on the chart.
- Changes the background color while a trade is active for easy visualization.
Inputs :
- SuperTrend ATR Period: The period used to calculate the Average True Range (ATR) for the SuperTrend indicator.
- SuperTrend ATR Factor: The multiplier for the ATR in the SuperTrend calculation.
Entry Conditions :
A long entry is triggered when:
1. The last 4 consecutive candles are bullish (closing prices are higher than opening prices).
2. The current price is above the SuperTrend line.
3. The strategy is not already in a position.
4. The bar is confirmed (not a partially formed bar).
When all these conditions are met, the strategy enters a long position and provides an alert:
"Long Entry triggered"
Exit Conditions :
The strategy exits the long position when:
1. The closing price drops below the SuperTrend line.
2. An alert is generated: "Close the long Trade"
Visualization :
- The SuperTrend line is plotted, dynamically colored:
- Green when the trend is bullish.
- Red when the trend is bearish.
- The background color turns semi-transparent green while a trade is active, indicating a long position.
Do use proper risk management while using this strategy.
Multi-Timeframe Liquidity LevelsMulti-Timeframe Liquidity Levels – Overview
The Multi-Timeframe Liquidity Levels indicator automatically displays significant highs and lows from various timeframes (Daily, Weekly, Monthly, and Quarterly) on your current chart. This allows traders to quickly identify potential support and resistance zones without frequently switching between different timeframe charts. Additionally, the script offers extra lines for special reference points (e.g., the “Midnight” midpoint of the current day and the previous day’s open/close) to highlight potential liquidity zones even more clearly.
1. Core Idea and Benefits
Time-Saving: Instead of manually reviewing charts in different timeframes, the indicator fetches relevant high/low levels automatically and shows them on your active timeframe.
Clear Layout: Traders instantly see where the Daily, Weekly, Monthly, and Quarterly highs and lows lie—areas often associated with institutional orders or liquidity hunts.
Customizable: You can tailor the color scheme, line style (Solid, Dashed, Dotted), and line width, ensuring the displayed levels fit your personal charting style.
2. How It Works
Multi-Timeframe High/Low
For each timeframe (Day, Week, Month, Quarter), the indicator references the previous candle’s high and low (high , low ).
Using request.security(...), these values are plotted on the chart you’re currently viewing.
Flexible Display
You can individually enable or disable the Daily, Weekly, Monthly, and Quarterly lines, depending on which levels are most relevant to your trading.
With Line Style (Solid, Dashed, Dotted) and Line Width, you can easily emphasize certain lines you consider more important.
Additional Lines
“Midnight” Line: A theoretical midpoint between today’s high and low, which can be useful for gauging daily pivot areas.
Previous Day’s Open/Close: Many traders track these reference points to anticipate market reactions. You can show or hide these lines as desired.
Automatic Line Removal & Creation
When a particular timeframe (e.g., “Show Monthly Levels”) is disabled, the script automatically removes the existing monthly lines.
Enabling it again recreates those lines without hassle.
3. Usage and Interpretation
Identifying Support and Resistance
Highs and lows from higher timeframes are often key zones for entries, exits, or major market reactions.
A Daily level may be crucial for short-term traders, whereas Monthly or Quarterly levels can indicate long-term liquidity areas.
Spotting Market Shifts
If price decisively moves above a Higher-Timeframe line, it could signal strong momentum.
Conversely, a failed breakout (where price quickly returns under or above a level) might warn of a potential reversal.
Extra Lines as Filters
The “Midnight” Line helps visualize a rough central price for the current day, aiding in intraday directional bias.
Previous Day’s Open/Close: Common reference points for day traders, where swift approaches and rejections can indicate potential entries or partial take-profit zones.
4. Practical Tips
Use Color-Coding Wisely: Assign distinct colors (e.g., Blue for Daily, Green for Weekly, Orange for Monthly, Purple for Quarterly) so you can easily discern which timeframe you’re looking at.
Toggle On/Off As Needed: Day traders might focus on Daily and Weekly, while long-term traders may pay closer attention to Monthly and Quarterly.
Combine with Price Action: Lines alone don’t constitute a trading strategy. Use them alongside candlestick patterns, volume analysis, or other indicators for a more complete market perspective.
5. Important Notes & Recommendations
Not Financial Advice: This indicator simply reflects historical high/low data across multiple timeframes and does not constitute a buy or sell recommendation.
Trader Responsibility: Observe how the market actually behaves around these lines and adapt your risk management accordingly.
Uptrick: Smart BoundariesThis script is an indicator that combines the RSI (Relative Strength Index) and Bollinger Bands to highlight potential points where price momentum and volatility may both be at extreme levels. Below is a detailed explanation of its components, how it calculates signals, and why these two indicators have been merged into one tool. This script is intended solely for educational purposes and for traders who want to explore the combined use of momentum and volatility measures. Please remember that no single indicator guarantees profitable results.
Purpose of This Script
This script is designed to serve as a concise, all-in-one tool for traders seeking to track both momentum and volatility extremes in real time. By overlaying RSI signals with Bollinger Band boundaries, it helps users quickly identify points on a chart where price movement may be highly stretched. The goal is to offer a clearer snapshot of potential overbought or oversold conditions without requiring two separate indicators. Additionally, its optional pyramiding feature enables users to manage how many times they initiate trades when signals repeat in the same direction. Through these combined functions, the script aims to streamline technical analysis by consolidating two popular measures—momentum via RSI and volatility via Bollinger Bands—into a single, manageable interface.
1. Why Combine RSI and Bollinger Bands
• RSI (Relative Strength Index): This is a momentum oscillator that measures the speed and magnitude of recent price changes. It typically ranges between 0 and 100. Traders often watch for RSI crossing into “overbought” or “oversold” levels because it may indicate a potential shift in momentum.
• Bollinger Bands: These bands are plotted around a moving average, using a standard deviation multiplier to create an upper and lower boundary. They help illustrate how volatile the price has been relative to its recent average. When price moves outside these boundaries, some traders see it as a sign the price may be overstretched and could revert closer to the average.
Combining these two can be useful because it blends two different perspectives on market movement. RSI attempts to identify momentum extremes, while Bollinger Bands track volatility extremes. By looking for moments when both conditions agree, the script tries to highlight points where price might be unusually stretched in terms of both momentum and volatility.
2. How Signals Are Generated
• Buy Condition:
- RSI dips below a specified “oversold” level (for example, 30 by default).
- Price closes below the lower Bollinger Band.
When these occur together, the script draws a label indicating a potential bullish opportunity. The underlying reasoning is that momentum (RSI) suggests a stronger-than-usual sell-off, and price is also stretched below the lower Bollinger Band.
• Sell Condition:
- RSI rises above a specified “overbought” level (for example, 70 by default).
- Price closes above the upper Bollinger Band.
When these occur together, a label is plotted for a potential bearish opportunity. The rationale is that momentum (RSI) may be overheated, and the price is trading outside the top of its volatility range.
3. Pyramiding Logic and Trade Count Management
• Pyramiding refers to taking multiple positions in the same direction when signals keep firing. While some traders prefer just one position per signal, others like to scale into a trade if the market keeps pushing in their favor.
• This script uses variables that keep track of how many recent buy or sell signals have fired. If the count reaches a user-defined maximum, no more signals of that type will trigger additional labels. This protects traders from over-committing to one direction if the market conditions remain “extreme” for a prolonged period.
• If you disable the pyramiding feature, the script will only plot one label per side until the condition resets (i.e., until RSI and price conditions are no longer met).
4. Labels and Visual Feedback
• Whenever a buy or sell condition appears, the script plots a label directly on the chart:
- Buy labels under the price bar.
- Sell labels above the price bar.
These labels make it easier to review where both RSI and Bollinger Band conditions align. It can be helpful for visually scanning the chart to see if the signals show any patterns related to market reversals or trend continuations.
• The Bollinger Bands themselves are plotted so traders can see when the price is approaching or exceeding the upper or lower band. Watching the RSI and Bollinger Band plots simultaneously can give traders more context for each signal.
5. Originality and Usefulness
This script provides a distinct approach by merging two well-established concepts—RSI and Bollinger Bands—within a single framework, complemented by optional pyramiding controls. Rather than using each indicator separately, it attempts to uncover moments when momentum signals from RSI align with volatility extremes highlighted by Bollinger Bands. This combined perspective can aid in spotting areas of possible overextension in price. Additionally, the built-in pyramiding mechanism offers a method to manage multiple signals in the same direction, allowing users to adjust how aggressively they scale into trades. By integrating these elements together, the script aims to deliver a tool that caters to diverse trading styles while remaining straightforward to configure and interpret.
6. How to Use the Indicator
• Configure the Inputs:
- RSI Length (the lookback period used for the RSI calculation).
- RSI Overbought and Oversold Levels.
- Bollinger Bands Length and Multiplier (defines the moving average period and the degree of deviation).
- Option to reduce pyramiding.
• Set Alerts (Optional):
- You can create TradingView alerts for when these conditions occur, so you do not have to monitor the chart constantly. Choose the buy or sell alert conditions in your alert settings.
• Integration in a Trading Plan:
- This script alone is not a complete trading system. Consider combining it with other forms of analysis, such as support and resistance, volume profiles, or candlestick patterns. Thorough research, testing on historical data, and risk management are always recommended.
7. No Performance Guarantees
• This script does not promise any specific trading results. It is crucial to remember that no single indicator can accurately predict future market movements all the time. The script simply tries to highlight moments when two well-known indicators both point to an extreme condition.
• Actual trading decisions should factor in a range of market information, including personal risk tolerance and broader market conditions.
8. Purpose and Limitations
• Purpose:
- Provide a combined view of momentum (RSI) and volatility (Bollinger Bands) in a single script.
- Assist in spotting times when price may be at an extreme.
- Offer a configurable system for labeling potential buy or sell points based on these extremes.
• Limitations:
- Overbought and oversold conditions can persist for an extended period in trending markets.
- Bollinger Band breakouts do not always result in immediate reversals. Sometimes price keeps moving in the same direction.
- The script does not include a built-in exit strategy or risk management rules. Traders must handle these themselves.
Additional Disclosures
This script is published open-source and does not rely on any external or private libraries. It does not use lookahead methods or repaint signals; all calculations are performed on the current bar without referencing future data. Furthermore, the script is designed for standard candlestick or bar charts rather than non-standard chart types (e.g., Heikin Ashi, Renko). Traders should keep in mind that while the script can help locate potential momentum and volatility extremes, it does not include an exit strategy or account for factors like slippage or commission. All code comes from built-in Pine Script functions and standard formulas for RSI and Bollinger Bands. Anyone reviewing or modifying this script should exercise caution and incorporate proper risk management when applying it to their own trading.
Calculation Details
The script computes RSI by examining a user-defined number of prior bars (the RSI Length) and determining the average of up-moves relative to the average of down-moves over that period. This ratio is then scaled to a 0–100 range, so lower values typically indicate stronger downward momentum, while higher values suggest stronger upward momentum. In parallel, Bollinger Bands are generated by first calculating a simple moving average (SMA) of the closing price for the user-specified length. The script then measures the standard deviation of closing prices over the same period and multiplies it by the chosen factor (the Bollinger Bands Multiplier) to form the upper and lower boundaries around the SMA. These two measures are checked in tandem: if the RSI dips below a certain oversold threshold and price trades below the lower Bollinger Band, a condition is met that may imply a strong short-term sell-off; similarly, if the RSI surpasses the overbought threshold and price rises above the upper Band, it may indicate an overextended move to the upside. The pyramiding counters track how many of these signals occur in sequence, preventing excessive stacking of labels on the chart if conditions remain extreme for multiple bars.
Conclusion
This indicator aims to provide a more complete view of potential market extremes by overlaying the RSI’s momentum readings on top of Bollinger Band volatility signals. By doing so, it attempts to help traders see when both indicators suggest that the market might be oversold or overbought. The optional reduced pyramiding logic further refines how many signals appear, giving users the choice of a single entry or multiple scaling entries. It does not claim any guaranteed success or predictive power, but rather serves as a tool for those wanting to explore this combined approach. Always be cautious and consider multiple factors before placing any trades.
Exponential Avg Body Size Green vs RedDescription :
This indicator calculates and plots the Exponential Moving Average (EMA) of green and red candlestick body sizes, allowing traders to easily visualize market momentum and sentiment shifts. The script includes the following features:
Customizable EMA Period: Users can set the number of candles to calculate the EMA through an input setting, with a default value of 21.
Separate Green and Red Candle Averages: Differentiates between bullish (green) and bearish (red) candlestick movements, plotting them as distinct lines.
Dynamic Range Control: Users can adjust the chart range (e.g., -50 to 50) for better visibility of the plotted lines.
Baseline for Reference: A horizontal baseline at 0 serves as a visual aid for easier interpretation.
Standalone Indicator Pane: The script is designed to display in a separate pane, preventing overlap with the price chart.
Use Case:
This indicator is ideal for traders seeking to analyze the relative strength of bullish versus bearish price movements over a specific period. The separation of green and red averages helps identify trends, potential reversals, or shifts in momentum.
Line Break Chart StrategyHello All!
We should not pass this year without a gift!
My last publication in 2024 is Complete Line Break Chart Strategy with many features!
What is Line Break Chart?
" Line Break is a Japanese chart style that disregards time intervals and only focuses on price movements, similar to the Kagi and Renko chart styles. Line Break charts form a series of up and down bars (referred to as lines). Up lines represent rising prices, and down lines represent falling prices. New confirmed lines only form on the chart when closing prices break the range covered by previous lines. Users can control the number of past lines used in the calculation via the "Number of Lines" input in the chart settings. The typical "Number of Lines" setting is 3, meaning the chart forms a new up line when the closing price is above the high prices of the last three lines, and it forms a new down line when the closing price is below the past three lines' low prices. If the current price is higher, it is an up line and if it is lower, it is a down line. If the current closing price is the same or the move in the opposite direction is not large enough to warrant a reversal, l then no new line is draw n" by Tradingview. You can find it here
Now let's start examining the features of the indicator:
By using Line break reversals it shows trend on the main chart. You can create alert .
Moreover, you can decide which trade should be taken by using Risk Management in the indicator. You can set the " Maximum Risk " and then if the risk is more than you set then the trade is not taken. When trend changed it checks the distance between reversal level and open price and compare it with the Maximum Risk
Breakout:
It can find breakouts and shows on the chart. You can create alert for breakouts
It can show breakouts on the main chart:
Flip-Flops:
Upon looking at set of price break charts, the trader will notice that there are instances when uptrend blocks is followed by one reversal block, and then by a reversal to a series of uptrend blocks. The opposite is also possible: a series of downtrend blocks is followed by one reversal box and then by an immediate reversal to downtrend. This price action is called a " Flip-Flop ". This structure usually produces trend continuation signal. when we see this then we better use Buy/Sell stop order. lets see this on the chart:
Temporal Sequence Table:
Sequence frequency shows the frequency distribution of the number of sequential highs and the number of sequential lows that have been generated. This is quite important to the trader who is seeking to join a trend or put on a trade when the price break reverses into a new trend direction. For example, if the pattern over the past year has been that there never were more than nine consecutive high closes, it would make sense not to enter a position late into the sequence of new high closes.
also you can see market structure. I have tried to formalize it and show it under the table. so you can understand if it's choppy market.
"Number of Lines" has very important role. While using low time frames such seconds/minutes time frame you may want to choose higher number of lines such 5,6. ( this may minimize the risk of a whipsaw )
Gaps feature:
You can set Gaps on/off. if Gaps on then you can see how long it takes for each box
Reversal and Continuation Probability:
The script calculated Reversal level and Continuation probability of the trend by using Sequence frequency.
It also shows unconfirmed box and current closing price level:
Last but not least it has Overlay option for all items, and can show all items in the main chart!
P.S. I added alerts :)
Wish you all a happy new year!
Enjoy!
Catalyst TrendCatalyst Trend – A Comprehensive Trend and Regime Analyzer
The Catalyst Trend indicator was designed to dynamically and intuitively merge various classic analytical techniques. The goal is to filter out short-term market noise and reveal reliable trend phases or potential turning points. Below is a detailed explanation of its core elements and practical usage.
1. Concept and Idea
Multidimensional Trend Detection
This indicator goes beyond a simple momentum or volatility focus. It factors in multiple measurements to provide a more well-rounded market perspective.
Versatile Indicator Fusion
Linear Regression (LinReg): Multiple LinReg calculations are combined to smooth out price fluctuations and produce a robust trendline—known here as the “Cycle Reduced Line.”
ADX (Average Directional Index): Measures trend strength.
RSI (Relative Strength Index): Flags potential overbought or oversold conditions, in both the current timeframe and a higher timeframe.
ATR (Average True Range): Assesses volatility; used to dynamically adjust calculation lengths.
By weaving these elements together, the indicator adds value beyond simply stacking multiple indicators. It adapts to real-time market conditions, aiming to highlight genuine trends and reduce false signals.
2. Key Functions and Calculations
Dynamic Length & Smoothing
A blend of volatility (ATR), ADX values, and RSI inputs determines how many candles are used in the LinReg calculations and how heavily the data is smoothed.
This allows the indicator to respond promptly during periods of high volatility, while automatically adjusting to filter out unnecessary noise in quieter phases.c
Cycle Reduced Line
The script averages several offset LinReg calculations to produce a cleaner overall signal. Random outliers are thus minimized, making the trend path more visually consistent.
An additional EMA smoothing (“Final Smoothing”) further stabilizes this trendline, reducing the impact of minor price fluctuations.
Channel Bands (Optional)
These bands are derived from the standard deviation of the price residual (the difference between the smoothed price and the trendline).
They highlight potential over-extension zones: the upper band can mark short-term overbought areas, while the lower band might indicate oversold conditions.
Trend and Sideways Determination
Slope Calculation: The slope of the trendline (comparing the current bar to the previous one) helps identify short-term directional shifts.
DX Threshold: Once the ADX surpasses a user-defined threshold and the slope is positive, it may indicate a developing uptrend. Similarly, if the slope is negative and ADX > threshold, it could signal a potential downtrend.
Multi-Level Color Coding
Original Mode: Interpolated colors reflect uptrends, downtrends, and sideways phases, factoring in metrics like ADX and RSI.
Single Color: For a neutral look, the indicator can be displayed in one uniform color.
HTF RSI: This mode uses the higher-timeframe RSI to color the trendline (Long/Short/Neutral), offering a quick gauge of overarching market pressure.
3. Use Cases and Interpretation
Timeframes & Markets
The indicator is versatile and adapts well to different intervals, from 5-minute charts to weekly views.
It can be applied to various markets—crypto, forex, stocks—since volatility and trend strength are universal concepts.
Signal Recognition
Color Swings into a more pronounced upward hue (e.g., green) may signal mounting strength.
Neutral or mixed tones often point to sideways phases, which breakout traders might watch for potential price surges.
A shift to downward colors (e.g., red) may indicate a growing bearish trend.
Channel Bands & Volatility
When the bands spread widely, it’s wise to proceed with caution: abrupt spikes above the upper band or below the lower band can flag rapid short-term extremes.
These bands are more of a reference for potential overextension than a strict buy or sell trigger.
Additional Confirmations
Not a standalone panacea: The Catalyst Trend indicator is an analytical tool, best used alongside other methods such as volume analysis or price action (candlestick patterns, support/resistance levels) to bolster confidence in trading decisions.
4. Practical Tips
Parameter Adjustments
Depending on the market—crypto vs. traditional currency pairs—different ADX, RSI, or smoothing periods may be more effective. Experiment with the settings to tailor the indicator to your preferred timeframe.
Strategic Integration
Trailing Stops: For those riding a trend, the trendline or the channel bands may serve as a reference to trail stop-loss orders.
Trend Confirmation: Using RSI and ADX filters can help traders avoid sideways markets or stay the course when the trend is strong.
5. Important Final Notes
No Guarantee of Profits
No indicator can predict the future. Markets are inherently volatile and often unpredictable.
Responsible Risk Management
Test the indicator in a demo environment or with smaller positions before committing to large trades.
Market Correlation AnalysisMarket Correlation Analysis is an indicator that measures the correlation of any two instruments.
To express price changes in a way that is comparable, this indicator uses a percentage of the ATR as a unit.
User Inputs:
Other Symbol - the symbol which we want to compare with the symbol of the main chart.
ATR for Price Movement Normalisation - I recommend high values to get the ATR more stable across time - if the ATR drastically changes, the indicator will register that as a price movement, because the unit in which price movements are measured itself changed by a lot. However, with higher values the ATR is stable and, in my opinion, more reliable than simply a percentage change of the current price.
Correlation Length - this is the number of bars for which the correlation coefficient will be calculated.
About The Indicator:
Market Correlation Analysis expresses the price changes of both instruments in question on the same histogram.
By default, the price changes that represent the instrument of the main chart are expressed with thinner bars of stronger colour, while the price changes that represent the other instrument are expressed with much thicker bars, which are of more pale colour.
The correlation coefficient is not expressed on the histogram, as it has a different scale. Therefore, it is only showed as a number.
I hope this indicator can make it easier to understand just how much two instruments have been similar to one another over a certain period of time. The possibility to see the correlation for any given time frame can give information that very specific to any trading style.
Engulfing Patterns & Inside Bar at NWOGEngulfing Patterns & Inside Bar at NWOG:
This indicator is designed to detect and display specific candlestick patterns (Bearish Engulfing, Bullish Engulfing, and Inside Bar) when they occur at the New Week Open Gap (NWOG). The indicator provides tiny dots plotted at the top of the candle for each detected pattern, keeping the chart clean and minimal. Below is a detailed description of the logic and components:
Candlestick Patterns Detected:
Bearish Engulfing:
A Bearish Engulfing pattern occurs when:
The current candle’s high is above the previous candle’s high.
The current candle’s close is below the previous candle’s low.
This pattern signals a potential downtrend and is marked by a red dot at the top of the candle.
Bullish Engulfing:
A Bullish Engulfing pattern occurs when:
The current candle’s low is below the previous candle’s low.
The current candle’s close is above the previous candle’s high.
This pattern signals a potential uptrend and is marked by a green dot at the top of the candle.
Inside Bar:
An Inside Bar pattern occurs when:
The current candle’s high is lower than the previous candle’s high.
The current candle’s low is higher than the previous candle’s low.
This pattern indicates a period of consolidation and possible breakout or breakdown, and is marked by a blue dot at the top of the candle.
New Week Open Gap (NWOG) Condition:
The patterns (Bearish Engulfing, Bullish Engulfing, and Inside Bar) are only considered valid if the candles occur within or touch the range of the New Week Open Gap (NWOG).
The NWOG is defined as the gap between:
The Friday close (previous week’s closing price).
The Monday open (current week’s opening price).
If the signal patterns (Bullish Engulfing, Bearish Engulfing, Inside Bar) align with the NWOG, a tiny dot is plotted at the top of the candle where the pattern occurs.
Visual Representation:
Red Dots: Indicate Bearish Engulfing signals that occur at the NWOG.
Green Dots: Indicate Bullish Engulfing signals that occur at the NWOG.
Blue Dots: Indicate Inside Bar Breakdown signals that occur at the NWOG.
Each dot is plotted as a tiny circle at the top of the candle, ensuring the chart remains minimal and clean without cluttering the view.
Key Features:
Minimal and Clean: The indicator only plots tiny dots at the top of the candles for the detected signals. No additional lines, labels, or other visual elements clutter the chart.
Customizable Signal Colors: Users can customize the colors for each signal type (Bearish Engulfing, Bullish Engulfing, and Inside Bar).
Alerts: Alerts are included for all detected patterns (Bullish Engulfing, Bearish Engulfing, Inside Bar) at the NWOG.
Alerts:
Bearish Engulfing Detected: Alerts when a Bearish Engulfing pattern occurs at the NWOG.
Bullish Engulfing Detected: Alerts when a Bullish Engulfing pattern occurs at the NWOG.
Inside Bar Breakdown Detected: Alerts when an Inside Bar Breakdown pattern occurs at the NWOG.
This indicator is helpful for traders who want to focus on clean, easy-to-spot patterns and trade based on market conditions near the New Week Open Gap (NWOG). The tiny dots ensure that only relevant signals are displayed without any distractions.
ODR/PDR in Prices@DrGirishSawhneyThis indicator guide us about the recent rally of minimum 20% in any given script with consecutive green candles . the lowest point of green candle gives the buy signal and the highest point of green candle gives the sell or exit signal.
Price Changes Relative to Previous CloseThis script displays the price values in percentages (open, high, low, and close) of the current bars relative to the previous bar's close. This helps visualize the amplitude of price movements. Depending on the user's choice, the display can be in the form of candles or bars.
Main steps of the script
Retrieves the previous bar's closing price.
Calculates the percentage changes in the open, high, low, and close prices of the current bar relative to the previous bar's close.
Sets the colors for bullish (green) and bearish (red) candles/bars.
Allows the user to choose the display type (candles or bars).
Displays the candles or bars on the chart.
Creates arrays to store the highs and lows of the last 252 bars and filters them based on the current bar's close.
Calculates the average values of the highs and lows for the filtered bars and displays them on the chart.
Изменение цен относительно предыдущего закрытия
Этот скрипт отображает значения цен в процентах (открытие, высокие, низкие и закрытие) текущих баров относительно закрытия предыдущего бара. Это помогает визуализировать амплитуду движений цен. В зависимости от выбора пользователя, отображение может быть в виде свечей или баров.
Основные шаги скрипта
Получает цену закрытия предыдущего бара.
Вычисляет процентные изменения открытой, высокой, низкой и закрытой цен текущего бара относительно закрытия предыдущего бара.
Настраивает цвета для бычьих (зелёных) и медвежьих (красных) свечей/баров.
Позволяет пользователю выбирать тип отображения (свечи или бары).
Отображает свечи или бары на графике.
Создаёт массивы для хранения максимумов и минимумов за последние 252 бара и фильтрует их в зависимости от закрытия текущего бара.
Вычисляет средние значения максимумов и минимумов для отфильтрованных баров и отображает их на графике.
Opening Candle High/Low with Time Zone and Minute Offset
Title: Opening Candle High/Low with Time Zone and Minute Offset
Description:
The Opening Candle High/Low with Time Zone and Minute Offset indicator is a versatile tool that highlights the high and low of the first candle of the trading session, adjusted for your preferred time zone and minute offset. It is particularly useful for traders who focus on opening ranges as key reference points for their trading strategies.
---
Features:
1. Time Zone and Minute Adjustment:
- Allows customization of the start time by applying a time zone offset (in hours) and a minute offset.
- Ideal for traders operating in different time zones or trading sessions that don't align with midnight UTC.
2. Dynamic First Candle Detection:
- Automatically captures the high and low of the first candle after the adjusted time.
- Resets daily, ensuring accurate levels for each new trading session.
3. Visual Representation:
- Plots the high and low levels of the first candle directly on the chart for easy reference.
- Uses distinct colors (green for the high and red for the low) and adjustable line widths for clarity.
4. Simplicity and Versatility:
- Works across all markets and timeframes, providing essential information for opening range breakout strategies, support/resistance analysis, or session-based trading.
---
How It Works:
1. Time Adjustment:
- The indicator adjusts the current chart time by applying the user-defined hour and minute offsets.
- This ensures the "opening candle" aligns with your specific trading session requirements.
2. First Candle Detection:
- When the adjusted time matches the start of a new day (midnight with offsets), the indicator captures the high and low of the first candle.
- These values are stored and remain static throughout the trading day.
3. Plotting:
- The high and low levels of the opening candle are plotted on the chart, providing visual reference points for traders.
---
Use Case:
- This indicator is ideal for traders who rely on the opening range of a session for planning trades, such as breakout or reversal strategies.
- It can also serve as a key tool for identifying significant price levels in session-based trading.
Simplify your trading analysis and align your strategy with this customizable and intuitive indicator.
Longest Candles HighlighterDescription:
The Longest Candles Highlighter is a simple yet effective tool that identifies and highlights candles with significant price ranges. By visually marking candles that meet specific size criteria, this indicator helps traders quickly spot high-volatility moments or significant market moves on the chart.
Features:
1. Customizable Candle Range:
- Define the minimum and maximum candle size in pips using input fields.
- Tailor the indicator to highlight candles that are most relevant to your trading strategy.
2. Flexible for Different Markets:
- Automatically adjusts pip calculation based on the instrument type (Forex or non-Forex).
- Accounts for differences in pip values, such as the 0.01 pip for JPY pairs in Forex.
3. Visual Highlighting:
- Highlights qualifying candles with a customizable background color for easy identification.
- The default color is red, but you can choose any color to match your chart theme.
4. Precision and Efficiency:
- Quickly scans and identifies candles that meet your criteria, saving you time in analyzing charts.
- Works seamlessly across all timeframes and asset classes.
How It Works:
- The indicator calculates the range of each candle in pips by subtracting the low from the high and dividing by the appropriate pip value.
- It checks whether the candle's size falls within the user-defined minimum and maximum pip range.
- If the conditions are met, the background of the candle is highlighted with the specified color, drawing your attention to significant price movements.
Use Case:
- This indicator is ideal for identifying key market moments, such as breakouts, volatility spikes, or significant price movements.
- Traders can use it to quickly locate large candles on any chart, aiding in technical analysis and strategy development.
This tool simplifies the process of spotting important candles, empowering traders to make faster and more informed trading decisions.