Hybrid: RSI + Breakout + DashboardHybrid RSI + Breakout Strategy
Adaptive trading system that switches modes based on market regime:
Ranging: Buys when RSI < 30 and sells when RSI > 70.
Trending: Enters momentum breakouts only in the direction of the 200-EMA bias, with ADX confirming trend strength.
Risk Management: Trailing stop locks profits and caps drawdown.
Optimized for BTC, ETH, and SOL on 1 h–1 D charts; back-tested from 2017 onward. Educational use only—run your own tests before deploying live funds.
Educational
cc AJGB Candle Range Finder with TableOverview:
The "cc AJGB Candle Range Finder with Table" is a versatile Pine Script indicator designed to identify and visualize price ranges within the 1 minute charts based on UTC+2 Time Zone. Unlike traditional range indicators, it offers three unique calculation methods to define ranges based on minute and hour interactions, displays ranges as boxes with labeled point values, and summarizes average range sizes in a customizable table. This tool is ideal for analyzing price ranges of specific time based ranges.
Features:
Customizable Time Range: Users specify a start and end minute (0-59) to define the range period (e.g., 29th to 35th minute).
Three Calculation Methods:
Minute Only: Uses the minute of each bar to identify ranges (e.g., matches user-specified minutes).
Minute - Hour: Adjusts the minute by subtracting the hour, allowing for dynamic range detection across hourly cycles.
Minute + Hour: Combines minute and hour values for a unique range calculation, useful for specific intraday patterns.
Visual Output: Draws boxes around detected ranges, with labels showing the start/end minutes and range size in points.
Summary Table: Displays the average range size (in points) for each method, with customizable position, colors, and text size.
How It Works:
The indicator evaluates each bar’s timestamp in (UTC+2 ONLY) to match user-specified minutes using one or more selected methods. When a start minute is detected, it tracks the high and low prices until the end minute, drawing a box to highlight the range and labeling it with the range size in points. A table summarizes the average range size for each method, helping traders assess typical price movements during the specified period.
Market Analysis: Compare range sizes across different methods to understand intraday volatility patterns.
Settings Customization: Adjust colors, table position, and label sizes to suit your chart preferences.
Settings:
Range to Find: Set start and end minutes.
Range Selection: Enable/disable each method and customize colors.
Range Label Size: Choose label size (Tiny to Huge).
Table Settings: Configure table position (Top, Bottom, Left, Right), sub-position, text size, and colors.
Notes:
Only works on 1 minute charts
The indicator works best using Start Times that are lower than the End Times.
Ensure the chart is set to UTC+2 Time Zone for accurate range detection.
Why It’s Unique:
Unlike standard range indicators that focus on sessions or fixed periods, this tool allows precise minute-based range detection with three distinct calculation methods, offering flexibility for data gathering. The interactive table provides quick insights into average range sizes.
ADX and DI - Trader FelipeADX and DI - Trader Felipe
This indicator combines the Average Directional Index (ADX) and the Directional Indicators (DI+ and DI-) to help traders assess market trends and their strength. It is designed to provide a clear view of whether the market is in a trending phase (either bullish or bearish) and helps identify potential entry and exit points.
What is ADX and DI?
DI+ (Green Line):
DI+ measures the strength of upward (bullish) price movements. When DI+ is above DI-, it signals that the market is experiencing upward momentum.
DI- (Red Line):
DI- measures the strength of downward (bearish) price movements. When DI- is above DI+, it suggests that the market is in a bearish phase, with downward momentum.
ADX (Blue Line):
ADX quantifies the strength of the trend, irrespective of whether it is bullish or bearish. The higher the ADX, the stronger the trend:
ADX > 20: Indicates a trending market (either up or down).
ADX < 20: Indicates a weak or sideways market with no clear trend.
Threshold Line (Gray Line):
This horizontal line, typically set at 20, represents the threshold for identifying whether the market is trending or not. If ADX is above 20, the market is considered to be in a trend. If ADX is below 20, it suggests that the market is not trending and is likely in a consolidation phase.
Summary of How to Use the Indicator:
Trend Confirmation: Use ADX > 20 to confirm a trending market. If ADX is below 20, avoid trading.
Long Entry: Enter a long position when DI+ > DI- and ADX > 20.
Short Entry: Enter a short position when DI- > DI+ and ADX > 20.
Avoid Sideways Markets: Do not trade when ADX is below 20. Look for other strategies for consolidation phases.
Exit Strategy: Exit the trade if ADX starts to decline or if the DI lines cross in the opposite direction.
Combine with Other Indicators: Use additional indicators like RSI, moving averages, or support/resistance to filter and confirm signals.
Yearly History Calendar-Aligned Price up to 10 Years)Overview
This indicator helps traders compare historical price patterns from the past 10 calendar years with the current price action. It overlays translucent lines (polylines) for each year’s price data on the same calendar dates, providing a visual reference for recurring trends. A dynamic table at the top of the chart summarizes the active years, their price sources, and history retention settings.
Key Features
Historical Projections
Displays price data from the last 10 years (e.g., January 5, 2023 vs. January 5, 2024).
Price Source Selection
Choose from Open, Low, High, Close, or HL2 ((High + Low)/2) for historical alignment.
The selected source is shown in the legend table.
Bulk Control Toggles
Show All Years : Display all 10 years simultaneously.
Keep History for All : Preserve historical lines on year transitions.
Hide History for All : Automatically delete old lines to update with current data.
Individual Year Settings
Toggle visibility for each year (-1 to -10) independently.
Customize color and line width for each year.
Control whether to keep or delete historical lines for specific years.
Visual Alignment Aids
Vertical lines mark yearly transitions for reference.
Polylines are semi-transparent for clarity.
Dynamic Legend Table
Shows active years, their price sources, and history status (On/Off).
Updates automatically when settings change.
How to Use
Configure Settings
Projection Years : Select how many years to display (1–10).
Price Source : Choose Open, Low, High, Close, or HL2 for historical alignment.
History Precision : Set granularity (Daily, 60m, or 15m).
Daily (D) is recommended for long-term analysis (covers 10 years).
60m/15m provides finer precision but may only cover 1–3 years due to data limits.
Adjust Visibility & History
Show Year -X : Enable/disable specific years for comparison.
Keep History for Year -X : Choose whether to retain historical lines or delete them on new year transitions.
Bulk Controls
Show All Years : Display all 10 years at once (overrides individual toggles).
Keep History for All / Hide History for All : Globally enable/disable history retention for all years.
Customize Appearance
Line Width : Adjust polyline thickness for better visibility.
Colors : Assign unique colors to each year for easy identification.
Interpret the Legend Table
The table shows:
Year : Label (e.g., "Year -1").
Source : The selected price type (e.g., "Close", "HL2").
Keep History : Indicates whether lines are preserved (On) or deleted (Off).
Tips for Optimal Use
Use Daily Timeframes for Long-Term Analysis :
Daily (1D) allows 10+ years of data. Smaller timeframes (60m/15m) may have limited historical coverage.
Compare Recurring Patterns :
Look for overlaps between historical polylines and current price to identify potential support/resistance levels.
Customize Colors & Widths :
Use contrasting colors for years you want to highlight. Adjust line widths to avoid clutter.
Leverage Global Toggles :
Enable Show All Years for a quick overview. Use Keep History for All to maintain continuity across transitions.
Example Workflow
Set Up :
Select Projection Years = 5.
Choose Price Source = Close.
Set History Precision = 1D for long-term data.
Customize :
Enable Show Year -1 to Show Year -5.
Assign distinct colors to each year.
Disable Keep History for All to ensure lines update on year transitions.
Analyze :
Observe how the 2023 close prices align with 2024’s price action.
Use vertical lines to identify yearly boundaries.
Common Questions
Why are some years missing?
Ensure the chart has sufficient historical data (e.g., daily charts cover 10 years, 60m/15m may only cover 1–3 years).
How do I update the data?
Adjust the Price Source or toggle years/history settings. The legend table updates automatically.
Rocky's Dynamic DikFat Supply & Demand ZonesDynamic Supply & Demand Zones
Overview
The Dynamic Supply & Demand Zones indicator identifies key supply and demand levels on your chart by detecting pivot highs and lows. It draws customizable boxes around these zones, helping traders visualize areas where price may react. With flexible display options and dynamic box behavior, this tool is designed to assist in identifying potential support and resistance levels for various trading strategies.
Key Features
Pivot-Based Zones: Automatically detects supply (resistance) and demand (support) zones using pivot highs and lows on the chart’s timeframe.
Dynamic Box Sizing: Boxes shrink when price enters them, reflecting reduced zone strength, and stop adjusting once price fully crosses through.
Customizable Display: Choose to show current-day boxes, historical boxes, or all boxes, with an option to update past box colors dynamically.
Session-Based Extension: Boxes can extend to the current bar or stop at 4:00 PM of the creation day’s 9:30 AM–4:00 PM trading session (ideal for stock markets).
Color Coding: Borders change color based on price position:
Green for demand zones (price above the box).
Red for supply zones (price below the box).
White for neutral zones (price inside the box).
User-Friendly Inputs: Adjust pivot lookback periods, box visibility, extension behavior, and colors via intuitive input settings.
How It Works
Zone Detection: The indicator uses pivot highs and lows to define supply and demand zones, plotting boxes between these levels.
Box Behavior:
Boxes are created when pivot highs and lows are confirmed, with no overlap with the previous box.
When price enters a box, it shrinks to reflect interaction, stopping once price exits completely.
Boxes can extend to the current bar or end at 4:00 PM of the creation day (or next trading day if created after 4:00 PM or on weekends).
Display Options:
Current Only: Shows boxes created on the current day.
Historical Only: Shows boxes from previous days, with optional color updates.
All Boxes: Shows all boxes, with an option to hide historical box color updates.
Performance: Limits the number of boxes to 200 to ensure smooth performance, removing older boxes as needed.
Inputs
Pivot Look Right/Left: Set the number of bars (default: 2) to confirm pivot highs and lows.
What Boxes to Show: Select Current Only, Historical Only, or All Boxes (default: Current Only).
Boxes On/Off: Toggle box visibility (default: on).
Extend Boxes to Current Bar: Choose whether boxes extend to the current bar or stop at 4:00 PM (default: off, stops at 4:00 PM).
Update Past Box Colors: Enable/disable color updates for historical boxes (default: on).
Demand/Supply/Neutral Box Color: Customize border colors (default: green, red, white).
How to Use
Add the indicator to your chart.
Adjust inputs to match your trading style (e.g., pivot lookback, box extension, colors).
Use the boxes to identify potential support (demand) and resistance (supply) zones:
Green-bordered boxes (price above) may act as support.
Red-bordered boxes (price below) may act as resistance.
White-bordered boxes (price inside) indicate active price interaction.
Combine with other analysis tools (e.g., trendlines, indicators) to confirm trade setups.
Monitor box shrinking to gauge zone strength and watch for breakouts when price fully crosses a box.
Understanding Supply and Demand in Stock Trading
In stock trading, supply and demand are fundamental forces driving price movements. Demand refers to the willingness of buyers to purchase a stock at a given price, often creating support levels where buying interest prevents further price declines. Supply represents the willingness of sellers to offload a stock, forming resistance levels where selling pressure halts price increases. These zones are critical because they highlight areas where significant buying or selling activity has occurred, influencing future price behavior.
The importance of supply and demand lies in their ability to reveal where institutional traders, with large orders, have entered or exited the market. Demand zones, often seen at pivot lows, indicate strong buying interest and potential areas for price reversals or bounces. Supply zones, typically at pivot highs, signal heavy selling and possible reversal points for downward moves. By identifying these zones, traders can anticipate where price is likely to stall, reverse, or break out, enabling better entry and exit decisions. This indicator visualizes these zones as dynamic boxes, making it easier to spot high-probability trading opportunities while emphasizing the core market dynamics of supply and demand.
Feedback
This indicator is designed to help traders visualize supply and demand zones effectively. If you have suggestions for improvements, please share your feedback in the comments!
Anomaly Counter-Trend StrategyA mean-reversion style strategy that automatically spots unusually large price moves over a configurable lookback period and takes the opposite side, with full risk-management, commission and slippage modeling—built in Pine Script® v6.
🔎 Overview
ACTS monitors the percent-change over the past N minutes and, when that move exceeds your chosen threshold, enters a counter-trend position (short on a strong rise; long on a sharp fall). It’s ideal for markets that often “overshoot” and snap back, and can be applied on any symbol or timeframe.
⚙️ Key Features
Anomaly Detection: Detect abnormal price swings based on a user-defined % change over a lookback period.
Counter-Trend Entries: Auto-enter short on rise anomalies, long on fall anomalies (with seamless flat↔reverse transitions).
Risk Management: Configurable stop-loss and take-profit in ticks per trade.
Realistic Modeling: Simulates commissions (0.05 % default), slippage (2 ticks), and percent-of-equity sizing.
Immediate Bar-Close Execution: Orders processed on bar close for faster fills.
Visual Aids: Optional on-chart BUY/SELL triangles and background highlights during anomaly periods.
⚙️ Inputs
Input Default Description
Percentage Threshold (%) 2.00 Min % move over lookback to trigger an anomaly.
Lookback Period (Minutes) 15 Number of minutes over which to measure change.
Stop Loss (Ticks) 100 Distance from entry for stop-loss exit.
Take Profit (Ticks) 200 Distance from entry for take-profit exit.
Plot Trade Signal Shapes (on/off) true Show BUY/SELL triangles on chart.
Highlight Anomaly Background true Shade background during anomaly bars.
📊 How to Use
Add to Chart: Apply the script to any ticker & timeframe.
Tune: Adjust your percentage threshold and lookback to match each instrument’s volatility.
Review Backtest: Check built-in strategy performance (drawdown, Sharpe, etc.) under the Strategy Tester tab.
Go Live: Once optimized, link to alerts or your trade execution system.
⚠️ Disclaimer
This script is provided “as-is” for educational purposes and backtesting only. Past performance does not guarantee future results. Always backtest thoroughly, manage your own risk, and consider market conditions before live trading.
Enjoy experimenting—and may your counter-trend entries catch the next big snapback!
GoldenJet - First Candle High/LowThe "First Candle High/Low" indicator is a custom intraday trading tool designed for use on intraday charts (e.g., 1-minute, 5-minute, 15-minute). It automatically marks the high and low of the first completed candle of the trading day using horizontal dashed lines. These lines are extended visually across the chart until the end of the day, allowing traders to reference them easily throughout the session.
The first candle of the day is identified by detecting a new calendar day.
The high and low from that candle are stored and used as key levels.
The levels are displayed as horizontal lines from the first candle's time up to day end
✅ Benefits of This Indicator for Intraday Traders
Establishes Key Reference Points Early:
The high and low of the first candle often act as early indicators of intraday support and resistance.
Helps identify the day's potential range and momentum.
Improves Trade Planning:
You can use the levels to set breakout or reversal entries.
Helps in defining stop-loss and take-profit zones based on these levels.
Supports Multiple Strategies:
Useful in breakout trading, where a break above the first candle high might indicate bullish momentum.
Helpful in mean-reversion or range trading, where price bouncing between high and low can be exploited.
Enhances Risk Management:
By marking predefined levels, you avoid emotionally-driven entries.
Lines provide a clear visual cue for when to act or wait.
Works Across Markets and Instruments:
Applicable to stocks, indices, futures, forex, and crypto — anywhere intraday price action matters.
Hybrid Momentum Suite [QuantAlgo]The Hybrid Momentum Suite is an advanced momentum-based technical indicator that utilizes a weighted fusion of RSI and CCI, combined with adaptive boundary detection to help traders and investors identify momentum strength and potential reversal zones across different timeframes and asset classes.
🟢 Technical Foundation
The Hybrid Momentum Suite employs a dual-component approach to momentum analysis, incorporating:
Hybrid RSI-CCI Calculation: Uses a customizable ratio for momentum signature creation, allowing traders and investors to balance the characteristics of both indicators
Bi-Directional Component Separation: Automatically separates unified momentum into distinct bullish and bearish forces for independent analysis
Adaptive Impulse Boundary: Uses exponential moving average combined with standard deviation multipliers to detect momentum exhaustion zones
Multi-Level Gradient Visualization: Applies sophisticated layering with varying transparency to show momentum strength and direction changes
The indicator processes price data through multiple filtering stages, applying mathematical principles including weighted averaging, component isolation, and statistical variance analysis. This creates a momentum system that adapts to market volatility while maintaining clarity in directional bias and strength quantification.
🟢 Key Features & Signals
1. Bi-Directional Component Separation
The indicator presents momentum through mathematically isolated histograms that separate bullish and bearish forces for independent analysis.
When bullish momentum is dominant, the bullish component (green) shows greater amplitude than the bearish component.
Similarly, when bearish momentum is dominant, the bearish component (red) shows greater amplitude than the bullish component.
During transitional periods, components may show equal strength, indicating momentum equilibrium.
This visualization provides immediate insights into:
→ Competing market forces simultaneously
→ Momentum exhaustion before reversals
→ Quantified momentum strength across different timeframes
2. Real-Time Status Update
The indicator features a comprehensive analysis dashboard that operates with dynamic strength classification:
The dashboard automatically categorizes momentum from "Very Weak" to "Very Strong" based on component amplitude.
Historical comparison displays previous bar metrics for trend analysis, helping traders and investors understand momentum persistence.
Color-coded visualization matches histogram components for immediate recognition of market bias.
Adaptive positioning offers nine customizable table locations for optimal display across different chart layouts.
Regardless of position, the dashboard displays:
Current momentum direction (BULLISH or BEARISH)
Momentum strength percentage (0-100%)
Previous bar comparison for trend persistence
Active component colors for visual consistency
This comprehensive approach helps traders and investors:
→ Assess current momentum strength quantitatively
→ Identify momentum shifts through historical comparison
→ Make informed decisions based on momentum context
3. Reversal Signal Detection System
The indicator generates trading signals using advanced multi-factor validation:
Exhaustion signals are detected when components cross down after exceeding statistical boundaries, indicating potential momentum reversals.
Trend flip alerts are generated when component dominance changes (bull>bear or bear>bull), signaling directional shifts.
Boundary interaction monitoring tracks crossovers above/below impulse threshold for extreme momentum identification.
Visual markers ( X ) are positioned using mathematical placement algorithms for clear signal identification.
The indicator also features a comprehensive alert system with notifications for:
Bullish potential reversals
Bearish potential reversals
Trend flip signals
Momentum boundary crossings
*Alerts can be customized and delivered through TradingView's notification system, making it easy to stay informed of important momentum developments even when away from the charts.
4. Conditional Bar Coloring
The indicator provides optional price bar coloring based on momentum analysis:
Bars are colored based on dominant momentum component (bullish/bearish).
Reversal conditions are highlighted with specialized coloring (default orange).
Color transparency adjusts based on momentum strength for immediate visual feedback.
Bar coloring can be toggled on/off to suit different chart aesthetics and personal preferences.
🟢 Practical Usage Tips
→ Component Analysis and Interpretation: The indicator visualizes momentum direction and strength through separate components, allowing traders to immediately identify dominant market forces. This helps in assessing potential for continuation or reversal.
→ Signal Generation Strategies: The indicator generates potential trading signals based on component crossovers, boundary violations, and momentum exhaustion. Users can focus on reversal signals at statistical extremes or trend-following signals during component dominance.
→ Multi-Component Assessment: Through its bi-directional approach, the indicator enables users to understand competing forces within the same timeframe. This helps in identifying momentum equilibrium and potential turning points.
🟢 Pro Tips
Adjust RSI/CCI ratio based on market conditions:
→ High ratios (70-100) for mean-reverting markets and longer timeframes
→ Low ratios (0-30) for trending markets and shorter timeframes
→ Default 50/50 for balanced momentum assessment across market types
Fine-tune impulse boundary based on volatility:
→ Lower boundary lengths (20-30) for more frequent reversal signals
→ Higher lengths (40-60) for only major momentum extremes
→ Adjust standard deviation multiplier (2.0-4.0) based on market volatility
Look for confluence between components:
→ Component divergence as early reversal warning
→ Simultaneous extreme readings for high-probability setups
→ Component correlation with price for confirmation
Use for multiple trading approaches:
→ Reversal trading at component extremes near impulse boundary
→ Trend following when components show clear dominance
→ Early momentum shift detection with gradient fading patterns
→ Position sizing based on component strength percentage
Combine with:
→ Support/resistance analysis for strategic entry and exit points
→ Volume indicators for momentum validation
→ Multiple timeframe analysis for broader market context
→ Price action patterns for confirmation of reversal signals
Liquidity Sweep DetectorThe Liquidity Sweep Detector represents a technical analysis tool specifically designed to identify market microstructure patterns typically associated with institutional trading activity. According to Harris (2003), institutional traders frequently employ tactics where they momentarily break through price levels to trigger stop orders before redirecting the market in the opposite direction. This phenomenon, commonly referred to as "stop hunting" or "liquidity sweeping," constitutes a significant aspect of institutional order flow analysis (Osler, 2003). The current implementation provides retail traders with a means to identify these patterns, potentially aligning their trading decisions with institutional movements rather than becoming victims of such strategies.
Osler's (2003) research documents how stop-loss orders tend to cluster around significant price levels, creating concentrations of liquidity. Taylor (2005) argues that sophisticated institutional participants systematically exploit these liquidity clusters by inducing price movements that trigger these orders, subsequently profiting from the ensuing price reaction. The algorithmic detection of such patterns involves several key processes. First, the indicator identifies swing points—local maxima and minima—through comparison with historical price data within a definable lookback period. These swing points correspond to what Bulkowski (2011) describes as "significant pivot points" that frequently serve as liquidity zones where stop orders accumulate.
The core detection algorithm utilizes a multi-stage process to identify potential sweeps. For high sweeps, it monitors when price exceeds a previous swing high by a specified threshold percentage, followed by a bearish candle that closes below the original swing high level. Conversely, for low sweeps, it detects when price drops below a previous swing low by the threshold percentage, followed by a bullish candle closing above the original swing low. As noted by Lo and MacKinlay (2011), these price patterns often emerge when large institutional players attempt to capture liquidity before initiating significant directional moves.
The indicator maintains historical arrays of detected sweep events with their corresponding timestamps, enabling temporal analysis of market behavior following such events. Visual elements include horizontal lines marking sweep levels, background color highlighting for sweep events, and an information table displaying active sweeps with their corresponding price levels and elapsed time since detection. This visualization approach allows traders to quickly identify potential institutional activity without requiring complex interpretation of raw price data.
Parameter customization includes adjustable lookback periods for swing point identification, sweep threshold percentages for signal sensitivity, and display duration settings. These parameters allow traders to adapt the indicator to various market conditions and timeframes, as markets demonstrate different liquidity characteristics across instruments and periods (Madhavan, 2000).
Empirical studies by Easley et al. (2012) suggest that retail traders who successfully identify and act upon institutional liquidity sweeps may achieve superior risk-adjusted returns compared to conventional technical analysis approaches. However, as cautioned by Chordia et al. (2008), such patterns should be considered within broader market context rather than in isolation, as their predictive value varies significantly with overall market volatility and liquidity conditions.
References:
Bulkowski, T. (2011). Encyclopedia of Chart Patterns (2nd ed.). John Wiley & Sons.
Chordia, T., Roll, R., & Subrahmanyam, A. (2008). Liquidity and market efficiency. Journal of Financial Economics, 87(2), 249-268.
Easley, D., López de Prado, M., & O'Hara, M. (2012). Flow Toxicity and Liquidity in a High-frequency World. The Review of Financial Studies, 25(5), 1457-1493.
Harris, L. (2003). Trading and Exchanges: Market Microstructure for Practitioners. Oxford University Press.
Lo, A. W., & MacKinlay, A. C. (2011). A Non-Random Walk Down Wall Street. Princeton University Press.
Madhavan, A. (2000). Market microstructure: A survey. Journal of Financial Markets, 3(3), 205-258.
Osler, C. L. (2003). Currency Orders and Exchange Rate Dynamics: An Explanation for the Predictive Success of Technical Analysis. Journal of Finance, 58(5), 1791-1820.
Taylor, M. P. (2005). Official Foreign Exchange Intervention as a Coordinating Signal in the Dollar-Yen Market. Pacific Economic Review, 10(1), 73-82.
CRT Finder (WanHakimFX)📈 Liquidity Grab Indicator with MTF Confluence & Alerts
🔍 Overview:
The Liquidity Grab Indicator is designed to detect precise moments when price sweeps liquidity — either by wicking below recent lows (bullish LQH) or above recent highs (bearish LQL) — followed by a clear rejection. It combines this logic with multi-timeframe confirmation and trend filters, making it a powerful tool for identifying high-probability reversal setups.
⚙️ How It Works:
✅ Liquidity Sweep Logic (LQH / LQL)
Bullish (LQH):
Current candle wicks below the previous low
Closes above the previous candle body
Confirms potential bullish reversal
Bearish (LQL):
Current candle wicks above the previous high
Closes below the previous candle body
Confirms potential bearish reversal
✅ Additional Conditions:
Must occur during London or New York sessions.
Requires trend confluence:
LQH = Price must be above SMMA 60/100/200
LQL = Price must be below SMMA 60/100/200
🧠 Multi-Timeframe Confluence:
The indicator scans for LQH/LQL sweeps across:
Daily
4H
1H
30M
15M
If a sweep occurs on any of these timeframes, an alert is triggered and a triangle marker appears on the chart for real-time visual confluence.
📊 Visual Features:
Green/Red labels for active timeframe sweeps.
Dotted wick lines to show liquidity zones from the previous candle.
Colored triangle markers for MTF sweep alerts.
🛠 Strategy Usage:
This indicator is best used as a trigger tool in a confluence-based strategy:
Use higher-timeframe MTF LQH/LQL markers for directional bias.
Wait for matching sweep on your entry timeframe (e.g., M1/M5).
Enter on confirmation candle or break of structure.
Target imbalances, FVGs, or previous highs/lows.
Risk-managed entries using sweep candle's high/low as stop.
📢 Alerts:
✅ Bullish Sweep (LQH) on any timeframe
✅ Bearish Sweep (LQL) on any timeframe
Long Short dom📊 Long Short dom (VI+) — Custom Vortex Trend Strength Indicator
This indicator is a refined version of the Vortex Indicator (VI) designed to help traders identify trend direction, momentum dominance, and potential long/short opportunities based on VI+ and VI– dynamics.
🔍 What It Shows:
• VI+ (Green Line): Measures upward trend strength.
• VI– (Red Line): Measures downward trend strength.
• Histogram (optional): Displays the difference between VI+ and VI–, helping visualize which side is dominant.
• Background Coloring: Highlights bullish or bearish dominance zones.
• Zero Line: A visual baseline to enhance clarity.
• Highest/Lowest Active Lines: Real-time markers for the strongest directional signals.
⸻
🛠️ Inputs:
• Length: Vortex calculation period (default 14).
• Show Histogram: Enable/disable VI+–VI– difference bars.
• Show Trend Background: Toggle colored zones showing trend dominance.
• Show Below Zero: Decide whether to display values that fall below 0 (for advanced use).
⸻
📈 Strategy Insights:
• When VI+ crosses above VI–, it indicates potential long momentum.
• When VI+ crosses below VI–, it signals possible short pressure.
• The delta histogram (VI+ – VI–) helps you quickly see shifts in momentum strength.
• The background shading provides an intuitive visual cue to assess trend dominance at a glance.
⸻
🚨 Built-in Alerts:
• Bullish Cross: VI+ crosses above VI– → possible entry long.
• Bearish Cross: VI+ crosses below VI– → possible entry short.
⸻
✅ Ideal For:
• Trend-following strategies
• Identifying long/short bias
• Confirming entries/exits with momentum analysis
⸻
This tool gives you clean, real-time visual insight into trend strength and shift dynamics, empowering smarter trade decisions with clarity and confidence.
Extended Altman Z-Score ModelThe Extended Altman Z-Score Model represents a significant advancement in financial analysis and risk assessment, building upon the foundational work of Altman (1968) while incorporating contemporary data analytics approaches as proposed by Fung (2023). This sophisticated model enhances the traditional bankruptcy prediction framework by integrating additional financial metrics and modern analytical techniques, offering a more comprehensive approach to identifying financially distressed companies.
The model's architecture is built upon two distinct yet complementary scoring systems. The traditional Altman Z-Score components form the foundation, including Working Capital to Total Assets (X1), which measures a company's short-term liquidity and operational efficiency. Retained Earnings to Total Assets (X2) provides insight into the company's historical profitability and reinvestment capacity. EBIT to Total Assets (X3) evaluates operational efficiency and earning power, while Market Value of Equity to Total Liabilities (X4) assesses market perception and leverage. Sales to Total Assets (X5) measures asset utilization efficiency.
These traditional components are enhanced by extended metrics introduced by Fung (2023), which provide additional layers of financial analysis. The Cash Ratio (X6) offers insights into immediate liquidity and financial flexibility. Asset Composition (X7) evaluates the quality and efficiency of asset utilization, particularly in working capital management. The Debt Ratio (X8) provides a comprehensive view of financial leverage and long-term solvency, while the Net Profit Margin (X9) measures overall profitability and operational efficiency.
The scoring system employs a sophisticated formula that combines the traditional Z-Score with weighted additional metrics. The traditional Z-Score is calculated as 1.2X1 + 1.4X2 + 3.3X3 + 0.6X4 + 1.0X5, while the extended components are weighted as follows: 0.5 * X6 + 0.3 * X7 - 0.4 * X8 + 0.6 * X9. This enhanced scoring mechanism provides a more nuanced assessment of a company's financial health, incorporating both traditional bankruptcy prediction metrics and modern financial analysis approaches.
The model categorizes companies into three distinct risk zones, each with specific implications for financial stability and required actions. The Safe Zone (Score > 3.0) indicates strong financial health, with low probability of financial distress and suitability for conservative investment strategies. The Grey Zone (Score between 1.8 and 3.0) suggests moderate risk, requiring careful monitoring and additional fundamental analysis. The Danger Zone (Score < 1.8) signals high risk of financial distress, necessitating immediate attention and potential risk mitigation strategies.
In practical application, the model requires systematic and regular monitoring. Users should track the Extended Score on a quarterly basis, monitoring changes in individual components and comparing results with industry benchmarks. Component analysis should be conducted separately, identifying specific areas of concern and tracking trends in individual metrics. The model's effectiveness is significantly enhanced when used in conjunction with other financial metrics and when considering industry-specific factors and macroeconomic conditions.
The technical implementation in Pine Script v6 provides real-time calculations of both traditional and extended scores, offering visual representation of risk zones, detailed component breakdowns, and warning signals for critical values. The indicator automatically updates with new financial data and provides clear visual cues for different risk levels, making it accessible to both technical and fundamental analysts.
However, as noted by Fung (2023), the model has certain limitations that users should consider. It may not fully account for industry-specific factors, requires regular updates of financial data, and should be used in conjunction with other analysis tools. The model's effectiveness can be enhanced by incorporating industry-specific benchmarks and considering macroeconomic factors that may affect financial performance.
References:
Altman, E.I. (1968) 'Financial ratios, discriminant analysis and the prediction of corporate bankruptcy', The Journal of Finance, 23(4), pp. 589-609.
Li, L., Wang, B., Wu, Y. and Yang, Q., 2020. Identifying poorly performing listed firms using data analytics. Journal of Business Research, 109, pp.1–12. doi.org
Simulated OI Proxy with Moving Average🧠 Simulated Open Interest (OI) Proxy with Moving Average
This custom TradingView indicator estimates market participation and positioning by simulating Open Interest (OI) using a proxy derived from price change and volume movement — useful especially when OI data is unavailable (e.g., NSE stocks or options).
📊 Concept & Logic:
Since TradingView doesn’t provide real OI data for many symbols (like Indian equities), this script uses a smart proxy:
✅ Simulated OI Conditions:
Long Buildup (Green bar):
Price is rising and volume is increasing → suggests fresh buying.
Short Buildup (Red bar):
Price is falling and volume is increasing → suggests new shorts are entering.
Short Covering (Blue bar):
Price is rising but volume is falling → suggests shorts are exiting positions.
Long Unwinding (Orange bar):
Price is falling and volume is dropping → suggests long positions are closing.
Neutral (Gray):
No strong directional signal.
Each condition is assigned a numeric value for analysis:
Long Buildup = +1
Short Buildup = -1
Short Covering = +0.5
Long Unwinding = -0.5
Neutral = 0
📈 Simulated OI Moving Average (Yellow Line):
To remove short-term noise, we apply a Simple Moving Average (SMA) over the simulated OI values (default: 21 periods). This line helps you:
Identify dominant positioning trends (bullish or bearish).
Use it as a signal filter in your trading strategies.
🔧 Customization:
OI MA Period: Adjust how smooth or reactive the moving average should be.
You can change the logic or combine this with EMA, RSI, or price action tools for a complete trading system.
🔍 Use Cases:
Traders in markets where real OI data is not available (like Indian stocks/options).
To analyze buildup and unwinding behavior without relying on exchange-fed OI.
As a momentum filter or signal enhancer in broader strategies.
📌 Note:
This is a proxy indicator, not a substitute for actual Open Interest. But it’s highly effective when used alongside price action and trend filters.
Base Detector Pro [AletheiaTradeLab]This custom Trading View indicator combines William O’Neal “Base” patterns with several complementary tools—David Ryan’s ANT indicator, key pivot‐based price levels, index and earnings lines, relative strength (RS) line, and moving averages—to help you pinpoint base formations and validate whether each one merits a trade.
1. Bases (William O'Neal)
A “base” is simply a period of price consolidation following a significant run-up. During this phase, a stock moves mostly sideways within a defined trading range, forming clear support and resistance lines.
Key Criteria for a Valid Base
- Prior Uptrend
Before a base begins, the stock should already have a healthy advance—typically at least a 30% gain.
- Shapes of Bases
Bases can form in several distinct geometric patterns, each signaling a different kind of consolidation and potential breakout:
Flat Base
Shape : A horizontal rectangle bounded by nearly parallel support (bottom) and resistance (top) trendlines.
Minimum Length : 5 weeks
Maximum Length : 65 weeks
Depth : < 15%
Pivot Point : Left-side high of base
i.ibb.co i.ibb.co
Cup Base
Shape : A smooth, rounded “U” curve.
Minimum Length : 6 weeks
Maximum Length : 65 weeks
Minimum Depth : 8%
Maximum Depth : 50%
Pivot Point : Left-side high of base
i.ibb.co i.ibb.co
Sauce Base
Shape : A very gradual, broad “U” curve, often taking more length than cup bases.
Minimum Length : 6 weeks
Maximum Length : 65 weeks
Minimum Depth : 8%
Maximum Depth : 50%
Pivot Point : Left-side high of base
i.ibb.co i.ibb.co
Cup with Handle Base
Shape : A “U”‐shaped cup followed by a smaller downward-sloping flag or channel (the handle).
Minimum Length : 6 weeks
Maximum Length : 65 weeks
Minimum Depth : 8%
Maximum Depth : 50%
Pivot Point : High of the handle
i.ibb.co i.ibb.co
Saucer with Handle Base
Shape : Similar to cup with handle, but cup looks like the saucer base.
Minimum Length : 6 weeks
Maximum Length : 65 weeks
Minimum Depth : 8%
Maximum Depth : 50%
Pivot Point : High of the handle
i.ibb.co
Ascending Base
Shape : An upward-sloping channel or wedge with 3 pullbacks. Each pullback low should be higher than the previous one. It needs around 20% increase from a base to the other.
Minimum Length : 8 weeks
Maximum Length : 16 weeks
Minimum Depth : 8%
Maximum Depth : 50%
Pivot Point : Left-side high of third base
i.ibb.co i.ibb.co
Consolidation Base
Shape : Similar to flat base, but wider and fails to form any of the above bases.
Minimum Length : 8 weeks
Maximum Length : 16 weeks
Minimum Depth : 8%
Maximum Depth : 50%
Pivot Point : Left-side high of base
i.ibb.co i.ibb.co
- Base Stages
Once a stock has completed its initial 30% run-up and formed its first base, that pattern is labeled Stage 1.
After a breakout from Stage N, the stock must rally at least 20% above the Stage N pivot (the base’s resistance point). If it does, the next valid base becomes Stage N + 1.
When a breakout fails to advance at least 20% a base on base forms. This is considered an extension for the current base stage, and a letter is assigned after the stage number.
When a breakout fails and the price undercuts the low for the previous base, the base stages reset, and a rally of 30% will be needed to form a new stage 1 base.
Note that for IPO stocks, a 30% increase is not required to form the first base. As soon as it meets any of the shape of any of the available bases, it will be drawn.
- Base statistics
To help you determine how healthy is a base, some statistics are available when you hover on the small dot shown above the high-left side of each base.
i.ibb.co
Base : The specific pattern type (Flat, Cup, Sauce, etc.).
Stage : The stage number of the base (1, 2, 3 …) and, in parentheses, how many distinct bases have formed since the very first base (including base-on-base like 1a, 1b, etc.).
Pivot : The resistance level that defines the top of the base. A close above this price often signals a valid breakout and a potential entry point.
Length : The number of bars (days on a daily chart; weeks on a weekly chart) between the start of the base and the bar immediately before breakout. (The initial bar and the breakout bar themselves are not counted.)
Depth : How far, in percentage terms, the low of the base has fallen below its left-side high.
Prior Uptrend : The percent gain from the pivot of the previous base up to the start of the current base.
Blue/Red Count : The number of up days (Blue) and down days (Red) during the base where volume was above the 50-period moving average.
Price % : The percent change from the close at the end of the base to the close at the breakout bar.
Volume % : The percent difference between the volume on the breakout bar and the 50-period average volume at the end of the base.
2. ANT Indicator (David Ryan)
The ANT indicator, developed by David Ryan, is a momentum-based signal used to identify high-potential breakout candidates during a stock’s run-up phase. It complements the base patterns by flagging moments of unusually strong price and volume activity within an uptrend, helping confirm emerging strength before or during a base formation.
i.ibb.co
3. Key Price Levels (Pivots)
Plots recent pivot-based support and resistance levels.
i.ibb.co
4. Index Line Overlay
Overlays a chosen index (e.g. SPX) on the top portion of the chart to compare relative performance.
i.ibb.co
5. Relative Strength (RS) Line
Plots the price ratio of the symbol vs. an index (e.g. SPX) to identify outperformance.
i.ibb.co
6. Moving Averages (SMA & RS-MA)
Allows up to four simple (or exponential) moving averages on price (daily/weekly) and three on the RS line.
7. Earnings Line & EPS Change
Marks earnings events on daily/weekly charts and optionally plots YoY EPS change in a lower portion of the chart. The earnings line also shows a projection to estimated earnings. To maintain alignment with the price chart, the line and YoY EPS data are limited to the most recent 28 quarters on weekly charts and 8 quarters on daily charts. For analyzing older data, you can use the replay feature.
i.ibb.co
8. Bars
Since Trading View displays very thin bars when zoomed out, I added 2-pixel-wide vertical lines over the bars to make them easier to see.
9. Dark Theme
I added this for a quick workaround to adapt colors for dark theme. Enabling this overrides any custom settings. Uncheck to customize colors.
i.ibb.co
Session Close/OpenThis indicator allows traders to mark and track two custom session times throughout each trading day, with flexible time zone and price source configuration.
Features:
Two configurable timestamps (e.g., session open and close) with adjustable hour and minute inputs.
Choose between multiple time zones: UTC-4 = New York
Mark the price at each selected time using either open, close, high, low, or any other price source.
Tracks and plots both current session and previous session values for each time point.
Visual markers appear as colored circles on the chart for clarity.
Built-in alert conditions when the live price touches either the current or previous session levels.
Use Cases:
- Monitor price reactions at key session opens or closes.
- Set alerts for breakouts or touches at specific time-based levels.
- Combine with other strategies to enhance time-based decision making.
- Perfect for intraday traders who want precise control over session-based reference points.
Position Size CalculatorPosition Size Calculator - User Guide
A simple tool to calculate optimal position size based on your risk preferences, visualize trade levels, and automatically determine trade direction.
Introduction
The Position Size Calculator is a TradingView indicator designed to help traders calculate the optimal position size for their trades based on account size and risk tolerance. This tool visually represents entry, stop loss, and take profit levels while automatically calculating the appropriate position size to maintain consistent risk management.
Getting Started
Setting Up Your Account Parameters
Setting Price Levels
Understanding the Visual Elements
Adjusting Your Trade on the Chart
Reading the Information Panel
1. Getting Started
After adding the indicator to your chart, you'll see three horizontal lines representing:
Yellow line: Entry price
Green line: Take profit price
Red line: Stop loss price
The indicator automatically detects whether you're planning a Long or Short trade based on the position of your take profit relative to your entry.
2. Setting Up Your Account Parameters
In the "Position Calculator" settings group:
Account Size : Enter your total account balance
Account Currency : Set your account currency (USD, EUR, etc.)
Risk (%) : Enter the percentage of your account you're willing to risk per trade (e.g., 2%)
Instrument Type : Select your trading instrument (Forex, Futures, Stocks, or Crypto)
Value per 0.01 lot per tick : Enter the value of 0.01 lots per tick (for most Forex pairs, this is $1 per pip for 0.01 lot)
Minimum Lot Size : Set the minimum lot size allowed by your broker (usually 0.01 for Forex)
3. Setting Price Levels
In the "Price Levels" section:
Entry Price : The price at which you plan to enter the trade
Stop Loss Price : Where you'll exit if the trade goes against you
Take Profit Price : Your target price where you'll take profits
If you set Entry Price to 0, it will default to the current price. If Stop Loss or Take Profit are set to 0, they'll default to 5% below or above entry price respectively.
4. Understanding the Visual Elements
Yellow line : Your entry price
Green line : Your take profit level
Red line : Your stop loss level
Green zone : The profit zone (between entry and take profit)
Red zone : The loss zone (between entry and stop loss)
Information panel : Shows all calculations and trade details
5. Adjusting Your Trade on the Chart
The beauty of this tool is its interactivity:
You can drag any of the lines directly on the chart to adjust entry, stop loss, or take profit
If you drag the take profit above the entry , the indicator automatically sets up for a Long trade
If you drag the take profit below the entry , it automatically configures for a Short trade
All calculations and visuals update in real-time as you adjust the lines
This means you can quickly test different scenarios and see how they affect your position size and potential profit/loss.
6. Reading the Information Panel
The information panel displays:
Account details : Your account size and currency
Risk information : Your percentage risk and the equivalent monetary amount
Position Size : The optimal lot size calculated based on your risk parameters
Price levels : Entry, Stop Loss, and Take Profit with distances in ticks
Risk/Reward ratio : Shown as 1:X (where X is the reward relative to 1 unit of risk)
Potential outcomes : The exact amount you stand to gain or lose on this trade
Trade direction : Whether this is a Long or Short trade
Visual Settings
You can customize the appearance in the "Visual" settings group:
Adjust colors for profit and loss zones
Change the transparency of colored zones
Toggle the filling of spaces between lines
Adjust how far the lines extend beyond the last candle
Practical Tips
Always double-check your "Value per 0.01 lot per tick" setting for the specific instrument you're trading
For Forex major pairs, the standard is usually $1 per pip for 0.01 lots
For other instruments, consult your broker's specifications
The indicator works best when you place your stop loss at a logical market level (support/resistance, swing high/low) rather than a fixed percentage
Final Thoughts
This Position Size Calculator helps remove emotion from your trading by objectively calculating your position size based on your predefined risk parameters. It ensures that you maintain consistent risk across all your trades, regardless of the stop loss distance, which is a key component of successful risk management.
Remember: The most important goal in trading is capital preservation. This tool helps you ensure that each trade risks only what you've decided is acceptable for your trading strategy.
Precision Trend Shot | JeffreyTimmermansPrecision Trend Shot
The "Precision Trend Shot" Indicator is an advanced technical tool designed to provide a dynamic and adaptive view of market trends. By combining three core components—RSI Oscillator, LSMA ATR, and Adaptable Trend—this indicator delivers precise signals that help traders identify market direction, volatility, and potential trend reversals. The calculated total score, derived from these components, provides a clear, actionable view of market conditions.
Key Features
Multi-Component Analysis: Integrates three key indicators (RSI, LSMA ATR, and Adaptable Trend) for a comprehensive view of market trends.
Dynamic Trend Classification: Categorizes market states as "Bullish" or "Bearish", based on a combined score.
Standard Deviation Bands: Displays standard deviation bands around the score line for enhanced volatility visualization.
Gradient Background Coloring: Visually highlights market phases with gradient colors, aiding quick interpretation.
Customizable Visuals: Offers extensive settings for coloring, background gradients, and signal visibility.
Real-Time Alerts: Generates alerts for significant trend changes or transitions between market states.
Inputs & Settings
RSI Settings:
RSI Source: Default: Close price. Defines the data source for RSI calculation.
RSI Length: Default: 10. Sets the period for calculating RSI.
LSMA ATR Settings:
LSMA Source: Default: Close price. Defines the data source for LSMA calculation.
LSMA Length: Default: 21. Sets the period for calculating the Least Squares Moving Average.
ATR Length: Default: 12. Sets the period for calculating the Average True Range.
Adaptable Trend Settings:
Trend Length: Default: 5. Sets the period for calculating the trend.
Smoothing Length: Default: 5. Controls the smoothing of trend volatility.
Sensitivity: Default: 1.5. Adjusts the sensitivity of trend bands.
Standard Deviation Settings:
Enable Standard Deviation Bands: Default: True. Toggles the display of standard deviation bands.
Standard Deviation Length: Default: 20. Sets the period for standard deviation calculation.
Standard Deviation Multiplier: Default: 2.0. Adjusts the width of the bands.
Smoothing Length: Default: 5. Controls the smoothing of standard deviation bands.
Visual Settings:
Enable Candle Coloring: Default: True. Colors candles based on market state (Bullish or Bearish).
Enable Background Gradient: Default: True. Applies gradient coloring to the background based on trend direction.
Score Line Colors: Customize colors for bullish or bearish score lines.
Calculation Process
RSI Calculation:
Computes the Relative Strength Index (RSI) of the selected source data.
Signals bullish (RSI > 50) or bearish (RSI < 50) conditions.
LSMA ATR Calculation:
Computes LSMA for trend direction and ATR for volatility measurement.
Generates buy and sell signals based on crossover and crossunder of ATR bands.
Adaptable Trend Calculation:
Calculates dynamic trend levels using EMA and standard deviation bands.
Classifies trend states as Bullish or Bearish.
Combined Signal Calculation:
Averages the signals from RSI, LSMA ATR, and Adaptable Trend to generate a total score.
Classifies the market as "Bullish" or "Bearish" based on this score.
Standard Deviation Bands:
Plots standard deviation bands around the combined signal for enhanced volatility analysis.
Gradient Background Coloring:
Colors the chart background based on the identified market state (Bullish or Bearish).
How to Use the Precision Trend Shot Indicator
Identifying Market States:
Bullish Market: Total score > 0, gradient background green.
Bearish Market: Total score < 0, gradient background red.
Confirming Signals:
Use RSI and LSMA ATR signals for early indications.
Use Trend Recon for confirming longer-term trend direction.
Visualizing Volatility:
Standard deviation bands highlight potential reversal zones.
Dynamic Alerts
The Precision Trend Shot Indicator includes a robust alert system for real-time market transitions:
Bullish to Bearish: Market shifts from a bullish to bearish trend.
Bearish to Bullish: Market shifts from a bearish to bullish trend.
Conclusion
The Precision Trend Shot Indicator is an advanced, versatile tool for identifying market trends, visualizing volatility, and generating actionable signals. With customizable settings, dynamic alerts, and clear visual representation, it is an essential addition to any trader’s toolkit.
-Jeffrey
Engulfing Candles with Liquidity SweepOverview
The Engulfing Candles with Liquidity Sweep indicator is designed to highlight high- and low-probability engulfing candle patterns, incorporating liquidity sweep logic for enhanced price action analysis. This script visually marks bullish and bearish engulfing events, differentiating between high-probability and low-probability setups, and plots key Fibonacci levels for each event.
🔶 USAGE
This indicator is ideal for traders seeking to identify potential reversal or continuation points based on engulfing candle patterns and liquidity sweeps. High-probability signals are based on strict engulfing and sweep criteria, while low-probability signals offer additional context for nuanced price action.
• High Probability Engulfing:
Highlights strong bullish or bearish engulfing candles that also sweep the previous candle’s high or low, suggesting a significant shift in market sentiment.
• Low Probability Engulfing:
Marks less strict engulfing patterns where the close remains within the previous candle’s range, providing early signals for potential reversals.
• Fibonacci Levels:
For each detected pattern, the script draws a 50% Fibonacci retracement line, helping traders identify potential retracement or reaction zones.
🔹 SETTINGS
• High Probability Engulfing Settings:
• Customizable colors, line styles, and widths for bullish and bearish fib lines
• Option to show/hide fib lines and pattern markers
• Low Probability Engulfing Settings:
• Separate color and style controls for low-probability signals
• Option to show/hide fib lines and pattern markers
• Alerts:
• Built-in alert conditions for all pattern types, enabling automated notifications
🔶 DETAILS
High Probability Bullish Engulfing:
• Previous candle bearish
• Current candle bullish
• Current low sweeps previous low
• Current close above previous high
High Probability Bearish Engulfing:
• Previous candle bullish
• Current candle bearish
• Current high sweeps previous high
• Current close below previous low
Low Probability Bullish Engulfing:
• Previous candle bearish
• Current candle bullish
• Current low sweeps previous low
• Current close between previous open and high
Low Probability Bearish Engulfing:
• Previous candle bullish
• Current candle bearish
• Current high sweeps previous high
• Current close between previous open and low
🔶 NOTES
• The indicator is fully customizable and can be adapted to various trading styles.
• All signals and levels are plotted directly on the chart for easy reference.
• Alerts can be set for any pattern, supporting both discretionary and automated trading approaches.
Disclaimer:This script is for informational and educational purposes only. It does not constitute financial advice. Use at your own risk.
Custom Message and Notes Rotator [NAMI-TRADING]Custom Message and Notes Rotator
Display up to five rotating text messages directly on your chart—ideal for notes, reminders or context cues without popping up alerts.
Key Features
Five Custom Messages & Toggles
Define Message 1–5 and switch each on/off independently.
Custom Text & Background Colors
Pick any text color and background shade to suit your chart theme.
Five Text-Size Presets
Choose from tiny, small, normal, large or huge for perfect readability.
Adjustable Rotation Interval
Set how often (in seconds) the display cycles through your messages.
Nine Position Options
Place your message table anywhere: top_left → bottom_right.
Inputs
Message 1–5 (string)
Show Message 1–5 (bool)
Text Color (color)
Background Color (color)
Text Size (tiny | small | normal | large | huge)
Interval (seconds) (int ≥1)
Table Position (top_left, top_center, …, bottom_right)
No guarantees or investment advice. This is a simple visual‐utility overlay. Feel free to experiment with colors, sizes and timing to suit your workflow!
Position size Margin & Lot Calculator [Algo Star]Position Size Margin & Lot Calculator is a lightweight Pine v5 indicator that helps you scale into a trade with five incremental “steps.”
What it does:
Takes your total capital and leverage settings
Splits your risk into five proportioned entries
Shows both the USD margin required and the corresponding MT4/MT5 lot size for each entry
Why you’ll love it:
No manual calculations—everything is displayed in a neat on-chart table
Fully configurable: set your account size, leverage, contract size and price source
Ideal for pyramiding or averaging in with controlled risk at each step
Just add it to any chart, tweak your inputs, and immediately see exactly how much margin and how many lots to allocate at each of the five pre-defined steps—perfect for systematic position sizing without the headache.
Quarterly Theory ICT 05 [TradingFinder] Doubling Theory Signals🔵 Introduction
Doubling Theory is an advanced approach to price action and market structure analysis that uniquely combines time-based analysis with key Smart Money concepts such as SMT (Smart Money Technique), SSMT (Sequential SMT), Liquidity Sweep, and the Quarterly Theory ICT.
By leveraging fractal time structures and precisely identifying liquidity zones, this method aims to reveal institutional activity specifically smart money entry and exit points hidden within price movements.
At its core, the market is divided into two structural phases: Doubling 1 and Doubling 2. Each phase contains four quarters (Q1 through Q4), which follow the logic of the Quarterly Theory: Accumulation, Manipulation (Judas Swing), Distribution, and Continuation/Reversal.
These segments are anchored by the True Open, allowing for precise alignment with cyclical market behavior and providing a deeper structural interpretation of price action.
During Doubling 1, a Sequential SMT (SSMT) Divergence typically forms between two correlated assets. This time-structured divergence occurs between two swing points positioned in separate quarters (e.g., Q1 and Q2), where one asset breaks a significant low or high, while the second asset fails to confirm it. This lack of confirmation—especially when aligned with the Manipulation and Accumulation phases—often signals early smart money involvement.
Following this, the highest and lowest price points from Doubling 1 are designated as liquidity zones. As the market transitions into Doubling 2, it commonly returns to these zones in a calculated move known as a Liquidity Sweep—a sharp, engineered spike intended to trigger stop orders and pending positions. This sweep, often orchestrated by institutional players, facilitates entry into large positions with minimal slippage.
Bullish :
Bearish :
🔵 How to Use
Applying Doubling Theory requires a simultaneous understanding of temporal structure and inter-asset behavioral divergence. The method unfolds over two main phases—Doubling 1 and Doubling 2—each divided into four quarters (Q1 to Q4).
The first phase focuses on identifying a Sequential SMT (SSMT) divergence, which forms when two correlated assets (e.g., EURUSD and GBPUSD, or NQ and ES) react differently to key price levels across distinct quarters. For example, one asset may break a previous low while the other maintains structure. This misalignment—especially in Q2, the Manipulation phase—often indicates early smart money accumulation or distribution.
Once this divergence is observed, the extreme highs and lows of Doubling 1 are marked as liquidity zones. In Doubling 2, the market gravitates back toward these zones, executing a Liquidity Sweep.
This move is deliberate—designed to activate clustered stop-loss and pending orders and to exploit pockets of resting liquidity. These sweeps are typically driven by institutional forces looking to absorb liquidity and position themselves ahead of the next major price move.
The key to execution lies in the fact that, during the sweep in Doubling 2, a classic SMT divergence should also appear between the two assets. This indicates a weakening of the previous trend and adds an extra layer of confirmation.
🟣 Bullish Doubling Theory
In the bullish scenario, Doubling 1 begins with a bullish SSMT divergence, where one asset forms a lower low while the other maintains its structure. This divergence signals weakening bearish momentum and possible smart money accumulation. In Doubling 2, the market returns to the previous low and sweeps the liquidity zone—breaking below it on one asset, while the second fails to confirm, forming a bullish SMT divergence.
f this move is followed by a bullish PSP and a clear market structure break (MSB), a long entry is triggered. The stop-loss is placed just below the swept liquidity zone, while the target is set in the premium zone, anticipating a move driven by institutional buyers.
🟣 Bearish Doubling Theory
The bearish scenario follows the same structure in reverse. In Doubling 1, a bearish SSMT divergence occurs when one asset prints a higher high while the other fails to do so. This suggests distribution and weakening buying pressure. Then, in Doubling 2, the market returns to the previous high and executes a liquidity sweep, targeting trapped buyers.
A bearish SMT divergence appears, confirming the move, followed by a bearish PSP on the lower timeframe. A short position is initiated after a confirmed MSB, with the stop-loss placed
🔵 Settings
⚙️ Logical Settings
Quarterly Cycles Type : Select the time segmentation method for SMT analysis.
Available modes include : Yearly, Monthly, Weekly, Daily, 90 Minute, and Micro.
These define how the indicator divides market time into Q1–Q4 cycles.
Symbol : Choose the secondary asset to compare with the main chart asset (e.g., XAUUSD, US100, GBPUSD).
Pivot Period : Sets the sensitivity of the pivot detection algorithm. A smaller value increases responsiveness to price swings.
Pivot Sync Threshold : The maximum allowed difference (in bars) between pivots of the two assets for them to be compared.
Validity Pivot Length : Defines the time window (in bars) during which a divergence remains valid before it's considered outdated.
🎨 Display Settings
Show Cycle :Toggles the visual display of the current Quarter (Q1 to Q4) based on the selected time segmentation
Show Cycle Label : Shows the name (e.g., "Q2") of each detected Quarter on the chart.
Show Labels : Displays dynamic labels (e.g., “Q2”, “Bullish SMT”, “Sweep”) at relevant points.
Show Lines : Draws connection lines between key pivot or divergence points.
Color Settings : Allows customization of colors for bullish and bearish elements (lines, labels, and shapes)
🔔 Alert Settings
Alert Name : Custom name for the alert messages (used in TradingView’s alert system).
Message Frequenc y:
All : Every signal triggers an alert.
Once Per Bar : Alerts once per bar regardless of how many signals occur.
Per Bar Close : Only triggers when the bar closes and the signal still exists.
Time Zone Display : Choose the time zone in which alert timestamps are displayed (e.g., UTC).
Bullish SMT Divergence Alert : Enable/disable alerts specifically for bullish signals.
Bearish SMT Divergence Alert : Enable/disable alerts specifically for bearish signals
🔵 Conclusion
Doubling Theory is a powerful and structured framework within the realm of Smart Money Concepts and ICT methodology, enabling traders to detect high-probability reversal points with precision. By integrating SSMT, SMT, Liquidity Sweeps, and the Quarterly Theory into a unified system, this approach shifts the focus from reactive trading to anticipatory analysis—anchored in time, structure, and liquidity.
What makes Doubling Theory stand out is its logical synergy of time cycles, behavioral divergence, liquidity targeting, and institutional confirmation. In both bullish and bearish scenarios, it provides clearly defined entry and exit strategies, allowing traders to engage the market with confidence, controlled risk, and deeper insight into the mechanics of price manipulation and smart money footprints.
Thai Gold BahtIndicator Name: Thai Gold Baht
Short Title: Thai Gold Baht
Purpose
This indicator calculates and visualizes the real-time price of 1 Thai Gold Baht (15.244 grams) based on the global gold price ( XAU/USD ) and the USD/THB exchange rate .
Users can customize gold weight and purity to simulate the local Thai gold market price.
What it does
Retrieves live gold price per troy ounce in USD
Retrieves current USD to Thai Baht exchange rate
Converts the value using user-defined weight and purity
Displays result as a real-time chart
Shows calculation details in the Data Window
Ideal for
Traders tracking Thai gold based on international prices
Analysts comparing local and global bullion markets
Anyone needing a configurable, transparent gold price conversion
Pine Script Functionality
// Uses XAU/USD and USD/THB as inputs
// Calculates 1 Baht Gold (96.5% default purity)
// Outputs the value in THB as a chart line
ชื่ออินดิเคเตอร์: Thai Gold Baht
ชื่อย่อ: Thai Gold Baht
วัตถุประสงค์
อินดิเคเตอร์นี้ใช้คำนวณและแสดงราคาทองคำไทย 1 บาท (15.244 กรัม) แบบเรียลไทม์
โดยอ้างอิงจากราคาทองคำในตลาดโลก ( XAU/USD ) และอัตราแลกเปลี่ยน USD/THB
ผู้ใช้สามารถกำหนดน้ำหนักทองและความบริสุทธิ์เองได้ เพื่อจำลองราคาทองคำในประเทศไทยอย่างแม่นยำ
สิ่งที่อินดิเคเตอร์นี้ทำ
ดึงราคาทองคำแบบเรียลไทม์ต่อทรอยออนซ์ในสกุลเงิน USD
ดึงอัตราแลกเปลี่ยน USD → THB แบบเรียลไทม์
คำนวณราคาจากน้ำหนักและเปอร์เซ็นต์ความบริสุทธิ์ที่ผู้ใช้กำหนด
แสดงผลลัพธ์เป็นกราฟแบบเรียลไทม์ในหน่วยบาทไทย
แสดงรายละเอียดการคำนวณในหน้าต่าง Data Window ของ TradingView
เหมาะสำหรับ
นักเทรดที่ต้องการติดตามราคาทองคำไทยจากราคาทองคำตลาดโลก
นักวิเคราะห์ที่เปรียบเทียบราคาทองคำในประเทศและต่างประเทศ
ผู้ใช้งานที่ต้องการการแปลงราคาทองคำระหว่างประเทศให้โปร่งใสและปรับแต่งได้
การทำงานของ Pine Script
// ใช้ข้อมูล XAU/USD และ USD/THB เป็นอินพุต
// คำนวณราคาทองคำไทย 1 บาท (ความบริสุทธิ์เริ่มต้นที่ 96.5%)
// แสดงผลเป็นเส้นกราฟของราคาทองคำในหน่วยบาทไทย
Real-Time Price Line by Candle ColorThis indicator draws a horizontal line at the current price that updates in real time on each candle. The line:
Extends infinitely left and right
Changes color based on the current candle:
🟢 Green if the candle is bullish (close ≥ open)
🔴 Red if the candle is bearish (close < open)
Automatically clears and redraws each bar to reflect the latest price and direction
Use this as a simple but effective visual aid to track the live price and its directional bias.