Dynamic Pivot PointsDynamic Pivot Point Indicator
The Dynamic Pivot Point is an indicator used on the TradingView platform that dynamically calculates pivot points and displays them on the chart. This indicator provides automatically adjustable support and resistance levels for different timeframes. By visualizing dynamic levels that match current market conditions, traders can plan their strategies more effectively.
Features
Adapts to Timeframes
The indicator automatically selects the appropriate pivot calculation method based on the user's current timeframe. For example:
For short timeframes such as 1, 3, or 5 minutes, it uses daily (1D) data.
For medium timeframes like 15, 30, or 60 minutes, it uses weekly (1W) data.
For longer timeframes such as 120, 180, or 240 minutes, it uses monthly (1M) data.
For very long timeframes like 360, 480 minutes, daily (D), or weekly (1W), it uses 12-month (12M) data.
Dynamic Pivot Levels
The indicator automatically calculates pivot levels based on the specified high and low values.
Flexible Line Style Options
Users can choose different line styles (Dashed, Dotted, Solid) to improve visual clarity on the chart.
Clean and Clear Visualization
The indicator automatically removes previous lines and displays the latest levels clearly on the chart, preventing clutter and allowing traders to focus more efficiently.
How It Works
Identifying High and Low Levels
The indicator retrieves previous and current high and low levels based on the selected timeframe.
New high and low levels are updated by comparing them with previous levels.
Calculating Pivot Levels
Pivot points are calculated using Fibonacci ratios between high and low levels.
These levels represent dynamic support and resistance zones.
Drawing Lines
The calculated levels are displayed as lines on the chart, each represented with different colors and styles.
Use Cases
Support and Resistance Levels
The indicator dynamically calculates and displays support and resistance levels, serving as reference points for buy and sell decisions.
Trend Analysis
Fibonacci levels help identify trend strength and potential reversal points.
Risk Management
Pivot points assist in setting stop-loss and take-profit levels.
Multi-Timeframe Analysis
Since the indicator adapts to different timeframes, it can be used for both short-term and long-term analysis.
Advantages
✅ Automatic Calculation: No manual calculations are required, as it updates dynamically.
✅ Flexible Timeframe Support: Adapts to different timeframes.
✅ Visual Clarity: Line styles and colors make it easy to distinguish levels on the chart.
✅ Fibonacci Integration: Adds depth to technical analysis.
Conclusion
The Dynamic Pivot Point indicator is a useful tool for both beginners and experienced traders. By dynamically calculating pivot points and Fibonacci levels, it simplifies market analysis and aids in strategy development. With its flexible structure and clear visualization, it can be effectively used across all timeframes.
6 dakika önce
Sürüm Notları
This indicator is written for Support Resistance Traders
Forecasting
EMA POD Indicator #gangesThis script is a technical analysis indicator that uses multiple Exponential Moving Averages (EMAs) to identify trends and track price changes in the market. Here's a breakdown:
EMA Calculation: It calculates six different EMAs (for periods 5, 10, 20, 50, 100, and 150) to track short- and long-term trends.
Trend Identification:
Uptrend: The script identifies an uptrend when the EMAs are in ascending order (EMA5 > EMA10 > EMA20 > EMA50 > EMA100 > EMA150).
Downtrend: A downtrend is identified when the EMAs are not in ascending order.
Trend Change Tracking: It tracks when an uptrend starts and ends, displaying the duration of the trend and the percentage price change during the trend.
Visuals:
It plots the EMAs on the chart with different colors.
It adds green and red lines to represent the ongoing uptrend and downtrend.
Labels are displayed showing when the uptrend starts and ends, along with the trend's duration and price change percentage.
In short, this indicator helps visualize trends, track their changes, and measure the impact of those trends on price.
Bitcoin Power Law: Complete with Oscillator + Future Projection
Firstly, we would like to give credit to @apsk32 and @x_X_77_X_x as part of the code originates from their work. Additionally, @apsk32 is widely credited with applying the Power Law concept to Bitcoin and popularizing this model within the crypto community. Additionally, the visual layout is fully inspired by @apsk32's designs, and we think it looks amazing. So much so that we had to turn it into a TradingView script. Thank you!
Understanding the Bitcoin Power Law Model
Also called the Long-Term Bitcoin Power Law Model. The Bitcoin Power Law model tries to capture and predict Bitcoin's price growth over time. It assumes that Bitcoin's price follows an exponential growth pattern, where the price increases over time according to a mathematical relationship.
By fitting a power law to historical data, the model creates a trend line that represents this growth. It then generates additional parallel lines (support and resistance lines) to show potential price boundaries, helping to visualize where Bitcoin’s price could move within certain ranges.
In simple terms, the model helps us understand Bitcoin's general growth trajectory and provides a framework to visualize how its price could behave over the long term.
The Bitcoin Power Law has the following function:
Power Law = 10^(a + b * log10(d))
Consisting of the following parameters:
a: Power Law Intercept (default: -17.668).
b: Power Law Slope (default: 5.926).
d: Number of days since a reference point(calculated by counting bars from the reference point with an offset).
Explanation of the a and b parameters:
Roughly explained, the optimal values for the a and b parameters are determined through a process of linear regression on a log-log scale (after applying a logarithmic transformation to both the x and y axes). On this log-log scale, the power law relationship becomes linear, making it possible to apply linear regression. The best fit for the regression is then evaluated using metrics like the R-squared value, residual error analysis, and visual inspection. This process can be quite complex and is beyond the scope of this post.
Applying vertical shifts to generate the other lines:
Once the initial power-law is created, additional lines are generated by applying a vertical shift . This shift is achieved by adding a specific number of days (or years in case of this script) to the d-parameter. This creates new lines perfectly parallel to the initial power law with an added vertical shift, maintaining the same slope and intercept.
In the case of this script, shifts are made by adding +365 days, +2 * 365 days, +3 * 365 days, +4 * 365 days, and +5 * 365 days, effectively introducing one to five years of shifts. This results in a total of six Power Law lines, as outlined below (From lowest to highest):
Base Power Law Line (no shift)
1-year shifted line
2-year shifted line
3-year shifted line
4-year shifted line
5-year shifted line
The six power law lines:
Bitcoin Power Law Oscillator
This publication also includes the oscillator version of the Bitcoin Power Law. This version applies a logarithmic transformation to the price, Base Power Law Line, and 5-year shifted line using the formula log10(x) .
The log-transformed price is then normalized using min-max normalization relative to the log-transformed Base Power Law Line and 5-year shifted line with the formula:
normalized price = log(close) - log(Base Power Law Line) / log(5-year shifted line) - log(Base Power Law Line)
Finally, the normalized price was multiplied by 5 to map its value between 0 and 5, aligning with the shifted lines. The Oscillator version can be found here .
Interpretation of the Bitcoin Power Law Model:
The shifted Power Law lines provide a framework for predicting Bitcoin's future price movements based on historical trends. These lines are created by applying a vertical shift to the initial Power Law line, with each shifted line representing a future time frame (e.g., 1 year, 2 years, 3 years, etc.).
By analyzing these shifted lines, users can make predictions about minimum price levels at specific future dates. For example, the 5-year shifted line will act as the main support level for Bitcoin’s price in 5 years, meaning that Bitcoin’s price should not fall below this line, ensuring that Bitcoin will be valued at least at this level by that time. Similarly, the 2-year shifted line will serve as the support line for Bitcoin's price in 2 years, establishing that the price should not drop below this line within that time frame.
On the other hand, the 5-year shifted line also functions as an absolute resistance , meaning Bitcoin's price will not exceed this line prior to the 5-year mark. This provides a prediction that Bitcoin cannot reach certain price levels before a specific date. For example, the price of Bitcoin is unlikely to reach $100,000 before 2021, and it will not exceed this price before the 5-year shifted line becomes relevant. After 2028, however, the price is predicted to never fall below $100,000, thanks to the support established by the shifted lines.
In essence, the shifted Power Law lines offer a way to predict both the minimum price levels that Bitcoin will hit by certain dates and the earliest dates by which certain price points will be reached. These lines help frame Bitcoin's potential future price range, offering insight into long-term price behavior and providing a guide for investors and analysts. Lets examine some examples:
Example 1:
In Example 1 it can be seen that point A on the 5-year shifted line acts as major resistance . Also it can be seen that 5 years later this price level now corresponds to the Base Power Law Line and acts as a major support (Note: Vertical yearly grid lines have been added for this purpose👍).
Example 2:
In Example 2, the price level at point C on the 3-year shifted line becomes a major support three years later at point C, now aligning with the Base Power Law Line.
Finally, let's explore some future price predictions, as this script provides projections on the weekly timeframe :
Example 3:
In Example 3, the Bitcoin Power Law indicates that Bitcoin's price cannot surpass approximately $808K before 2030 as can be seen at point E, while also ensuring it will be at least $224K by then (point F).
Wickless Candle Indicator with Extended Lines (final)This Pine Script indicator identifies “wickless” candles—those with no upper wick (when the close equals the high) or no lower wick (when the open equals the low)—and marks these events on the chart. When such a candle is detected, it:
Records the Level and Bar Index:
Saves the price level (high for wickless tops, low for wickless bottoms) and the bar index where the condition occurred.
Draws an Extended Horizontal Line:
Creates a green horizontal line for a wickless top or a red line for a wickless bottom, starting at the detection bar and extending across subsequent bars as long as the price remains below (for tops) or above (for bottoms) the recorded level.
Resets When the Price Breaks the Level:
If a future bar’s price moves beyond the saved level (i.e., a high above a wickless top or a low below a wickless bottom), the indicator resets that level, ending the extension of the line.
Visual Markers:
Additionally, it plots a small triangle above a wickless top and below a wickless bottom for easy identification on the chart.
Overall, this script helps traders visualize potential support or resistance levels created by candles that close at their highs or open at their lows, with lines that dynamically adjust as price evolves.
Window Seasonality IndicatorThis is a time window seasonal returns indicator. That is, it will provide the mean returns for a given time window based on a given number of lookbacks set by the user. The script finds matching time windows, e.g., 1st week of March going back 5 years or 9:00-10:00 window of every day going 50 days, and then calculates an average return for that window close price with respect to the close price in the immediately preceding time window, e.g. last week of February or 8:00-9:00 close price, respectively.
There are 4 input options:
1) Historical Periods to Average: Set the number of matching historical windows with which to calculate an average price. The max is 730 lookback windows. Note: for monthly or weekly windows, setting too large a number will cause the script to error out.
2) Use Open Price: calculates the seasonal returns using the open price rather than close price.
3) Show Bands: select from 1 Gaussian standard deviation or a nonparamateric ranked confidence interval. As a rough heuristic, the Gaussian band requires at least 30 lookback periods, and the ranked confidence interval requires 50 or more.
4) Upper Percentile: set the upper cutoff for ranked confidence interval.
5) Lower Percentile: set the lower cutoff for ranked confidence interval.
Please be aware, this indicator does not use rigorous statistical methodology and does not imply predictive power. You'll notice the range bands are very wide. Do not trade solely based on this indicator! Certain time windows, such as weekly and monthly, will make more sense applied to commodities, where annual cycles play a role in its supply and demand dynamics. Hourly windows are more useful in looking at equities markets. I like to look at equities with 1-hr windows to see if there is some pattern to overnight behavior or for market open and close.
Opposite Delta Candle Highlighter with EMAs & Delta Boxes**Description:**
This indicator is designed to enhance market analysis by highlighting **candles with opposite-colored delta**, plotting **Exponential Moving Averages (EMAs)**, and displaying **delta volume as small boxes below the chart**.
🔹 **Key Features:**
✅ **Opposite Delta Candle Highlighting** – Candles where delta volume contradicts the price direction are highlighted with a **yellow background** and a **blue triangle** above the bar.
✅ **Three Exponential Moving Averages (EMAs)** – Includes **EMA (9, 21, 50)** to help identify trends and dynamic support/resistance levels.
✅ **Delta Volume Display** – Instead of large volume columns, delta is plotted as **small square boxes below the chart**, ensuring clear visibility without overlapping price candles.
✅ **Optimized for Lower Timeframes** – The indicator **automatically selects an appropriate lower timeframe** for more precise delta calculations.
🔹 **How It Works:**
- **Green Candle + Red Delta** → Opposite delta signal (Bearish Sign).
- **Red Candle + Green Delta** → Opposite delta signal (Bullish Sign).
- **Delta bars below the chart** indicate the strength of buying/selling pressure.
- **EMAs help identify the market trend** and potential trade entry zones.
🔹 **Use Cases:**
✔ **Scalping & Day Trading** – Identify potential reversals and trend continuation setups.
✔ **Volume Analysis** – Understand market participation and possible absorption.
✔ **Trend Confirmation** – Use EMAs to confirm trend direction alongside delta volume.
📌 *Best used with lower timeframes (1m, 5m, 15m) for detailed volume analysis.*
🚀 **Enhance your trading with real-time delta insights and price action analysis!**
Toby's Key LevelsAn Indicator that helps determine Key Areas on the chart. You set the values you want the horizontal lines to update. They horizontal lines will be used for exits and entries of trade. My recommendation for these Key Areas are as follows ( These recommendations are mostly for day trading and swing trading ):
XAU: Value distance of 50 ex. XAUUSD.
NAS: Value distance of 250 ex. NAS100/USTEC.
ETH: Value distance of 100 ex. ETHUSD.
AUD pairs: Value distance of 0.0200 ex. GBPAUD, EURAUD.
CAD pairs: Value distance of 0.0100 ex. NZDCAD, EURCAD.
CHF pairs: Value distance of 0.0100 ex. CADCHF, GBPCHF.
GBP pairs: Value distance of 0.00350 ex. EURGBP.
JPY pairs: Value distance of 2.00 ex. EURJPY, GBPJPY.
NZD pairs: Value distance of 0.015 ex. GBPNZD, AUDNZD.
Note:
These are subject to change and you can alter the lines anyhow you want to suit your trading style. These are what I recommend. Remember, Market is King.
Safe Trading!
Expiry Day Special IndicatorExpiry Day Special Indicator
The Expiry Day Special Indicator is designed to detect catalytic price action patterns that commonly occur between 9:15 AM to 10:15 AM (IST) in the Nifty & Bank Nifty markets but not limited to these specific markets. While these patterns are particularly useful on expiry days, they are not limited to expiry trading alone. They can also be applied on other trading days when similar conditions arise, making them versatile for intraday traders.
How It Works
This indicator scans for bullish and bearish price action patterns within the first trading hour and plots potential buy and sell signals based on key market structures.
• Bearish Patterns: Identifies strong rejection zones and weakness in price action to signal potential short trades.
• Bullish Patterns: Recognizes reversal formations that indicate potential long trade opportunities.
• Time Filter: The setup is valid only between 9:15 AM - 10:15 AM (IST) to focus on high-impact market moves.
Why This Indicator?
1. Specialized for Nifty & Bank Nifty – Designed specifically for Indian markets.
2. Early Trend Identification – Helps traders capture moves early in the session.
3. Works Beyond Expiry Days – Although optimized for expiry trading, it can also detect similar patterns on regular days.
📌 Note: This indicator does not provide trading advice; always use proper risk management.
Smart Adaptive Signal SystemSmart Adaptive Signal System
Description: The Smart Adaptive Signal System is a sophisticated indicator that generates intelligent buy/sell signals by dynamically adapting to market conditions. It predicts target prices based on momentum and volatility, providing more accurate and reliable trading opportunities.
How It Works:
Dynamic Signal Generation: The system predicts target prices by considering factors such as volatility and momentum. This allows it to react instantly to trend changes and market fluctuations.
Adaptive Thresholds: Buy and sell signals are triggered with adaptive thresholds, adjusting according to market volatility. This ensures flexibility in the face of sudden market changes.
Trend-Based Reset: Users can choose to reset threshold values based on a time interval or trend change. This feature helps the system re-adapt to current market conditions for greater accuracy.
Target Price Prediction: Target prices are calculated using momentum and volatility, helping the system predict future price movements.
How to Use:
Buy/Sell Signals: The indicator generates buy and sell signals based on market conditions. Look for a "down arrow" for a buy signal and an "up arrow" for a sell signal on the chart.
Target Price Lines: Along with buy and sell signals, the system draws target price lines. This helps you visualize potential future price levels.
Flexible Settings: Users can customize analysis periods, minimum change percentages, and other parameters to fit their needs.
Features:
Dynamic buy and sell signals
Target price predictions
Volatility and momentum-based analysis
User-friendly and flexible settings
Trend-based adaptive resetting
Alerts: The Smart Adaptive Signal System responds quickly to sudden market changes, but always use it in conjunction with other indicators like support and resistance levels. Signal accuracy may vary depending on market conditions.
Candle Bias ForecastCandle Bias Forecast Indicator
Description:
The Candle Bias Forecast Indicator is an original multi‐timeframe analysis tool that generates price forecast levels based on the difference between candle biases on two different timeframes. It uses innovative calculations to provide potential forecast levels that align with current price action.
How It Works:
1. Candle Bias Calculation:
For each candle, the indicator computes a “candle bias” using the formula:
candleBias = (((open + close)/2 - (high + low)/2) + ((close - open)/(high - low)))/2
This measure captures both the positioning of the candle’s body within its range and the normalized move from open to close.
2. Multi-Timeframe Analysis:
The script uses multiple timeframe pairs (e.g., 5-minute vs. 30-minute, 10-minute vs. 60-minute, etc.). For each pair, the bias is computed on the lower timeframe and on the higher timeframe.
3. Normalization with ATR:
To translate the dimensionless bias difference into price terms, the indicator multiplies the difference by the lower timeframe’s Average True Range (ATR). This scales the forecast adjustment to current market volatility.
4. Forecast Computation:
The forecast level for each pair is then calculated as:
forecast = close + (lowerTF_ATR * (lowerTF_bias - higherTF_bias))
This yields forecast levels that are plotted on the chart and connected by lines for a visual guide.
How to Use:
- Visual Confirmation: Add the indicator to your 1 to 15 minute chart to see forecast levels overlaid on the price.
- Supplementary Analysis: Use these forecast levels as an additional tool alongside your other analysis methods. They can help indicate potential support/resistance areas or directional bias.
Important Notes:
- Not a Standalone Signal: This indicator is intended to supplement your analysis. Always combine it with other tools and sound risk management practices.
- For Educational & Research Use: The indicator is provided “as is” without any guarantee of performance. It is designed to illustrate an innovative approach to multi-timeframe analysis.
- Disclaimer: Past performance is not indicative of future results. Use this tool at your own risk.
By combining candle bias with ATR-based normalization and multi-timeframe analysis, this indicator offers a unique perspective on market dynamics that can enrich your trading strategy.
---
*This is an original script designed to add value to the TradingView community. Please test and validate its outputs thoroughly before using it in live trading.*
Midnight Range Standard DeviationsCredit to Lex Fx for the basic framework of this script
This indicator is designed to assist traders in identifying potential trading opportunities based on the Intraday Concurrency Technique (ICT) concepts, specifically the midnight range deviations and their relationship to Fibonacci levels. It builds upon the work of Lex-FX, whom we gratefully acknowledge for the original concept and inspiration for this indicator.
Core Concept: ICT Midnight Range
The core of this indicator revolves around the concept of the midnight range. According to ICT, the high and low formed in a specific time window (typically the first 30 minutes after midnight, New York Time) can serve as a key reference point for intraday price action. The indicator identifies this range and projects potential support and resistance levels based on deviations from this range, combined with Fibonacci ratios.
How ICT Uses Midnight Range Deviations
ICT methodology often involves looking for price to move away from the initial midnight range, then return to it, or deviate beyond it, as key areas for potential entries.
Range Identification: The indicator automatically identifies the high and low of the midnight range (00:00 - 00:30 NY Time).
Deviation Levels: The indicator calculates and displays deviation levels based on multiples of the initial midnight range. These levels are often used to identify potential areas of support and resistance, as well as potential targets for price movement. These levels can be set in the additional fib levels section, which can be configured in increments of .5 deviations all the way up to 12 deviations.
Fibonacci Confluence: ICT often emphasizes the confluence of multiple factors. This indicator adds Fibonacci levels to the midnight range deviations. This allows traders to identify areas where Fibonacci retracements or extensions align with the deviation levels, potentially creating stronger areas of support or resistance.
Looking for Sweeps: ICT often uses these levels to look for times that the high and low are swept as potential areas of liquidity, indicating the start of potential continuations.
Time-Based Analysis: The time at which price interacts with these levels can also be significant in ICT. The indicator provides options to extend the range lines to specific times (e.g., 3 hours, 6 hours, 10 hours, 12 hours, or a custom defined time) after midnight, allowing traders to focus on specific periods of the trading day.
Indicator Settings Explained:
Time Zone (TZ): Defines the time zone used for calculating the midnight range. The default is "America/New_York".
Range High Color, Range Low Color, Range Mid Color: Customize the colors of the high, low, and mid-range lines.
Range Fill Color: Sets the fill color for the area between the range high and low.
Line Style: Choose the style of the range lines (solid, dashed, dotted).
Range Line Thickness: Adjust the thickness of the range lines for better visibility.
Show Fibonacci Levels: Enable or disable the display of Fibonacci deviation levels.
Fib Up Color, Fib Down Color: Customize the colors of the Fibonacci levels above (up) and below (down) the midnight range.
Show Trendline: Enables a trendline that plots the close price, colored according to whether the price is above the high, below the low, or within the midnight range.
Show Range Lines, Show Range Labels: Toggles the visibility of the range lines and their associated labels.
Label Size: Adjust the size of the labels for better readability.
Hide Prices: Option to display only the deviation values on labels, hiding price values.
Place Fibonacci Labels on Left Side: Option to switch label position from right side to left side.
Extend Range To (Hours from Midnight): This section gives you a wide variety of options on how far you want to extend the range to, you can do 3,6,10,12, and 23 hours. Alternatively, you can select the "Use Custom Length" and set a specific time in hours.
Additional Fib Levels: This section allows the trader to set additional deviation points in increments of .5 deviations from .5 all the way up to 12 deviations
TradingView Community Guidelines Compliance:
This indicator description adheres to the TradingView community guidelines by:
Being educational: It explains the ICT methodology and how the indicator can be used in trading.
Being transparent: It clearly describes all the indicator's settings and their purpose.
Providing credit: It acknowledges Lex-FX as the original author of the concept.
Avoiding misleading claims: It does not guarantee profits or imply that the indicator is a "holy grail."
Disclaimer: Usage of this indicator and the information provided is at your own risk. The author is not responsible for any losses incurred as a result of using this indicator.
Important Considerations:
This indicator is intended for educational purposes and to assist in applying the ICT methodology.
It should not be used as a standalone trading system.
Always combine this indicator with other forms of technical analysis and risk management techniques.
Backtest thoroughly on your chosen market and timeframe before using in live trading.
Trading involves risk. Only trade with capital you can afford to lose.
Half Candle RetraceThis custom indicator draws a horizontal line at the 50% retracement level of each candlestick on the chart. It calculates the midpoint between the high and low of each candle, which is often used by traders to identify potential entry, exit and take-profit levels. Once price action returns to an untouched level, the line will be removed, leaving only the levels where price action is still missing.
Key Features:
Timeframe: Works on all timeframes.
Line Color: Customize the line color to suit your charting preferences.
Line Width: Adjust the thickness of the retracement line for better visibility.
Line Style: Choose between solid, dotted, or dashed lines.
Up/Down Candle Selection: Option to only display retracement lines for up (bullish) candles, down (bearish) candles, or both.
Full Customization: Control the transparency (opacity) of the line for enhanced visual clarity.
Simple Setup: No complicated settings – simply choose your preferred color, line style, and visibility options.
This indicator is perfect for traders who prefer to use price action and retracement levels to identify potential trade opportunities.
How It Works:
The indicator automatically calculates the 50% level (midpoint) for each candlestick, drawing a line at this level. It will only draw lines for candles that match your chosen criteria (up or down candles), ensuring the chart remains clean and relevant to your trading strategy. Lines are automatically removed as soon as price crosses them.
Multi-Indicator Signals with Selectable Options by DiGetMulti-Indicator Signals with Selectable Options
Script Overview
This Pine Script is a multi-indicator trading strategy designed to generate buy/sell signals based on combinations of popular technical indicators: RSI (Relative Strength Index) , CCI (Commodity Channel Index) , and Stochastic Oscillator . The script allows you to select which combination of signals to display, making it highly customizable and adaptable to different trading styles.
The primary goal of this script is to provide clear and actionable entry/exit points by visualizing buy/sell signals with arrows , labels , and vertical lines directly on the chart. It also includes input validation, dynamic signal plotting, and clutter-free line management to ensure a clean and professional user experience.
Key Features
1. Customizable Signal Types
You can choose from five signal types:
RSI & CCI : Combines RSI and CCI signals for confirmation.
RSI & Stochastic : Combines RSI and Stochastic signals.
CCI & Stochastic : Combines CCI and Stochastic signals.
RSI & CCI & Stochastic : Requires all three indicators to align for a signal.
All Signals : Displays individual signals from each indicator separately.
This flexibility allows you to test and use the combination that works best for your trading strategy.
2. Clear Buy/Sell Indicators
Arrows : Buy signals are marked with upward arrows (green/lime/yellow) below the candles, while sell signals are marked with downward arrows (red/fuchsia/gray) above the candles.
Labels : Each signal is accompanied by a label ("BUY" or "SELL") near the arrow for clarity.
Vertical Lines : A vertical line is drawn at the exact bar where the signal occurs, extending from the low to the high of the candle. This ensures you can pinpoint the exact entry point without ambiguity.
3. Dynamic Overbought/Oversold Levels
You can customize the overbought and oversold levels for each indicator:
RSI: Default values are 70 (overbought) and 30 (oversold).
CCI: Default values are +100 (overbought) and -100 (oversold).
Stochastic: Default values are 80 (overbought) and 20 (oversold).
These levels can be adjusted to suit your trading preferences or market conditions.
4. Input Validation
The script includes built-in validation to ensure that oversold levels are always lower than overbought levels for each indicator. If the inputs are invalid, an error message will appear, preventing incorrect configurations.
5. Clean Chart Design
To avoid clutter, the script dynamically manages vertical lines:
Only the most recent 50 buy/sell lines are displayed. Older lines are automatically deleted to keep the chart clean.
Labels and arrows are placed strategically to avoid overlapping with candles.
6. ATR-Based Offset
The vertical lines and labels are offset using the Average True Range (ATR) to ensure they don’t overlap with the price action. This makes the signals easier to see, especially during volatile market conditions.
7. Scalable and Professional
The script uses arrays to manage multiple vertical lines, ensuring scalability and performance even when many signals are generated.
It adheres to Pine Script v6 standards, ensuring compatibility and reliability.
How It Works
Indicator Calculations :
The script calculates the values of RSI, CCI, and Stochastic Oscillator based on user-defined lengths and smoothing parameters.
It then checks for crossover/crossunder conditions relative to the overbought/oversold levels to generate individual signals.
Combined Signals :
Depending on the selected signal type, the script combines the individual signals logically:
For example, a "RSI & CCI" buy signal requires both RSI and CCI to cross into their respective oversold zones simultaneously.
Signal Plotting :
When a signal is generated, the script:
Plots an arrow (upward for buy, downward for sell) at the corresponding bar.
Adds a label ("BUY" or "SELL") near the arrow for clarity.
Draws a vertical line extending from the low to the high of the candle to mark the exact entry point.
Line Management :
To prevent clutter, the script stores up to 50 vertical lines in arrays (buy_lines and sell_lines). Older lines are automatically deleted when the limit is exceeded.
Why Use This Script?
Versatility : Whether you're a scalper, swing trader, or long-term investor, this script can be tailored to your needs by selecting the appropriate signal type and adjusting the indicator parameters.
Clarity : The combination of arrows, labels, and vertical lines ensures that signals are easy to spot and interpret, even in fast-moving markets.
Customization : With adjustable overbought/oversold levels and multiple signal options, you can fine-tune the script to match your trading strategy.
Professional Design : The script avoids clutter by limiting the number of lines displayed and using ATR-based offsets for better visibility.
How to Use This Script
Add the Script to Your Chart :
Copy and paste the script into the Pine Editor in TradingView.
Save and add it to your chart.
Select Signal Type :
Use the "Signal Type" dropdown menu to choose the combination of indicators you want to use.
Adjust Parameters :
Customize the lengths of RSI, CCI, and Stochastic, as well as their overbought/oversold levels, to match your trading preferences.
Interpret Signals :
Look for green arrows and "BUY" labels for buy signals, and red arrows and "SELL" labels for sell signals.
Vertical lines will help you identify the exact bar where the signal occurred.
Tips for Traders
Backtest Thoroughly : Before using this script in live trading, backtest it on historical data to ensure it aligns with your strategy.
Combine with Other Tools : While this script provides reliable signals, consider combining it with other tools like support/resistance levels or volume analysis for additional confirmation.
Avoid Overloading the Chart : If you notice too many signals, try tightening the overbought/oversold levels or switching to a combined signal type (e.g., "RSI & CCI & Stochastic") for fewer but higher-confidence signals.
Advanced Liquidity Trap & Squeeze Detector [MazzaropiYoussef]DESCRIPTION:
The "Advanced Liquidity Trap & Squeeze Detector" is designed to identify potential liquidity traps, short and long squeezes, and market manipulation based on open interest, funding rates, and aggressive order flow.
KEY FEATURES:
- **Relative Open Interest Normalization**: Avoids scale discrepancies across different timeframes.
- **Liquidity Trap Detection**: Identifies potential bull and bear traps based on open interest and funding imbalances.
- **Squeeze Identification**: Highlights conditions where aggressive buyers or sellers are trapped before a reversal.
- **Volume Surge Confirmation**: Alerts when abnormal volume activity supports liquidity events.
- **Customizable Parameters**: Adjust thresholds to fine-tune detection sensitivity.
HOW IT WORKS:
- **Long Squeeze**: Triggered when relative open interest is high, funding is negative, and aggressive selling occurs.
- **Short Squeeze**: Triggered when relative open interest is high, funding is positive, and aggressive buying occurs.
- **Bull Trap**: Triggered when relative open interest is high, funding is positive, and price crosses above the trend line but fails.
- **Bear Trap**: Triggered when relative open interest is high, funding is negative, and price crosses below the trend line but fails.
USAGE:
- This indicator is useful for traders looking to anticipate reversals and avoid being caught in market manipulation events.
- Works best in combination with order book analysis and volume profile tools.
- Can be applied to crypto, forex, and other leveraged markets.
**/
Static price-range projection by symbolThis indicator shows you a predefined range to the right of the last candle of your chart. This range is custom and can be changed for a handful of symbols that you can choose. This scale will help you determining if the market is providing a reasonable range before you enter a trade or if the market isn't actually moving as much as you might think. This is particularly useful if you are into scalping and have to consider commission or spread in your trades.
Since all symbols have different price ranges in which they move this indicator doesn't make sense to just have "a one size fits all" approach. That's why you can choose up to 6 symbols and set the range that you want to have shown for each when you pull it up on the chart. Using my default values that means for when the NQ (Nasdaq future) is on the chart you will see a range of 20 handles projected. When you change the the ES (S&P500 future) you will instead see 5 handles. While the number is different that is somewhat of an equal move in both symbols.
There also is an option to set a default price range for all other symbols that are not selected if it is needed. However the display of the scale on anything else than the 6 selected symbols can also be turned off.
There are options provided on how exactly you want to indicator to determine if the chart symbol matches one of the selected symbols.
You can enable it to make sure the exchange/broker is the exact same as selected.
It can check for only the symbol root to match the selection. Specifically for futures this means that while ES1! might be selected, anything ES (ES1!, ES2!, ESH2025, ESM2025, ESM2022, ...) will be a match to the selection)
On the painted scale it is possible to not just show this range extended into each direction once. Per default you will have 3 segments of it in each direction. This can be reduced to just 1 or increased.
If you chose a high number of segments or a large range make sure to use the "Scale price chart only" option on your chart scale to not have the symbols price candles squished together by the charts auto scaling.
And last but not least the indicator options provide some possibilities to change the appearance of the printed price range scale in case you disagree with my design.
C&P MA/KT Compare & Predict Moving average / Current market price.
This is simple table indicator. Located at right-top of chart. Shows which way will MA's head go.
I made this indicator for automate candle countings & compare price. With this friend, you will be know trend more faster then waiting traditional MA golden / dead crossing.
In factory settings, current market price will be compared with closing price of the candle, corresponding to previous number 7, 25, 60, 99, 130, 240. If Current market price is lower then past, the box for the corresponding MA is highlighted in red and appears as Down. In opposite case, it will be highlighted in green and indicates Up.
MA와 시장가 차이로 MA의 머리 방향을 예측해주는 간단한 지표입니다.
수동으로 캔들 되돌려서 종가와 시장가 비교하는게 너무 번거로워서 자동화를 위해 제작되었습니다. 해당 지표를 이용하시면 MA의 골든/데드 크로스를 기다리는 것보다 더 빠른 예측이 가능합니다.
차트 우측 상단에 예측 값이 표시되며, 기본 설정에선 7, 25, 60, 99, 130, 240개 전 캔들의 종가와 시장가가 비교됩니다. 시장가가 비교 값보다 높을 때는 초록 배경에 Up 텍스트가 출력됩니다. 반대의 경우엔 빨간색 배경에 Down 표기가 나타납니다.
DCA Price LevelsThe indicator is used to set price targets in the chart on the basis of waste.
Whenever the price falls from the current DCA price to minus 30 percent, a new price target is set.
There are a total of 10 price targets, so a drop of up to minus 71 percent is covered by the default setting.
The number of price targets can be set individually, up to a maximum of 10, and the percentages can also be changed.
Market Phase MAMarket Phase MA is an advanced trend-following indicator designed to provide traders with a dynamically colored moving average that adapts to market conditions. It uses a powerful combination of Average True Range (ATR) and Average Directional Index (ADX) to classify market trends in real-time. The indicator integrates a fully customizable moving average (SMA or EMA) to highlight trend phases clearly and effectively.
Key Features & Advantages:
✔ Adaptive Trend Classification: Detects uptrends, downtrends, and sideways markets using a refined mix of ATR and ADX for more precise trend identification.
✔ Color-Coded Moving Average: The moving average dynamically changes color based on trend classification, providing a clean visual representation of market sentiment.
✔ Advanced ATR & ADX Filtering:
- ATR measures market volatility and identifies ranging periods.
- ADX confirms trend strength, reducing false signals.
- A weighted approach balances ATR and ADX, ensuring reliability.
✔ Fully Customizable Moving Average: Traders can select between SMA and EMA while adjusting the moving average length directly from the settings panel.
✔ Smooth & Responsive Adjustments: The smoothing factor can be fine-tuned to control signal sensitivity and noise reduction, making it suitable for scalping, swing trading, and long-term trend monitoring.
What Makes It Unique:
- Unlike traditional trend indicators, Market Phase MA provides **direct visual feedback** on a moving average rather than using a separate oscillator.
- It **adapts dynamically** to market conditions instead of relying on fixed thresholds.
- The combination of **volatility and trend strength analysis** enhances precision in identifying valid trends.
- Users can optimize **reaction speed vs. reliability** with adjustable parameters for better decision-making.
How to Use It:
- Identify Market Phases: The moving average color shifts based on trend type—**teal** for uptrends, **red** for downtrends, and **gray** for sideways markets.
- Confirm Trend Strength: Persistent color shifts indicate strong trends, while frequent changes may suggest market indecision.
- Use as a Trade Confirmation Tool: Complement it with **support & resistance zones, price action analysis, and volume indicators** for stronger confirmation signals.
Market Phase MA is designed for traders seeking a clear, efficient, and highly adaptable moving average trend detection system. Whether you are a day trader, swing trader, or long-term investor, this indicator will help you identify and follow trends with confidence.
Multi-Asset Ratio (20 vs 5) - LuchapThis indicator calculates and displays the ratio between the sum of the prices of several base assets and the sum of the prices of several quote assets. You can select up to 20 base assets and 5 quote assets, and enable or disable each asset individually to refine your analysis. This ratio allows you to quickly evaluate the relative performance of different groups of assets.
Reversal Probability Zone & Levels [LuxAlgo]The Reversal Probability Zone & Levels tool allows traders to identify a zone starting from the last detected reversal to highlight the probability of where the next reversal would be from a price and time perspective.
Price and time levels within the zone are displayed for up to 4 percentiles defined by the user.
🔶 USAGE
By default, the tool displays a zone with the 25th, 50th, 75th and 90th percentiles on both the price and time axis, indicating where, when and how many of the past reversals have occurred.
Traders can select the length for swing detection and the maximum number of reversals for probability calculations. The tool considers both bullish and bearish reversals separately, which means that if the last reversal was a swing high, the zone would show the probabilities for the last defined Maximum reversals
The Maximum reversals value has a direct impact on the probabilities, the more data traders use the more significant the result, probabilities over 10 occurrences are far weak compared to probabilities over 1000 occurrences.
🔹 Percentiles
Traders can fine-tune the percentile parameters in the settings panel.
A given percentile means that the number of occurrences in the data set is less than or equal to the percentile.
In English, this means
Percentile 20th: 20% of the occurrences are less than or equal to this value, so 80% of the occurrences are greater than this value.
Percentile 50th: 50% of the occurrences are below and 50% are above this value.
Percentile 80th: 80% of occurrences are lower than or equal to this value, so 20% of occurrences are greater than this value.
🔹 Normalize data
The Normalize Data feature allows traders to make an apples to apples comparison when we have a lot of historical data on high timeframe charts, using returns between swings instead of raw price.
🔹 Display Style
By default, the tool has the No overlapping feature enabled to display a clean chart, traders can turn it off, but this can fill the chart with too much information and barely see the price.
Traders can enable/disable settings to show only the last zone and the swing markers on the chart.
🔶 SETTINGS
Swing Length: The maximum length in bars used to identify a swing
Maximum Reversals: Maximum number of reversals included in calculations
Normalize Data: Use returns between swings instead of raw price
Percentiles: Enable/disable each of the four percentiles and select the percentile number, line style, colors, and size
🔹 Style
No Overlapping Zones: Enable or disable the No overlap between zones feature
Show Only Last Zone: Enable/disable display of last zone only
Show Marks: Enable/disable reversal markers
Kalman Filter Trend BreakersThe Kalman filter is a recursive algorithm developed in 1960 by Rudolf E. Kálmán, a Hungarian-American engineer and mathematician, that provides optimal estimates of a system's state by combining noisy measurements with a predictive model. It is widely used in control systems, signal processing, and finance for tracking and forecasting.
In trading, KF might be a good replacement for a moving average, as it reacts to price changes in a different way. Not only it follows price direction, but can also track the velocity of price change. This specific behaviour of KF is used in this indicator to track changes in trends.
Trend is characterized by price moving directionally, however, any trend comes to pause or complete stop and reversal, as the price changes more slowly (a trend fades into a sideways movement for a while) or the price movement changes direction, thus making a reversal.
This indicator detects the points where such changes occur (trend breaker points), and produces signals, which serve as points of current trend pausing or reversing. By applying different settings for KF calculation, you can produce less or more signals that indicate change in trend character, and either detect only significant trends changes, or less and shorter trends changes as well.
The signals do not differentiate the exact type of a trend change (it can be a brief trend pause followed by a continuation, as well as a complete reversal). However, once you are in a trend, the significant velocity change indicates a change in trend structure. In this sense, trend breaker signals should not be followed blindly, and can be used only as trend (and subsequently, position) exit confirmations, but not the entry contrarian confirmations.
For better visual representation, you can use chart signals attached to bars, and additionally paint a vertical gradient at each signal which shows significant trend deceleration.
Kalman filter calculations used in this indicator are partially based on an open-source code from @loxx which was published in 2022 as Kalman filter overlay .
Bollinger Bands with Narrow ConsolidationThe indicator is based on the standard Bollinger Bands indicator in TradingView. Its main difference is the ability to display narrow consolidation zones (with an adjustable percentage) and generate signals in these zones.
Narrow consolidation zones can be considered as a signal before the start of a strong trend, whether upward or downward.
Индикатор построен на стандартном индикаторе полос боллинджера в трейдинг вью. Его отличие заключается в том, что здесь есть возможность отображения зон узкой консолидации (процент настраивается) и генерации сигналов на этих зонах.
Зоны узкой консолидации можно рассматривать как сигнал перед началом сильного треда как восходящего, так и нисходящего.
Markov + Monte Carlo Simulation with EVMarkov Monte Carlo Projection (MMCP) – A Probabilistic Approach to Price Forecasting
Introduction: A New Approach to Price Projection
The Markov Monte Carlo Projection (MMCP) is an advanced stochastic forecasting tool that models potential future price paths using a combination of Markov Chain transition probabilities and Monte Carlo simulations. Unlike traditional technical indicators that rely on fixed formulas, MMCP employs probability distributions and simulated price movement paths to estimate future price behavior dynamically.
This indicator is designed to adapt to changing market conditions and provides traders with a probabilistic framework rather than a fixed forecast. By incorporating volatility modeling, MMCP enables traders to size projections proportionally to recent price action, making it an adaptive and flexible forecasting tool.
Mathematical Foundations
Markov Chains: Modeling Probability of Price Movements
A Markov Chain is a stochastic process where the probability of transitioning to the next state depends only on the current state and not on past states (i.e., it is memoryless).
For price movement, MMCP analyzes the past N bars (set by the lookback window) to determine the transition probabilities of price moving up, down, or remaining the same based on past behavior:
Pup=Number of Up MovesTotal Moves
Pup=Total MovesNumber of Up Moves
Pdown=Number of Down MovesTotal Moves
Pdown=Total MovesNumber of Down Moves
Psame=1−(Pup+Pdown)
Psame=1−(Pup+Pdown)
These probabilities guide how future price movements are simulated, ensuring that projections reflect historical price behavior tendencies.
Monte Carlo Simulations: Generating Possible Futures
Monte Carlo simulations involve running many random trials to estimate possible outcomes. Each trial simulates a future price path by:
Randomly selecting a direction based on the Markov probabilities Pup,Pdown,PsamePup,Pdown,Psame.
Determining the magnitude of the price movement using a normally distributed volatility model.
Iterating this process across multiple forecast bars to simulate a range of potential price paths.
This process does not predict a single outcome, but rather generates a probability-weighted range of future price possibilities.
Volatility Modeling: Scaling Movements Proportionally
Why We Use Standard Deviation (σσ)
Price movement is inherently volatile, and the magnitude of price shifts must be scaled relative to recent volatility. MMCP calculates rolling price returns and then derives the standard deviation of those returns:
σ=stdev(price returns,lookback)
σ=stdev(price returns,lookback)
The Volatility Multiplier allows users to adjust the impact of this volatility on projected movements. This makes the indicator adaptive to different asset price ranges.
Key User Adjustments
1. Volatility Multiplier – Tuning Projections for Different Assets
The scale of the Volatility Multiplier must be tuned for each asset because it is relative to the magnitude of price action. For example:
Low-priced assets (e.g., $2.50 stocks) → A multiplier of 0.1 works best.
Mid-priced assets (e.g., $250 stocks) → A multiplier of 3 works best.
High-priced assets (e.g., Bitcoin) → A multiplier of 1000 works best.
🔹 If projections seem too extreme, decrease the multiplier.
🔹 If projections seem too flat, increase the multiplier.
The Volatility Multiplier can also be fine-tuned to make the projected signal proportionate to the immediately preceding price action.
2. Expected Value (EV) Path – Analyzing Aggregate Future Probabilities
The EV Line is a computed average of all simulated paths, giving traders an expected mean trajectory.
If you find that the EV Line is not visible, try increasing the volatility multiplier to make it more pronounced.
3. Projection Inversion – Enhancing Analysis with Paired Indicators
A unique feature of MMCP is the projection inversion toggle, designed to allow traders to run multiple instances of the indicator in tandem.
When one instance is set to normal projection and another to inverted projection, traders can pair them together using identical settings (except inversion). This setup allows for a mirrored probability perspective and enhances visualizing volatility dynamics.
Additionally, traders can use multiple sets of paired indicators, each with a different lookback window, to build a multi-layered, probability-driven market visualization. This dynamic approach provides an evolving structure of probable price movement in different time frames, offering deeper insights into potential market conditions.
How MMCP Works in Real-Time
Each new bar triggers a fresh Monte Carlo simulation, meaning that projections organically evolve with the market. This ensures that MMCP is always responding to current conditions, rather than applying static assumptions.
How to Use MMCP in Trading
✔ Identifying Potential Reversal & Continuation Zones
If most Monte Carlo paths project upward, bullish momentum is likely.
If most Monte Carlo paths project downward, bearish momentum is likely.
The Expected Value (EV) Line can help confirm the most probable trajectory.
✔ Analyzing Market Sentiment in Real Time
Use multiple instances of MMCP with different lookback windows to capture short-term vs. long-term sentiment.
Enable projection inversion to analyze potential mirrored moves.
✔ Fine-Tuning MMCP for Your Strategy
Adjust the Volatility Multiplier to match the price scale of your asset.
Increase the number of simulations to improve statistical robustness.
Use shorter lookback windows for more responsive predictions, or longer windows for more stable forecasts.
Why MMCP is a Game-Changer
✅ Dynamic & Probabilistic – Unlike fixed indicators, MMCP adapts in real-time.
✅ Fully Stochastic – MMCP embraces uncertainty using Markov models & Monte Carlo simulations.
✅ Customizable for Any Asset – Adjust the Volatility Multiplier for small or large price movements.
✅ Live Updates – The projection organically evolves with every new price bar.
✅ Multi-Perspective Analysis – Traders can run paired normal and inverted projections for deeper insights.
By tuning Volatility Multiplier, Lookback Window, and Projection Inversion, traders can customize MMCP to fit their strategy.
Final Thoughts
The Markov Monte Carlo Projection (MMCP) is not about making absolute predictions—it is about understanding probability distributions in price action.
By leveraging Monte Carlo simulations, Markov transition probabilities, and dynamic volatility modeling, MMCP gives traders a powerful probability-based edge in forecasting potential price movement.