Statistical Reliability Index (SRI)Statistical Reliability Index (SRI)
The Statistical Reliability Index (SRI) is a professional financial analysis tool designed to assess the statistical stability and reliability of market conditions. It combines advanced statistical methods to gauge whether current market trends are statistically consistent or prone to erratic behavior. This allows traders to make more informed decisions when navigating trending and choppy markets.
Key Concepts:
1. Extrapolation of Cumulative Distribution Functions (CDF)
What is CDF?
A Cumulative Distribution Function (CDF) is a statistical tool that models the probability of a random variable falling below a certain value.
How it’s used in SRI:
The SRI utilizes the 95th percentile CDF of recent returns to estimate the likelihood of extreme price movements. This helps identify when a market is experiencing statistically significant changes, crucial for forecasting potential breakouts or breakdowns.
Weight in SRI:
The weight of the CDF extrapolation can be adjusted to emphasize its impact on the overall reliability index, allowing customization based on the trader's preference for tail risk analysis.
2. Bias Factor (BF)
What is the Bias Factor?
The Bias Factor measures the ratio of the current market price to the expected mean price calculated over a defined period. It represents the deviation from the typical price level.
How it’s used in SRI:
A higher bias factor indicates that the current price significantly deviates from the historical average, suggesting a potential mean reversion or trend exhaustion.
Weight in SRI:
Adjusting the Bias Factor weight lets users control how much this deviation influences the SRI, balancing between momentum trading and mean reversion strategies.
3. Coefficient of Variation (CV)
What is CV?
The Coefficient of Variation (CV) is a statistical measure that expresses the ratio of the standard deviation to the mean. It indicates the relative variability of asset returns, helping gauge the risk-to-return consistency.
How it’s used in SRI:
A lower CV indicates more stable and predictable price behavior, while a higher CV signals increased volatility. The SRI incorporates the inverse of the normalized CV to reflect price stability positively.
Weight in SRI:
By adjusting the CV weight, users can prioritize consistent price movements over erratic volatility, aligning the indicator with risk tolerance and strategy preferences.
Interpreting the SRI:
1. SRI Plot:
The SRI plot dynamically changes color to reflect market conditions:
Aqua Line: Indicates uptrend stability, signaling statistically consistent upward movements.
Fuchsia Line: Indicates downtrend stability, where statistically reliable downward movements are present.
The overlay background shifts between colors:
Aqua Background: Signifies statistical stability, where trends are historically consistent.
Fuchsia Background: Indicates statistical instability, often associated with trend uncertainty.
Yellow Background: Marks choppy periods, where statistical data suggests that market conditions are not conducive to reliable trading.
2. SRI Volatility Plot:
Displays the volatility of the SRI itself to detect when the indicator is stable or unstable:
Blue Area Fill: Signifies that the SRI is stable, indicating trending conditions.
Yellow Area Fill: Represents choppy or unstable SRI movements, suggesting sideways or unreliable market conditions.
A Chop Threshold Line (dotted yellow) highlights the maximum acceptable SRI volatility before the market is considered too unpredictable.
3. Stability Assessment:
Stable Trend (No Chop):
The SRI is smooth and consistent, often accompanied by aqua or fuchsia lines.
Volatility remains below the chop threshold, indicating a low-risk, trend-following environment.
Chop Mode:
The SRI becomes erratic, and the volatility plot spikes above the threshold.
Marked by a yellow shaded background, indicating uncertain and non-trending conditions.
[Trend Identification:
Use the color-coded SRI line and background to determine uptrend or downtrend reliability.
Be cautious when the SRI volatility plot shows yellow, as this signals trading conditions may not be reliable.
Practical Use Cases:
Trend Confirmation:
Utilize the SRI plot color and background to confirm whether a detected trend is statistically reliable.
Chop Mode Filtering:
During yellow chop periods, it is advisable to reduce trading activity or adopt range-bound strategies.
Strategy Filter:
Combine the SRI with trend-following indicators (like moving averages) to enhance entry and exit accuracy.
Volatility Monitoring:
Pay attention to the SRI volatility plot, as spikes often precede erratic price movements or trend reversals.
Disclaimer:
The Statistical Reliability Index (SRI) is a technical analysis tool designed to aid in market stability assessment and trend validation. It is not intended as a standalone trading signal generator. While the SRI can help identify statistically reliable trends, it is essential to incorporate additional technical and fundamental analysis to make well-informed trading decisions.
Trading and investing involve substantial risk, and past performance does not guarantee future results. Always use risk management practices and consult with a financial advisor to tailor strategies to your individual risk profile and objectives.
Indicators and strategies
Balanced Price Range | Flux Charts💎 GENERAL OVERVIEW
Introducing our new Balanced Price Range (BPR) indicator! A Balanced Price Range is a trading concept used by price action traders. It is detected by finding overlapping area between two contrary Fair Value Gaps (FVGs). These areas can be used as entry points during market pullbacks. For more information about the process, please check the "HOW DOES IT WORK ?" section.
Balanced Price Range Features :
Balanced Price Range Detection : Identifies areas where bullish and bearish FVGs overlap, suggesting a zone of price equilibrium.
Customizable FVG & BPR Detection : You can fine-tune FVG detection and sensitivity for BPR detection to your liking.
Retest Labels : Bullish & Bearish retest labels will be rendered for BPRs.
Alerts : You can set alerts for Bullish & Bearish BPR detection and their retests.
🚩 UNIQUENESS
This indicator doesn't just detect standard FVGs but specifically looks for areas where bullish and bearish IFVGs (Invalidated Fair Value Gaps) overlap, defining a Balanced Price Range. It also actively manages and updates identified BPR zones, removing them when they are invalidated or remain untouched for a specified period. It highlights and alerts users to retests of established BPR zones, signaling potential trading opportunities. Users can tailor the appearance of the BPR zones and retest markers, as well as configure specific alerts for new BPR formations and retests.
📌 HOW DOES IT WORK ?
A Fair Value Gap generally occur when there is an imbalance in the market. They can be detected by specific formations within the chart. The indicator first detects bullish & bearish FVG zones according to their formations on chart. Then, they are dynamically tracked and flagged as invalidated if the price crosses them, turning them into IFVGs. When a FVG & IFVG of the same type overlaps, the indicator combines them into a single BPR of corresponding type. The detected BPR is updated as new data comes in, and renders retests labels as they occur. A bullish BPR can be used to find long trade entry opportunities, while a bearish BPR can be used to find short trade entry opportunities. Retests can also indicate potential movements in the corresponding direction of the BPR. Users can set-up alerts for BPR detection & BPR retests and will get notified as they occur.
⚙️ SETTINGS
Show Historic Zones: If enabled, invalidated or expired BPR zones will remain visible on the chart.
Balanced Price Range:
FVG Detection Method: Determines the criteria for the bar types forming the initial FVG.
Same: All three bars forming the FVG must be of the same type (all bullish or all bearish).
Mixed: The bar types must vary (a mix of bullish and bearish bars).
All: Bar types can vary or be the same.
FVG Invalidation Method: Determines which part of the candle (wick or close) invalidates the initial FVG.
BPR Invalidation Method: Determines which part of the candle (wick or close) invalidates the Balanced Price Range.
Sensitivity: Adjusts the sensitivity of FVG detection. Higher values may identify fewer, larger BPRs, while lower values may detect more, smaller BPRs.
Labels: Toggles the display of text labels on the identified zones.
Retests: Enables or disables the detection and visualization of BPR retests.
Consecutive Green Candles + 20% Move ScreenerConsecutive Green Candles Momentum Tracker
This indicator identifies powerful bullish momentum streaks in stocks, highlighting opportunities where consistent buying pressure has driven significant price increases.
The script tracks sequences of consecutive green (bullish) candles that collectively move a stock's price by more than 20%. It marks both the beginning of such streaks with a green label and their conclusion with a red arrow when price momentum finally reverses.
Perfect for traders looking to:
- Identify stocks experiencing strong directional momentum
- Spot potential reversal points after extended rallies
- Screen for securities with recent bullish strength
- Understand the magnitude of recent price runs
Simply adjust the minimum number of candles and percentage threshold to match your preferred momentum criteria.
5m Gold Strategy - Session Break + Previous Day High/LowHere is your complete Pine Script v5 code for TradingView that:
Implements your 5-minute Gold breakout strategy.
Uses previous day high/low levels.
Confirms entry based on 15-minute SMA trend (SMA 9 > SMA 21).
Marks session time.
Filters news time (pause trading 15 minutes before/after major red news from ForexFactory).
PolyBand Convergence System (PBCS)PolyBand Convergence System (PBCS)
The PolyBand Convergence System (PBCS) is an advanced technical analysis indicator that combines multiple polynomial regressions with statistical bands to identify trend strength and potential reversal zones.
Key Features
Multi-Degree Polynomial Analysis: Combines 1st, 2nd, 3rd, and 4th degree polynomial regressions into a composite regression line
Adaptive Statistical Bands: Uses percentile-based bands enhanced with standard deviation multipliers
Asymmetric Volatility Measurement: Separately calculates upside and downside volatility for more accurate band placement
Smart Trend Detection: Identifies bullish, bearish, or neutral market conditions based on price position relative to bands
How It Works
PBCS creates a composite regression line from multiple polynomial fits to better capture the underlying price structure. This line is then surrounded by adaptive bands that represent statistical thresholds for price movement. When price breaks above the upper band, a bullish trend is signaled; when it breaks below the lower band, a bearish trend is indicated.
Customization Options
Regression Settings: Adjust source data, lookback period, and smoothing parameters
Percentile Controls: Fine-tune the statistical thresholds for upper and lower bands
Volatility Sensitivity: Modify standard deviation multipliers to control band width
Visual Preferences: Choose from multiple color schemes to match your trading platform
Disclaimer
This indicator is provided for educational and informational purposes only and does not constitute investment advice. Trading involves risk and may result in financial loss. Always perform your own research and consult with a qualified financial advisor before making any trading decisions.
Kernel Regression Bands SuiteMulti-Kernel Regression Bands
A versatile indicator that applies kernel regression smoothing to price data, then dynamically calculates upper and lower bands using a wide variety of deviation methods. This tool is designed to help traders identify trend direction, volatility, and potential reversal zones with customizable visual styles.
Key Features
Multiple Kernel Types: Choose from 17+ kernel regression styles (Gaussian, Laplace, Epanechnikov, etc.) for smoothing.
Flexible Band Calculation: Select from 12+ deviation types including Standard Deviation, Mean/Median Absolute Deviation, Exponential, True Range, Hull, Parabolic SAR, Quantile, and more.
Adaptive Bands: Bands are calculated around the kernel regression line, with a user-defined multiplier.
Signal Logic: Trend state is determined by crossovers/crossunders of price and bands, coloring the regression line and band fills accordingly.
Custom Color Modes: Six unique color palettes for visual clarity and personal preference.
Highly Customizable Inputs: Adjust kernel type, lookback, deviation method, band source, and more.
How to Use
Trend Identification: The regression line changes color based on the detected trend (up/down)
Volatility Zones: Bands expand/contract with volatility, helping spot breakouts or mean-reversion opportunities.
Visual Styling: Use color modes to match your chart theme or highlight specific market states.
Credits:
Kernel regression logic adapted from:
ChartPrime | Multi-Kernel-Regression-ChartPrime (Link in the script)
Disclaimer
This script is for educational and informational purposes only. Not financial advice. Use at your own risk.
Position Size Calculator (Fixed % or ATR-based Stop Support)Position Size Calculator (Fixed % or ATR-based Stop Support)
Purpose and Background
This indicator allows traders to calculate appropriate position sizes directly on the chart, based on a key rule:
“What percentage of your capital are you willing to risk per trade?”
While many traders focus on entries and indicators, position sizing and risk allocation are often overlooked.
This tool visualizes and simplifies the “1% risk rule” promoted by IBD (Investor’s Business Daily) and William J. O’Neil, helping both beginners and experienced traders maintain disciplined capital management.
Key Features
Automatically calculates and displays:
・ Position Size
The number of units (shares, contracts, coins) you can hold based on your stop-loss range and risk allowance.
・ Stop Price
The price level at which your stop-loss would be triggered.
・ Risk Amount
The maximum loss per trade based on your portfolio size and risk percentage.
Two stop-loss modes available:
・ Fixed % Mode
O’Neil suggests using up to 8% stop-loss in uptrends and keeping it tighter (around 4%) in corrections. This mode allows flexible manual settings.
・ ATR-Based Mode
Uses the asset’s average volatility to dynamically calculate stop-loss width using the Average True Range (ATR).
ATR Usage and Recommended Settings
ATR helps you avoid noise-based stop-outs and align your risk with market volatility.
There are two parameters you can adjust:
・ ATR Length
Defines how many bars are used to calculate the average range.
・Shorter values (5–10) respond faster for day trades
・Longer values (14–21) offer smoother ranges for swing/position trades(Default is 14)
・ATR Multiplier
Sets how wide the stop-loss is by multiplying the ATR value:
・Day trading: 1.0–1.5×
・Swing trading: 1.5–2.5×
・Position trading: 2.0–3.0×
Practical Examples: Risk % × Stop-Loss % → Max Positions
This tool helps estimate how many positions you can hold in a portfolio based on your risk per trade and stop width.
Examples:
・Risk 0.5%, Stop 8% → Max 16 positions
・Risk 0.5%, Stop 4% → Max 8 positions
・Risk 1.0%, Stop 8% → Max 8 positions
・Risk 1.0%, Stop 4% → Max 4 positions
・Risk 2.0%, Stop 8% → Max 4 positions
・Risk 2.0%, Stop 4% → Max 2 positions
These assume worst-case scenarios where all positions are stopped out simultaneously within your overall portfolio risk limit.
Display & Customization Options
・ Currency Display: USD or JPY
No currency conversion is applied. Select based on your trading region (e.g., USD for U.S. stocks, JPY for Japanese stocks).
Support for additional currencies can be added upon request.
・ Show/Hide Decimal Places
Toggle decimals for better visibility. Ideal for fractional assets like crypto and CFDs.
・ Position of Output
Choose from top-right, middle-right, or bottom-right on the chart.
・ Text Display Size: Large / Normal / Small
Choose the table size that best suits your viewing preferences.
・ Explanation of Displayed Labels
・ Position Size : Units to buy/sell based on risk
・ Stop Price : Price where stop-loss is triggered
・ Risk Amount : Max loss allowed for the trade
How to Use
1、Set your Portfolio Size
2、Choose your Currency (USD or JPY)
3、Input Risk per Trade (%) (e.g., 1%)
4、Select Stop Loss Method
・ Fixed % : Enter a manual stop-loss percent (e.g., 8%)
・ ATR : Then also enter:
・ ATR Length : Number of bars used to calculate ATR (e.g., 14)
・ ATR Multiplier : Factor applied to ATR to determine stop-loss (e.g., 2.0)
5、Adjust decimals, label position, or text size as needed
6、The result is displayed in a table directly on your chart
Notes
・ Uses the current close price (close) as the basis
Real-time bid/ask data isn't available in Pine Script, so the close price is used for consistent results.
・ No buy/sell signals are generated
This tool is for position sizing and risk calculation only, not trade entries.
Recommended For
・Traders who want precise, rule-based position sizing
・Users following IBD or O’Neil’s 1% risk principle
・Those incorporating ATR for stop-loss strategies
・Multi-asset traders (stocks, crypto, CFDs, etc.)
・ Anyone who wants to calculate position size and risk without using a calculator or external tool—fully inside TradingView
Ind JDV 2.2 PRO🛡️ Ind JDV 2.0 PRO – Chandelier Exit + FVG + EMA (Precise Entry)
Description:
Ind JDV 2.0 PRO is an advanced indicator that combines three powerful confirmations to find the best trading opportunities:
Chandelier Exit: Filters trade direction based on volatility breakouts controlled by ATR.
Fair Value Gap (FVG): Detects price inefficiency zones at their very first appearance.
EMA (Exponential Moving Average): Acts as a trend filter to ensure trading with the dominant market flow.
🔍 Key Features:
Marks only one precise signal on the candle where the FVG starts.
Confirms the trend using a 150-period EMA (fully adjustable).
Optionally draws Take Profit and Stop Loss target lines for clear visual guidance.
Background color changes (green or red) to reflect the active market trend.
Built-in automatic alerts for buy or sell opportunities.
Optimized code for maximum speed across all timeframes.
✅ Perfect for trading indices, forex, cryptocurrencies, and stocks.
✅ Compatible with all timeframes (5m, 15m, 1H, 4H, Daily).
✅ Fully customizable to fit scalping, intraday, or swing trading styles.
⚙️ Default Parameters:
ATR Period: 10
ATR Multiplier: 3.0
EMA Period: 150
FVG Lookback: 3 candles
Take Profit: 100 points
Stop Loss: 50 points
(All values are adjustable in settings.)
📈 How it works:
The indicator analyzes price structure.
Detects a valid Fair Value Gap (FVG) formation.
Confirms the breakout with a Chandelier Exit signal.
Verifies price alignment with the EMA trend.
Triggers a single entry signal (BUY or SELL) exactly on the first candle that meets all conditions.
🚀 Optimize your trading by focusing on high-probability zones, supported by solid confirmations and clean visual signals.
Add Ind JDV 2.0 PRO to your trading arsenal and take your strategy to the next level! 🔥
Mean Reversion Bundle [ActiveQuants]The Mean Reversion Bundle indicator is a powerful and versatile toolkit designed for traders who specialize in mean reversion strategies . This comprehensive bundle integrates eight key technical indicators renowned for their ability to identify potential price reversals, overbought/oversold conditions, and market exhaustion points. By consolidating Moving Averages (Fast & Slow) , Bollinger Bands , RSI (with Divergence) , Stochastic , Keltner Channels , Standard Pivot Points , ATR , and the Choppiness Index into a single, efficient script, it significantly streamlines chart analysis and empowers robust strategy development.
This bundle operates on the core principle of mean reversion: prices tend to revert to their historical average or mean over time . The included indicators provide multiple perspectives to assess these potential turning points:
Dynamic Support/Resistance: Moving Averages, Bollinger Bands, Keltner Channels, Pivot Points.
Momentum Oscillators: RSI, Stochastic.
Overbought/Oversold Conditions: RSI, Stochastic, Bollinger Bands.
Volatility Assessment: ATR, Bollinger Bands, Keltner Channels.
Market Condition Filter: Choppiness Index (Range vs. Trend).
Reversal Signals: RSI Divergence, Bollinger Band recovery.
By enabling users to selectively activate, extensively customize, and visualize these tools ( often with multi-timeframe capabilities ), the Mean Reversion Bundle facilitates a nuanced and layered approach to identifying high-probability mean reversion setups.
█ KEY FEATURES
All-in-One Mean Reversion Suite: Access eight distinct mean reversion indicators within a single TradingView script slot, saving valuable indicator space.
Modular Design: Easily toggle each indicator (Fast MA, Slow MA, Bollinger Bands, RSI, Stochastic, Keltner Channels, Pivot Points, ATR, Choppiness Index) On or Off through the intuitive settings menu to tailor your analysis.
Deep Customization: Fine-tune a wide array of parameters for every indicator, including lengths, sources, MA types, colors, line styles, levels, and specific calculation methods to precisely match your trading strategy and the asset's characteristics.
Multi-Timeframe (MTF) Capability: Configure most indicator components to analyze data from a different timeframe than your main chart, providing crucial higher-level context for mean reversion signals (e.g., daily RSI on an hourly chart).
Integrated Alert System: Pre-built alert conditions for critical mean reversion events such as:
- Price Crossover/Crossunder (Fast MA)
- Price Crossover/Crossunder (Slow MA)
- Lower Bollinger Band Recovery
- Upper Bollinger Band Recovery
- Bullish RSI Divergence
- Bearish RSI Divergence
Set up these alerts directly through TradingView's alert creation dialog. (See section on "█ SETTING UP ALERTS " for more details).
Advanced MA & RSI Smoothing: Option to apply a secondary smoothing MA or even Bollinger Bands directly to the Fast MA, Slow MA, and RSI lines for refined signal generation.
Sophisticated Pivot Points Module: Includes multiple Pivot Point types (Traditional, Fibonacci, Woodie, Classic, DM, Camarilla) with flexible timeframes (Daily to Decennially) and dynamic drawing of historical levels.
RSI Divergence Detection: Automatically plots potential bullish and bearish divergences between price and the RSI, a classic reversal signal.
█ USER INPUTS
The settings panel is organized into distinct sections for each of the 8 core indicator components:
Fast MA & Slow MA: On/Off, MA Type, Source, Length, Color, Line Width, Smoothing Type (None, MA, or MA + BBs), Smoothing Length, BB StdDev (if smoothing with BBs), Timeframe, Wait TF Close.
Bollinger Bands: On/Off, Length, Basis MA Type, Source, StdDev Multiplier, Offset, Colors, Timeframe, Wait TF Close.
RSI: On/Off, Source, Length, Overbought/Middle/Oversold Levels, Color, Line Width, Smoothing Type (None, MA, or MA + BBs), Smoothing Length, BB StdDev (if smoothing with BBs), Plot Divergence, Divergence Lookback Left/Right, Timeframe, Wait TF Close.
Stochastic: On/Off, %K Length, %K Smoothing, %D Smoothing, Overbought/Middle/Oversold Levels, Colors, Timeframe, Wait TF Close.
Keltner Channels: On/Off, Length, Multiplier, Source, Use Exponential MA (for basis), Bands Style (ATR, TR, Range), ATR Length, Colors, Timeframe, Wait TF Close.
Pivot Points: On/Off, Type, Pivots Timeframe (Anchor), Number of Pivots Back, Use Daily-based Values, Show Labels, Show Prices, Labels Position, Line Width, Line Style, and individual color/visibility toggles for P, S1-S5, R1-R5.
ATR: On/Off, Length, Smoothing Type, Color, Timeframe, Wait TF Close.
Choppiness Index: On/Off, Length, Offset, Upper/Middle/Lower Band Levels, Color, Timeframe, Wait TF Close.
█ SETTING UP ALERTS
The Mean Reversion Bundle comes with several pre-configured alert conditions to notify you of potential trading opportunities. To set up an alert:
Click the " Alert " button (clock icon) on TradingView's right-hand toolbar or top panel.
In the " Condition " dropdown, select " Mean Reversion Bundle ".
A second dropdown will appear, allowing you to choose from the specific alert conditions built into the script (e.g., " Price Crossover (Fast MA) ", " Bullish RSI Divergence ", " Lower Bollinger Band Recovery ").
You can also create more complex alerts by selecting one of the indicator's plotted lines (e.g., " RSI ", " Stochastic %K ", " Bollinger Band Basis ") in the first condition box, then choosing a comparison (e.g., " Crossing Down ", " Greater Than "), and then selecting another value or plotted line from the indicator in the third box.
Choose your preferred " Trigger " option:
- " Only Once ": The alert triggers the first time the condition is met, even on an unclosed (intra-bar) candle. The alert then deactivates.
- " Once Per Bar Close ": (Recommended for most mean reversion signals) The alert triggers only after the current bar closes if the condition was true on that closed bar. This ensures signals are based on confirmed price action and allows the alert to re-trigger on subsequent bars if the condition remains true.
- Other options like " Once Per Bar " or " Once Per Minute " are also available for different needs.
Customize the alert name, message, and notification preferences.
Click " Create ".
█ STRATEGY EXAMPLES
The following examples are for illustrative purposes only to demonstrate how indicators in this bundle can be combined for mean reversion strategies. They are not financial advice. Always conduct thorough backtesting and research.
1. Bollinger Band Reversal with RSI Confirmation
Goal: Identify potential reversals when price touches an outer Bollinger Band and RSI shows overbought/oversold conditions.
Setup: Enable Bollinger Bands (e.g., 20,2), RSI (e.g., 14), and optionally the Choppiness Index.
Entry (Long):
- Price touches or briefly closes below the Lower Bollinger Band.
- RSI is in the oversold region (e.g., below 30) or shows bullish divergence.
- Optional Filter: Choppiness Index > 61.8 (indicating a ranging market favorable for BB mean reversion).
- Enter on a confirming candle (e.g., price closes back inside the Lower Band, or a bullish candle pattern forms).
Entry (Short): Reverse logic for Upper Bollinger Band and overbought RSI (e.g., above 70) or bearish divergence.
Management: Stop-loss beyond the recent swing low/high or a multiple of ATR. Target the Bollinger Band basis line or the opposite band.
2. Stochastic Oversold/Overbought with Pivot Point Support/Resistance
Goal: Trade bounces from key Pivot Point levels when confirmed by Stochastic extremes.
Setup: Enable Stochastic (e.g., 14,3,3), Pivot Points (e.g., Daily Traditional), and Fast MA (e.g., 9 EMA) for short-term trend context.
Entry (Long):
- Price approaches a significant Pivot Support level (S1, S2).
- Stochastic %K and %D lines are in the oversold region (e.g., below 20) and ideally show a bullish crossover (%K crosses above %D).
- Optional Filter: Price is above the Fast MA, or the Fast MA starts to slope up.
- Enter on signs of price rejection at the Pivot level.
Entry (Short): Reverse logic for Pivot Resistance levels (R1, R2) and overbought Stochastic (e.g., above 80) with a bearish crossover.
Management: Stop-loss below the Pivot Support (for longs) or above Pivot Resistance (for shorts). Target the next Pivot level or a fixed risk-reward ratio.
3. RSI Divergence at Keltner Channel Extremes
Goal: Capitalize on weakening momentum (divergence) as price tests the outer Keltner Channel bands.
Setup: Enable RSI (with Divergence plotting enabled), Keltner Channels (e.g., 20,2 EMA basis, ATR 10), and ATR (for stop placement).
Entry (Long):
- Price is testing or near the Lower Keltner Channel band.
- A Bullish RSI Divergence is plotted (price makes a lower low, but RSI makes a higher low).
- Enter once the divergence is confirmed and price shows signs of turning up.
Entry (Short):
- Price is testing or near the Upper Keltner Channel band.
- A Bearish RSI Divergence is plotted (price makes a higher high, but RSI makes a lower high).
- Enter once divergence is confirmed and price shows signs of turning down.
Management: Place stop-loss based on ATR (e.g., 1.5x ATR below entry for longs) or beyond the Keltner Channel. Target could be the Keltner basis line or a measured move.
█ CONCLUSION
The Mean Reversion Bundle offers a sophisticated yet user-friendly suite of tools essential for traders focusing on mean reversion. By consolidating these powerful indicators, providing extensive customization , multi-timeframe analysis , and integrated alerts , this bundle simplifies the analytical workflow and aids in the development of more robust and nuanced trading strategies. Whether identifying potential exhaustion points, confirming overbought/oversold conditions, or finding precise entry near dynamic support/resistance, this bundle is a versatile asset for your technical analysis toolkit.
█ IMPORTANT NOTES
⚠ Parameter Optimization: The default settings are starting points. Always adjust indicator parameters (lengths, multipliers, levels) based on the specific asset, its volatility, and the timeframe you are trading. Thorough backtesting is crucial.
⚠ Multi-Timeframe Dynamics: Using the " Timeframe " input can be very powerful. If " Wait TF Close " is enabled (default), signals from higher timeframes will only update upon the close of that higher timeframe bar. Disabling it may lead to signals changing intra-bar.
⚠ Confluence is Key: Avoid relying on a single indicator. The strength of this bundle lies in combining signals from multiple indicators to build a confluence case for a trade.
⚠ Chart Clarity: While many tools are available, only enable those pertinent to your current strategy to maintain a clear and actionable chart.
⚠ Signal Confirmation: Indicator signals are typically finalized on bar close. Be cautious when acting on intra-bar signals, as they can change before the bar is complete. Using " Once Per Bar Close " for alerts is generally recommended for mean reversion signals.
█ RISK DISCLAIMER
Trading involves a substantial risk of loss and is not suitable for all investors. The Mean Reversion Bundle indicator is provided for educational and informational purposes only . It does NOT constitute financial advice or a recommendation to buy or sell any asset. Indicator signals identify potential patterns based on historical data but do not guarantee future price movements or profitability. Always conduct your own thorough research, utilize multiple sources of information, and implement robust risk management practices before making any trading decisions. Past performance is not indicative of future results.
📊 Happy trading! 🚀
Position Size Calculatorusing the settings you can edit your portfolio balance and desired risk, helps you calculate everything required about position sizing and helps you NOT lose more than intended + 10% deviation on top of that.
iFVG (BPR)
This indicator detects Fair Value Gaps (FVGs) and Inversion Zones (iFVGs) based concept from the ICT methodology.
An iFVG forms when a bullish and a bearish FVG overlap, creating a double imbalance zone. These are high-reaction points often targeted by smart money.
🔷 What It Detects
Bullish FVG: When the high of Candle 1 is lower than the low of Candle 3
Bearish FVG: When the low of Candle 1 is higher than the high of Candle 3
iFVG (or BPR): When a bullish and bearish FVG overlap, forming a double imbalance zone
🔷Mitigation Logic
An FVG or BPR becomes an iFVG when price closes against its original bias Once this happens, the zone is reclassified as a potential support or resistance (iFVG)
If price later mitigates the iFVG, all visual elements are automatically removed to keep the chart clean
🔷Visual Output
Standard FVGs: Customizable lines between Candle 1 and Candle 3
iFVGs (mitigated BPRs): Adjustable and highlighted rectangles to show the full zone
Mitigation Type: FVG or iFVG zones disappear when 50% of the zone is reached
🔷Custom Settings
Show Last Zones: Set how many recent zones to display on the chart (max 100)
Mitigation Type: Based on the percentage of zone coverage
Color & Style: Customize the appearance of FVG and iFVG zones
🔷 Use Case
This indicator is designed for real-time institutional analysis, helping traders identify:
Recent imbalances (FVGs)
Confluence zones (iFVGs = BPRs)
High-reaction points in the market
Ideal when combined with market structure, liquidity levels, and Kill Zones
Best used in combination with market structure, liquidity zones, and Kill Zone timing .
Money Flow Index + VWAP Trend FilterThis indicator combines the volume-weighted momentum analysis of the Money Flow Index (MFI) with the trend-filtering capabilities of the Volume Weighted Average Price (VWAP) to generate reliable buy and sell signals. By requiring MFI overbought/oversold conditions to align with the trend direction relative to VWAP, this indicator reduces false signals, making it ideal for trading on timeframes like 5-minute to 4-hour charts.
How It Works
The indicator uses two technical components to produce signals:
Money Flow Index (MFI) for Momentum Extremes:
The MFI, calculated over a default 14-period length, measures buying and selling pressure using price and volume data. A buy signal is triggered when MFI crosses above the oversold level (default: 20), indicating potential buying pressure, while a sell signal occurs when MFI crosses below the overbought level (default: 80), suggesting selling pressure.
Volume Weighted Average Price (VWAP) for Trend Direction:
The VWAP calculates the average price of an asset, weighted by volume, resetting at the start of each trading session (e.g., daily for stocks). It acts as a dynamic support/resistance level. A bullish trend is confirmed when the price is above the VWAP, and a bearish trend when the price is below the VWAP. This ensures MFI signals are filtered to align with the broader trend direction, plotted as a purple line on the chart.
Signal Generation
Signals are generated using the previous bar’s values to prevent repainting:
Buy Signal: The MFI crosses above the oversold level, and the price is above the VWAP (bullish trend). Displayed as a green upward triangle below the bar.
Sell Signal: The MFI crosses below the overbought level, and the price is below the VWAP (bearish trend). Displayed as a red downward triangle above the bar.
Savitzky Flow Bands [ChartPrime]An advanced trend-following tool that applies the Savitzky-Golay smoothing algorithm to price and dynamically adapts trend bands to visualize directional bias and trend strength.
savitzky_golay_filter_w_15_vectors(source) =>
float sum = 0.0
float polynomial = 0.0
float coefficients = array.new(16)
// Predefined 15 coefficients
for i = -4 to 4
coefficients.set(i + 4, i) // from -4 to 5
if i == 4
for j = 5 to -4
for g = 8 to 15
coefficients.set(g, j) // from 5 to -4
// Calculate normalization factor as the sum of absolute values of coefficients
float norm_factor = coefficients.sum()
// Loop through coefficients and calculate the weighted sum
for i = 0 to coefficients.size()-1
sum := sum + coefficients.get(i) * source
// Calculate the smoothed value
for i = 1 to length-1
polynomial := math.sum(sum / norm_factor, i) / i
polynomial
⯁ KEY FEATURES & HOW TO USE
Savitzky-Golay Filtered Line (Basis):
Smooths out price noise using the Savitzky-Golay method, offering a more refined trend path than traditional moving averages. This centerline acts as the trend anchor and visually changes color depending on its slope to reflect the active trend direction.
Dynamic Trend Bands (Upper/Lower):
Constructed from the filtered line with a dynamic offset based on recent price volatility (ATR). These bands shift based on price pressure and are locked once price closes beyond them.
Helpful for identifying breakout moments or exhaustion areas where reversals are likely.
Trend Direction Detection:
A directional signal is confirmed when price breaks and closes above the upper band (uptrend) or below the lower band (downtrend).
Provides a clear and systematic way to identify when a trend begins.
Trend Duration Counter (Visual Decay Line):
A fading overlay line shows how long a trend has been active since the last reversal. The longer the trend persists, the more transparent this extension becomes.
This visual fading effect helps traders anticipate potential trend exhaustion and prepare for reversals or take-profit zones.
Reversal Signals (Diamond Markers):
Diamond shapes are plotted at each market shift, allowing users to visually pinpoint when the trend has flipped.
These markers act as decision zones for entry, exit, or stop-loss adjustments based on directional flow changes.
Color-Based Bar and Candle Painting:
Candles are painted green in uptrends and orange in downtrends, providing an intuitive glance at trend state without needing to interpret numbers.
Helps users stay aligned with the trend visually and avoid counter-trend entries.
⯁ CONCLUSION
The Savitzky Flow Bands indicator offers a modernized, visually rich way to track trend shifts using a scientific smoothing method. With dynamic trend envelopes, color-coded cues, and visual markers, it equips traders with a structured framework to follow the market's flow and make data-driven decisions. Ideal for swing traders, momentum strategists, or any trader looking to trade in sync with the prevailing trend.
Open-Close / High-Low RibbonThis indicator visualizes smoothed Open, Close, High, and Low price levels as continuous lines, helping users observe underlying price structure with reduced noise. The Open and Close values are shaded to highlight bullish (green) or bearish (red) zones based on their relationship. Smoothing is applied using a simple moving average (SMA) over a user-defined length to make trends easier to interpret. This tool can be useful for identifying directional bias, trend shifts, or areas of support and resistance on any timeframe.
Spread/Range Oscillator + Signal + HistogramThe Spread/Range Oscillator is a technical analysis tool designed to assess market momentum by evaluating the relationship between price movement and volatility.
Calculation
Spread: The difference between the closing and opening prices of a candle (close - open).
Range: The difference between the high and low prices of a candle (high - low).
Oscillator: The spread divided by the range (spread / range). This ratio provides a normalized measure of price movement within each candle.
Smoothed Oscillator: An Exponential Moving Average (EMA) applied to the oscillator over a user-defined period (Smoothing Length) to reduce noise.
Signal Line: An EMA of the Smoothed Oscillator over another user-defined period (Signal Line Length) to identify potential trend changes.
Histogram: The difference between the Smoothed Oscillator and the Signal Line (Smoothed Oscillator - Signal Line). Positive values suggest bullish momentum, while negative values indicate bearish momentum.
Inputs
Smoothing Length (EMA): Determines the period for smoothing the oscillator.
Signal Line Length (EMA): Sets the period for the EMA applied to the Smoothed Oscillator to generate the Signal Line.
Visual Representation
Smoothed Oscillator: Plotted as a line representing the smoothed momentum of price movements.
Signal Line: Displayed as a line serving as a reference to identify potential crossovers and trend changes.
Histogram: Rendered as bars, with positive values indicating bullish momentum and negative values indicating bearish momentum.
Zero Line: A horizontal line at zero to distinguish between bullish and bearish territories.
Applications
Momentum Analysis: Identify periods of strong buying or selling pressure based on the oscillator's position relative to the zero line.
Trend Confirmation: Use crossovers between the Smoothed Oscillator and Signal Line to confirm potential trend reversals or continuations.
Divergence Detection: Spot divergences between price action and the oscillator to anticipate possible market turning points.
This indicator is open-source and intended for educational purposes. It is recommended to use it in conjunction with other forms of analysis and risk management practices before making trading decisions.
Multi-Layer Volume Profile [BigBeluga]A powerful multi-resolution volume analysis tool that stacks multiple profiles of historical trading activity to reveal true market structure.
This indicator breaks down total and delta volume distribution across time at four adjustable depths — enabling traders to spot major POCs, volume shelves, and zones of price acceptance or rejection with unmatched clarity.
🔵 KEY FEATURES
Multi-Layer Volume Profiles:
Up to 4 separate volume profiles are stacked on the chart:
- Profile 1: Full period
- Profile 2: Half-length
- Profile 3: Quarter-length
- Profile 4: One-eighth-length
This layering helps traders assess confluence across different time horizons.
Custom Bin Resolution:
Each profile uses a customizable number of bins to control visual precision.
More bins = higher granularity, fewer bins = smoother profile.
Precise POC Highlighting:
The price level with the maximum traded volume in each profile is highlighted with a thick blue POC line.
This key level shows the most accepted price for each period.
Total and Delta Volume Labels:
- Total Volume: Displays cumulative volume over the profile period at the top of the profile box.
- Delta Volume: The difference between bullish and bearish volume is labeled at the base, showing directional pressure.
Positive delta = buyer dominance, negative delta = seller dominance.
Range Levels:
Each profile includes horizontal reference lines showing its high, low, bounds.
These edges often align with price reaction zones and become future resistance/support.
🔵 HOW IT WORKS
For each active profile, the indicator:
- Collects price range (highs/lows) across the selected `length`
- Divides this range into equal bins
- Assigns volume into bins based on candle close location
- Aggregates volume per bin to form the profile (polylines)
Separately tracks:
- Total volume (sum of all candles in range)
- Delta volume (sum of candle volumes: positive for bullish, negative for bearish closes)
Highlights the bin with maximum volume (POC)
and marks it with a thick blue line.
Adds auxiliary lines for high/low of each profile box
and total/delta volume tags with tooltips.
🔵 USAGE
Spot Acceptance Zones:
Thick, flat areas on the profile show where price stayed longest — ideal for building positions.
Identify Rejection Zones:
Thin volume areas signal price rejection and are often used for stop placement or entries.
Delta Confirmation:
Use strong positive/negative delta readings as directional bias confirmation for breakout trades.
Confluence Detection:
Watch for overlapping POCs between layers to identify extremely strong support/resistance zones.
🔵 CONCLUSION
Multi-Layer Volume Profile equips traders with a deeply layered market structure view.
Whether you're scalping intraday levels or analyzing macro support zones, the ability to stack volume perspectives, visualize directional delta, and anchor POCs provides an edge in anticipating market moves.
Use this tool to validate entries, confirm structure, and make more informed, volume-aware trading decisions.
Simple Portfolio System | QuantumResearchStatic Allocation Engine for Smarter Crypto Exposure
The Simple Portfolio System (SPS) by QuantumResearch is a lightweight yet powerful asset allocation framework, designed for investors who want a smarter, more disciplined alternative to passive buy-and-hold. SPS allocates capital across four customizable assets — BTC, ETH, SOL, and SUI — using a volatility-adjusted momentum engine powered by the proprietary AVWO indicator.
🔍 Key Features:
✅ Adaptive Allocation Logic
Every day, the system evaluates trend strength using the AVWO oscillator. Each asset showing a bullish signal receives a fixed 25% portfolio allocation.
📉 Dynamic Cash Protection
If no asset is trending, SPS automatically shifts to 100% cash, minimizing exposure during sideways or bearish market phases.
📈 Equity Curve Overlay
Compare the strategy's performance against traditional Buy & Hold — both equity curves are plotted for clear benchmarking.
🧠 Proprietary Signal Engine
Powered by AVWO, a custom volatility-weighted oscillator developed by QuantumResearch, designed to filter noise and highlight adaptive trend signals.
📋 Live Performance Dashboard
Real-time metrics include:
Sharpe Ratio
Sortino Ratio
Omega Ratio
Max Drawdown (%)
Current Asset Allocations & Weights
⚙️ System Logic Overview:
Up to four assets analyzed: BTC, ETH, SOL, SUI
If one or more assets are detected as trending, each receives 25% allocation
If none are trending, capital remains unallocated (cash)
Allocation signals are recalculated daily
Backtest begins: 03 May 2023
📌 Use Case:
This system is ideal for:
-Investors seeking to avoid overexposure during weak or range-bound markets
-Traders who want to capture clear trend opportunities
-Portfolio builders looking to benchmark adaptive exposure vs. passive HODL strategies
Built by QuantumResearch — engineered for simplicity, clarity, and tactical trend participation.
⚠️ Important Disclaimer:
Past performance is not indicative of future results. All trading strategies carry risk.
This tool is provided for educational and research purposes only.
Not financial advice. Always conduct your own analysis and consult with a financial advisor before making investment decisions.
Aggregated VolumeThis is the volume for crypto instruments. The volume in crypto instruments is different from the volume in stock or forex instruments. Because in crypto instrument at the same coin, for example bitcoin, there are differences in volume appearing on chart in Tradingview between exchanges. For example the exchanges on Binance and OKX, and between the spot market and the future or perpetual market, even though the transaction is in the same coin, bitcoin, there are differences in volume appearing on chart.
For those of us who trade relying on base volume as the main analysis in trading or investing, it is important to see the differences in volume between exchanges on Bitget, Binance, Bybit, and others, that Tradingview does not display the total transaction volume on the chart, but only the transaction volume per exchange, that does not describe the reality of the transaction volume. Therefore we need an indicator that totals volume on all exchanges, both spot and future / perpetual markets.
This indicator is called Aggregated Volume, which is the total volume of the exchanges: Binance, Bybit, OKX, Coinbase, Bitget, Kukoin, Kraken, Cryptocom, and Mexc. We chose these exchanges because they are the top 9 exchanges in the world that dominate the crypto market.
Therefore, this indicator appearing the total volume of transactions made on the 9 exchanges, both spot and perpetual, and will be summed into one volume indicator called " Aggregated Volume ".
RSI Divergence Candlestick SwiftEdge// RSI Divergence Candlestick SwiftEdge
//
// Overview:
// RSI Divergence Candlestick SwiftEdge is a unique oscillator that transforms the traditional Relative Strength Index (RSI) into a candlestick format, combined with advanced divergence detection. This indicator is designed to help traders identify momentum shifts and potential reversals by visualizing RSI as candlesticks and highlighting both regular and hidden divergences between price and RSI. Unlike standard RSI indicators, this tool provides a more intuitive, price-like representation of RSI movements, making it easier to spot trends and reversals in momentum.
//
// Why This Combination?
// The combination of RSI candlesticks and divergence detection serves a dual purpose:
// 1. RSI Candlesticks: By presenting RSI as candlesticks, traders can apply familiar price action techniques (such as identifying trends, reversals, or consolidation patterns) directly to RSI. This format makes it easier to see momentum shifts in a way that resembles price movements.
// 2. Divergence Detection: Regular and hidden divergences between price and RSI often signal potential reversals or trend continuations. This indicator automatically identifies these divergences and draws lines to connect the pivot points, helping traders spot high-probability setups without manual analysis.
//
// How It Works:
// - RSI Candlesticks: The indicator calculates the RSI using a user-defined length (default 14). Each candlestick is constructed as follows:
// * Open: The RSI value from the previous bar.
// * Close: The current RSI value.
// * High/Low: Estimated by looking at the highest and lowest RSI values over a short lookback period (default 3 bars), simulating wicks to mimic price candlestick behavior.
// The candlesticks are colored green for upward momentum (close > open) and red for downward momentum (close < open), with gray wicks for clarity.
// - Divergence Detection: The indicator identifies pivot highs and lows in both price and RSI using a pivot lookback period (default 5 bars). It then checks for four types of divergences:
// * Regular Bullish Divergence: Price makes a lower low, but RSI makes a higher low, indicating potential reversal to the upside.
// * Regular Bearish Divergence: Price makes a higher high, but RSI makes a lower high, indicating potential reversal to the downside.
// * Hidden Bullish Divergence: Price makes a higher low, but RSI makes a lower low, suggesting trend continuation to the upside.
// * Hidden Bearish Divergence: Price makes a lower high, but RSI makes a higher high, suggesting trend continuation to the downside.
// Divergence lines are drawn between the RSI pivot points in the oscillator window and optionally on the price chart. Regular divergences use solid lines, while hidden divergences use dashed lines, with green for bullish and red for bearish signals.
// - Overbought/Oversold Restriction: By default, divergences are restricted to overbought (RSI > 70) or oversold (RSI < 30) zones to filter out less reliable signals. This can be disabled in the settings.
//
// How to Use:
// 1. Add the indicator to your chart to see RSI displayed as candlesticks in the oscillator window.
// 2. Look for RSI candlestick patterns:
// * Green candlesticks indicate increasing momentum; red candlesticks indicate decreasing momentum.
// * Use the wicks to identify overextensions in momentum, similar to price candlesticks.
// 3. Identify divergences:
// * Regular bullish/bearish divergences (solid lines) may signal reversals.
// * Hidden bullish/bearish divergences (dashed lines) may signal trend continuations.
// * Divergence lines are drawn in the RSI window and optionally on the price chart (toggle in settings).
// 4. Adjust settings:
// * RSI Length (default 14): Controls the sensitivity of the RSI calculation.
// * Wick Lookback (default 3): Determines how far back to look for RSI highs/lows to create wicks.
// * Pivot Lookback (default 5): Controls the sensitivity of pivot point detection for divergence.
// * Restrict Divergence (default true): Limits divergences to overbought/oversold zones.
// * Show Divergence on Chart (default true): Toggles whether divergence lines appear on the price chart.
//
// Use Case:
// This indicator is ideal for swing traders and reversal hunters looking to combine momentum analysis with price action techniques. The RSI candlestick format allows traders to apply chart patterns directly to RSI, while the divergence detection highlights high-probability setups. For example, a regular bullish divergence in an oversold zone, combined with a bullish RSI candlestick pattern, can signal a strong buying opportunity.
//
// Limitations:
// - The wicks on RSI candlesticks are an estimation based on recent RSI values, as Pine Script cannot access intra-bar RSI data.
// - Divergence detection relies on pivot points, which may lag slightly due to the lookback period. Adjust the pivot lookback setting to balance sensitivity and reliability.
// - This is an indicator, not a strategy, so it does not provide backtesting results or trade signals. Use it as part of a broader trading system.
h1 net change [keypoems]Hourly Net Change Standard Deviation Projections
What it actually does: it shows statistical hourly levels based on the average net change of each specific hour candle.
For every hourly candle the script:
- Shows the hourly open
- Calculates two volatility sets:
- Overall Stdev (which is fixed calculated over 10 years of data)
- Per-hour Stdev levels, it draws ±0.5σ / ±1σ / ±1.5σ / ±2σ bands in both sets.
Why it matters: Those rails are statistical “speed limits”. Price hugging a +1σ per-hour line? Momentum could shift.
The overlay lets you eyeball mean-reversion vs breakout conditions without a single calculation.
timer/tr/atr [keypoems]Session and Instant Volatility Ticker
What it actually does:
- Session ATR – Reports the historical (e.g. “0200-0600”) average true range of the past x sessions, reports the +1Stdev value.
- Real-time ATR feed – streams the current ATR value every tick.
- Ticker line – Sess. ATR +1Stdev | Current ATR | Previous TR | 🕒 Time-left-in-bar |
Think of it as a volatility check: a single glance tells you if the average candle size is compatible with your usual stop or not.
Open Source.
TCP | Money Management indicator | Crypto Version📌 TCP | Money Management Indicator | Crypto Version
A robust, multi-target risk and capital management indicator tailored for crypto traders. Whether you're trading spot, perpetual futures, or leverage tokens, this tool empowers you with precise control over risk, reward, and position sizing—directly on your chart. Eliminate guesswork and trade with confidence.
🔰 Introduction: Master Your Capital, Master Your Trades
Poor money management is the number one reason traders lose their accounts, even with solid strategies. The TCP Money Management Indicator, built by Trade City Pro (TCP), solves this problem by providing a structured, rule-based approach to capital allocation.
Want to dive deeper into the concept of money management? Check out our comprehensive tutorial on TradingView, " TradeCityPro Academy: Money Management ", to understand the principles that power this indicator and transform your trading mindset.
This indicator equips you to:
• Calculate optimal position sizes based on your capital, risk percentage, and leverage
• Set up to 5 customizable take-profit targets with partial close percentages
• Access real-time metrics like Risk-to-Reward (R/R), USD profit, and margin usage
• Trade with discipline, avoiding emotional or inconsistent decisions
💸 Money Management Formula
The indicator uses a professional capital allocation model:
Position Size = (Capital × Risk %) ÷ (Stop Loss % × Leverage)
From this, it calculates:
• Total risk amount in USD
• Optimal position size for your trade
• Margin required for each take-profit target
• Adjusted R/R for each target, accounting for partial position closures
🛠 How to Use
Enter Trade Parameters: Input your capital, risk %, leverage, entry price, and stop-loss price.
Set Take-Profit Targets: Enable 1 to 5 take-profit levels and specify the percentage of the position to close at each.
Real-Time Calculations: The indicator automatically computes:
• R/R ratio for each target
• Profit in USD for each partial close
• Margin used per target (in % and USD)
Visualize Your Trade:
• Price levels for entry, stop-loss, and take-profits are plotted on the chart.
• A dynamic info panel on the left side displays all key metrics.
🔄 Dynamic Adjustments: As each take-profit target is hit and a portion of the position is closed, the indicator recalculates the remaining position size, expected profit, R/R, and margin for subsequent targets. This ensures accuracy and reflects real-world trade behavior.
📊 Table Overview
The left-side panel provides a clear snapshot:
• Trade Setup: Capital, entry price, stop-loss, risk amount, and position size
• Per Target: Percentage closed, R/R, profit in USD, and margin used
• Summary: Total expected profit across all targets
⚙️ Settings Panel
• Total Capital ($): Your account size for the trade
• Risk per Trade (%): The percentage of capital you’re willing to risk
• Leverage: The leverage applied to the trade
• Entry/Stop-Loss Prices: Define your trade’s risk zone
• Take-Profit Targets (1–5): Set price levels and percentage to close at each
🔍 Use Case Example
Imagine you have $1,000 capital, risking 1%, using 10x leverage:
• Entry: $100 | Stop-Loss: $95
• TP1: $110 (close 50%) | TP2: $115 (close 50%)
The indicator calculates the exact position size, profit at each target, and margin allocation in real time, with all metrics displayed on the chart.
✅ Why Traders Love It
• Precision: No more manual calculations or guesswork
• Versatility: Works on all crypto pairs (BTC, ETH, altcoins, etc.)
• Flexibility: Perfect for scalping, swing trading, or futures strategies
• Universal: Compatible with all timeframes
• Transparency: Fully manual, with clear and reliable outputs
🧩 Built by Trade City Pro (TCP)
Developed by TCP, a trusted name in trading tools, used by over 150,000 traders worldwide. This indicator is coded in Pine Script v5, ensuring compatibility with TradingView’s platform.
🧾 Final Notes
• No Auto-Trading: This is a manual tool for disciplined traders
• No Repainting: All calculations are accurate and non-repainting
• Tested: Rigorously validated across major crypto pairs
• Publish-Ready: Built for seamless use on TradingView
🔗 Resources
• Money Management Tutorial: Learn the fundamentals of capital management with our detailed guide: TradeCityPro Academy: Money Management
• TradingView Profile: Explore more tools by TCP on TradingView
Spreader – Real-Time Spread Detector for ScalpingSpreader is a professional tool built for scalpers and intraday traders, designed to visually display live bid-ask spread on your chart. By showing you the true market friction in real time, it helps you avoid poor entries and reduce immediate trade losses.
LotSize CalculatorLotSize Calculator Documentation
Overview
The LotSize Calculator is a powerful TradingView indicator designed to help traders calculate optimal position sizes based on risk management principles. It provides a visual representation of trade setups, including entry points, stop losses, and take profits, while calculating the appropriate lot size based on your risk preferences.
Key Features
Automatic lot size calculation based on risk amount
Support for multiple asset classes (forex, commodities, indices, etc.)
Visual R-multiple levels (1R to 5R)
Real-time position tracking with drawdown and run-up statistics
Customizable visual elements and display options
Input Parameters
Risk Management Settings
Risk Amount Type: Choose between risking a fixed amount in dollars ($) or a specific lot size.
Risk Amount: The amount you want to risk on the trade (in dollars if Risk Amount Type is set to $, or in lots if set to Lots).
Overwrite TP: Optional setting to automatically set take profit at a specific R-multiple (1R, 2R, 3R, 4R, or 5R).
Table Comments: Optional field to add personal notes to the position table.
Trade Setup Levels
Trigger Price: The price at which your trade will be entered.
Stop Loss: Your predetermined exit price to limit losses.
Take Profit: Your target price to secure profits.
Time Of Setup Start Bar: The starting time for your trade setup window.
Display Settings
Plot Position Labels: Toggle to show/hide position information labels on the chart.
Plot Position Table: Toggle to show/hide the position information table.
Show Money: Toggle to display monetary values ($) in the labels and table.
Show Points: Toggle to display point values in the labels and table.
Show Ticks: Toggle to display tick values in the labels and table.
Visual Appearance
Entry Color: Color for entry level line and labels.
Take Profit Color: Color for take profit level line and labels.
Stop Loss Color: Color for stop loss level line and labels.
Label Text Color: Color for text in the position labels.
Table Background: Background color for the position information table.
Table Text: Text color for the position information table.
R Labels: Color for the R-multiple level labels.
Table Position: Position of the information table on the chart (options: Bottom Right, Bottom Left, Bottom Middle, Top Right, Top Middle).
How to Use
Basic Setup
Set your entry price in the "Trigger Price" field.
Set your stop loss level in the "Stop Loss" field.
Set your take profit level in the "Take Profit" field.
Choose your risk amount type ($ or Lots) and enter the risk amount.
Optionally, select an R-multiple for automatic take profit calculation.
Understanding the Display
The indicator will show:
Horizontal lines for entry, stop loss, and take profit levels
Colored zones between entry and take profit (potential profit zone) and between entry and stop loss (potential loss zone)
R-multiple levels based on your risk (1R, 2R, 3R, 4R, 5R)
A table displaying:
Position type (long/short) and size
Original risk and reward figures
Maximum run-up and drawdown during the trade
Trade Monitoring
Once a trade is triggered (either by price crossing a stop entry or reaching a limit entry), the indicator tracks:
Current position value
Maximum run-up (highest profit seen)
Maximum drawdown (largest loss seen)
Trade outcome when take profit or stop loss is hit
Advanced Features
Asset Type Detection
The LotSize Calculator automatically detects the type of asset being traded (forex, commodity, index, etc.) and adjusts calculations accordingly to ensure accurate position sizing.
R-Multiple Visualization
R-multiples help visualize potential reward relative to risk. For example, 2R means the potential reward is twice the amount risked. The indicator displays these levels directly on your chart for easy reference.
Adaptive Position Labels
Position labels adjust their display based on trade direction (long or short) and include relevant information about risk, reward, and current position status.
Best Practices
Always confirm your risk is appropriate for your account size (typically 1-2% of account per trade).
Use the R-multiple visualization to ensure your trades offer favorable risk-to-reward ratios.
The indicator works best when used alongside your existing strategy for entry and exit signals.
Customize the visual appearance to match your chart theme for better visibility.
Troubleshooting
If position calculations seem incorrect, verify that the indicator is detecting the correct instrument type.
For forex pairs, ensure your broker's lot size conventions match those used by the indicator.
The indicator may need adjustment for certain exotic instruments or markets with unusual tick sizes.