#TheStrat Multi-Timeframe In-Force Signals, Failed 2's, and FTFCThis indicator combines #TheStrat concepts of bar combinations, in-force signals, and timeframe continuity with 'Failed 2's' which can be early indication of a trend reversal.
It’s designed to help identify the prevailing trend but also reversal points when timeframe-based ranges are reclaimed because a signal failed or went out-of-force.
Core Concepts
1. TheStrat Bar Types
• 1 (Inside Bar): High ≤ previous high and Low ≥ previous low.
• 2U (Two Up): High > previous high and Low ≥ previous low.
• 2D (Two Down): Low < previous low and High ≤ previous high.
• 3 (Outside Bar): High > previous high and Low < previous low.
2. Failed 2’s — Definition & Detection
A Failed 2 occurs when a directional break (2U or 2D) reverses before following through.
This script lets you choose from four failure-definition modes:
1. Open — A 2U fails if last price is below open; a 2D fails if last price is above open.
2. Reclaim — A 2U or 2D fails if last price is within the previous bar’s range.
3. Both — Both of the above conditions must be met.
4. Either — Either condition must be met.
Failed 2U setups are bearish; Failed 2D setups are bullish.
You can also enable FTFC Override, which ignores reclaim-type failures when all higher timeframes are in full agreement with the current trend.
3. Timeframe Continuity (TFC)
TFC measures directional agreement across multiple timeframes.
• Full TFC (FTFC) Up: All selected timeframes above their opens.
• Full TFC (FTFC) Down: All selected timeframes below their opens.
• Mixed or neutral conditions are also displayed.
The indicator tracks classic TFC and supports trend-flip alerts when full agreement changes direction.
Features
• Customizable TFC table showing bar types, failed status, in-force status, reclaims, and direction arrows.
• Automatic bar coloring for TFC alignment, failed-2 transitions, or neutral states.
• Alerts for TFC trend flips.
• Multi-timeframe scanning with selectable intervals.
• Option to highlight bars that trigger a TFC flip due to failed-2 events.
Use Cases
• Quickly gauge market bias across multiple timeframes
• Identify failed 2 reversals against higher timeframes
• Spot potential turning points when trend flips occur
Limitations
This is a tool which can give earlier indication of trend reversals but is highly dependent on selected timeframes. This is discretionary, but having a range of higher and lower timeframes works best. In many cases, it will give the same trend 'flip' that classic FTFC would (based on open).
Ranges are based on timeframes, not swing highs and lows. The selected timeframes must capture the swing high or low to show a 'range' reclaim.
Timeframes lower than the display timeframe cannot be accurately shown due to PineScript limitations. They are 'greyed out' and not included in calculations or displays.
This script is based on the FTFC indicator by TradeForOpportunity with deep gratitude. It has been modified and expanded with permission under MPL 2.0.
Indicators and strategies
ICT NY Opens (12AM/8:30/9:30)This indicator plots three key New York session reference levels used by ICT traders and intraday scalpers: the Midnight Open (12:00 AM EST), the 8:30 AM EST level (common macro print window), and the 9:30 AM EST RTH open. Each line is drawn at that day’s opening price for the specified time and extends horizontally to 4:15 PM TDC so you always have clean, fixed anchors for the entire trading day.
Volume Analysis with Averages- LEMAZZEThis is a Pine Script indicator that analyzes trading volume with two moving averages. Here's what it does:
Features:
Plots raw volume as a histogram colored by price movement (green=up, red=down, gray=neutral)
Adds two Simple Moving Averages (SMA) of volume:
Blue line: 21-period SMA (default)
Orange line: 34-period SMA (default)
Creates alert conditions for:
High volume (when volume exceeds both MAs)
Low volume (when volume is below both MAs)
Displays the last values in a label on the right side of the chart
Customization Options:
Adjustable lengths for both moving averages (with reasonable min/max limits)
Transparency settings for the colors (currently at 70% opacity)
Usage:
The indicator helps identify periods of unusually high or low volume compared to recent averages, which can signal potential trend changes or confirm existing trends.
OBV Breakout Screener (By Tarso)1. Purpose of the Indicator
The "Advanced OBV Breakout Screener" is a specialized tool designed to find a powerful bullish signal. It scans for assets where buying pressure is increasing significantly, even though the price has not yet broken out.
The core strategy is to identify assets where:
Volume is leading Price: The On-Balance Volume (OBV) has already broken its recent high.
Price is still contained: The asset's price has not yet broken its recent high.
This setup helps you find potential trading opportunities right before a possible upward move.
2. How to Set Up the Indicator
First, you need to add the script to your TradingView account.
Open any chart on TradingView.
Click on the "Pine Editor" tab at the bottom of the screen.
Delete any existing code and paste the entire "Advanced OBV Breakout Screener" script into the editor.
Click "Add to chart". The indicator will now appear in a separate panel below your main price chart.
3. How to Use it with the Pine Screener (Step-by-Step)
This is the main purpose of the indicator. The script does all the complex analysis and provides a simple "1" (Signal is ON) or "0" (Signal is OFF). You only need to set up one filter.
Open the Stock Screener (or Crypto/Forex Screener).
Click the Filters button to open the settings panel.
Ensure you are on the Pine Screener tab (this allows you to filter using custom indicators).
In the indicator selection menu (it might say "Select Indicator..."), find and choose Advanced OBV Breakout Screener from your list.
Now, configure the single filter condition as follows:
In the first box, select Advanced Breakout Signal.
In the second box, select Equal to.
In the third box, select Number and type 1.
Your filter setup should look clean and simple, like this:
That's it! The screener will now display a list of all assets that currently meet the "Advanced Breakout" criteria for the timeframe you have selected (e.g., Daily, 4h, 1h).
4. Configuring the Lookback Period
By default, the indicator analyzes the last 20 periods. If you want to change this (for example, to scan for breakouts over 50 days), you must adjust it in the indicator's settings on your chart.
Go back to your chart view.
Find the "Advanced OBV Breakout Screener" panel.
Click the Settings icon (⚙️) next to the indicator's name.
In the "Inputs" tab, change the "Lookback Period (days)" to your desired value.
Click "OK".
The Pine Screener will automatically use this new setting for its market scan.
5. Understanding the On-Chart Visuals
When you add the indicator to your chart, you will see:
Blue Line: This is the On-Balance Volume (OBV).
Red Stepped Line: This represents the highest value the OBV has reached during the lookback period. A breakout happens when the blue line moves above this red line.
Green Triangle (▲): This symbol appears below a price candle whenever the full "Advanced Breakout" condition (OBV breakout + Price containment) is met, giving you a clear visual confirmation.
EPS QoQ % ChangeThis indicator calculates and displays the quarter-over-quarter (QoQ) percentage change in earnings per share (EPS) directly on your chart, aligned with each earnings event.
It is designed to quickly highlight EPS growth or decline without the need to open an earnings report, providing traders and investors with instant, visual performance context.
Features :
- Automatic Earnings Detection: Identifies earnings bars and calculates QoQ % change.
- Color-Coded Text: Positive changes are shown in your chosen “up” color, declines in your “down” color, and flat results in a neutral color.
- Customizable Appearance: Choose text size and colors to match your chart style.
- Tooltip Support: Optional detailed tooltip showing reported EPS, previous EPS, and calculated QoQ change.
- Compact Layout: Displays in its own pane to avoid cluttering price action.
Use Cases :
- Quickly assess EPS growth trends over time.
- Spot significant earnings beats or misses without reading earnings transcripts.
- Use alongside other technical or fundamental tools for better decision-making.
8 EMA ScannerThis script allows you to see the market sentiment with a quick glance. If price is above the 8EMA, the background will be shaded green and if price is below the 8EMA, it will be red.
Harmonic Pattern Detection, Prediction, and Backtesting System3 Indikaotren in einem, Trendline, Patterns und Breaker Blocks
Highlight Selected PeriodSelect a month and all past/future months will be highlighted yellow for down and white for up. Example (2024-09-01) enter this value and all septembers will be highlighted.
AlgoFlex Buy Sell Signals FREE📢 Introducing AlgoFlex Free — Buy/Sell Signals for All Traders
We’re excited to release our first free AlgoFlex algorithm to the TradingView community!
This version provides clear Buy/Sell signals directly on your chart, helping you spot potential entries and exits with confidence.
✅ Features
Real-time Buy and Sell alerts
Works on any market & timeframe
Clean, minimal chart display
Optimized for trend-following & quick decision making
💡 How to Use
Add this script to your chart
Choose your preferred market & timeframe
Follow the Buy/Sell labels for trade ideas
(Optional) Enable TradingView alerts for instant notifications
⚠ Disclaimer
This script is for educational and informational purposes only.
Always do your own research and use proper risk management before trading live capital.
🚀 Upgrade to AlgoFlex Premium for advanced AI-driven signal modes, higher accuracy, and additional strategy filters. Contact us via our profile for details or Download the App from App store/ google play to get access.
algoflex.org
Triple RSI BitgetConcept of the Triple RSI
It calculates 3 RSIs with different periods (for example, 7, 14, and 21).
Then, it combines or displays these 3 values to provide a broader and more nuanced view of momentum.
This allows capturing signals for the short, medium, and long term within a single indicator.
Typical settings for the Triple RSI on Bitget (example)
RSI 1: period 7
RSI 2: period 14
RSI 3: period 21
Classic levels for each RSI: 70 (overbought) and 30 (oversold)
Usefulness
Provides more confirmation than a simple RSI
Helps avoid some false signals
Allows anticipating reversals with greater accuracy
Two EMAs + Custom Fill simple ema crosses with custom fills. Custom length adjustments on each ema, with custom colour fill on ema crosses.
Enhanced 4H Candle Countdown & High/Low IndicatorBy profitgang
This Pine Script indicator provides real-time tracking of 4-hour timeframe levels with an integrated countdown timer, designed to help traders monitor key support and resistance zones.
Key Features
📊 Visual Elements
4H High/Low Lines: Clear visualization of previous 4-hour candle high and low levels
Range Fill: Subtle background fill between high and low for better context
Mid-Level Line: Shows the middle point of the 4H range
Position Indicator: Visual cue showing current price position within the range
⏰ Countdown Timer
Real-time countdown to next 4H candle close
Customizable table position (9 different locations)
Adjustable text size (6 size options from Tiny to Huge)
Distance calculations showing percentage distance from key levels
🎯 Signal Generation
Long signals when price crosses above 4H low
Short signals when price crosses below 4H high
RSI confluence filter to reduce false signals
Background highlighting for active signals
TradingView alerts compatible
⚙️ Customization Options
Toggle all features on/off independently
Custom colors for all elements
Table positioning (top/middle/bottom + left/center/right)
Text size selection for optimal readability
Alert notifications for level breaks and updates
How It Works
The indicator fetches the previous 4-hour candle's high and low values and displays them as horizontal lines on your current timeframe chart. It continuously calculates the time remaining until the current 4H candle closes and presents this information in a clean, customizable table.
Use Cases
Swing Trading: Identify key 4H support and resistance levels
Intraday Trading: Monitor when new 4H levels will be established
Risk Management: Calculate distance from key levels for position sizing
Multi-timeframe Analysis: Combine with lower timeframe setups
Educational Purpose
This indicator is designed for educational and analytical purposes to help traders understand price action relative to higher timeframe levels. It provides clear visual feedback about market structure and timing.
Settings Groups
Display Settings: Toggle features, positioning, and sizing
Colors: Customize all visual elements
Signal Settings: Configure alert conditions and confluence filters
Compatibility
Works on all timeframes (recommended for 1m to 1H charts)
Compatible with all instruments
Includes proper alert functionality for automated notifications
Optimized for both light and dark themes
This indicator does not provide financial advice. Always conduct your own research and risk management before making trading decisions.
SPX Trendlines with VIX Levels By- Profit gang
This comprehensive technical analysis tool combines SPX trendline analysis with VIX volatility levels to help identify potential market turning points. The indicator is specifically designed with non-repainting logic to ensure reliability for both backtesting and live trading.
🔧 KEY FEATURES:
Non-Repainting Design: All signals and lines are drawn only on confirmed bars using barstate.isconfirmed
Dynamic Trendlines: Automatically draws support and resistance lines connecting recent pivot points
VIX Integration: Displays current VIX levels with customizable thresholds for market sentiment analysis
Multiple Visual Elements: Includes diagonal trendlines, horizontal level lines, and an information table
Comprehensive Alerts: Configurable alert system for both buy and sell signals
Clean Interface: Organized inputs and customizable colors for all elements
📊 TRADING CONCEPT:
The indicator utilizes the inverse relationship between VIX and SPX:
High VIX at pivot lows may indicate oversold conditions (potential buying opportunities)
Low VIX at pivot highs may signal complacency at market tops (potential caution zones)
🎛️ CUSTOMIZATION OPTIONS:
Toggle trendlines, VIX labels, and level lines independently
Adjust VIX thresholds (default: 25 high, 18 low)
Customize pivot length for sensitivity (default: 15)
Choose line styles (solid, dashed, dotted) and widths
Personalize all colors and alert preferences
📈 VISUAL COMPONENTS:
Red Lines: Resistance levels and trendlines
Green Lines: Support levels and trendlines
Information Table: Real-time VIX status and current levels
Signal Shapes: Triangle markers for confirmed buy/sell signals
Background Highlighting: Optional signal emphasis
⚠️ EDUCATIONAL PURPOSE:
This indicator is designed for educational and informational purposes. Past performance does not guarantee future results. Always conduct your own research and consider risk management before making trading decisions.
🔔 ALERT SYSTEM:
Separate alerts for buy and sell signals
All alerts trigger only on confirmed bars
Customizable alert messages with price and VIX data
Multiple alert condition options for flexible setup
Perfect for traders who want to combine technical analysis with volatility sentiment in a reliable, non-repainting format.
BTC Correlation PercentagePurpose
This indicator displays the correlation percentage between the current trading instrument and Bitcoin (BTC/USDT) as a text label on the chart. It helps traders quickly assess how closely an asset's price movements align with Bitcoin's fluctuations.
Key Features
Precise Calculation: Shows correlation as a percentage with one decimal place (e.g., 25.6%).
Customizable Appearance: Allows adjustment of colors, position, and calculation period.
Clean & Simple: Displays only essential information without cluttering the chart.
Universal Compatibility: Works on any timeframe and with any trading pair.
Input Settings
Core Parameters:
BTC Symbol – Ticker for Bitcoin (default: BINANCE:BTCUSDT).
Correlation Period – Number of bars used for calculation (default: 50 candles).
Show Correlation Label – Toggle visibility of the correlation label.
Visual Customization:
Text Color – Label text color (default: white).
Background Color – Label background color (default: semi-transparent blue).
Border Color – Border color around the label (default: gray).
Label Position – Where the label appears on the chart (default: top-right).
Interpreting Correlation Values
70% to 100% → Strong positive correlation (asset moves in sync with BTC).
30% to 70% → Moderate positive correlation.
-30% to 30% → Weak or no correlation.
-70% to -30% → Moderate negative correlation (asset moves opposite to BTC).
-100% to -70% → Strong negative correlation.
Practical Use Cases
For Altcoins: A correlation above 50% suggests high dependence on Bitcoin’s price action.
For Futures Trading: Helps assess systemic risks tied to BTC movements.
During High Volatility: Determines whether an asset’s price change is driven by its own factors or broader market trends.
How It Works
The indicator recalculates automatically with each new candle. For the most reliable results, it is recommended for use on daily or higher timeframes.
This tool provides traders with a quick, visual way to gauge Bitcoin’s influence on other assets, improving decision-making in crypto markets. 🚀
This response is AI-generated, for reference only.
New chat
Minimalist RSI - Nasdaq (14) with Volume Filter and AlertsDescription:
This indicator shows the standard RSI (period 14) adapted for Nasdaq, with a clean and minimalist design. It adds visual levels for overbought (75) and oversold (25), plus an optional centerline 50 to better interpret momentum.
It incorporates a high volume visual filter to confirm signals and avoid false entries in low-interest conditions. Buy and sell signals are based on RSI crosses in extreme zones, optionally filtered by volume to improve reliability.
You can enable automatic alerts to receive notifications when important signals occur.
How to use:
Watch the RSI and its position relative to overbought/oversold zones and the 50 line.
Wait for high volume confirmation for greater reliability (you can disable this filter if preferred).
Use buy and sell signals alongside your price action and overall context analysis to make decisions.
Set alerts to not miss opportunities.
Important Notice:
This indicator is a support tool, not a complete strategy. Trading involves risks and no guarantees. Always use risk management and test the indicator on a demo before using it live.
Personal note:
This is my first script and I would love to receive constructive feedback to improve and offer better tools to the community. Thanks for trying it!
Motivational phrase:
“No risk, no reward.”
Breakout Pullback Reload FireBreakout Pullback Reload Fire (BPRF) is a price-action strategy designed to catch continuation moves after a breakout and retest. It identifies high-probability setups where price:
Breaks out above or below a key baseline (SMA).
Pulls back to retest that baseline (the “reload”).
Fires in the original breakout direction, signaling trend continuation.
How It Works
Baseline: Simple Moving Average (SMA) with adjustable length.
Breakout Threshold: Auto-scales using ATR or Z-score, so it works consistently on any symbol or timeframe without manual re-tuning.
Pullback Band: Defines how close price must come to the SMA for a valid “reload.”
Signal Confirmation: Requires a close back in the breakout direction after the pullback.
Filters: Max bars to complete the pattern, and minimum bars between signals to avoid noise.
Features
Works across Forex, Stocks, Crypto, Futures, and Metals.
Auto-normalization means the same settings work from 1-minute charts to daily or higher.
Alerts for both Buy and Sell signals so you can trade in real time.
Label plotting for easy visual backtesting.
Best for: Traders who like trend continuation setups after a clean breakout and pullback, and want an adaptable tool that works across markets without constant re-configuration.
UPTREND DOWNTREND Buy/Sell by EAGLE EYESUPTREND DOWNTREND Buy/Sell by EAGLE EYES is a trend-following indicator designed to help traders quickly identify market direction and take timely Buy or Sell decisions.
It works by analyzing price action, trend strength, and momentum shifts to plot clear visual labels for UPTREND (Buy) and DOWNTREND (Sell) zones on the chart.
Key Features:
Clear Trend Direction: Highlights bullish (UPTREND) and bearish (DOWNTREND) phases directly on the chart.
Buy/Sell Signals: Generates easy-to-read Buy/Sell markers for quick decision-making.
Works on All Timeframes & Assets: Suitable for stocks, forex, crypto, and commodities.
Noise Reduction: Filters out small market fluctuations to avoid false signals.
User-Friendly: No complex settings—simple and effective visual guidance.
Trading Tip:
Use this indicator alongside volume analysis or support/resistance zones to confirm signals for higher accuracy.
BTCUSDT Correlation TableThis indicator calculates and displays the correlation between the current chart’s asset and Bitcoin (BTCUSDT) over a selected period. The correlation is shown as a percentage in a compact table on the chart.
Key features:
Customizable BTC symbol – default is BINANCE:BTCUSDT.
Adjustable correlation period – set the number of bars used for correlation calculation.
Color-coded output:
Green for strong positive correlation (above +80%)
Red for strong negative correlation (below –80%)
Blue for neutral correlation
Use this tool to quickly assess whether your asset is moving in sync with Bitcoin, inversely, or independently.
Indicator: Profitability by Day & Hour (stacked, non-overlay)What it does
This tool performs a simple seasonality study on the selected symbol. It measures historical returns and summarizes them in two horizontal heatmaps:
Hours table (top) — Columns 00–23 show the average return of each clock hour, plus sample size, win rate, volatility (SD), and a t-score.
Days table (middle) — Columns 1–7 correspond to Mon–Sun with the same metrics.
Summary (bottom) — Shows the most profitable day and hour in the history loaded on your chart.
Green cells indicate higher average returns; red cells indicate lower/negative averages. The layout is centered on the screen, with the hours table above the days table for quick scanning.
How it works (methodology)
Returns: by default the indicator uses log returns ln(Ct/Ct-1) (you can switch to simple % if you prefer).
Daily aggregation (no look-ahead): day statistics are computed from completed daily closes via a higher timeframe request. Yesterday’s daily close vs. the prior day is added to the appropriate weekday bucket, preventing repaint/forward bias.
Hourly aggregation (intraday only): hour statistics are computed bar-to-bar on the current intraday timeframe and accumulated by clock hour (00–23) of the symbol’s exchange timezone.
Metrics per bucket:
Mean: average return in that bucket.
n: number of observations.
Win%: share of positive returns.
SD: standard deviation of returns (volatility proxy).
t-score: mean / SD * sqrt(n) — a quick stability signal (not a hypothesis test).
The indicator does not rely on future data and does not repaint past values.
Reading the tables
Start with the Mean row in each table: it’s color-mapped (red → yellow → green).
Check n (sample size). A bright green cell with very low n is less meaningful than a mild green cell with large n.
Use Win% and SD to judge consistency and noise.
t-score is a compact “signal-to-noise × sample size” measure; higher absolute values suggest more stable effects.
Typical observations traders look for (purely illustrative): for some equity indices, the first hour after the cash open can dominate; for FX/crypto, certain late-US or early-Asia hours sometimes stand out. Always verify on your symbol and timeframe.
INTRADAY BOOST SINGNALS BY EAGLE EYESPurpose
Designed for short-term, high-activity traders who want quick trade entries and exits during market hours.
Likely focuses on momentum, volume spikes, and trend confirmation to catch intraday moves.
Key Features It Might Include
Signal Generation
Buy Signal: When upward momentum + volume surge + trend confirmation occurs.
Sell Signal: When downward momentum + high selling volume + trend reversal is detected.
Signals are probably marked with green arrows (buy) and red arrows (sell) on the chart.
Core Indicators Inside (probable)
Volume Filters: Detects strong participation behind the move.
Moving Average / EMA crossovers: Confirms short-term direction.
RSI / Stochastic: Filters out overbought/oversold traps.
Supertrend / UT Bot logic: Ensures signals follow a trend, not just noise.
Intraday Optimization
Works best on short timeframes like 1-min, 5-min, 15-min charts.
May include session filters so signals only trigger during active market hours.
Alerts
Configured so TradingView can send alerts for buy/sell signals in real-time.
Visuals
Arrows, colored bars, background shading for bullish/bearish momentum.
Possibly a dashboard showing trend strength, signal count, win ratio.
How It Helps Intraday Traders
Quick decision-making: Immediate visual and alert-based guidance.
Avoids overtrading: Filters false signals during sideways markets.
Momentum-based: Focuses on high-probability moves with strong backing.
Calc Option Pos SizeAn indicator to help you calculate the optimal number of options to buy based on the dollar amount of risk you want to take.
It also displays the planned risk-to-reward ratio (RR).
Important metrics such as the number of contracts to buy and the RR are updated live based on the current ticker price.
With spread support, you can simulate buying not at the mid-price but including the spread. This is factored into both the RR calculation and the number of contracts to buy.
You can predefine up to 10 strategies for scaling out of your option position, based on the number of contracts you hold.
Once you activate Manage Trade mode, the indicator shows how many contracts to close when the underlying asset reaches Profit Target 1 or Profit Target 2, along with visual signals.
While in a trade, you can also draw a trailing stop-loss level on the chart to help manage your position.
⸻
How to get started
1. Select the same ticker as the one currently shown on your chart.
2. Set the colors to your preferences.
3. Define your “scale-out” strategies.
• Example: If you have 6 contracts — at PT1 sell 3, at PT2 sell 2, and leave 1 as a runner.
4. Set the dollar amount you are willing to risk.
5. Define the planned Entry, Stop Loss, Profit Target 1, and Profit Target 2.
6. Enter the Delta and Spread for the option strike you plan to buy.
⸻
Once you are in a trade
1. Update the Date, Hour, and Minute to match the candle when you entered.
2. Set the number of contracts you purchased to activate your predefined scale-out strategy.
IB LRS & CISD - LEMAZZEthe "IB LRS & CISD - LEMAZZE" TradingView indicator script. This is a comprehensive tool that combines three key technical analysis components:
Initial Balance (IB):
Tracks the high/low range during a user-defined session (default 9:30-10:30)
Offers customization for visualization (colors, labels, line styles)
Can display only current levels or all historical levels
Linear Regression Slope (LRS):
Plots a linear regression line based on user-defined length (default 14)
Shows slope direction with coloring
Includes optional alerts for zero-line crosses
Change in Supply/Demand (CISD):
Identifies trend changes using two methods (Classic or Liquidity Sweep)
Marks CISD events with labels and trend lines
Customizable colors and detection parameters
The script also includes an information table at the bottom right that displays:
Current Initial Balance levels
LRS slope direction (Bullish/Bearish/Neutral)
CISD trend state
Key features worth noting:
The Initial Balance can be extended left/right/both/none
Multiple style options for lines and labels
The CISD component has sophisticated logic for detecting trend changes
The script manages historical data efficiently with max_bars_back settings
The code is well-structured with clear sections for each component and uses Pine Script's newer features like typed variables (bin, swing) and object-oriented approaches for drawing tools.