Seasonality with Custom IntervalSeasonality with Custom Interval Lookback
by TradersPod
Description:
This script is a modified version of Kaschko's original Seasonal Trend with Interval Lookback indicator, designed to help traders analyze seasonal trends over customizable intervals. The modifications in this version provide enhanced flexibility and improved visualization, making it a valuable tool for analyzing seasonal patterns in various markets.
Key Features:
1. Custom Lookback Multiplier: The script allows users to adjust the lookback period with a multiplier, giving more control over the number of years analyzed for seasonality. This feature is especially useful for traders looking to tailor the analysis based on different market cycles or election cycles.
2. Enhanced Visualization: Users can customize the color and line width of the plotted seasonality line for better readability. The smoothing parameter has been added to allow for flexible moving averages, reducing noise in the trend visualization.
3 Detailed Chart Plotting: The script plots the trading week of the year (TWOY), trading day of the month (TDOM), and trading day of the year (TDOY) on the status line, providing users with additional insights into how seasonal trends affect price movements.
How to Use:
1. Lookback Period: Set the number of years to look back. For example, if you set it to 16 years, the script will gather data from the last 16 years.
2. Interval Years: You can set an interval (e.g., 4 years for U.S. elections) to focus on specific years:
Interval = 0: This setting will use all years within the lookback period.
Interval > 0: This setting will use only every nth year, based on the interval you set (e.g., 4 for U.S. elections, 10 for decennial years).
3 Future Projections: You can specify how many bars into the future the script should project the seasonal trend.
Example Settings:
>Lookback Period: 16 years.
>Interval: 4 years (this would focus on U.S. election years).
>]Future Projections: 30 bars (the seasonal trend is projected 30 bars into the future).
Intended Use : This indicator is ideal for traders who:
>Want to analyze how market prices react to seasonal cycles.
>Need flexible, customizable tools for tracking longer-term trends.
>Prefer visual clarity in their seasonal trend analysis with adjustable settings for better readability.
How It Works:
>The script calculates the average price change for each trading day, week, or month, using a lookback period of up to 30 years. It then smooths the seasonal trend using a customizable moving average and projects the trend into the future, allowing users to forecast potential price movements based on historical seasonal patterns.
>The script also offers a projection of future seasonality by plotting the seasonal trend up to 252 bars into the future, with options to offset the start of the seasonality.
Notes:
>This script is open-source under the Mozilla Public License 2.0.
>Original script by Kaschko. Modifications by TradersPod.
Göstergeler ve stratejiler
RSI (Kernel Optimized) | Flux Charts💎 GENERAL OVERVIEW
Introducing our new KDE Optimized RSI Indicator! This indicator adds a new aspect to the well-known RSI indicator, with the help of the KDE (Kernel Density Estimation) algorithm, estimates the probability of a candlestick will be a pivot or not. For more information about the process, please check the "HOW DOES IT WORK ?" section.
Features of the new KDE Optimized RSI Indicator :
A New Approach To Pivot Detection
Customizable KDE Algorithm
Realtime RSI & KDE Dashboard
Alerts For Possible Pivots
Customizable Visuals
❓ HOW TO INTERPRET THE KDE %
The KDE % is a critical metric that reflects how closely the current RSI aligns with the KDE (Kernel Density Estimation) array. In simple terms, it represents the likelihood that the current candlestick is forming a pivot point based on historical data patterns. a low percentage suggests a lower probability of the current candlestick being a pivot point. In these cases, price action is less likely to reverse, and existing trends may continue. At moderate levels, the possibility of a pivot increases, indicating potential trend shifts or consolidations.Traders should start monitoring closely for confirmation signals. An even higher KDE % suggests a strong likelihood that the current candlestick could form a pivot point, which could lead to a reversal or significant price movement. These points often align with overbought or oversold conditions in traditional RSI analysis, making them key moments for potential trade entry or exit.
📌 HOW DOES IT WORK ?
The RSI (Relative Strength Index) is a widely used oscillator among traders. It outputs a value between 0 - 100 and gives a glimpse about the current momentum of the price action. This indicator then calculates the RSI for each candlesticks, and saves them into an array if the candlestick is a pivot. The low & high pivot RSIs' are inserted into two different arrays. Then the a KDE array is calculated for both of the low & high pivot RSI arrays. Explaining the KDE might be too much for this write-up, but for a brief explanation, here are the steps :
1. Define the necessary options for the KDE function. These are : Bandwidth & Nº Steps, Array Range (Array Max - Array Min)
2. After that, create a density range array. The array has (steps * 2 - 1) elements and they are calculated by (arrMin + i * stepCount), i being the index.
3. Then, define a kernel function. This indicator has 3 different kernel distribution modes : Uniform, Gaussian and Sigmoid
4. Then, define a temporary value for the current element of KDE array.
5. For each element E in the pivot RSI array, add "kernel(densityRange.get(i) - E, 1.0 / bandwidth)" to the temporary value.
6. Add 1.0 / arrSize * to the KDE array.
Then the prefix sum array of the KDE array is calculated. For each candlestick, the index closest to it's RSI value in the KDE array is found using binary search. Then for the low pivot KDE calculation, the sum of KDE values from found index to max index is calculated. For the high pivot KDE, the sum of 0 to found index is used. Then if high or low KDE value is greater than the activation threshold determined in the settings, a bearish or bullish arrow is plotted after bar confirmation respectively. The arrows are drawn as long as the KDE value of current candlestick is greater than the threshold. When the KDE value is out of the threshold, a less transparent arrow is drawn, indicating a possible pivot point.
🚩 UNIQUENESS
This indicator combines RSI & KDE Algorithm to get a foresight of possible pivot points. Pivot points are important entry, confirmation and exit points for traders. But to their nature, they can be only detected after more candlesticks are rendered after them. The purpose of this indicator is to alert the traders of possible pivot points using KDE algorithm right away when they are confirmed. The indicator also has a dashboard for realtime view of the current RSI & Bullish or Bearish KDE value. You can fully customize the KDE algorithm and set up alerts for pivot detection.
⚙️ SETTINGS
1. RSI Settings
RSI Length -> The amount of bars taken into account for RSI calculation.
Source -> The source value for RSI calculation.
2. Pivots
Pivot Lengths -> Pivot lengths for both high & low pivots. For example, if this value is set to 21; 21 bars before AND 21 bars after a candlestick must be higher for a candlestick to be a low pivot.
3. KDE
Activation Threshold -> This setting determines the amount of arrows shown. Higher options will result in more arrows being rendered.
Kernel -> The kernel function as explained in the upper section.
Bandwidth -> The bandwidth variable as explained in the upper section. The smoothness of the KDE function is tied to this setting.
Nº Bins -> The Nº Steps variable as explained in the upper section. It determines the precision of the KDE algorithm.
E9 PLRRThe E9 PLRR (Power Law Residual Ratio) is a custom-built indicator designed to evaluate the overvaluation or undervaluation of an asset, specifically by utilizing logarithmic price data and a power law-based model. It leverages a dynamic regression technique to assess the deviation of the current price from its expected value, giving insights into how much the price deviates from its long-term trend.
This indicator is primarily used to detect market extremes and cycles, often used in the analysis of long-term price movements in assets like Bitcoin, where cyclical behavior and significant price deviations are common.
This chart is back from 2019 and shows (From left to right) 2018 Bear market bottom at $3.5k (Dark Blue) , following a peak at 12k (dark red) before the Covid crash back down to EUROTLX:4K (Dark blue)
Key Components
Logarithmic Price Data:
The indicator works with logarithmic price data (ohlc4), which represents the average of open, high, low, and close prices. The logarithmic transformation is crucial in financial modeling, especially when analyzing long-term price data, as it normalizes exponential price growth patterns.
Dynamic Exponent 𝑘:
The model calculates a dynamic exponent k using regression, which defines the power law relationship between time and price. This exponent is essential in determining the expected power law price return and how far the current price deviates from that expected trend.
Power Law Price Return:
The power law price return is computed using the dynamic exponent
k over a defined period, such as 365 days (1 year). It represents the theoretical price return based on a power law relationship, which is used to compare against the actual logarithmic price data.
Risk-Free Rate:
The indicator incorporates an adjustable risk-free rate, allowing users to model the opportunity cost of holding an asset compared to risk-free alternatives. By default, the risk-free rate is set to 0%, but this can be modified depending on the user's requirements.
Volatility Adjustment:
A key feature of the PLRR is its ability to adjust for price volatility. The indicator smooths out short-term price fluctuations using a moving average, helping to detect longer-term cycles and trends.
PLRR Calculation:
The core of the indicator is the calculation of the Power Law Residual Ratio (PLRR). This is derived by subtracting the expected power law price return and risk-free rate from the logarithmic price return, then multiplying the result by a user-defined multiplier.
Color Gradient:
The PLRR values are represented visually using a color gradient. This gradient helps the user quickly identify whether the asset is in an undervalued, fair value, or overvalued state:
Dark Blue to Light Blue: Indicates undervaluation, with increasing blue tones representing a higher degree of undervaluation.
Green to Yellow: Represents fair value, where the price is aligned with the expected power law return.
Orange to Dark Red: Indicates overvaluation, with increasing red tones representing a higher degree of overvaluation.
Zero Line:
A zero line is plotted on the indicator chart, serving as a reference point. Values above the zero line suggest potential overvaluation, while values below indicate potential undervaluation.
Dots Visualization:
The PLRR is plotted using dots, with each dot color-coded based on the PLRR value. This dot-based visualization makes it easier to spot significant changes or reversals in market sentiment without overwhelming the user with continuous lines.
Bar Coloring:
The chart’s bars are colored in accordance with the PLRR value at each point in time, making it visually clear when an asset is potentially overvalued or undervalued.
Indicator Functionality
Cycle Identification : The E9 PLRR is especially useful for identifying cyclical market behavior. In assets like Bitcoin, which are known for their boom-bust cycles, the PLRR can help pinpoint when the market is likely entering a peak (overvaluation) or a trough (undervaluation).
Overvaluation and Undervaluation Detection: By comparing the current price to its expected power law return, the PLRR helps traders assess whether an asset is trading above or below its fair value. This is critical for long-term investors seeking to enter the market at undervalued levels and exit during periods of overvaluation.
Trend Following: The indicator helps users identify the broader trend by smoothing out short-term volatility. This makes it useful for both momentum traders looking to ride trends and contrarian traders seeking to capitalize on market extremes.
Customization
The E9 PLRR allows users to fine-tune several parameters based on their preferences or specific market conditions:
Lookback Period:
The user can adjust the lookback period (default: 100) to modify how the moving average and regression are calculated.
Risk-Free Rate:
Adjusting the risk-free rate allows for more realistic modeling of the opportunity cost of holding the asset.
Multiplier:
The multiplier (default: 5.688) amplifies the sensitivity of the PLRR, allowing users to adjust how aggressively the indicator responds to price movements.
This indicator was inspired by the works of Ashwin & PlanG and their work around powerLaw. Thank you. I hall be working on the calculation of this indicator moving forward to make improvements and optomisations.
Price Iterations with Pips*Script Name:* Price Iterations with Pips
*Description:* This script plots horizontal lines above and below a user-defined initial price, representing price iterations based on a specified number of pips.
*Functionality:*
1. Asks for user input:
- Initial Price
- Pips per Iteration
- Number of Iterations
2. Calculates the price change per pip.
3. Plots horizontal lines:
- Above the initial price (green)
- Below the initial price (red)
4. Extends lines dynamically to both sides.
*Use Cases:*
1. *Support and Resistance Levels:* Use the script to visualize potential support and resistance levels based on price iterations.
2. *Price Targets:* Set the initial price as a target and use the iterations to estimate potential profit/loss levels.
3. *Risk Management:* Utilize the script to visualize risk levels based on pip iterations.
4. *Technical Analysis:* Combine the script with other technical indicators to identify potential trading opportunities.
*Trading Platforms:* This script is designed for TradingView.
*How to Use:*
1. Add the script to your TradingView chart.
2. Set the initial price, pips per iteration, and number of iterations.
3. Adjust the colors and line styles as needed.
4. Zoom in/out and pan to see the lines adjust.
*Benefits:*
1. Visualize price iterations and potential support/resistance levels.
2. Simplify risk management and price target estimation.
3. Enhance technical analysis with customizable price levels.
NIFTY - Heatmap [DRK]Nifty 50 Heatmap by Percentage Change
This Pine Script generates a dynamic heatmap for the top 40 weighted stocks in the Nifty 50 index, ordered by their percentage change. The heatmap visually represents the performance of these stocks, with green indicating positive changes and red indicating negative changes.
Features :
Real-time Updates : The heatmap updates in real-time, providing an up-to-date snapshot of market performance.
Color Coding : Stocks are color-coded based on their percentage change, making it easy to identify gainers and losers at a glance.
Future Enhancements:
Indicator : Planned updates include popups or descriptions that provide additional insights, such as key indicators and their positive or negative signals.
Detailed Analysis : Future versions will offer more detailed analysis and insights to help traders make informed decisions.
Stay tuned for these exciting updates!
MCDX+RSI+SMA[THANHCONG]### Detailed Analysis of the MCDX+RSI+SMA Indicator
The MCDX+RSI+SMA indicator is designed to help investors conduct a deeper analysis of market trends by combining multiple technical factors into a single chart. This integration of popular indicators such as RSI, SMA, and Stochastic RSI provides investors with a comprehensive view of market movements, particularly in distinguishing between "Banker" and "Hot Money"—representing large and small capital flows.
#### Key Components of the Indicator:
1. **RSI for Banker and Hot Money:**
- **RSI (Relative Strength Index)** is a momentum oscillator that measures the speed and change of price movements, indicating overbought or oversold conditions. In this indicator, there are two distinct RSI lines configured for Banker (large capital) and Hot Money (small capital).
- Investors can adjust parameters like the RSI calculation period, baseline levels, and sensitivity for each type of capital flow, providing flexibility to adapt to varying market conditions.
2. **Moving Average (MA) of RSI:**
- The indicator employs two common types of Moving Averages: **SMA (Simple Moving Average)** and **EMA (Exponential Moving Average)**. These help smooth the RSI signals for Banker, offering a clearer view of the long-term trend of large capital in the market.
- Investors can select the type and period of the MA, allowing them to optimize the indicator for their trading style.
3. **Stochastic RSI:**
- The **Stochastic RSI** is incorporated to monitor overbought and oversold conditions over a specified timeframe. Parameters related to %K and %D of the Stochastic can also be adjusted to refine the accuracy of market signal analysis.
- A notable feature is the normalization of %K and %D on a 0-20 scale, making these lines compatible with other RSI charts, thus providing consistency in evaluating market strength.
4. **Overbought and Oversold Levels:**
- The indicator includes reference lines for overbought and oversold levels, aiding investors in identifying potential reversal zones in the market. This helps to avoid buying at excessively high prices or selling at excessively low prices.
#### Benefits for Investors:
- **Comprehensive View:** The indicator combines insights from both large (Banker) and small (Hot Money) capital flows, enabling investors to analyze not just trends but also the participation of each type of capital in the market.
- **Enhanced Technical Analysis:** By integrating multiple technical indicators within a single chart, investors can track important factors such as market momentum, overbought/oversold conditions, and capital flow shifts without needing to switch between various charts.
- **Flexibility and Customization:** The indicator allows adjustment of key parameters like the RSI period, sensitivity, type of MA, and Stochastic RSI settings, enabling investors to tailor the indicator to their trading strategy and timeframe.
- **Higher Reliability:** The combination of indicators like RSI, Stochastic RSI, and MA helps investors confirm trading signals more confidently. For instance, when both RSI and Stochastic RSI indicate overbought conditions, the likelihood of a reversal may be higher, reducing risk for investors.
#### Unique Features of the Indicator:
The MCDX+RSI+SMA indicator is a unique tool that integrates various market analysis factors into a single framework. This not only provides investors with a complete view of capital flows but also aids in optimizing decision-making based on multiple market aspects. Furthermore, its customizable parameters make it suitable for various trading strategies, from short-term to long-term.
Risk Contract Table by Soothing TradesDescription:
Risk Contract Table by Soothing Trades
This script provides an intuitive table that displays the calculated risk in dollars for various contract sizes based on the size of the last closed candle.
It is designed to help traders quickly assess their risk exposure based on the most recent price movement.
Key Features:
Automatic and Manual Tick Value Calculation: Automatically fetches the tick value for your instrument.
You can also override it with a manual input using a convenient checkbox.
Customizable Contract Sizes: Easily input your preferred contract sizes.
The script dynamically adjusts the table headers and risk calculations based on your inputs.
Real-Time Updates:
The table updates with each new candle close, ensuring that your risk calculations are always based on the latest candle size.
User-Friendly Display: The table is displayed directly on your chart with customizable colors for both text and background, making it easy to match your chart’s theme.
How to Use:
Tick Value: By default, the script uses the automatic tick value.
To manually set the tick value, check the "Use Manual Tick Value" box and enter your desired value.
Contract Sizes: You can input the number of contracts for each category (5ct, 10ct, 15ct, 17ct). The script calculates and displays the risk for each contract size based on the tick movement of the last closed candle only.
Real-Time Calculations: Risk calculations are updated only after the candle is closed, so there are no misleading values during live market activity.
Customization Options:
Manual Tick Value Override: Use a custom tick value by enabling the "Use Manual Tick Value" option.
Custom Contract Sizes: Input your desired contract sizes, and the table headers and risk calculations will update accordingly.
Color Customization: Customize the text and background colors to fit your chart’s aesthetic.
How It Works:
The script calculates the tick movement from the last closed candle and multiplies it by the specified tick value and the number of contracts.
You can choose to use the default automatic tick value or manually input your own.
A table appears on the chart showing the risk for different contract sizes based solely on the size of the last candle, providing a quick snapshot of potential exposure from the most recent price movement.
This script is ideal for traders who want to keep a quick and accurate overview of their potential risk exposure based on the size of the most recent price action.
Whether you are scalping, day trading, or holding positions overnight, this tool by Soothing Trades will help you stay informed and make better trading decisions.
Happy Trading!
- use at own risk, for education and test purpose only.
Developed by Soothing Trades
KLNI RSI MTFDescription of the RSI Multi-Timeframe Indicator
The RSI Multi-Timeframe Indicator allows you to track and compare the Relative Strength Index (RSI) across three different timeframes on the same chart. This is particularly useful for traders who want to gauge the momentum of an asset over multiple time periods simultaneously, helping to make more informed trading decisions.
Key Features
Multi-Timeframe RSI:
You can select up to three timeframes to plot RSI on the same chart.
Available timeframe options include:
Current: Displays RSI for the current chart timeframe.
60 minutes (1 hour)
Daily
Weekly
Monthly
Custom RSI Settings:
Adjust the RSI length and source (e.g., close price) through user inputs, allowing you to tailor the indicator to your strategy.
Divergence Detection (Optional):
The indicator can optionally detect and display bullish and bearish divergences between price and RSI for the first selected timeframe.
Bullish divergence is shown when price makes a lower low, but RSI makes a higher low.
Bearish divergence is shown when price makes a higher high, but RSI makes a lower high.
Visual Aids:
Overbought and oversold RSI levels are highlighted with background colors for clarity.
Horizontal lines at 70 (overbought), 50 (neutral), and 30 (oversold) help quickly identify RSI conditions.
How to Use This Indicator
Inputs & Settings
Timeframe Settings:
First Timeframe: Choose the primary timeframe (e.g., 60 minutes, Daily, Weekly).
Second Timeframe: Select the second timeframe to plot on the chart.
Third Timeframe: Select the third timeframe for additional RSI analysis.
RSI Settings:
RSI Length: Set the period for RSI calculation (default: 14).
Source: Select the price data for RSI calculation (default: close price).
Show Divergence: Enable or disable the detection of divergence between price and RSI.
Plotting on Chart
The indicator will display three distinct RSI plots for the selected timeframes:
RSI TF1 (blue line) for the first timeframe.
RSI TF2 (green line) for the second timeframe.
RSI TF3 (red line) for the third timeframe.
Each RSI line corresponds to its chosen timeframe, allowing you to see how RSI behaves across different time periods.
Reading the RSI Values
Overbought: When RSI is above 70, the asset is considered overbought, potentially signaling a sell or short entry.
Oversold: When RSI is below 30, the asset is considered oversold, possibly indicating a buying opportunity.
Neutral: RSI around 50 is neutral and may suggest a lack of clear momentum.
Divergence Detection
If enabled, the indicator will highlight points of divergence:
Bullish Divergence: A green label will appear below the chart where price is making lower lows, but RSI is making higher lows, suggesting potential bullish momentum.
Bearish Divergence: A red label will appear when price is making higher highs, but RSI is making lower highs, indicating potential bearish pressure.
Practical Applications
Momentum Confirmation: Use this indicator to confirm the strength of a trend by comparing RSI across multiple timeframes. For example, if RSI is above 50 on all three timeframes, it may confirm strong upward momentum.
Overbought/Oversold Signals: When RSI is overbought on multiple timeframes, it could signal an impending reversal or correction. Conversely, oversold conditions across timeframes might indicate a buy opportunity.
Divergence Detection: Spot divergence between price and RSI to identify potential trend reversals early. Divergence can provide early signals of changing market momentum.
Summary
This indicator is a powerful tool for multi-timeframe RSI analysis, helping traders understand momentum shifts across different timeframes. It offers customizability, divergence detection, and visual aids to streamline your technical analysis and decision-making process.
MM Relative Volume (RVOL)What this script does:
This script shows you the "Relative Volume" (RVOL) value up to the current minute. RVOL is the volume from market open up to the current minute today, compared to the average of the same over the last n (30 by default) days.
How this script works:
There are a lot of indicators out there for RVOL, but they all take shortcuts that result in sub-par data. This indicator goes the distance to store data for every minute for the last n days for the current chart, then in sums the volume up to the current minute today along with the average of the same up-to-the-minute data from the prior n days to calculate the relative volume of the stock. It's super important to get this data up to the current minute, because most traders use this information primarily during the first 90 minutes of trading, and need to know if this value is going up or down.
How to use this script:
Relative volume can be used to gauge how "In Play" a stock is. If RVOL is less than 1 it is not "In Play" on this trading day and you might not want to trade it. If RVOL is above 2, it is "In Play" and you may want to trade it. When stocks are very "In Play", you can see an RVOL of 5 and above. The higher the RVOL the more "In Play" the stock is. You can also used RVOL for position sizing. If RVOL is <1 you may decide not to take a large position in the name. If RVOL is >3, this may give you more confidence to take a larger position as more reward and more liquidity should be present.
What makes this script original:
This particular implementation of RVOL has never been done before on TradingView to my knowledge. Most other indicators use a rolling average of the prior 30 days which is much easier to do, but this doesn't actually work properly because instead of getting large volume spikes from prior days filtered out correctly, it takes a LOT longer for those to even out as the rolling average eventually smooths down. Instead, with this indicator, any large/small volume days will truly drop off after the moving average length and the calculated average daily volume (ADV) will be accurate up to the minute. For more details on the original concept behind this indicator, check out the blog linked on my profile.
Price Action Volumetric Breaker Blocks [UAlgo]The Price Action Volumetric Breaker Blocks indicator is designed to identify and visualize significant price levels in the market. It combines concepts of price action, volume analysis, and market structure to provide traders with a comprehensive view of potential support and resistance areas. This indicator identifies "breaker blocks," which are price zones where the market has shown significant interest in the past.
These blocks are created based on swing highs and lows, and are further analyzed using volume data to determine their strength. The indicator also tracks market structure shifts, providing additional context to price movements.
By visualizing these key levels and market structure changes, traders can gain insights into potential areas of price reversal or continuation, helping them make more informed trading decisions.
🔶 Key Features
Dynamic Breaker Block Identification: The indicator automatically detects and draws breaker blocks based on swing highs and lows. These blocks represent areas of potential support and resistance.
Volume-Weighted Strength Analysis: Each breaker block is analyzed using volume data to determine its bullish and bearish strength. This is visually represented by the proportion of green (bullish) and red (bearish) coloring within each block.
Market Structure Break (MSB) and Break of Structure (BOS): The indicator identifies and labels Market Structure Breaks (MSB) and Break of Structure (BOS) events, providing context to larger market trends.
Customizable Settings:
- Adjustable swing length for identifying pivot points
- Option to show a specific number of recent breaker blocks
- Choice between wick or close price for violation checks
- Toggle to hide overlapping blocks for cleaner analysis
Violation Detection: Automatically detects when a breaker block has been violated (broken through), either by wick or close price, depending on user settings.
Overlap Control: Provides an option to hide overlapping order blocks, ensuring that the chart remains clean and easy to read when multiple blocks are detected in close proximity.
🔶 Interpreting Indicator
Breaker Blocks:
Breaker blocks are key areas where the price moves through and invalidates a previously identified order block. The indicator detects a breaker block when the price violates an order block by exceeding its high or low (depending on whether it's a bullish or bearish block). This violation is determined by either the wick or the close of a candle, depending on the user's selection in the "Violation Check" setting. When a breaker block is detected, the indicator removes the violated order block from the chart, signaling that the zone is no longer relevant for future price action.
Bullish Breaker Block: This occurs when a bearish order block (red) is violated by the price closing above the block’s top boundary or when the wick surpasses this level. It signals that a prior bearish structure has been invalidated, and the market may shift to a bullish trend.
Bearish Breaker Block: This occurs when a bullish order block (teal) is violated by the price closing below the block’s bottom boundary or when the wick drops below it. It suggests that a previous bullish structure has been broken, indicating potential bearish momentum.
Market Structure Labels:
"MSB" (Market Structure Break) labels indicate a potential change in trend direction.
"BOS" (Break of Structure) labels confirm the continuation of the current trend after breaking a significant level.
Block Strength:
A block with more green indicates stronger bullish interest.
A block with more red indicates stronger bearish interest.
The relative sizes of the green and red portions show the balance of power between buyers and sellers at that level.
🔶 Disclaimer
Use with Caution: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Users should exercise caution and perform their own analysis before making trading decisions based on the indicator's signals.
Not Financial Advice: The information provided by this indicator does not constitute financial advice, and the creator (UAlgo) shall not be held responsible for any trading losses incurred as a result of using this indicator.
Backtesting Recommended: Traders are encouraged to backtest the indicator thoroughly on historical data before using it in live trading to assess its performance and suitability for their trading strategies.
Risk Management: Trading involves inherent risks, and users should implement proper risk management strategies, including but not limited to stop-loss orders and position sizing, to mitigate potential losses.
No Guarantees: The accuracy and reliability of the indicator's signals cannot be guaranteed, as they are based on historical price data and past performance may not be indicative of future results.
S&R Precision Cloud by Dr. Abiram Sivprasad -4 directional biasDescription of the Script
**Script Name:** S&R Precision Cloud by Dr. Abhiram Sivprasad
**Overview:**
This script is designed to identify key support and resistance levels using the Central Pivot Range (CPR) methodology along with daily, weekly, and monthly pivots. It incorporates the Lagging Span from the Ichimoku Cloud to enhance decision-making in trading strategies for intraday, swing, and long-term positions mainly for directional bias.
---
### Key Components:
1. **Central Pivot Range (CPR):**
- **Central Pivot (CP):** Calculated as the average of the high, low, and close prices. This serves as a reference point for price action.
- **Below Central Pivot (BC) and Top Central Pivot (TC):** Derived to create a range that aids in identifying support and resistance levels.
2. **Support and Resistance Levels:**
- The script computes three support (S1, S2, S3) and resistance (R1, R2, R3) levels based on the Central Pivot.
- These levels are plotted for daily, weekly, and monthly time frames, providing traders with multiple reference points.
3. **Lagging Span:**
- The Lagging Span is plotted as the closing price shifted backward by 26 periods (as per Ichimoku settings).
- This serves as a filter for trade entries, where positions should only be taken in the direction opposite to where the price is relative to this line.
4. **User Inputs:**
- The script allows customization through checkboxes to plot daily, weekly, and monthly support and resistance levels as needed.
- Users can choose whether to display CPR and various support/resistance levels for better visual clarity.
5. **Color Coding:**
- The support and resistance lines are color-coded to distinguish between different levels (green for support, red for resistance, and blue for pivots).
---
### Trading Strategies:
- **Intraday Trading:**
- Utilize price movements around the Lagging Span and support/resistance levels for quick trades.
- **Swing Trading:**
- Identify potential reversal points at S2 and R2 levels, confirmed by divergences in price movement.
- **Long-Term Trading:**
- Monitor price behavior against the Lagging Span and significant pivot levels to capture longer trends.
---
### Summary:
This script equips traders with essential tools for technical analysis by clearly defining critical price levels and incorporating the Lagging Span for directional bias. It is suitable for various trading styles, including intraday, swing, and long-term strategies, making it a versatile addition to any trader’s toolkit.
BinaryInsertionSortLibrary "BinaryInsertionSort"
Library containing functions which can help create sorted array based on binary insertion sort.
This sorting will be quicker than array.sort function if the sorting needs to be done on every bar and the size of the array is comparatively big.
method binary_search_basic(sortedArray, item, order)
binary_search_basic - finds the closest index of the value
Namespace types: array
Parameters:
sortedArray (array) : array which is assumed to be sorted in the requested order
item (float) : float item which needs to be searched in the sorted array
order (int) : Sort order - positive number means ascending order whereas negative number represents descending order
Returns: int index at which the item can be inserted into sorted array
method binary_search_basic(sortedArray, item, order)
binary_search_basic - finds the closest index of the value
Namespace types: array
Parameters:
sortedArray (array) : array which is assumed to be sorted in the requested order
item (int) : int item which needs to be searched in the sorted array
order (int) : Sort order - positive number means ascending order whereas negative number represents descending order
Returns: int index at which the item can be inserted into sorted array
method binary_insertion_sort(sortedArray, item, order)
binary insertion sort - inserts item into sorted array while maintaining sort order
Namespace types: array
Parameters:
sortedArray (array) : array which is assumed to be sorted in the requested order
item (float) : float item which needs to be inserted into sorted array
order (int) : Sort order - positive number means ascending order whereas negative number represents descending order
Returns: int index at which the item is inserted into sorted array
method binary_insertion_sort(sortedArray, item, order)
binary insertion sort - inserts item into sorted array while maintaining sort order
Namespace types: array
Parameters:
sortedArray (array) : array which is assumed to be sorted in the requested order
item (int) : int item which needs to be inserted into sorted array
order (int) : Sort order - positive number means ascending order whereas negative number represents descending order
Returns: int index at which the item is inserted into sorted array
update_sort_indices(sortIndices, newItemIndex)
adds the sort index of new item added to sorted array and also updates existing sort indices.
Parameters:
sortIndices (array) : array containing sort indices of an array.
newItemIndex (int) : sort index of new item added to sorted array
Returns: void
get_array_of_series(item, order)
Converts series into array and sorted array.
Parameters:
item (float) : float series
order (int) : Sort order - positive number means ascending order whereas negative number represents descending order
Returns:
get_array_of_series(item, order)
Converts series into array and sorted array.
Parameters:
item (int) : int series
order (int) : Sort order - positive number means ascending order whereas negative number represents descending order
Returns:
get_sorted_arrays(item, order)
Converts series into array and sorted array. Also calculates the sort order of the value array
Parameters:
item (float) : float|int series
order (int) : Sort order - positive number means ascending order whereas negative number represents descending order
Returns:
get_sorted_arrays(item, order)
Converts series into array and sorted array. Also calculates the sort order of the value array
Parameters:
item (int) : int series
order (int) : Sort order - positive number means ascending order whereas negative number represents descending order
Returns:
Outlier changes alertAn indicator that calculates click (price change), percentage change, and Z-score changes while displaying outliers based on defined ranges.
Outlier Detection:
Mark outliers (for price, percentage, Z-score) based on user-defined thresholds. For example, any price movement exceeding a certain Z-score or percentage change could be marked as an outlier and displayed on chart.
Indicator Overview:
1. Click (Price Change):
Calculate the absolute price change from one period to another (e.g., from the current closing price to the previous closing price).
2. Percentage Change:
Calculate the percentage price change over a specific period, showing how much the price has changed in relative terms compared to the previous price.
3. Z-Score:
Compute the Z-score to standardize the price change relative to its historical average and standard deviation. The Z-score helps in detecting whether a price movement is an outlier or falls within a normal range of volatility.
Hourly Separator + Opening LineThis indicator shows the vertical and horizontal opening lines for the hourly timeframe.
Also has options to choose a different opening time:
- 1 Hour
- 30 Min
- 15 Min
- 10 Min
- 5 Min
China's stock market Limit up / Limit downThe price limit system in China’s stock market is a regulatory measure implemented by the Chinese securities authorities to curb excessive speculation. It refers to the maximum allowable daily price fluctuation of a stock, which cannot exceed a certain percentage of the previous trading day's closing price. For regular stocks, the daily price movement limit is 10%. For stocks under special treatment (ST stocks), the maximum daily price movement is restricted to 5%. There is no price limit on the listing day of newly issued stocks or stocks undergoing a rights issue. This indicator highlights the K-lines (candlesticks) of stocks that have hit the upper or lower price limits with different background colors and lists the recent number of instances of limit-up and limit-down occurrences in a table format.
Custom Time Range HighlighterCustom Time Range Highlighter
This versatile indicator allows traders to highlight specific time ranges on their charts, accommodating users worldwide by supporting customizable UTC offsets. Traders can define two distinct time ranges, setting start and end hours in their local time zone.
A toggle option enables the display of highlights for today only , ensuring focus on current trading conditions.
Ideal for day traders and those following specific market sessions, this tool enhances visibility of active trading periods and aids in effective trade management.