Previous 4-Hour High/Low Indicator Name: Previous 4-Hour High/Low Lines
Description:
This indicator highlights the high and low levels of the previous candle from a user-defined timeframe (default: 4 hours) and extends these levels both to the left and right across the chart. It allows traders to visualize key support and resistance levels from higher timeframes while analyzing lower timeframe charts.
Key Features:
• Customizable Timeframe: Select any timeframe (e.g., 4-hour, daily) to track the high and low of the previous candle.
• Dynamic Updates: The high and low levels update automatically with each new candle.
• Extended Levels: Lines extend both left and right, providing a clear reference for past and future price action.
• Overlay on Chart: The indicator works seamlessly on any timeframe, making it ideal for multi-timeframe analysis.
Use Case:
This tool is perfect for traders who rely on higher timeframe levels for setting entry/exit points, identifying potential breakout zones, or managing risk. By visualizing these levels directly on lower timeframe charts, traders can make informed decisions without switching between charts.
Трендовый анализ
[blackcat] L2 Kiosotto IndicatorOVERVIEW
The Kiosotto Indicator is a versatile technical analysis tool designed for forex trading but applicable to other financial markets. It excels in detecting market reversals and trends without repainting, ensuring consistent and reliable signals. The indicator has evolved over time, with different versions focusing on specific aspects of market analysis.
KEY FEATURES
Reversal Detection: Identifies potential market reversals, crucial for traders looking to capitalize on turning points.
Trend Detection: Earlier versions focused on detecting trends, useful for traders who prefer to follow the market direction.
Non-Repainting: Signals remain consistent on the chart, providing reliable and consistent signals.
Normalization: Later versions, such as Normalized Kiosotto and Kiosotto_2025, incorporate normalization to assess oversold and overbought conditions, enhancing interpretability.
VERSIONS AND EVOLUTION
Early Versions: Focused on trend detection, useful for following market direction.
2 in 1 Kiosotto: Emphasizes reversal detection and is considered an improvement by users.
Normalized Versions (e.g., Kiosotto_2025, Kiosotto_3_2025): Introduce normalization to assess oversold and overbought conditions, enhancing interpretability.
HOW TO USE THE KIOSOTTO INDICATOR
Understanding Signals:
Reversals: Look for the indicator's signals that suggest a potential reversal, indicated by color changes, line crossings, or other visual cues.
Trends: Earlier versions might show stronger trending signals, indicated by the direction or slope of the indicator's lines.
Normalization Interpretation (for normalized versions):
Oversold: When the indicator hits the lower boundary, it might indicate an oversold condition, suggesting a potential buy signal.
Overbought: Hitting the upper boundary could signal an overbought condition, suggesting a potential sell signal.
PINE SCRIPT IMPLEMENTATION
The provided Pine Script code is a version of the Kiosotto indicator. Here's a detailed explanation of the code:
//@version=5
indicator(" L2 Kiosotto Indicator", overlay=false)
//Pine version of Kiosotto 2015 v4 Alert ms-nrp
// Input parameters
dev_period = input.int(150, "Dev Period")
alerts_level = input.float(15, "Alerts Level")
tsbul = 0.0
tsber = 0.0
hpres = 0.0
lpres = 9999999.0
for i = 0 to dev_period - 1
rsi = ta.rsi(close , dev_period)
if high > hpres
hpres := high
tsbul := tsbul + rsi * close
if low < lpres
lpres := low
tsber := tsber + rsi * close
buffer1 = tsber != 0 ? tsbul / tsber : 0
buffer2 = tsbul != 0 ? tsber / tsbul : 0
// Plotting
plot(buffer1, color=color.aqua, linewidth=3, style=plot.style_histogram)
plot(buffer2, color=color.fuchsia, linewidth=3, style=plot.style_histogram)
hline(alerts_level, color=color.silver)
EXPLANATION OF THE CODE
Indicator Definition:
indicator(" L2 Kiosotto Indicator", overlay=false): Defines the indicator with the name " L2 Kiosotto Indicator" and specifies that it should not be overlaid on the price chart.
Input Parameters:
dev_period = input.int(150, "Dev Period"): Allows users to set the period for the deviation calculation.
alerts_level = input.float(15, "Alerts Level"): Allows users to set the level for alerts.
Initialization:
tsbul = 0.0: Initializes the tsbul variable to 0.0.
tsber = 0.0: Initializes the tsber variable to 0.0.
hpres = 0.0: Initializes the hpres variable to 0.0.
lpres = 9999999.0: Initializes the lpres variable to a very high value.
Loop for Calculation:
The for loop iterates over the last dev_period bars.
rsi = ta.rsi(close , dev_period): Calculates the RSI for the current bar.
if high > hpres: If the high price of the current bar is greater than hpres, update hpres and add the product of RSI and close price to tsbul.
if low < lpres: If the low price of the current bar is less than lpres, update lpres and add the product of RSI and close price to tsber.
Buffer Calculation:
buffer1 = tsber != 0 ? tsbul / tsber : 0: Calculates the first buffer as the ratio of tsbul to tsber if tsber is not zero.
buffer2 = tsbul != 0 ? tsber / tsbul : 0: Calculates the second buffer as the ratio of tsber to tsbul if tsbul is not zero.
Plotting:
plot(buffer1, color=color.aqua, linewidth=3, style=plot.style_histogram): Plots the first buffer as a histogram with an aqua color.
plot(buffer2, color=color.fuchsia, linewidth=3, style=plot.style_histogram): Plots the second buffer as a histogram with a fuchsia color.
hline(alerts_level, color=color.silver): Draws a horizontal line at the alerts_level with a silver color.
FUNCTIONALITY
The Kiosotto indicator calculates two buffers based on the RSI and price levels over a specified period. The buffers are plotted as histograms, and a horizontal line is drawn at the alerts level. The indicator helps traders identify potential reversals and trends by analyzing the relationship between the RSI and price levels.
ALGORITHMS
RSI Calculation:
The Relative Strength Index (RSI) measures the speed and change of price movements. It is calculated using the formula:
RSI=100− (1+RS) / 100
where RS is the ratio of the average gain to the average loss over the specified period.
Buffer Calculation:
The buffers are calculated as the ratio of the sum of RSI multiplied by the close price for high and low price conditions. This helps in identifying the balance between buying and selling pressure.
Signal Generation:
The indicator generates signals based on the values of the buffers and the alerts level. Traders can use these signals to make informed trading decisions, such as entering or exiting trades based on potential reversals or trends.
APPLICATION SCENARIOS
Reversal Trading: Traders can use the Kiosotto indicator to identify potential reversals by looking for significant changes in the buffer values or crossings of the alerts level.
Trend Following: The indicator can also be used to follow trends by analyzing the direction and slope of the buffer lines.
Oversold/Overbought Conditions: For normalized versions, traders can use the indicator to identify oversold and overbought conditions, which can provide buy or sell signals.
THANKS
Special thanks to the TradingView community and the original developers for their contributions and support in creating and refining the Kiosotto Indicator.
Rolling Window Geometric Brownian Motion Projections📊 Rolling GBM Projections + EV & Adjustable Confidence Bands
Overview
The Rolling GBM Projections + EV & Adjustable Confidence Bands indicator provides traders with a robust, dynamic tool to model and project future price movements using Geometric Brownian Motion (GBM). By combining GBM-based simulations, expected value (EV) calculations, and customizable confidence bands, this indicator offers valuable insights for decision-making and risk management.
Key Features
Rolling GBM Projections: Simulate potential future price paths based on drift (μμ) and volatility (σσ).
Expected Value (EV) Line: Represents the average projection of simulated price paths.
Confidence Bands: Define ranges where the price is expected to remain, adjustable from 51% to 99%.
Simulation Lines: Visualize individual GBM paths for detailed analysis.
EV of EV Line: A smoothed trend of the EV, offering additional clarity on price dynamics.
Customizable Lookback Periods: Adjust the rolling lookback periods for drift and volatility calculations.
Mathematical Foundation
1. Geometric Brownian Motion (GBM)
GBM is a mathematical model used to simulate the random movement of asset prices, described by the following stochastic differential equation:
dSt=μStdt+σStdWt
dSt=μStdt+σStdWt
Where:
StSt: Price at time tt
μμ: Drift term (expected return)
σσ: Volatility (standard deviation of returns)
dWtdWt: Wiener process (standard Brownian motion)
2. Drift (μμ) and Volatility (σσ)
Drift (μμ): Represents the average logarithmic return of the asset. Calculated using a simple moving average (SMA) over a rolling lookback period.
μ=SMA(ln(St/St−1),Lookback Drift)
μ=SMA(ln(St/St−1),Lookback Drift)
Volatility (σσ): Measures the standard deviation of logarithmic returns over a rolling lookback period.
σ=STD(ln(St/St−1),Lookback Volatility)
σ=STD(ln(St/St−1),Lookback Volatility)
3. Price Simulation Using GBM
The GBM formula for simulating future prices is:
St+Δt=St×e(μ−12σ2)Δt+σϵΔt
St+Δt=St×e(μ−21σ2)Δt+σϵΔt
Where:
ϵϵ: Random variable from a standard normal distribution (N(0,1)N(0,1)).
4. Confidence Bands
Confidence bands are determined using the Z-score corresponding to a user-defined confidence percentage (CC):
Upper Band=EV+Z⋅σ
Upper Band=EV+Z⋅σ
Lower Band=EV−Z⋅σ
Lower Band=EV−Z⋅σ
The Z-score is computed using an inverse normal distribution function, approximating the relationship between confidence and standard deviations.
Methodology
Rolling Drift and Volatility:
Drift and volatility are calculated using logarithmic returns over user-defined rolling lookback periods (default: μ=20μ=20, σ=16σ=16).
Drift defines the overall directional tendency, while volatility determines the randomness and variability of price movements.
Simulations:
Multiple GBM paths (default: 30) are generated for a specified number of projection candles (default: 12).
Each path is influenced by the current drift and volatility, incorporating random shocks to simulate real-world price dynamics.
Expected Value (EV):
The EV is calculated as the average of all simulated paths for each projection step, offering a statistical mean of potential price outcomes.
Confidence Bands:
The upper and lower bounds of the confidence bands are derived using the Z-score corresponding to the selected confidence percentage (e.g., 68%, 95%).
EV of EV:
A running average of the EV values, providing a smoothed perspective of price trends over the projection horizon.
Indicator Functionality
User Inputs:
Drift Lookback (Bars): Define the number of bars for rolling drift calculation (default: 20).
Volatility Lookback (Bars): Define the number of bars for rolling volatility calculation (default: 16).
Projection Candles (Bars): Set the number of bars to project future prices (default: 12).
Number of Simulations: Specify the number of GBM paths to simulate (default: 30).
Confidence Percentage: Input the desired confidence level for bands (default: 68%, adjustable from 51% to 99%).
Visualization Components:
Simulation Lines (Blue): Display individual GBM paths to visualize potential price scenarios.
Expected Value (EV) Line (Orange): Highlight the mean projection of all simulated paths.
Confidence Bands (Green & Red): Show the upper and lower confidence limits.
EV of EV Line (Orange Dashed): Provide a smoothed trendline of the EV values.
Current Price (White): Overlay the real-time price for context.
Display Toggles:
Enable or disable components (e.g., simulation lines, EV line, confidence bands) based on preference.
Practical Applications
Risk Management:
Utilize confidence bands to set stop-loss levels and manage trade risk effectively.
Use narrower confidence intervals (e.g., 50%) for aggressive strategies or wider intervals (e.g., 95%) for conservative approaches.
Trend Analysis:
Observe the EV and EV of EV lines to identify overarching trends and potential reversals.
Scenario Planning:
Analyze simulation lines to explore potential outcomes under varying market conditions.
Statistical Insights:
Leverage confidence bands to understand the statistical likelihood of price movements.
How to Use
Add the Indicator:
Copy the script into the TradingView Pine Editor, save it, and apply it to your chart.
Customize Settings:
Adjust the lookback periods for drift and volatility.
Define the number of projection candles and simulations.
Set the confidence percentage to tailor the bands to your strategy.
Interpret the Visualization:
Use the EV and confidence bands to guide trade entry, exit, and position sizing decisions.
Combine with other indicators for a holistic trading strategy.
Disclaimer
This indicator is a mathematical and statistical tool. It does not guarantee future performance.
Use it in conjunction with other forms of analysis and always trade responsibly.
Happy Trading! 🚀
Larry Williams: Market StructureLarry Williams' Three-Bar System of Highs and Lows: A Definition of Market Structure
Larry Williams developed a method of market structure analysis based on identifying local extrema using a sequence of three consecutive bars. This approach helps traders pinpoint significant turning points on the price chart.
Definition of Local Extrema:
Local High:
Consists of three bars where the middle bar has the highest high, while the lows of the bars on either side are lower than the low of the middle bar.
Local Low:
Consists of three bars where the middle bar has the lowest low, while the highs of the bars on either side are higher than the high of the middle bar.
This structure helps identify meaningful reversal points on the price chart.
Constructing the Zigzag Line:
Once the local highs and lows are determined, they are connected with lines to create a zigzag pattern.
This zigzag reflects the major price swings, filtering out minor fluctuations and market noise.
Medium-Term Market Structure:
By analyzing the sequence of local extrema, it is possible to determine the medium-term market trend:
Upward Structure: A sequence of higher highs and higher lows.
Downward Structure: A sequence of lower highs and lower lows.
Sideways Structure (Flat): Lack of a clear trend, where highs and lows remain approximately at the same level.
This method allows traders and analysts to better understand the current market phase and make informed trading decisions.
Built-in Indicator Feature:
The indicator includes a built-in functionality to display Intermediate Term Highs and Lows , which are defined by filtering short-term highs and lows as described in Larry Williams' methodology. This feature is enabled by default, ensuring traders can immediately visualize key levels for support, resistance, and trend assessment.
Quote from Larry Williams' Work on Intermediate Term Highs and Lows:
"Now, the most interesting part! Look, if we can identify a short-term high by defining it as a day with lower highs (excluding inside days) on both sides, we can take a giant leap forward and define an intermediate term high as any short-term high with lower short-term highs on both sides. But that’s not all, because we can take it even further and say that any intermediate term high with lower intermediate term highs on both sides—you see where I’m going—forms a long-term high.
For many years, I made a very good living simply by identifying these points as buy and sell signals. These points are the only valid support and resistance levels I’ve ever found. They are crucial, and the breach of these price levels provides important information about trend development and changes. Therefore, I use them for placing stop loss protection and entry methods into the market."
— Larry Williams
This insightful quote highlights the practical importance of identifying market highs and lows at different timeframes and underscores their role in effective trading strategies.
Adaptive Range Scalper - KetBotAIThe Adaptive Scalper is designed to dynamically adjust entry, take-profit (TP), and stop-loss (SL) levels based on the latest market price. It combines multiple tools to provide traders with actionable insights, suitable for a range of trading styles and timeframes.
How the Indicator Works
Dynamic Levels:
- Yellow Dotted Line: Represents the entry level, following the latest price dynamically.
- Green Line: The Take Profit (TP) level, calculated as a multiple of the current price, adapts in real-time.
- Red Line: The Stop Loss (SL) level, placed below the price and also dynamically adjusts.
Bollinger Bands:
Provides context for market volatility and potential overbought/oversold zones.
Narrowing bands signal consolidation, while expanding bands indicate increased volatility.
Buy and Sell Signals:
Buy Signal: Triggered when the price crosses above the lower Bollinger Band.
Sell Signal: Triggered when the price crosses below the upper Bollinger Band.
These signals help traders time entries and exits based on momentum shifts.
Risk/Reward Analysis:
Visual shading shows the favorable risk/reward zone between the stop loss and take profit levels.
Timeframe Suggestions
Short-Term Traders (Scalping):
Use on 5-minute to 15-minute charts.
Focus on high-volatility periods for quick entries and exits.
Intraday Traders:
Ideal for 30-minute to 1-hour charts.
Provides more stable signals and less noise.
Swing Traders:
Best suited for 4-hour or daily charts.
Captures broader trends with fewer signals, allowing for larger moves.
Tool Combination
Volume Profile:
Combine with volume-based tools to confirm key support/resistance zones around TP and SL levels.
Trend Indicators:
Use with Moving Averages (e.g., 20-period or 50-period) to identify the broader trend direction.
Example: Only take buy signals in an uptrend and sell signals in a downtrend.
Momentum Oscillators:
Pair with tools like RSI or MACD to avoid entering overbought/oversold conditions.
Support/Resistance Lines:
Manually mark significant levels to confirm alignment with the indicator’s TP and SL zones.
Useful Advice for Traders
Risk Management:
- Always assess the risk/reward ratio; aim for at least 1:2 (risking 1 to gain 2).
- Adjust the multiplier to match your trading style (e.g., higher multiplier for swing trades, lower for scalping).
Avoid Overtrading:
Use the indicator in conjunction with clear rules to avoid false signals during low-volatility periods.
Monitor market volatility:
Pay attention to narrowing Bollinger Bands, which signal consolidations. Avoid trading until a breakout occurs.
Test on Demo Accounts:
Practice using the indicator on a demo account to understand its behavior across different assets and timeframes.
Focus on High-Liquidity Markets:
For the best results, trade highly liquid instruments like major currency pairs, gold, or stock indices.
Summary
The Adaptive Range Indicator dynamically adjusts to market conditions, offering clear entry and exit levels. By combining it with Bollinger Bands and other tools, traders can better navigate market trends and avoid noise. It’s versatile across multiple timeframes and assets, making it a valuable addition to any trader’s toolkit.
HV-RV Oscillator by DINVESTORQ(PRABIR DAS)Description:
The HV-RV Oscillator is a powerful tool designed to help traders track and compare two types of volatility measures: Historical Volatility (HV) and Realized Volatility (RV). This indicator is useful for identifying periods of market volatility and can be employed in various trading strategies. It plots both volatility measures on a normalized scale (0 to 100) to allow easy comparison and analysis.
How It Works:
Historical Volatility (HV):
HV is calculated by taking the log returns of the closing prices and finding the standard deviation over a specified period (default is 14 periods).
The value is then annualized assuming 252 trading days in a year.
Realized Volatility (RV):
RV is based on the True Range, which is the maximum of the current high-low range, the difference between the high and the previous close, and the difference between the low and the previous close.
Like HV, the standard deviation of the True Range over a specified period is calculated and annualized.
Normalization:
Both HV and RV values are normalized to a 0-100 scale, making it easy to see their relative magnitude over time.
The highest and lowest values within the period are used to normalize the data, which smooths out short-term volatility spikes.
Smoothing:
The normalized values of both HV and RV are then smoothed using a Simple Moving Average (SMA) to reduce noise and provide a clearer trend.
Crossover Signals:
Buy Signal : When the Normalized HV crosses above the Normalized RV, it indicates that the historical volatility is increasing relative to the realized volatility, which could be interpreted as a buy signal.
Sell Signal : When the Normalized HV crosses below the Normalized RV, it suggests that the historical volatility is decreasing relative to the realized volatility, which could be seen as a sell signal.
Features:
Two Volatility Lines: The blue line represents Normalized HV, and the orange line represents Normalized RV.
Neutral Line: A gray dashed line at the 50 level indicates a neutral state between the two volatility measures.
Buy/Sell Markers: Green upward arrows are shown when the Normalized HV crosses above the Normalized RV, and red downward arrows appear when the Normalized HV crosses below the Normalized RV.
Inputs:
HV Period: The number of periods used to calculate Historical Volatility (default = 14).
RV Period: The number of periods used to calculate Realized Volatility (default = 14).
Smoothing Period: The number of periods used for smoothing the normalized values (default = 3).
How to Use:
This oscillator is designed for traders who want to track the relationship between Historical Volatility and Realized Volatility.
Buy signals occur when HV increases relative to RV, which can indicate increased market movement or potential breakout conditions.
Sell signals occur when RV is greater than HV, signaling reduced volatility or potential trend exhaustion.
Example Use Cases:
Breakout/Trend Strategy: Use the oscillator to identify potential periods of increased volatility (when HV crosses above RV) for breakout trades.
Mean Reversion: Use the oscillator to detect periods of low volatility (when RV crosses above HV) that might signal a return to the mean or consolidation.
This tool can be used on any asset class such as stocks, forex, commodities, or indices to help you make informed decisions based on the comparison of volatility measures.
NOTE: FOR INTRDAY PURPOSE USE 30/7/9 AS SETTING AND FOR DAY TRADE USE 14/7/9
Dual Bayesian For Loop [QuantAlgo]Discover the power of probabilistic investing and trading with Dual Bayesian For Loop by QuantAlgo , a cutting-edge technical indicator that brings statistical rigor to trend analysis. By merging advanced Bayesian statistics with adaptive market scanning, this tool transforms complex probability calculations into clear, actionable signals—perfect for both data-driven traders seeking statistical edge and investors who value probability-based confirmation!
🟢 Core Architecture
At its heart, this indicator employs an adaptive dual-timeframe Bayesian framework with flexible scanning capabilities. It utilizes a configurable loop start parameter that lets you fine-tune how recent price action influences probability calculations. By combining adaptive scanning with short-term and long-term Bayesian probabilities, the indicator creates a sophisticated yet clear framework for trend identification that dynamically adjusts to market conditions.
🟢 Technical Foundation
The indicator builds on three innovative components:
Adaptive Loop Scanner: Dynamically evaluates price relationships with adjustable start points for precise control over historical analysis
Bayesian Probability Engine: Transforms market movements into probability scores through statistical modeling
Dual Timeframe Integration: Merges immediate market reactions with broader probability trends through custom smoothing
🟢 Key Features & Signals
The Adaptive Dual Bayesian For Loop transforms complex calculations into clear visual signals:
Binary probability signal displaying definitive trend direction
Dynamic color-coding system for instant trend recognition
Strategic L/S markers at key probability reversals
Customizable bar coloring based on probability trends
Comprehensive alert system for probability-based shifts
🟢 Practical Usage Tips
Here's how you can get the most out of the Dual Bayesian For Loop :
1/ Setup:
Add the indicator to your TradingView chart by clicking on the star icon to add it to your favorites ⭐️
Start with default source for balanced price representation
Use standard length for probability calculations
Begin with Loop Start at 1 for complete price analysis
Start with default Loop Lookback at 70 for reliable sampling size
2/ Signal Interpretation:
Monitor probability transitions across the 50% threshold (0 line)
Watch for convergence of short and long-term probabilities
Use L/S markers for potential trade signals
Monitor bar colors for additional trend confirmation
Configure alerts for significant trend crossovers and reversals, ensuring you can act on market movements promptly, even when you’re not actively monitoring the charts
🟢 Pro Tips
Fine-tune loop parameters for optimal sensitivity:
→ Lower Loop Start (1-5) for more reactive analysis
→ Higher Loop Start (5-10) to filter out noise
Adjust probability calculation period:
→ Shorter lengths (5-10) for aggressive signals
→ Longer lengths (15-30) for trend confirmation
Strategy Enhancement:
→ Compare signals across multiple timeframes
→ Combine with volume for trade validation
→ Use with support/resistance levels for entry timing
→ Integrate other technical tools for even more comprehensive analysis
Sum Trend OscillatorPublishing my first indicator.
This one accumulates bars over two short period and divide that by the difference between a long term mean value of high-low
Buy/Sell signal is when both line cross at close below or above the center line.
Pre-Market and First 5-Minute LevelsThis will plot the pre-market high an the pre-market low right when market opens after the first five minutes, this will also apply for the first five minute high and five minute low with horizontal rays. Pre-Market levels are blue and 5 minute levels are orange
Premarket and Opening Range (First 30 minutes) LevelsThis indicator is for people who like to utilize the pre-market highs and pre-market Low's as well as the first 30 minutes high and low, or some people like to call the opening range. I hope you find value in this. Note, the levels will only appear after tracking. Premarket levels will happen after pre-market closes. Opening Range levels will show right after the first 30 minutes.
Mongoose Market Tracker
**Mongoose Market Tracker**
The **Mongoose Market Sentinel** script is a custom indicator designed to help traders identify unusual market activity that may indicate potential manipulation. This script uses dynamic volume and price action analysis to highlight areas where sudden spikes in volume or irregular candle structures occur.
### Features:
- **Volume Spike Detection**: Flags areas where trading volume significantly deviates from the average, potentially signaling manipulation or abnormal market behavior.
- **Wick-to-Body Ratio Analysis**: Detects candles with disproportionate wicks compared to their bodies, which may indicate price manipulation or liquidity hunting.
- **Auto-Adjusting Thresholds**: Automatically optimizes detection parameters based on the selected time frame, making it suitable for both short-term and long-term analysis.
- **Visual Alerts**: Highlights suspicious activity directly on the chart with clear labels and background coloring, designed for easy readability in dark mode.
- **Customizable Alerts**: Allows users to set notifications for flagged events, ensuring timely awareness of potential risks.
### Intended Use:
This script is a tool for monitoring market behavior and is not a standalone trading strategy. Traders should use it as a supplementary analysis tool alongside other indicators and market knowledge. Always conduct your own research and practice risk management when making trading decisions.
RSI NarrativesDescription:
The RSI Narratives script aggregates Relative Strength Index (RSI) values across multiple cryptocurrency narratives or sectors, providing an easy-to-read visual and alert system for trend reversals and overbought/oversold conditions. This tool is designed for traders looking to track sector-specific trends and compare performance across AI, DeFi, Level 1 blockchains, and more.
Key Features:
RSI Aggregation by Sector: Calculates average RSI for key narratives, including AI, DeFi, Level 1 blockchains, new memes, and more.
Customizable RSI Settings: Adjust RSI period, line width, and label offsets for personalized analysis.
Dynamic Alerts: Receive alerts when a narrative enters overbought or oversold territory, helping you act quickly on market movements.
Clean Visualization: Overlay sector-specific SMA lines with distinct colors and optional labels for quick interpretation.
Multi-Narrative Comparison: Analyze trends across diverse narratives to identify emerging opportunities.
Parameters for Customization:
RSI Period: Set the lookback period for RSI calculations (default: 14).
Line Width: Adjust the thickness of plotted lines (default: 2).
Label Offset: Control label placement for better chart readability.
Overbought/Oversold Thresholds: Configure the RSI levels for alerts (default: 70/40).
How to Use:
Add the script to your TradingView chart.
Customize the RSI parameters to suit your trading strategy.
Monitor the plotted SMA lines to identify narrative-specific trends.
Set alerts for overbought and oversold conditions to stay informed in real time.
Alerts System:
Alerts trigger when a narrative crosses predefined overbought or oversold levels.
Text notifications suggest potential trading actions, such as selling on overbought or buying on oversold.
Intended Users:
This script is ideal for crypto traders, sector analysts, and market enthusiasts who want to track performance across narratives and gain actionable insights into sector rotations.
Disclaimer:
This script is for educational and informational purposes only. It does not constitute financial advice. Please test on historical data and practice caution when trading.
Correlation Pro
Smart Correlation Pro is an indicator for assessing the correlation between two assets in the market. It analyzes correlation over a selected period and provides traders with flexible tools for making informed decisions.
Key Features:
1. Correlation coefficient (-1 to 1):
• 1: Perfect positive correlation (movement in the same direction).
• 0: No correlation (assets are independent).
• -1: Perfect negative correlation (movement in opposite directions).
2. Dynamic analysis:
• Changes the color of the line depending on the strength of the correlation:
• Green — high positive correlation.
• Red — high negative correlation.
• Gray — weak or no correlation.
3. Trading signals:
• Automatic alerts when important correlation levels are reached (> 0.8 or < -0.8).
• Visual cues for identifying potential entry points or risk diversification.
4. Customizable settings:
• Compare any two assets (e.g., BTC and ETH).
• Ability to choose the correlation calculation period.
Who it’s for:
• Traders analyzing coin movements in the cryptocurrency market.
• Investors looking for the strongest or weakest assets for their portfolio.
• Those working with hedging or diversification strategies.
How to Use:
1. Set the second asset in the indicator settings.
2. Analyze the correlation change on the chart:
• High positive correlation → similar price movement, opportunity for hedging.
• High negative correlation → opposite movement, suitable for diversification.
• Low correlation → independence of assets, opportunity to choose the stronger asset.
Benefits:
• Easy to use.
• Instant analysis of asset correlations.
• Increases decision-making accuracy in the market.
(Опис:
Smart Correlation Pro — це індикатор для оцінки взаємозв’язку між двома активами на ринку. Він аналізує кореляцію за обраним періодом та надає трейдерам гнучкі інструменти для ухвалення обґрунтованих рішень.
Основні можливості:
1. Коефіцієнт кореляції (-1 до 1):
• 1: Ідеальна позитивна кореляція (рух в одному напрямку).
• 0: Відсутність кореляції (активи незалежні).
• -1: Ідеальна негативна кореляція (рух у протилежних напрямках).
2. Динамічний аналіз:
• Змінює колір лінії залежно від сили кореляції:
• Зелений — висока позитивна кореляція.
• Червоний — висока негативна кореляція.
• Сірий — слабка або відсутня кореляція.
3. Сигнали для трейдингу:
• Автоматичні оповіщення при досягненні важливих рівнів кореляції (> 0.8 або < -0.8).
• Візуальні підказки для визначення можливих точок входу або диверсифікації ризиків.
4. Гнучкість налаштувань:
• Порівнюйте будь-які два активи (наприклад, BTC та ETH).
• Можливість обирати період розрахунку кореляції.
Кому підходить:
• Трейдерам, які аналізують рух монет на криптовалютному ринку.
• Інвесторам, що шукають найсильніші або найслабші активи для портфеля.
• Тих, хто працює з хеджуванням або диверсифікацією.
Як використовувати:
1. Встановіть другий актив у параметрах індикатора.
2. Аналізуйте зміну кореляції на графіку:
• Висока позитивна кореляція → схожий рух цін, можливість хеджування.
• Висока негативна кореляція → протилежний рух, підходить для диверсифікації.
• Низька кореляція → незалежність активів, можливість вибору сильнішого активу.
Переваги:
• Простота у використанні.
• Миттєвий аналіз взаємозв’язків між активами.
• Підвищує точність рішень на ринку.)
Probability System v1.0 [AstroHub]The Probability System is an indicator designed to assess the likelihood of a market trend change based on the analysis of previous candles. The system calculates the probability of price increasing (up) or decreasing (down) based on the count of bullish (up) and bearish (down) candles over a selected period. The script generates buy and sell signals based on these probabilities and displays visual elements that help traders gauge the strength of the trend across different timeframes.
How it works:
Probability Calculation:
The script analyzes the open and close prices of candles over the chosen period (default is 20).
Using this data, the script calculates the probability of price increasing Up Probability or decreasing Down Probability as percentages.
Signal Generation:
A Green signal is generated when the upProbability exceeds a set threshold.
A Red signal is generated when the downProbability exceeds a threshold.
Multi-Level Visualization:
For both up and down probabilities, four levels are defined: 50%, 60%, 70%, and 80%. Each level is represented by circles with varying intensity (color opacity):
Green circles below the price represent up probabilities, with increasing intensity indicating a stronger bullish trend.
Red circles above the price represent down probabilities, with increasing intensity showing stronger bearish signals.
Alerts:
Alerts are set up for each probability level, notifying traders in real-time when specific thresholds are met.
The alerts provide the exact percentage of the probability, allowing traders to act on changes in the market conditions promptly.
How to Use:
Set the desired analysis period (default is 20) and the probability threshold (e.g., 80%) for buy or sell signals.
The script will automatically display signals on the chart, as well as color-coded circles to indicate the probability strength.
Enable real-time notifications for each probability level to keep track of changes in the market trend.
This script is suitable for all types of traders, whether using short-term or long-term strategies.
Unique Features:
Multi-Level Probability Visualization: Four distinct probability levels (50%, 60%, 70%, 80%) are displayed with varying color intensities, providing a clearer understanding of market conditions.
Flexible Settings: Users can customize the analysis period and probability threshold according to their trading style and market conditions.
Real-Time Alerts: Alerts for different probability levels help traders respond swiftly to changes in the market.
Dynamic Signals Based on Statistics: The indicator doesn't rely on fixed data but rather uses the actual statistics of past candles, offering more accurate and timely signals for traders.
Suitable for All Trading Styles: Whether you trade short-term or follow longer-term strategies, this system is versatile and valuable for both types of traders.
Who it’s for:
This indicator is ideal for traders who use technical analysis and are looking for accurate signals based on the probability of trend changes. It’s useful for both beginner and experienced traders who want to improve the precision of their market decisions.
Multi-TF Pivots V1The Multi-TF Pivots Indicator is a powerful and customizable pivot point tool for TradingView. This script allows traders to calculate and display pivot points on a wide range of timeframes, from 1-minute to weekly intervals. It supports both Classic and Fibonacci pivot styles and includes options to customize line colors, label positions, and price visibility. The indicator is ideal for traders who rely on pivot points for intraday and swing trading strategies, offering a clear visual representation of key support and resistance levels. With its flexibility and comprehensive features, this indicator is an essential tool for precise technical analysis.
اندیکاتور Multi-TF Pivots یک ابزار قدرتمند و قابل تنظیم برای محاسبه و نمایش پیوت پوینتها در پلتفرم TradingView است. این اسکریپت به معاملهگران امکان میدهد پیوت پوینتها را در طیف گستردهای از تایمفریمها، از ۱ دقیقه تا هفتگی، محاسبه و نمایش دهند. این اندیکاتور از سبکهای پیوت Classic و Fibonacci پشتیبانی میکند و گزینههایی برای شخصیسازی رنگ خطوط، موقعیت برچسبها و نمایش قیمتها دارد. این ابزار برای معاملهگرانی که به پیوت پوینتها برای استراتژیهای معاملاتی روزانه و نوسانی متکی هستند ایدهآل است و نمایش بصری واضحی از سطوح کلیدی حمایت و مقاومت ارائه میدهد. با انعطافپذیری و ویژگیهای جامع خود، این اندیکاتور یک ابزار ضروری برای تحلیل تکنیکال دقیق است
Abz Simple TrendThe goal of this indicator is to provide an "at-a-glance" trend-oriented moving averages indicator that helps with medium and long term trades and investments.
It should work on any chart timeframe but is intended for people interested in how the price is trending over longer timeframes.
Everything in the indicator is calculated against a weekly chart. This means if you're viewing it on another chart timeframe, such as the daily chart, the indicator will show the lines in the same places.
This indicator is intended to be easy enough for people without significant technical chart reading knowledge: Red means the market momentum is likely negative. Green is "bullish".
This is a lagging indicator. If you're new, this may seem like a bad thing, but markets eventually "revert to the mean". They tend to overshoot up and down from major trend lines, but eventually reconnect.
The indicator tracks 4 different moving averages:
- The Main moving average that is the thick, bright line on the chart
- The momentum line
- The 28w moving average (with smoother applied)
- The slow moving average (200w with special filters and smoother applied). This is the final mean reversion line.
The indicator is set up with multiple alerts and you can adjust everything via the settings.
Just remember that no indicator is a "cure all". You should not blindly trade based on the signals this gives out. It is not optimized to be the perfect trading bot but it will help to validate or invalidate your decisions. It's my favorite "at-a-glance" indicator, but I always look at the price action and see when the price reverses as that will occur before the indicator confirms it.
Other indicators that may help you confirm your decisions include: Volume, MACD, and RSI (especially when you understand divergences between the price action and the RSI).
Previous Day High and Low by DRK TradingThe Previous Day High and Low Indicator is a simple yet powerful tool designed for traders who want to keep track of critical levels from the previous trading session. This indicator automatically marks the high and low of the previous day on your chart with dashed horizontal lines, making it easier to identify key support and resistance zones.
Features:
Horizontal Lines: Clearly marks the previous day's high and low levels.
Dynamic Updates: Automatically updates at the start of a new trading day.
Visual Clarity: Includes labels at the start of the day for quick reference.
Customizable: Works seamlessly across all timeframes and instruments.
Use Case:
Identify potential breakout and reversal zones.
Enhance intraday and swing trading strategies by focusing on key price levels.
Plan stop-loss and target levels based on historical price movements.
This indicator is perfect for price action traders, intraday scalpers, and swing traders who rely on past price behavior to make informed decisions.
Statistical Trend Analysis (Scatterplot) [BigBeluga]Statistical Trend Analysis (Scatterplot) provides a unique perspective on market dynamics by combining the statistical concept of z-scores with scatterplot visualization to assess price momentum and potential trend shifts.
🧿 What is Z-Score?
Definition: A z-score is a statistical measure that quantifies how far a data point is from the mean, expressed in terms of standard deviations.
In this Indicator:
A high positive z-score indicates the price is significantly above the average.
A low negative z-score indicates the price is significantly below the average.
The indicator also calculates the rate of change of the z-score, helping identify momentum shifts in the market.
🧿 Key Features:
Scatterplot Visualization:
Displays data points of z-score and its change across four quadrants.
Quadrants help interpret market conditions:
Upper Right (Strong Bullish Momentum): Most data points here signal an ongoing uptrend.
Upper Left (Weakening Momentum): Data points here may indicate a potential market shift or ranging market.
Lower Left (Strong Bearish Momentum): Indicates a dominant downtrend.
Lower Right (Trend Shift to Bullish/Ranging): Suggests weakening bearish momentum or an emerging uptrend.
Color-Coded Candles:
Candles are dynamically colored based on the z-score, providing a visual cue about the price's deviation from the mean.
Z-Score Time Series:
A line plot of z-scores over time shows price deviation trends.
A gray histogram displays the rate of change of the z-score, highlighting momentum shifts.
🧿 Usage:
Use the scatterplot and quadrant gauges to understand the current market momentum and potential shifts.
Monitor the z-score line plot to identify overbought/oversold conditions.
Utilize the gray histogram to detect momentum reversals and trend strength.
This tool is ideal for traders who rely on statistical insights to confirm trends, detect potential reversals, and assess market momentum visually and quantitatively.
Market Structure Trend Targets [ChartPrime]The Market Structure Trend Targets indicator is designed to identify trend direction and continuation points by marking significant breaks in price levels. This approach helps traders track trend strength and potential reversal points. The indicator uses previous highs and lows as breakout triggers, providing a visual roadmap for trend continuation or mean reversion signals.
⯁ KEY FEATURES AND HOW TO USE
⯌ Breakout Points with Numbered Markers :
The indicator identifies key breakout points where price breaks above a previous high (for uptrends) or below a previous low (for downtrends). The initial breakout (zero break) is marked with the entry price and a triangle icon, while subsequent breakouts within the trend are numbered sequentially (1, 2, 3…) to indicate trend continuation.
Example of breakout markers for uptrend and downtrend:
⯌ Percentage Change Display Option :
Traders can toggle on a setting to display the percentage change from the initial breakout point to each subsequent break level, offering an easy way to gauge trend momentum over time. This is particularly helpful for identifying how far price has moved in the current trend.
Percentage change example between break points:
⯌ Dynamic Stop Loss Levels :
In uptrends, the stop loss level is placed below the price to protect against downside moves. In downtrends, it is positioned above the price. If the price breaches the stop loss level, the indicator resets, indicating a potential end or reversal of the trend.
Dynamic stop loss level illustration in uptrend and downtrend:
⯌ Mean Reversion Signals :
The indicator identifies potential mean reversion points with diamond icons. In an uptrend, if the price falls below the stop loss and then re-enters above it, a diamond is plotted, suggesting a possible mean reversion. Similarly, in a downtrend, if the price moves above the stop loss and then falls back below, it indicates a reversion possibility.
Mean reversion diamond signals on the chart:
⯌ Trend Visualization with Colored Zones :
The chart background is shaded to visually represent trend direction, with color changes corresponding to uptrends and downtrends. This makes it easier to see overall market conditions at a glance.
⯁ USER INPUTS
Length : Defines the number of bars used to identify pivot highs and lows for trend breakouts.
Display Percentage : Option to toggle between showing sequential breakout numbers or the percentage change from the initial breakout.
Colors for Uptrend and Downtrend : Allows customization of color zones for uptrends and downtrends to match individual chart preferences.
⯁ CONCLUSION
The Market Structure Trend Targets indicator offers a strategic way to monitor market trends, track breakouts, and manage risk through dynamic stop loss levels. Its clear visual representation of trend continuity, alongside mean reversion signals, provides traders with actionable insights for both trend-following and counter-trend strategies.
Nimu Market on DemandNimu Market On Demand is an innovative tool designed to provide a visual representation of market demand levels on a scale of 1 to 100. This scale is displayed at specific intervals , making it easy for users to understand market demand fluctuations in real time.
To enhance analysis, Nimu Market On Demand also incorporates the Relative Strength Index (RSI) with key thresholds at . RSI is a widely-used technical indicator that measures market strength and momentum, offering insights into overbought (excessive buying) or oversold (excessive selling) conditions.
The combination of the Demand graph and RSI enables users to:
Identify the right time to buy when the RSI falls below 30, signaling an oversold condition.
Determine the optimal time to sell when the RSI rises above 70, indicating an overbought condition.
With an integrated visualization, users can effortlessly observe demand patterns and combine them with RSI signals to make smarter and more strategic trading decisions. This tool is designed to help traders and investors maximize opportunities in a dynamic market environment.
Profitability Visualization with Bid-Ask Spread ApproximationOverview
The " Profitability Visualization with Bid-Ask Spread Approximation " indicator is designed to assist traders in assessing potential profit and loss targets in relation to the current market price or a simulated entry price. It provides flexibility by allowing users to choose between two methods for calculating the offset from the current price:
Bid-Ask Spread Approximation: The indicator attempts to estimate the bid-ask spread by using the highest (high) and lowest (low) prices within a given period (typically the current bar or a user-defined timeframe) as proxies for the ask and bid prices, respectively. This method provides a dynamic offset that adapts to market volatility.
Percentage Offset: Alternatively, users can specify a fixed percentage offset from the current price. This method offers a consistent offset regardless of market conditions.
Key Features
Dual Offset Calculation Methods: Choose between a dynamic bid-ask spread approximation or a fixed percentage offset to tailor the indicator to your trading style and market analysis.
Entry Price Consideration: The indicator can simulate an entry price at the beginning of each trading session (or the first bar on the chart if no sessions are defined). This feature enables a more realistic visualization of potential profit and loss levels based on a hypothetical entry point.
Profit and Loss Targets: When the entry price consideration is enabled, the indicator plots profit target (green) and loss target (red) lines. These lines represent the price levels at which a trade entered at the simulated entry price would achieve a profit or incur a loss equivalent to the calculated offset amount.
Offset Visualization: Regardless of whether the entry price is considered, the indicator always displays upper (aqua) and lower (fuchsia) offset lines. These lines represent the calculated offset levels based on the chosen method (bid-ask approximation or percentage offset).
Customization: Users can adjust the percentage offset, toggle the bid-ask approximation and entry price consideration, and customize the appearance of the lines through the indicator's settings.
Inputs
useBidAskApproximation A boolean (checkbox) input that determines whether to use the bid-ask spread approximation (true) or the percentage offset (false). Default is false.
percentageOffset A float input that allows users to specify the percentage offset to be used when useBidAskApproximation is false. The default value is 0.63.
considerEntryPrice A boolean input that enables the consideration of a simulated entry price for calculating and displaying profit and loss targets. Default is true.
Calculations
Bid-Ask Approximation (if enabled): bidApprox = request.security(syminfo.tickerid, timeframe.period, low) Approximates the bid price using the lowest price (low) of the current period. askApprox = request.security(syminfo.tickerid, timeframe.period, high) Approximates the ask price using the highest price (high) of the current period. spreadApprox = askApprox - bidApprox Calculates the approximate spread.
Offset Amount: offsetAmount = useBidAskApproximation ? spreadApprox / 2 : close * (percentageOffset / 100) Determines the offset amount based on the selected method. If useBidAskApproximation is true, the offset is half of the approximated spread; otherwise, it's the current closing price (close) multiplied by the percentageOffset.
Entry Price (if enabled): var entryPrice = 0.0 Initializes a variable to store the entry price. if considerEntryPrice Checks if entry price consideration is enabled. if barstate.isnew Checks if the current bar is the first bar of a new session. entryPrice := close Sets the entryPrice to the closing price of the first bar of the session.
Profit and Loss Targets (if entry price is considered): profitTarget = entryPrice + offsetAmount Calculates the profit target price level. lossTarget = entryPrice - offsetAmount Calculates the loss target price level.
Plotting
Profit Target Line: Plotted in green (color.green) with a dashed line style (plot.style_linebr) and increased linewidth (linewidth=2) when considerEntryPrice is true.
Loss Target Line: Plotted in red (color.red) with a dashed line style (plot.style_linebr) and increased linewidth (linewidth=2) when considerEntryPrice is true.
Upper Offset Line: Always plotted in aqua (color.aqua) to show the offset level above the current price.
Lower Offset Line: Always plotted in fuchsia (color.fuchsia) to show the offset level below the current price.
Limitations
Approximation: The bid-ask spread approximation is based on high and low prices and may not perfectly reflect the actual bid-ask spread of a specific broker, especially during periods of high volatility or low liquidity.
Simplified Entry: The entry price simulation is basic and assumes entry at the beginning of each session. It does not account for specific entry signals or order types.
No Order Execution: This indicator is purely for visualization and does not execute any trades.
Data Discrepancies: The high and low values used for approximation might not always align with real-time bid and ask prices due to differences in data aggregation and timing between TradingView and various brokers.
Disclaimer
This indicator is for educational and informational purposes only and should not be considered financial advice. Trading involves substantial risk, and past performance is not indicative of future results. Always conduct thorough research and consider your own risk tolerance before making any trading decisions. It is recommended to combine this indicator with other technical analysis tools and a well-defined trading strategy.
Uptrick: Arbitrage OpportunityINTRODUCTION
This script, titled Uptrick: Arbitrage Monitor, is a Pine Script™ indicator that aims to help traders quickly visualize potential arbitrage scenarios across multiple cryptocurrency exchanges. Arbitrage, in general, involves taking advantage of price differences for the same asset across different trading platforms. By comparing market prices of the same symbol on two user-selected exchanges, as well as scanning a broader list of exchanges, this script attempts to signal areas where you might want to buy on one exchange and sell on another. It includes various graphical tools, calculations, and an optional Automated Detection signal feature, allowing users to incorporate more advanced data scanning into their trading decisions. Keep in mind that transaction fees must also be considered in real-world scenarios. These fees can negate potential profits and, in some cases, result in a net loss.
PURPOSE
The primary purpose of this indicator is to show potential percentage differences between the same cryptocurrency trading pairs on two different exchanges. This difference is displayed numerically, visually as a line chart, and it is also tested against user-defined thresholds. With the threshold in place, buy and sell signals can be generated. The script allows you to quickly gauge how significant a spread is between two exchanges and whether that spread surpasses a specified threshold. This is particularly useful for arbitrage trading, where an asset is bought at a lower price on one exchange and sold at a higher price on another, capitalizing on price discrepancies. By identifying these opportunities, traders can potentially secure profits across different markets.
WHY IT WAS MADE
This script was developed to help traders who frequently look for arbitrage opportunities in the fast-paced cryptocurrency market. Cryptocurrencies sometimes experience quick price divergences across different exchanges. By having an automated approach that compares and displays prices, traders can spend less time manually tracking price discrepancies and more time focusing on actual trading strategies. The script was also made with user customization in mind, allowing you to toggle an optional Automated-based approach and choose different moving average methods to smooth out the displayed price difference.
WHAT ARBITRAGE IS
Arbitrage is the practice of buying an asset on one market (or exchange) at a lower price and simultaneously selling it on another market where the price is higher, thus profiting from the price difference. In cryptocurrency markets, these price differentials can occur across multiple exchanges due to varying liquidity, trading volume, geographic factors, or market inefficiencies. Though sometimes small, these differences can be exploited for profit when approached methodically.
EXPLANATION OF INPUTS
The script includes a variety of user inputs that help tailor the indicator to your specific needs:
1. Compared Symbol 1: This is the primary symbol you want to track (for example, BTCUSDT). Make sure it's written in all capital and make sure that it's price from that exchange is available on Tradingview.
2. Compare Exchange 1: The first exchange on which the script will request pricing data for the chosen symbol.
3. Compared to Exchange: The second exchange, used for the comparison.
4. Opportunity Threshold (%): A percentage threshold that, when exceeded by the price difference, can trigger buy or sell signals.
5. Plot Style?: Allows you to choose between plotting the raw difference line or a moving average of that difference.
6. MA Type: Select among SMA, EMA, WMA, RMA, or HMA for your moving average calculation.
7. MA Length: The lookback period for the selected moving average.
8. Plot Buy/Sell Signals?: Enables or disables the plotting of arrows signaling potential buy or sell zones based on threshold crossovers.
9. Automated Detection?: Toggles an additional multi-exchange data scan feature that calculates the highest and lowest prices for the specified symbol across a predefined list of exchanges.
CALCULATIONS
At its core, the script calculates price1 and price2 using the request.security function to fetch close prices from two selected exchanges. The difference is measured as (price1 - price2) / price2 * 100. This results in a percentage that indicates how much higher or lower price1 is relative to price2. Additionally, the script calculates a slope for this difference, which helps color the line depending on whether it is trending up or down. If you choose the moving average option, the script will replace the raw difference data with one of several moving average calculations (SMA, EMA, WMA, RMA, or HMA).
The script also includes an iterative scan of up to 15 different exchanges for Automated detection, collecting the highest and lowest price across all those exchanges. If the Automated option is enabled, it compiles a potential recommendation: buy at the cheapest exchange price and sell at the most expensive one. The difference across all exchanges (allExDiffPercent) is calculated using (highestPriceAll - lowestPriceAll) / lowestPriceAll * 100.
WHAT AUTOMATED DETECTION SIGNAL DOES
If enabled, the Automated detection feature scans all 15 supported exchanges for the specified symbol. It then identifies the exchange with the highest price and the exchange with the lowest price. The script displays a recommended action: buy on the lowest-exchange price and sell on the highest-exchange price. While called “Automated,” it is essentially a multi-exchange data query that automates a portion of research by consolidating different price points. It does not replace thorough analysis or guaranteed execution; it simply provides an overview of potential extremes.
WHAT ALL-EX-DIFF IS
The variable allExDiffPercent is used to show the overall difference between the highest price and the lowest price found among the 15 pre-chosen exchanges. This figure can be useful for anyone wanting a big-picture view of how large the arbitrage spread might be across the broader market.
SIGNALS AND HOW THEY ARE GENERATED
The script provides two main modes of signal generation:
1. Raw Difference Mode: If the user chooses “Use Normal Line,” the script compares the percentage difference of the two selected exchanges (price1 and price2) to the user-defined threshold. When the difference crosses under the positive threshold, a sell signal is displayed (red arrow). Conversely, when the difference crosses above the negative threshold, a buy signal is displayed (green arrow).
2. Moving Average Mode: If the user selects “Use Moving Average,” the script instead references the moving average values (maValue). The signals fire under similar conditions but use the average line to gauge whether the threshold has been crossed.
HOW TO USE THE INDICATOR
1. Add the script to your chart in TradingView.
2. In the script’s settings panel, configure the symbol you wish to compare (for example, BTCUSDT), choose the two exchanges you want to evaluate, and set your desired threshold.
3. Optionally, pick a moving average type and length if you prefer a smoother representation of the difference.
4. Enable or disable buy/sell signals according to your preference.
5. If you’d like to see potential extremes among a broader list of exchanges, enable Automated Detection. Keep in mind that this feature runs additional security requests, so it might slow down performance on weaker devices or if you already have many scripts running.
EXCHANGES TO USE
The script currently supports up to 15 exchanges: BYBIT, BINANCE, MEXC, BLOFIN, BITGET, OKX, KUCOIN, COINBASE, COINEX, PHEMEX, POLONIEX, GATEIO, BITSTAMP, and KRAKEN. You can choose any two of these for direct comparison, and if you enable the Automated detection, it will attempt to query them all to find extremes in real time.
VISUALS
The exchanges and current prices & differences are all plotted in the table while the colored line represents the difference in the price. The two thresholds colored red are where signals are generated. A cross below the upper threshold is a sell signal and a cross above the lower threshold is a buy signal. In the line at the bottom, purple is a negative slope and aqua is a positive slope.
LIMITATIONS AND POTENTIAL PROBLEMS
If you enable too many visual elements such as signals, additional lines, and the Automated-based scanning table, you may find that your chart becomes cluttered, or text might overlap. One workaround is to remove and reapply the indicator to refresh its display. You may also want to reduce the number of displayed table rows by disabling some features if your chart becomes too crowded. Sometimes there might be an error that the price of an asset is not available on an exchange, to fix this, go and select another exchange to compare it to, or if it happens in Automated detection, choose a different asset, ideally more widely spread.
UNIQUENESS
This indicator stands out due to its multifaceted approach: it doesn’t just look at two exchanges but optionally scans up to 15 exchanges in real time, presenting users with a much broader view of the market. The dual-mode system (raw difference vs. moving average) allows for both immediate, unfiltered signals and smoother, noise-reduced signals depending on user preference. By default, it introduces dynamic visual cues through color changes when the slope of the difference transitions upward or downward. The optional Automated detection, while not a deep learning system, adds a functional intelligence layer by collating extreme price points from multiple exchanges in one place, thereby streamlining the manual research process. This combination of features gives the script a unique edge in the TradingView ecosystem, catering equally to novices wanting a straightforward approach and to advanced users looking for an aggregated multi-exchange analysis.
CONCLUSION
Uptrick: Arbitrage Monitor is a versatile and customizable Pine Script™ indicator that highlights price differences for a specified symbol between two user-selected exchanges. Through signals, threshold-based alerts, and optional Automated detection across multiple exchanges, it aims to support traders in identifying potential arbitrage opportunities quickly and efficiently. This script makes no guarantees of profitability but can serve as a valuable tool to add to your trading toolkit. Always use caution when implementing arbitrage strategies, and be mindful of market risks, exchange fees, and latency.
ADDITIONAL DISCLOSURES
This script is provided for educational and informational purposes only. It does not constitute financial advice or a guarantee of performance. Users are encouraged to conduct thorough research and consider the inherent risks of arbitrage trading. Market conditions can change rapidly, and orders may fail to execute at desired prices, especially when large price discrepancies attract competition from other traders.
Lokesh(bank nifty option buying) MA Crossover with RSI use it directly in bank nifty option chart for 5 minute time frame specialy for put buying