Multiple SMA, EMA, and VWAP CrossoversMultiple SMA, EMA, and VWAP Crossovers with Alerts
Overview : The "Multiple SMA, EMA, and VWAP Crossovers" script is designed for traders who want to monitor various simple moving averages (SMAs), exponential moving averages (EMAs), and the volume-weighted average price (VWAP) to identify potential buy and sell opportunities. This script allows you to visualize key moving averages on your chart and create custom alerts for specific crossover events.
Detail s: This script plots the following moving averages:
Simple Moving Averages (SMA): 5, 10, 20, 50, 100, 200, and 325 periods
Exponential Moving Average (EMA): 9 periods
Volume-Weighted Average Price (VWAP)
It includes options to display these moving averages and set alerts for their crossovers.
Available Crossovers:
20/50 SMA, 20/100 SMA, 20/200 SMA, 20/325 SMA
50/100 SMA, 50/200 SMA, 50/325 SMA
100/200 SMA, 100/325 SMA
200/325 SMA
VWAP/20 SMA, VWAP/50 SMA, VWAP/100 SMA, VWAP/200 SMA, VWAP/325 SMA
Optional Lines to Add to the Chart:
9 EMA, 5 SMA, 10 SMA, 20 SMA, 50 SMA, 100 SMA, 200 SMA, 325 SMA, VWAP
How to Use:
Enable Indicators: Use the input options to select which SMAs, EMA, and VWAP you want to display on your chart.
Set Alerts: Choose the specific crossover events you want to monitor. For example, you can set an alert for the 20/50 SMA crossover or the VWAP/100 SMA crossover.
Monitor the Chart: The script will plot the selected moving averages on your chart. When a selected crossover event occurs, an alert will be triggered, notifying you of the potential trade opportunity.
Usage Tips:
Trending Market: Use the buy and sell alerts in trending markets where the moving averages can help confirm the direction of the trend.
Key Support and Resistance Levels: Combine crossover alerts with key support and resistance levels for more reliable trading signals.
Volume Confirmation: Ensure there is sufficient volume to support the crossover signals, indicating stronger momentum behind the move.
When NOT to Use Buy and Sell Alerts:
Low Volume: Avoid using buy and sell alerts during periods of low trading volume, as the signals may be less reliable.
Market Noise: Be cautious in highly volatile markets where frequent crossovers might generate false signals.
Sideways Market: In a sideways or range-bound market, crossover signals can result in multiple whipsaws, leading to potential losses.
Why Use This Script? This script provides a comprehensive tool for traders to monitor multiple moving averages and VWAP crossovers efficiently. It allows you to customize alerts based on your trading strategy and helps you make informed decisions by visualizing key technical indicators on your chart.
Legal Disclaimer: The information provided by this script is for educational and informational purposes only and should not be considered financial advice. The developer of this script is not responsible for any financial losses incurred from using this script.
Indikatoren und Strategien
ZLSMA with Chandelier ExitThe "ZLSMA with Chandelier Exit" indicator integrates two advanced trading tools: the Zero Lag Smoothed Moving Average (ZLSMA) and the Chandelier Exit. The ZLSMA is designed to provide a smoothed trend line that reacts quickly to price changes, making it effective for identifying trends. The Chandelier Exit employs the Average True Range (ATR) to establish trailing stop levels, assisting traders in managing risk.
How to Use This Indicator
Trend Identification: Observe the ZLSMA line. If the price is consistently above the ZLSMA, it indicates a bullish trend; if below, it suggests a bearish trend.
Entry and Exit Signals:
Buy Signal : When the price crosses above the Chandelier Exit level and the ZLSMA is trending upwards, consider entering a long position.
Sell Signal : Conversely, when the price crosses below the Chandelier Exit level and the ZLSMA is trending downwards, consider entering a short position.
Risk Management : Adjust your stop-loss levels based on the Chandelier Exit lines to protect profits and limit losses.
Pros :
Responsive to Market Changes : The ZLSMA provides quicker signals than traditional moving averages, allowing traders to capture trends early.
Risk Management : The Chandelier Exit helps traders set dynamic stop-loss levels based on market volatility, enhancing risk management.
Cons :
Lagging Nature : Despite being faster than standard moving averages, ZLSMA and Chandelier Exit can still lag during highly volatile market conditions.
False Signals : In choppy or sideways markets, the indicator may produce false signals, leading to potential losses.
Complexity : New traders may find it challenging to interpret multiple components of the indicator effectively, making it necessary to practice and refine their understanding.
Overall, this indicator is a powerful tool for traders seeking to combine trend-following strategies with effective risk management, but it requires careful consideration of market conditions and proper risk management practices.
The Exact IndicatorStruggling to get in on a trade? Don't know where to take profits? This indicator might help - it only displays the Buy, Stop Loss and Take profit points when certain conditions are met.
The indicator combines a moving average crossover strategy with trend analysis to identify potential buy opportunities in the market. It utilises a short-term and long-term Simple Moving Average (SMA) to generate buy signals when the short-term SMA crosses above the long-term SMA. Additionally, it displays take profit and stop loss levels, along with a background colour indicating the overall trend strength.
Pros :
Clear Signals : Provides straightforward buy signals based on a well-known crossover strategy, making it easy for traders to identify entry points.
Visual Aids : The inclusion of take profit and stop loss levels, along with background trend colors, enhances decision-making and risk management.
Trend Awareness : The background colour changes based on trend strength, allowing traders to quickly assess market conditions.
Cons :
Lagging Indicator : Moving averages are inherently lagging, which can result in delayed signals, especially in volatile markets.
False Signals : Crossover strategies can produce false signals during sideways or choppy market conditions, leading to potential losses.
Limited Scope : The indicator focuses primarily on buy signals, potentially missing out on other trading opportunities (like short-selling) in a bearish market.
Overall, while this indicator can be a useful tool for identifying bullish trends and potential entry points, traders should use it in conjunction with other analysis methods and risk management strategies to mitigate its limitations.
Ultimate Fibonacci Trading Tool [CHE]Ultimate Fibonacci Trading Tool – Your Key to More Precise Trading Decisions!
Description:
Discover the Ultimate Fibonacci Trading Tool , a powerful instrument designed to revolutionize your technical analysis. This tool is crafted to assist traders of all experience levels in better understanding market movements and making informed decisions. By utilizing a higher reference period from the past, it provides you with a clear advantage in identifying critical support and resistance levels.
🌟 Key Features in Detail:
1. Automatic Timeframe Selection:
- Auto Timeframe: The tool automatically detects the optimal higher reference period based on your current chart, providing more precise analysis without additional effort.
- Multiplier Mode: Define the higher timeframe using a multiplier. By default set to 5, this can be adjusted to suit your individual needs.
- Manual Selection: For maximum control, you can manually select the desired timeframe.
2. Customizable Fibonacci Levels:
- Enable/Disable Levels: Toggle specific Fibonacci levels (e.g., 0.236, 0.382, 0.5, 0.618, etc.) on or off to personalize your analysis.
- User-Defined Values: Input custom numerical values for each level to support specialized Fibonacci calculations.
- Color Customization: Choose individual colors for each level to keep your charts clear and visually appealing.
3. Automatic Trend Detection:
- The tool automatically identifies whether the market is in a bullish or bearish trend and adjusts the Fibonacci calculations accordingly, ensuring you always have the most relevant information at hand.
4. Period Separators with Start and Stop Labels:
- Customizable Separator Lines: Visualize the beginning of new time periods with lines that you can customize in style, color, and width.
- Start/Stop Labels: Clear markers help you instantly recognize critical time points and potential trend changes.
5. Flexible Label Management:
- Display Styles: Decide how Fibonacci levels are presented—percentage, price level, or both—so you get the information most important to you.
- Size Adjustment: Modify the size of the labels to optimize readability on your chart.
- Positioning: Place labels where they make the most sense for your analysis.
6. Informative Time Period Display:
- Customizable Info Box: Keep track of the reference period used with a customizable information box displayed directly on your chart.
- Layout Options: Determine the size, position, background, and text colors for seamless integration into your chart environment.
🔧 Detailed Settings Options:
- Timeframe Selection:
- Timeframe Type: Choose between "Auto Timeframe," "Multiplier," or "Manual" to control how the reference period is calculated.
- Multiplier: Set the multiplier when using the "Multiplier" mode; this value determines how many units of the current timeframe are used as the reference.
- Manual Resolution: If "Manual" is selected, you can input the exact timeframe (e.g., "60," "1D," "1W").
- Fibonacci Level Settings:
- Enabling Individual Levels: Toggle each Fibonacci level on or off according to your preference.
- Adjusting Level Values: Enter custom numerical values for each level to perform specialized calculations.
- Color Selection: Choose a unique color for each level to ensure clear differentiation.
- Period Separator Settings:
- Separator Color: Define the color of the separator lines to make them distinctly visible.
- Separator Style: Choose between "Solid," "Dashed," or "Dotted" to adjust the style of the separator lines.
- Separator Width: Set the width of the separator lines to match your chart aesthetics.
- Label Management:
- Label Style: Select how labels are displayed:
- Default: Shows both percentage and price.
- None: No labels are displayed.
- Percentage: Shows only the Fibonacci level percentage.
- Price: Shows only the price at the Fibonacci level.
- Label Size: Adjust the size of the labels (tiny, small, normal, large, huge) for optimal readability.
- Time Period Display:
- Show Time Period: Enable or disable the information box displaying the reference period.
- Size: Choose the size of the information box (tiny, small, normal, large, huge, auto).
- Positioning: Set the vertical (top, middle, bottom) and horizontal (left, center, right) position of the box.
- Color Customization: Select the background and text color of the information box to integrate it into your chart design.
📈 Why Is the Higher Reference Period Important?
The Ultimate Fibonacci Trading Tool leverages a higher reference period from the past to calculate Fibonacci levels. This approach offers several advantages:
- Deeper Market Analysis: By considering longer timeframes, you can uncover major market movements and trends that might be hidden in shorter periods.
- More Accurate Support and Resistance Levels: Higher timeframes provide more robust Fibonacci levels that are observed by many market participants.
- Better Decision-Making Foundation: With a comprehensive view of the market, you can make more informed trading decisions and minimize potential risks.
🎯 How This Tool Enhances Your Trading Strategy:
- Increased Efficiency: Automate complex calculations and save valuable time.
- Personalized Analysis: Adapt the tool to your individual needs and strategies.
- Enhanced Precision: Utilize precise Fibonacci levels to better determine entry and exit points.
- Improved Market Insight: Gain deeper understanding of market trends and structures by using higher timeframes.
🚀 Get Started Now!
Don't miss the opportunity to revolutionize your chart analysis. Integrate the Ultimate Fibonacci Trading Tool into your trading routine and benefit from more precise analyses and improved trading decisions.
Disclaimer
The content provided, including all code 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 any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Best regards
Chervolino
Divergence for Many Indicators v4 Screener▋ INTRODUCTION:
The “Divergence for Many Indicators v4 Screener” is developed to provide an advanced monitoring solution for up to 24 symbols simultaneously. It efficiently collects signals from multiple symbols based on the “ Divergence for Many Indicators v4 ” and presents the output in an organized table. The table includes essential details starting with the symbol name, signal price, corresponding divergence indicator, and signal time.
_______________________
▋ CREDIT:
The divergence formula adapted from the “ Divergence for Many Indicators v4 ” script, originally created by @LonesomeTheBlue . Full credit to his work.
_______________________
▋ OVERVIEW:
The chart image can be considered an example of a recorded divergence signal that occurred in $BTCUSDT.
_______________________
▋ APPEARANCE:
The table can be displayed in three formats:
1. Full indicator name.
2. First letter of the indicator name.
3. Total number of divergences.
_______________________
▋ SIGNAL CONFIRMATION:
The table distinguishes signal confirmation by using three different colors:
1. Not-Confirmed (Orange): The signal is not confirmed yet, as the bar is still open.
2. Freshly Confirmed (Green): The signal was confirmed 1 or 2 bars ago.
3. Confirmed (Gray): The signal was confirmed 3 or more bars ago.
_______________________
▋ INDICATOR SETTINGS:
Section(1): Table Settings
(1) Table location on the chart.
(2) Table’s cells size.
(3) Chart’s timezone.
(4) Sorting table.
- Signal: Sorts the table by the latest signals.
- None: Sorts the table based on the input order.
(5) Table’s colors.
(6) Signal Confirmation type color. Explained above in the SIGNAL CONFIRMATION section
Section(2): Divergence for Many Indicators v4 Settings
As seen on the Divergence for Many Indicators v4
* Explained above in the APPEARANCE section
Section(3): Symbols
(1) Enable/disable symbol in the screener.
(2) Entering a symbol.
_______________________
▋ FINAL COMMENTS:
For best performance, add the Screener indicator to an active symbol chart, such as QQQ, SPY, AAPL, BTCUSDT, ES, EURUSD, etc., and avoid mixing symbols from different market allocations.
The Divergence for Many Indicators v4 Screener indicator is not a primary tool for making trading decisions.
MA rate of changeThis indicator uses moving averages to determine trends. For those who trade using a trend-following strategy, it's not possible to use the slope of the moving average line as an indicator of trend judgment if it's expressed as an angle. This is because the angle changes depending on the adjustments made to the vertical price scale and horizontal time scale of the chart.
Therefore, instead of using the angle, I decided to use the rate of change in price as an alternative indicator.
The relationship between the rate of change of the moving average and the angle of the moving average line is as follows:
- When the value is positive, the moving average line slopes upward.
- When the value is negative, the moving average line slopes downward.
- The larger the absolute value of the rate of change, the steeper the angle; the smaller the value, the gentler the slope.
The trend is determined using the rate of change instead of the angle, as follows:
- Uptrend: Rate of change > 0.5 (this value can be adjusted) ⇒ Display with a red background
- Downtrend: Rate of change < -0.5 (this value can be adjusted) ⇒ Display with a blue background
An example of a trade using this indicator is as follows:
- Enter the trade the day after the trend appears.
- Exit the trade the day after the trend ends.
このインジケーターは移動平均線を使ってトレンドを判断します。トレンドフォロー戦略でトレードする方はこのインジケーターの示す移動平均線の傾きを角度で表してトレンドの判定の指標とすることはできません。なぜなら、角度はチャートの縦軸の価格スケールや横軸の時間のスケールを調整することで変わってしまうからです。
そこで角度に代わる別の指標として価格の変化率を使うことにしました。
移動平均の変化率と、移動平均線の角度の関係は次の通りです。
- プラスの値の場合は移動平均線は右肩上がり
- マイナスの値の場合は移動平均線は右肩下がり
- 変化率の絶対値が大きいほど角度は急になり、小さいほど角度は緩やかになる
トレンドの判定は次のようにします。角度の代わりに変化率で判定します。
- 上昇トレンド : 変化率 > 0.5 (この値は調整可能) ⇒赤色の背景で表示
- 下降トレンド : 変化率 < -0.5 (この値は調整可能)⇒青色の背景で表示
このインジケーターを使ったトレードの例は次の通りです。
- トレンドが発生した翌日エントリー
- トレンドが終了した翌日エグジット
RSI Crossover and ADX oscillator [deepakks444]RSI Crossover and ADX Oscillator
The RSI Crossover and ADX Oscillator is a custom indicator designed to help traders identify potential trend reversals and trend strength by analyzing the Relative Strength Index (RSI) across multiple timeframes, combined with the Average Directional Index (ADX) to measure the momentum of a trend. This indicator provides a more comprehensive view of the market, allowing traders to spot possible entry and exit points based on multiple signals and conditions.
How the Script Works:
1. Multi-Timeframe RSI Calculation:
This indicator calculates the RSI for three different timeframes:
RSI 1 (default: 15 minutes)
RSI 2 (default: 1 hour)
RSI 3 (default: Daily)
By comparing the RSI across multiple timeframes, traders can gauge both short-term and longer-term momentum. For example, if the shorter timeframe RSI is moving in the same direction as the longer timeframe RSI, it may confirm the strength of the trend. Conversely, if they diverge, it could signal a potential reversal or weakening of the trend.
Each RSI value can also be smoothed using a variety of smoothing methods (SMA, EMA, WMA, RMA) to reduce noise and produce cleaner signals.
2. RSI Smoothing Options:
The smoothing function helps make RSI readings clearer by filtering out short-term fluctuations. This can be useful in volatile markets where small movements can trigger false signals. The user can select the preferred smoothing method (or choose none) and set the smoothing factor to control the sensitivity of the RSI line.
None: No smoothing applied.
SMA (Simple Moving Average): Averages RSI over a specified period, providing a more straightforward trend line.
EMA (Exponential Moving Average): Puts more weight on recent data points, making the trend line more responsive to recent price movements.
WMA (Weighted Moving Average): A weighted average that emphasizes more recent values.
RMA (Running Moving Average): Another smoothing option similar to SMA but with different calculation properties.
3. ADX Trend Strength Measurement:
The Average Directional Index (ADX) is used to measure the strength of a trend, regardless of its direction. ADX is a widely used tool to confirm whether the market is trending strongly or if the market is in a sideways range.
ADX > 25: Indicates a strong trend.
ADX < 25: Indicates a weak trend or range-bound market.
In this script, the color of the ADX line changes dynamically based on whether the trend is strengthening (green) or weakening (red). This allows traders to quickly assess whether the market conditions are favorable for trend-following strategies.
4. Divergence Detection:
The script includes an option to detect regular bullish and bearish divergence between price and RSI. Divergence occurs when price moves in one direction but RSI moves in the opposite direction, which may indicate that the current trend is weakening and could be about to reverse.
Bullish Divergence: Occurs when the price makes a lower low, but the RSI makes a higher low. This could signal a potential upward reversal.
Bearish Divergence: Occurs when the price makes a higher high, but the RSI makes a lower high. This could signal a potential downward reversal.
These divergence signals help traders spot potential reversal points before they become obvious on the price chart itself.
5. No-Trade Zone:
The no-trade zone is an important feature of this script. It highlights the range between RSI 40 and 60, which represents a neutral or indecisive market condition. When the RSI is within this range, it indicates that the market lacks clear directional momentum, making it a riskier environment for trend-following trades. The script shades this region on the chart, visually warning traders to avoid initiating trades during these periods.
Visual Table Display:
To improve clarity, the script includes a table that shows key values directly on the chart:
RSI 1 (15-minute): Displays the current RSI value for the 15-minute timeframe.
RSI 2 (1-hour): Displays the current RSI value for the 1-hour timeframe.
RSI 3 (Daily): Displays the current RSI value for the Daily timeframe.
ADX: Displays the current ADX value, with color-coding to show whether the trend is strengthening (green) or weakening (red).
Long/Short Signal: This final cell in the table shows whether a potential Long or Short signal is currently active based on RSI crossovers and ADX strength.
The table can be repositioned on the chart according to user preference (Top Right, Top Left, Bottom Right, Bottom Left).
Possible Entry and Exit Points:
Long Entry Criteria:
RSI 1 crosses above RSI 2.
RSI 1 is above its 9-period moving average (to confirm upward momentum).
When these conditions are met, the script will display a potential Long signal in the table, and an alert will be triggered if enabled.
Note : ADX is rising, indicating that the trend strength is increasing. ADX is falling, indicating that the trend is weakening.
Short Entry Criteria:
RSI 1 (15-minute) crosses below RSI 2 (1-hour).
RSI 1 is below its 9-period moving average (to confirm downward momentum).
Note : ADX is rising, indicating that the trend strength is increasing. ADX is falling, indicating that the trend is weakening.
When these conditions are met, the script will display a potential Short signal in the table, and an alert will be triggered if enabled.
Exit Criteria:
Exit a Long position when a Short signal is generated or when a yellow candle appears, which indicates that momentum is weakening.
Exit a Short position when a Long signal is generated or when a yellow candle appears.
Customizable Inputs:
This script offers several customization options for users:
RSI Length and Timeframes:
Adjust the length of the RSI calculation and the timeframes for each RSI (default: 15-minute, 1-hour, Daily). This allows traders to tailor the script to different market conditions and assets.
Smoothing Method:
Choose how the RSI values are smoothed (None, SMA, EMA, WMA, RMA) and adjust the smoothing factor.
ADX Settings:
Toggle the ADX on/off, and adjust the smoothing factor and DI length to match your preferred trend strength calculation.
Divergence Detection:
Enable or disable divergence detection and set the range of bars for detecting divergence patterns.
Table Position:
Change the location of the table on the chart (Top Right, Top Left, Bottom Right, Bottom Left).
Note : I have used RSI 1 = 3 Minutes, RSI 2 = 15 Minutes and RSI 3 = 1 Hour as input in the shown chart.
Important Notes:
This script is intended for educational purposes only. It is designed to help traders learn how to combine RSI and ADX to analyze trends and momentum, but it should not be used as financial advice or a guaranteed trading strategy.
Always test the script in a demo environment before using it in live trading to understand how it behaves with different assets and timeframes.
Proper risk management and additional confirmations should be used alongside this indicator for effective trading.
Session High Low 2024
Overview of the Code:
Input for Session Times:
You set up inputs for the start and end times of the trading session, allowing you to customize them as needed.
Time Range Function:
A function isTimeInRange checks whether the current time falls within the specified session start and end times.
initialize High and Low:
indicator initialize session high, low, and their corresponding labels and lines.
Tracking Session High and Low:
Within the specified time range, continuously update session1High and session1Low based on the highest and lowest prices encountered.
Time of Session High/Low:
The High_Time and Low_Time are tracked using the ta.valuewhen() function to capture the exact times when the session high and low occur.
Notes Creation:
You format the high and low values along with their timestamps to create notes that will be displayed alongside the lines.
Drawing Lines and Labels:
After the session ends, you check if there is a new session high or low and draw lines and labels accordingly. If a line or label already exists, you delete it before drawing a new one.
Resetting for Next Session:
At the end of the session, the high and low values are reset for the next session.
Suggestions for Improvement:
Dynamic Line Extensions:
Clear Variable Names Used in Code:
Consider using more descriptive names for variables like Entry_Point and SL_Point to make the code easier to understand.
Commenting:
Although the code is well-commented, always ensure the comments explain the "why" behind the code rather than just the "what."
Example Output:
The output will show the highest and lowest prices during the specified session times and the times they occurred formatted correctly. This output is useful for quick reference during trading and aids in making informed decisions.
Added functionality tool tip Note:
Added a tooltip Note to Get All information of Session High Low & Range.
If you need further modifications, enhancements, or specific functionalities added to this script, please let me know!
Advanced Supply and Demand Indicator# Advanced Supply and Demand Indicator
This Pine Script™ indicator helps traders identify potential supply and demand zones in financial markets. It uses price action, volume, and historical data to plot these zones on your chart, providing valuable insights for trading decisions.
## Key Features:
- Automatically detects and plots supply and demand zones
- Customizable lookback period for zone identification
- Adjustable strength multiplier for more precise zone detection
- User-defined opacity for visual clarity
- Combines price action and volume analysis for improved accuracy
## How It Works:
1. Identifies significant price levels using a specified lookback period
2. Analyzes volume data to confirm potential supply and demand zones
3. Plots supply zones in red and demand zones in green
4. Displays the current price for easy reference
## Customization Options:
- Lookback Period: Adjust the historical data range (1-100 bars)
- Zone Strength Multiplier: Fine-tune the sensitivity of zone detection (1.0-3.0)
- Zone Opacity: Set the transparency of plotted zones (10-100%)
This indicator is designed to help traders identify potential areas of support and resistance, allowing for more informed entry and exit decisions in their trading strategies.
Gap Detector [MS]This indicator helps traders identify and visualize price gaps in market data. When price movements create gaps between trading sessions or periods, the script highlights these areas with colored clouds and markers.
Key Features:
Automatically detects price gaps based on a customizable gap percentage threshold
Visualizes gaps using color-coded clouds (green when price moves upward, red for downward price action)
Places small triangle markers at gap locations for easy identification of gaps, and if many happen close together
Shows gray clouds when price is within the last gap
Use it For:
Watching for gap-fills
Gap support/resistance levels
Trading gap breakouts
...and more
How it Works:
The script compares each bar's opening price with the previous bar's closing price. A gap is identified when the opening price is significantly different from the previous close (beyond the user-defined gap percentage). The gap area is then marked with a colored cloud:
Green clouds: Show gaps where price jumped higher
Red clouds: Show gaps where price dropped lower
Gray clouds: Indicate price action within the gap
Settings:
Gap %: Controls the minimum price difference required to identify a gap (default 0.01 or 1%)
This indicator can help traders:
Identify potential support/resistance levels at gap areas
Monitor gap-filling scenarios
Spot significant price movements between trading sessions
The script is designed to work across all timeframes and markets.
Custom Candlestick Pattern IndicatorCustom Candlestick Pattern Indicator - Buy Signal Based on Green Candles Breaking Previous Lows
Overview:
This custom candlestick pattern indicator is designed to highlight potential buy opportunities based on a simple yet powerful candlestick pattern. The indicator identifies green candles that break below the low of the previous candle. This combination may signal a potential market reversal or a bullish continuation after a pullback, depending on the market context. Traders can use this indicator to detect areas where prices may be bouncing from recent lows, indicating a potential buying opportunity.
Pattern Explanation:
The strategy underlying this indicator is a two-part condition that must be met before a buy signal is generated:
Green Candle: A green candle forms when the closing price of the current candle is higher than its opening price. This visually represents bullish momentum as buyers have taken control, closing the price higher than where it opened.
Breaking the Previous Low: The low of the current candle must be lower than the low of the previous candle. This suggests that, despite initial bearish pressure during the candle formation (which drove the price below the previous candle's low), buyers stepped in to push the price higher by the candle’s close. This pattern can signify a potential reversal or bullish continuation, as it demonstrates that buyers are overcoming initial selling pressure.
When the Pattern Occurs:
This pattern is particularly interesting to traders who look for potential reversal signals after a brief decline in price.
It may also work well in markets where pullbacks are common, as this pattern could mark the end of a retracement and the resumption of the bullish trend.
How the Indicator Works:
Green Candle: The indicator first identifies a green candle, where the close of the candle is greater than its open (close > open). This signals that the current period closed higher than it opened, which is generally a bullish sign.
Breaking Previous Low: The indicator checks if the current candle's low is below the low of the previous candle (low < low ). If this condition is met, it means the price dropped below the previous candle's low but was still able to close higher (green candle), signaling a potential reversal or buying opportunity.
Buy Signal: If both conditions are true (green candle + breaking previous low), the indicator plots a buy signal below the candle in the form of an upward-facing triangle labeled "Buy" in green. This serves as a visual cue for traders to consider entering a buy position.
Optional Previous Low Plot: For added reference, the indicator plots the previous candle's low as a red step-line on the chart. This helps traders visualize when the price has dipped below the prior candle's low, making it easier to spot instances where the pattern is forming.
How to Use:
This indicator can be used across multiple timeframes, whether you’re trading short-term intraday patterns or longer-term swing trades.
It works well in markets that experience pullbacks or minor retracements, as the pattern it identifies suggests a rejection of lower prices followed by a push higher.
Traders can combine this indicator with other technical analysis tools (such as moving averages, support/resistance levels, or momentum oscillators) to strengthen the buy signals and add more context to the trading decision.
Example Scenarios:
Reversal Signal: Suppose a market has been in a minor downtrend, and suddenly a green candle forms after a low that breaks the previous day’s low. This indicator would generate a buy signal, suggesting the downtrend may be losing strength and that buyers are taking control. This could be an early indication of a reversal.
Bullish Continuation After Pullback: Imagine a market in a steady uptrend experiences a temporary pullback. The price breaks the previous candle’s low, but the current candle closes higher (green candle). This buy signal could indicate that the pullback is over, and the uptrend is likely to continue.
Advantages:
Simplicity: This indicator relies on basic price action (green candles and lows) without requiring complicated indicators or oscillators, making it easy to understand and use.
Visual Alerts: The plotted buy signals and previous lows provide a clear, visual representation on the chart, simplifying decision-making for traders.
Versatility: It can be applied across different timeframes and asset classes (stocks, forex, crypto, etc.), making it a versatile tool for all kinds of traders.
Limitations:
As with any single indicator or pattern, this should not be used in isolation. It is important to incorporate broader market context, support/resistance levels, and other forms of analysis to avoid false signals.
The pattern tends to be more effective when there’s sufficient market liquidity and may perform better in trending or volatile markets compared to sideways or flat markets.
Leonid's Bitcoin Full Cycle Simple SMA IndicatorThis is a straight-forward and customizable indicator to track Bitcoin cycles, specifically used for helping investors understand where to buy and sell. This is done by using a two year SMA period as the base calculation. With that calculation you create lower and upper bounds for bull market peaks and bear market bottoms.
The novel idea here is that you can customize the SMA "strength" for both the upper and lower bounds as alpha decays over time and price get's less volatile with adoption increasing. The multiples are customizable for both the upper and lower bounds along with a mid-line that will adjust based on the settings input.
Indicators don't always have to rely on crazy math or outlandish ideas to be useful, sometimes even the simplest of inputs can give investors (especially those that are new) a great base case for their strategy. Something being simple does not diminish the idea or strength behind the data.
How to use this indicator: This script must be used on INDEX:BTCUSD (Bitcoin All-Time History Index) with the y-axis being set to Logarithmic scale.
Details & how to interpret: The price is colored green when Bitcoin enters a "value zone" meaning it is heavily oversold and likely near a bottom for the bear market cycle. The price is colored red when Bitcoin enters an "overbought zone" meaning it is heavily overbought and is likely near a top for the bull market cycle.
Along with the upper and lower bound I have plotted a mid-line (in orange) to establish a neutral zone which helps depict what phase of the cycle we're in (under mid-line = bearish/accumulation phase, over mid-line = bullish/distribution phase).
The inputs for the upper and lower bound are customizable and will need to be adjusted over time as alpha decay will occur as time goes on. Currently the numbers are as follows:
0.2 for the lower bound
4.675 for the upper bound
Both inputs can be modified depending on your risk tolerance. Mathematically it is safe to assume these numbers will decrease as time goes on and volatility during cycle peaks & troughs is reduced.
I've also plotted an upper bound "heat zone" which is shaded in green, this area is great for signaling when you should be preparing to begin taking profits. It takes the upper bound and subtracts the lower bound to derive the band.
All the colors are customizable and this indicator is best used on a line chart but can be customized to use on a bar chart/candlestick as well.
Simple Moving Averages are a very basic indicator but are often extremely powerful because the majority of traders/investors are looking at such levels which creates a psychological/herd effect. Another good example is the law of round numbers.
Regardless this script can be adapted with EMAs or additional standard deviations if necessary. If you have any questions or concerns please don't hesitate to message me.
SMT Divergences [OutOfOptions]Smart Money Technique (SMT) Divergence is designed to identify discrepancies between correlated assets within the same timeframe. It occurs when two related assets exhibit opposing signals, such as one forming a higher low while the other forms a lower low. This technique is particularly useful for anticipating market shifts or reversals before they become evident through other Premium Discount (PD) Arrays.
This indicator works by identifying the highs and lows that have formed for an asset on the current chart and the correlated symbol defined in the settings. Once a pivot on either asset is formed, it checks if the pivot has taken liquidity as identified by the previous pivot in the same direction (i.e., a new high taking out a previous high). If this is the case and the corresponding asset has not taken a similar pivot, the condition is determined to be a potential valid divergence. The indicator will then filter out SMTs formed by adjacent candles, requiring at least one candle difference between the candles forming the SMT.
If the “Candle Direction Validation” setting is enabled, the indicator will further check both assets to ensure that for bullish SMTs, the last high on both assets was formed by down candle, and for bearish SMTs, the low was formed by an up candle. This check can often eliminate low-probability SMTs that are frequently broken.
The referenced chart shows divergence between Nasdaq (NQ) and S&P 500 (ES) futures, which are normally closely correlated assets that move in the same direction. The lines shown represent bullish and bearish divergences between the two when they are formed. As you can see from the chart, SMT Divergences may not always indicate a reversal, or a reversal might be just a short-term retrace. Therefore, SMT Divergences should not be used independently. However, in conjunction with other PD arrays, they can provide strong confirmation of a change in market direction.
Configurability:
Pivot strength - Indicates how many bars to the left/right of a high for pivot to be considered, recommended to keep at 1 for maximum detection speed
Candle Direction Validation - Additional SMT validation to filter out weak/low-probability SMTs be examining candle direction
Line Styling for Bullish/Bearish SMTs - Ability to customize line style, color & width for bullish/bearish SMTs
Label Control - Whether or not to show SMT label and if shown what font size & color should be used
What makes this indicator different:
Unlike other SMT indicators, this indicators has additional built-in controls to remove low-probability SMTs
Bullseye NYSE 1st5mThis script, "BullseyeNYSE1st5m," is a TradingView indicator designed to highlight the high and low price levels during the first 5 minutes of the NYSE trading session. It works as follows:
1. **Identify NYSE Trading Hours**: The script identifies bars that fall within NYSE trading hours, specifically focusing on the first five minutes after the market opens.
2. **Calculate First 5-Minute High and Low**: During the first five minutes of the trading day, the script captures and updates the high and low prices, storing these values for the remainder of the session.
3. **Plot High and Low Levels**: The high and low values from the first five minutes are plotted as lines on the chart in yellow. This helps traders quickly identify the initial range set by the market.
4. **Fill the Area Between High and Low**: The area between the high and low levels is filled with a translucent yellow color to visually emphasize the first five-minute range.
5. **Alerts for Breakouts**: Alerts are set to notify the user when the price closes above or below the first five-minute range. This helps traders stay informed of potential breakout opportunities beyond this key opening range.
This indicator is useful for day traders looking to leverage the first few minutes of NYSE trading to identify early support and resistance levels and to spot breakout opportunities.
Neutral Price Action Zones with Horizontal LinesIf the upper shadow of the red candle is longer than its lower shadow and the upper shadow of the green candle is longer than its lower shadow, it indicates that the upper and lower wicks of the red and green candles are equal. In this case, it means that the price does not show a clear trend in a specific direction, and the price movement is neutral. This situation usually suggests market uncertainty or that the price is moving within a horizontal range.
Red and Green Candle Check: The status of the candles is determined.
Shadow Calculations: The upper and lower shadows of the red and green candles are calculated.
Horizontal Range Check: The horizontal range condition is checked for the red and green candles.
Background Color: If the condition is met, the background is marked in gray.
Horizontal Line: When the horizontal range condition is met, a horizontal line is drawn.
RSI TOTAL MOMENTUM1 (resatserhat)SOURCE OF COLORS
Our oscillator is the classic RSI oscillator. However, in the classic RSI oscillator, only RSI14 is taken into account, the user looks at different periods when he wants, and each period shows a different level. This situation confuses the user and prevents him from reaching a clear conclusion. This indicator takes into account the relationship between more than 1 or even 10 RSI periods, and shows us with colors which direction the momentum is in all periods and how strong it is. In other words, the mathematics underlying the coloring is the relationship between different RSI periods.
RSI COLORS
The RSI line has 3 colors: red, green, blue. The red color indicates that the momentum is weakening, the green color indicates that it is strengthening, and the blue color indicates that the momentum is unstable and can switch from red to green or from green to red at any moment.
BOLLINGER BAND COLORS
It is formed by considering the same mathematics as the RSI line colors, but it shows the momentum of larger periods. That is, it changes color later than the RSI line, but it is more reliable and accurate.
Colors in Hidden Divergences
In hidden negative divergences and hidden positive divergences, a single bar usually has an outlier color, this should be taken into consideration.
How to Use Colors?
1. When the RSI shows green bottom, blue bottom or green and blue mixed bottoms, it is a strong bullish signal.
2. When the RSI shows red top, blue top or red and blue mixed tops, it is a strong bearish signal.
3. When the RSI and BAND colors are bearish, it creates a strong signal.
4. When the RSI performs the actions in the 1st definition above the Bollinger Band, the buy signal should be trusted more.
5. When the RSI performs the actions in the 2nd definition below the Bollinger Band, the sell signal should be trusted more.
40-60 LEVELS
The 40-60 levels are strong resistance and support levels. Added for the Andrew Cardwell strategy. Blue, green or blue-green mixed bottoms occurring close to the 60 level bring strong upward movements
Red, blue or red-blue mixed tops occurring close to the 40 level bring strong downward movements.
Also in the oscillator, when RSI14 goes above the 80 level, the background color turns red. When it falls below the 20 level, the background color turns green. The first one indicates a sell zone, the second one indicates a buy zone.
TÜRKÇE
RENKLERİN KAYNAĞI
Osilatörümüz klasik RSI osilatörüdür. Fakat klasik RSI osilatöründe sadece RSI14 dikkate alınır, kullanıcı istediğinde farklı periyotlara bakar ve her periyot farklı bir seviye gösterir. Bu durum kullanıcının zihnini karıştırır, net bir kanıya varmasını önler. İşte bu indikatör 1’den hatta 10’dan fazla RSI periyodu arasındaki ilişkiyi dikkate alarak, bütün periyotlardaki momentumun hangi yönde olduğunu ve hangi güçte olduğunu renklerle bize gösterir. Yani Renklendirmenin temelinde yatan matematik farklı RSI periyotları arasındaki ilişkidir.
RSI RENKLERİ
RSI çizgisi kırmızı, yeşil, mavi olmak üzere 3 renk taşır. Kırmızı renk momentumun zayıfladığını gösterir, yeşil renk güçlendiğini, mavi renk ise momentumun kararsız olduğunu ve her an kırmızdan yeşile veya yeşilden kırmızıya geçebileceğini söyler.
BOLLİNGER BANDI RENKLERİ
RSI çizgisi renkleri ile aynı matematik dikkate alınarak oluşur, fakat daha büyük periyotların momentumunu gösterir. Yani RSI çizgisine göre daha geç renk değiştirir ama daha güvenilir ve kesindir.
Gizli Uyumsuzluklarda Renkler
Gizli negatif uyumsuzluk ve gizli pozitif uyumsuzluklarda genelde tek bir barda aykırı renk oluşur, bu husus dikkate alınmalıdır.
Renkler Nasıl Kullanılmalı?
1. RSI yeşil dip, mavi dip veya yeşil ve mavi karışımı dipler gösterdiğinde yükseliş yönlü güçlü bir sinyaldir.
2. RSI kırmızı tepe, mavi tepe veya kırmızı ve mavi karışışımı tepeler gösterdiğinde düşüş yönlü güçlü bir sinyaldir.
3. RSI ve BAND renkleri ayı olduğunda güçlü bir sinyal oluşturur.
4. RSI bollinger bandının üstünde 1. Tanımdaki eylemleri gerçekleştirdiğinde alım sinyaline daha çok güvenilmeli.
5. RSI bollinger bandının altında 2. Tanımdaki eylemleri gerçekleştirdiğinde satım sinyaline daha çok güvenilmeli.
40-60 SEVİYELERİ
40-60 seviyeleri güçlü direnç ve destek seviyeleridir. Andrew Cardwell stratejisi için eklenmiştir. 60 seviyesine yakın gerçekleşen mavi, yeşil veya mavi-yeşil karışımı dipler güçlü yükseliş hareketleri getirir
40 seviyesine yakın gerçekleşen kırmızı, mavi veya kırmızı-mavi karışımı tepeler güçlü düşüş hareketleri getirir.
Osilatörde ayrıca RSI14 80 seviyesinin üzerine çıktığında arka plan rengi kırmızıya dönüşür. 20 seviyesinin altına düştüğüne arkaplan rengi yeşile dönüşür. İlki satış bölgesi ikincisi alış bölgesi olduğunu haber eder.
Bullseye PDHL Bullseye PDHL Indicator
The Bullseye PDHL indicator is designed for traders who want to visually identify key price levels from the previous trading day, including the high, low, and significant Fibonacci retracement levels. This indicator helps traders understand potential support and resistance zones, which can be useful for planning entries and exits.
Key Features:
Previous Day’s High and Low:
Plots the previous day’s high and low as solid lines on the chart to easily identify important levels from the prior session.
These levels serve as critical support and resistance markers, which are often respected by the market.
Fibonacci Retracement Levels:
Plots three Fibonacci retracement levels (38.2%, 50%, and 61.8%) between the previous day’s high and low.
These levels are key reference points for assessing potential pullbacks or retracements during the current trading day.
Visual Representation:
The previous day’s high and low are plotted in cyan for easy differentiation.
The Fibonacci retracement levels (30%, 50%, 60%) are plotted in white, providing a clear visual reference for traders.
This indicator can help traders identify important reaction zones and areas where price might reverse or consolidate, making it a valuable addition for technical analysis.
Momentum Flow OscillatorIndicator Overview: Momentum Flow Oscillator (MFO)
The Momentum Flow Oscillator (MFO) is a powerful tool for detecting shifts in market momentum. It combines a momentum-based calculation with a dynamic ribbon of moving averages to help traders identify trend reversals, continuations, and market consolidations. The MFO offers a clear visual representation of market conditions and assists traders in making informed decisions based on the relationship between momentum and its underlying trends.
The MFO line (green) is plotted alongside a Base Line (black) and a series of moving averages (ribbon). The ribbon is composed of five moving averages of different lengths, which allow traders to spot trends, momentum shifts, and potential trade opportunities. It is important to note that the ribbon tends to be a slower-moving component of the indicator, providing long-term trend signals rather than quick, reactive signals.
Components of the Indicator:
Momentum Flow Index (MFI):
This green line is the core of the indicator, representing market momentum derived from price and volume action. It reacts to changes in market dynamics and helps identify periods of strength and weakness.
Base Line (Black Line):
The black line is a 200-period moving average of the momentum flow. This acts as a dynamic support/resistance level for the MFI, smoothing out the price action over a longer period and providing a clearer trend signal.
Moving Averages Ribbon:
The ribbon is composed of five moving averages with different periods (100, 125, 150, 175, and 200). These moving averages create a visual "ribbon" that helps identify trends and consolidations, allowing traders to visualize the market’s momentum over different time frames.
The ribbon acts as a slower-moving indicator, helping to confirm long-term trends. Traders should keep in mind that the ribbon provides signals with a lag, making it ideal for trend-following rather than quick, short-term trades.
How to Use the Momentum Flow Oscillator (MFO):
1. Bullish Momentum Signals:
When the MFI (green line) crosses above the Base Line and the SMA ribbon, it indicates increasing momentum in the market. This signal is particularly strong when the MFI stays above the ribbon for an extended period.
Trade Example: Traders can use this as a buy signal when the MFI crosses above the ribbon, indicating that momentum is shifting to the upside. If the ribbon starts fanning out, it suggests the market is trending strongly upward, which may support a long position.
2. Bearish Momentum Signals:
When the MFI crosses below the Base Line and the SMA ribbon, it signals decreasing momentum. This is a bearish sign, indicating that the market may be preparing for a downturn.
Trade Example: A trader can use the cross below the ribbon as a sell signal or consider entering a short position when momentum weakens. If the ribbon fans out in a downward direction, it suggests the market is trending lower, and a short position may be warranted.
3. Neutral or Caution Signals:
When the MFI fluctuates within the SMA ribbon or crosses in and out frequently, the market may be in a consolidation phase or range-bound. In this situation, the trend is uncertain, and momentum is not strong enough to break decisively in either direction.
Trade Example: Traders may want to avoid taking new positions when the MFI is moving sideways within the ribbon, as this indicates indecision in the market. Waiting for a breakout above or below the ribbon can provide clearer signals for trading.
4. Trend Confirmation with Ribbon Expansion:
When the SMA ribbon expands, it indicates strong momentum in the direction of the trend. A clear widening of the ribbon with the MFI above (bullish) or below (bearish) signals a strong, sustainable trend.
Trade Example: As the ribbon expands, it confirms the strength of the trend, and traders can use this as confirmation to either hold an existing position or add to it.
5. Reversal Signals from Ribbon Contraction:
When the SMA ribbon contracts or the MFI crosses back and forth over the Base Line, it signals a potential reversal or a weakening of the existing trend.
Trade Example: In these cases, traders might consider closing positions or preparing for a reversal, as the contraction often signals a potential breakout in the opposite direction.
Example of Using the MFO in Trading:
In the provided chart image, you can see the MFI moving below the Base Line and the SMA ribbon for an extended period. This indicates bearish momentum, and traders could use this signal to enter a short position or avoid long positions until the MFI shows signs of crossing back above the ribbon. When the MFI crosses above the ribbon, it can signal a potential bullish reversal, indicating it might be time to re-enter long positions or close short positions.
Additional Trading Tips:
Combine with Other Indicators: The MFO can be used in combination with other technical tools such as volume-based indicators, trendlines, or oscillators like RSI or MACD to confirm signals and increase accuracy.
Use Different Time Frames: Traders can apply the MFO on different time frames (e.g., daily, weekly) to capture both short-term and long-term trends. Crossovers in longer time frames provide stronger confirmation of trend direction.
Conservative Entry: For more conservative traders, waiting for the MFI to fully cross above or below the ribbon (rather than within it) can help filter out false signals and avoid entering trades during consolidation phases.
Conclusion:
The Momentum Flow Oscillator offers traders a versatile and visual approach to gauging market momentum and trend strength. By observing the interaction between the MFI and the SMA ribbon, traders can spot trend changes early, confirm existing trends, and stay out of choppy, sideways markets. Keep in mind that the ribbon is a slower-moving part of the indicator—perfect for trend-following strategies but less ideal for fast, reactive trades. Use this indicator to increase your confidence in your trading decisions and improve your ability to capture trends in the market.
Pivot Bollinger BandThis is a special kind of Bollinger Bands indicator that adapts to the market's pivot points. Instead of using regular price data, it first finds important swing highs and lows in the market (called pivot points). It then uses these pivot points to create a center line, which is like a moving average of where the market is pivoting.
Around this center line, it draws the classic Bollinger Bands - an upper and lower band that show where prices might find resistance or support. The distance between these bands changes based on market volatility, just like regular Bollinger Bands. You can adjust how sensitive it is to pivot points and how wide the bands should be.
By using pivot point based Bollinger Bands, we expect band breakout can be captured more effectively.
Z-Scored Pi Cycle Top & BottomThis indicator calculates the Z-score of the Pi Cycle Top & Bottom indicator to identify potential market cycle tops and bottoms. It uses the relationship between two EMAs (111 and 350) to assess the price action and applies a Z-score to determine how far the current value deviates from the mean, providing a normalized measure of overbought and oversold conditions.
Summary:
The Z-Scored Pi Cycle Top & Bottom indicator is designed to help traders identify significant market cycle extremes by applying a Z-score to the Pi Cycle Top & Bottom ratio (EMA 111/EMA 350). This normalized score ranges between -2.99 and 2.99, with values near the extremes suggesting potential market tops or bottoms. Green shading indicates a positive Z-score (potential top), while red shading indicates a negative Z-score (potential bottom).
Use this indicator to gauge where the market stands relative to historical tops and bottoms, allowing for more informed decision-making in both bull and bear markets. The indicator also displays the absolute value of the Z-score in the label, helping traders easily visualize how far the current market is from historical extremes.
**I did not come up with or create this indicator I have just z scored it and made it easier for myself to use.***
Supply and Demand Areas Responsible and Origins [PRO][keypoems]Supply and Demand Areas Responsible and Origins by Keypoems
This indicator highlights supply and demand areas responsible for breaking market structure (SNDR) and tracks how many times these have been "tapped". This is a very advanced and unique capability not present on TradingView at the moment. It also draws and track the "Origins" of breakout moves.
Using this fellow traders can to track with great precision order flow by gauging the reaction of price to these very sensitive areas.
Various powerful trading models can be built around this indicator. Here's an example on how to use it: Price Action will tend to retrace and visit ("tap") critical areas where orders are accumulated (SNDR and Origins) usually twice ("double tap") before continuing a trend. With this knowledge traders can either enter profitably a pro-trend trade after a "double tap" retracement in a responsible area or a origin or if those areas are violated, understand the change in narrative and enter a counter-trend trade.
This indicator is not a mashup of something you have already seen. It is absolutely unique: early testers and fellow traders have been very loud in requesting this to be released to the public (I love you moderators!).
SNDRs (Supply and Demand Responsible)
- Advanced Detection: Looks for the last up-move swing in a bearish zone, or the last down-move in a bullish zone. Adjust the sensitivity choosing a customizable pivot length.
- Mitigation Extension: Option to extend SNDR zones until they are fully mitigated.
- First Tap Indication: Zones change color and text upon the first tap, signaling initial mitigation.
- Second Tap Indication: Zones change color and text upon the first tap, signaling possible trade idea.
- Set pivot length for swing detection.
- Enable bullish and bearish SNDR zones separately.
- Customize texts, colors, and border colors for SNDR zones.
- Adjust line styles, widths, and display of 30%, 50%, and 70% levels within SNDR zones.
Origins
- Definition Flexibility: Mark Origins as the last down-close candle in a bullish zone, last up-close candle in a bearish zone or use the initial swing point with a customizable pivot length.
- Mitigation Extension: Extend origin zones until they are fully mitigated.
- First Tap Indication: Similar to SNDR, origin zones can change appearance upon the first tap.
- Set pivot length for swing detection.
- Enable bullish and bearish origin zones separately.
- Customize texts, colors, borders, and line styles.
- Adjust display of 30%, 50%, and 70% levels within origin zones.
Zones
To be able to draw SNDRs (which are internal counter-trend areas in a zone) the indicator needs to track market structure zones. So the indicator can also draw those zones if needed. The indicator can also extend the current price zones until the 50% of the zone is mitigated.
Info Box
Displays a box with detailed information about the last identified zone, including risk and range size.
- Risk Management: Set the risk amount to calculate contract sizes or position sizing.
- Visibility Options: Adjust the labels' size within the info box for better readability.
- Set the risk amount for calculations.
CPR by NKDCentral Pivot Range (CPR) Trading Strategy:
The Central Pivot Range (CPR) is a widely-used tool in technical analysis, helping traders pinpoint potential support and resistance levels in the market. By using the CPR effectively, traders can better gauge market trends and determine favorable entry and exit points. This guide explores how the CPR works, outlines its calculation, and describes how traders can enhance their strategies using an extended 10-line version of CPR.
What Really Central Pivot Range (CPR) is?
At its core, the CPR consists of three key lines:
Pivot Point (PP) – The central line, calculated as the average of the previous day’s high, low, and closing prices.
Upper Range (R1) – Positioned above the Pivot Point, acting as a potential ceiling where price may face resistance.
Lower Range (S1) – Found below the Pivot Point, serving as a potential floor where price might find support.
Advanced traders often expand on the traditional three-line CPR by adding extra levels above and below the pivot, creating up to a 10-line system. This extended CPR allows for a more nuanced understanding of the market and helps identify more detailed trading opportunities.
Applying CPR for Trading Success
1. How CPR is Calculation
The CPR relies on the previous day's high (H), low (L), and close (C) prices to create its structure:
Pivot Point (PP) = (H + L + C) / 3
First Resistance (R1) = (2 * PP) - L
First Support (S1) = (2 * PP) - H
Additional resistance levels (R2, R3) and support levels (S2, S3) are calculated by adding or subtracting multiples of the previous day’s price range (H - L) from the Pivot Point.
2. Recognizing the Market Trend
To effectively trade using CPR, it’s essential to first determine whether the market is trending up (bullish) or down (bearish). In an upward-trending market, traders focus on buying at support levels, while in a downward market, they look to sell near resistance.
3. Finding Ideal Entry Points
Traders often look to enter trades when price approaches key levels within the CPR range. Support levels (S1, S2) offer buying opportunities, while resistance levels (R1, R2) provide selling opportunities. These points are considered potential reversal zones, where price may bounce or reverse direction.
4. Managing Risk with Stop-Loss Orders
Proper risk management is crucial in any trading strategy. A stop-loss should be set slightly beyond the support level for buy positions and above the resistance level for sell positions, ensuring that losses are contained if the market moves against the trader’s position.
5. Determining Profit Targets
Profit targets are typically set based on the distance between entry points and the next support or resistance level. Many traders apply a risk-reward ratio, aiming for larger potential profits compared to the potential losses. However, if the next resistance and support level is far then middle levels are used for targets (i.e. 50% of R1 and R2)
6. Confirmation Through Other Indicators
While CPR provides strong support and resistance levels, traders often use additional indicators to confirm potential trade setups. Indicators such as moving averages can
help validate the signals provided by the CPR.
7. Monitoring Price Action At CPR Levels
Constantly monitoring price movement near CPR levels is essential. If the price fails to break through a resistance level (R1) or holds firm at support (S1), it can offer cues on when to exit or adjust a trade. However, a strong price break past these levels often signals a continued trend.
8. Trading Breakouts with CPR
When the price breaks above resistance or below support with strong momentum, it may signal a potential breakout. Traders can capitalize on these movements by entering positions in the direction of the breakout, ideally confirmed by volume or other technical indicators.
9. Adapting to Changing Market Conditions
CPR should be used in the context of broader market influences, such as economic reports, news events, or geopolitical shifts. These factors can dramatically affect market direction and how price reacts to CPR levels, making it important to stay informed about external market conditions.
10. Practice and Backtesting for Improvements
Like any trading tool, the CPR requires practice. Traders are encouraged to backtest their strategies on historical price data to get a better sense of how CPR works in different market environments. Continuous analysis and practice help improve decision-making and strategy refinement.
The Advantages of Using a 10-Line CPR System
An extended 10-line CPR system—comprising up to five resistance and five support levels—provides more granular control and insight into market movements. This expanded view helps traders better gauge trends and identify more opportunities for entry and exit. Key benefits include:
R2, S2 Levels: These act as secondary resistance or support zones, giving traders additional opportunities to refine their trade entries and exits.
R3, S3 Levels: Provide an even wider range for identifying reversals or trend continuations in more volatile markets.
Flexibility: The broader range of levels allows traders to adapt to changing market conditions and make more precise decisions based on market momentum.
So in Essential:
The Central Pivot Range is a valuable tool for traders looking to identify critical price levels in the market. By providing a clear framework for identifying potential support and resistance zones, it helps traders make informed decisions about entering and exiting trades. However, it’s important to combine CPR with sound risk management and additional confirmation through other technical indicators for the best results.
Although no trading tool guarantees success, the CPR, when used effectively and combined with practice, can significantly enhance a trader’s ability to navigate market fluctuations.
EMA Distance & Sector InfoThis indicator provides insights into price trends relative to Exponential Moving Averages (EMAs) and displays sector/industry information about the asset. Below is a detailed explanation of its purpose and what it is designed to achieve:
Purpose of the Code
The indicator offers two key functionalities:
1. Analyzing Price Distance from Multiple EMAs:
• Helps traders understand how far the current price is from key EMAs, expressed as a percentage.
• Calculates average percentage distances over a specified period (default: 63 days) to spot consistent trends or mean reversion opportunities.
• Useful for trend-following strategies, allowing the trader to see when the price is above or below important EMAs (e.g., 9, 21, 50, 100, and 150-period EMAs).
2. Displaying Asset Sector and Industry Information:
• Displays the sector and industry of the asset being analyzed (e.g., Technology, Consumer Goods).
• Provides additional context when evaluating performance across a specific sector or comparing an asset to its peers.
Who Would Use This Indicator?
This indicator is particularly helpful for:
1. Swing Traders and Positional Traders:
• They can use it to track whether the price is trading significantly above or below critical EMAs, which often signals overbought/oversold conditions or trend strength.
• The average percentage distances help to identify momentum shifts or pullback opportunities.
2. Sector/Industry-Focused Investors:
• Understanding an asset’s sector and industry helps investors gauge how the asset fits into the broader market context.
• This is valuable for sector rotation strategies, where investors shift funds between sectors based on performance trends.
How It Helps in Trading Decisions
1. Entry and Exit Points:
• If the price is far above an EMA (e.g., 21 EMA), it might indicate an overbought condition or a strong trend, while a negative percentage could signal a pullback or reversal opportunity.
• The average percentage distances smooth the fluctuations and reveal longer-term trends.
2. Contextual Information:
• Knowing the sector and industry is useful when analyzing trends. For example, if Technology stocks are doing well, and this asset belongs to that sector, it could indicate sector-wide momentum.
Summary of the Indicator’s Purpose
This code provides:
• EMA trend monitoring: Visualizes the price position relative to multiple EMAs and averages those distances for smoother insights.
• Sector and industry information: Adds valuable context for asset performance analysis.
• Decision-making support: Helps traders identify overbought/oversold levels and assess the asset within the broader market landscape.
In essence, this indicator is a multi-purpose tool that combines technical analysis (through EMA distances) with fundamental context (via sector/industry info), making it valuable for traders and investors aiming to time entries/exits or understand market behavior better.