Session ModelSessionModel.pine - Indicator Overview
Purpose: A deterministic session model indicator that identifies trading sessions (Asian, London, NY), builds range levels from specific time windows, detects price action states (Range → Sweep → Displacement → Rebalance), and tracks divergences across 3 index symbols.
Key Feature: Uses a fixed internal timeframe (engineTF) for all decision logic, ensuring identical results regardless of what chart timeframe you're viewing.
---
HUD Display Rows - Explanations
1. SESSION
- Values: ASIAN | LONDON | NY | WAITING
- Meaning: Which trading session is currently active
- Why it matters: Each session uses different range references (ASIAN uses NY PM range, LONDON uses Asia range, NY uses London or ORB range)
2. STATE
- Values: Range | Sweep | Displacement | Rebalance
- Meaning: Current phase of the price action state machine
- Why it matters:
- Range: Building session extremes, awaiting price structure break
- Sweep: Price penetrated range boundary and closed back inside (rejection)
- Displacement: Directional move away from the range (trend confirmation)
- Rebalance: Retracement within displacement zone before resuming direction
3. CORRELATION (SMT)
- Values: Bull | Bear | Neutral
- Color: Green (Bull) | Red (Bear) | Orange (Neutral)
- Meaning: Smart Money divergence detection between US500, US100, US30
- Why it matters:
- Bull: At least one index makes new LOW but NOT all (weak shorts = bullish)
- Bear: At least one index makes new HIGH but NOT all (weak longs = bearish)
- Neutral: All indices move same direction OR insufficient window data
4. RANGE H (Range High)
- Values: Price level or "-" (not set)
- Color: Red (matching input.color rangeHighColor)
- Meaning: The highest price reached during the active range window
- Why it matters: Upper boundary for sweep detection and displacement measurement
5. RANGE L (Range Low)
- Values: Price level or "-" (not set)
- Color: Green (matching input.color rangeLowColor)
- Meaning: The lowest price reached during the active range window
- Why it matters: Lower boundary for sweep detection and displacement measurement
6. SWEEP
- Values: High | Low | "-" (not in sweep)
- Color: Yellow (if sweeping) | Gray (if not)
- Meaning: Direction of the current sweep if state == 2
- Why it matters:
- High: Price broke above range high and closed back below (bearish rejection)
- Low: Price broke below range low and closed back above (bullish rejection)
- Shows which boundary was "swept" and rejected
7. DISP DIR (Displacement Direction)
- Values: Bullish | Bearish | "-" (not displacing)
- Color: Green (Bullish) | Red (Bearish) | Gray (Not active)
- Meaning: Direction of the current displacement move (state == 3 or 4)
- Why it matters: Confirms directional bias during displacement phase
- Bullish: Price displaced above range after sweeping low
- Bearish: Price displaced below range after sweeping high
8. LEG 50% (Displacement 50% Retracement)
- Values: Price level or "-" (not set)
- Color: Cyan/Aqua
- Meaning: 50% retracement level between displacement origin and extreme
- Formula: displacementOrigin + (displacementExtreme - displacementOrigin) * 0.5
- Why it matters:
- Key retracement zone during displacement and rebalance phases
- Often acts as resistance (if bullish displacement) or support (if bearish)
- Used in rebalance trigger logic
---
How to Read the HUD Together
Example 1: Waiting for Entry
Session: NY
State: Range
Correlation: Neutral
Range H: 4050.25
Range L: 4040.50
Sweep: -
Disp Dir: -
Leg 50%: -
→ NY session active, building range. No sweep yet, no displacement. Waiting for price action.
Example 2: Sweep Detected
Session: NY
State: Sweep
Correlation: Neutral
Range H: 4050.25
Range L: 4040.50
Sweep: Low
Disp Dir: -
Leg 50%: -
→ Price swept below range low (rejected), now countdown timer running. Likely reversal coming.
Example 3: In Displacement
Session: NY
State: Displacement
Correlation: Bull
Range H: 4050.25
Range L: 4040.50
Sweep: Low
Disp Dir: Bullish
Leg 50%: 4060.75
→ After sweeping low, price displaced bullish. SMT confirming (bull divergence on indices). 50% at 4060.75 is key retracement zone.
Multitimeframe
Backtest Pro - The TradingView Backtesting EngineBacktest your indicators — no strategy code required. Backtest Pro is the next-generation backtesting engine for smarter testing. Simply link your signals, set your stops, and start testing.
With its upgraded UI/UX and fundamentally improved stop system, Backtest Pro replaces the legacy PSE (Practical Strategy Engine) and sets a new standard for TradingView backtesting. It delivers more accurate intrabar trailing stops, flexible stop types (Points, ATR Multiplier, %), and a smoother workflow for greater precision and control.
Once loaded on your chart, Backtest Pro appears as BT Pro as the script title and in the Strategy Tester, alerts, and chart labels.
Beyond the core stop and pyramiding logic, Backtest Pro also introduces:
A clearer Data Window for reviewing trade details.
Improved signal labels in the Strategy Tester’s List of Trades for easier log analysis.
Updated chart labels that align better with TradingView’s native style and make signals easy to interpret. Together, these improvements make Backtest Pro the most practical and user-friendly way to backtest indicator-based trading signals in TradingView.
Copyright © 2025 CoinOperator
________________________________________________________________________________
🚀 Why Traders Choose Backtest Pro
Answer in minutes what used to take days of manual testing.
Backtest Pro is a drop-in, ready-to-use backtesting engine that links to your indicator with just a few simple connection lines. It provides more accurate intrabar trailing stops, multiple stop types (Points, ATR Multiplier, %), and a smoother workflow for greater precision and control.
Whether you’re running a quick test or fine-tuning complex strategies, Backtest Pro helps you reach clearer insights faster.
________________________________________________________________________________
👤 Who Backtest Pro Is For
Backtest Pro is designed for traders who already have a trading methodology or entry/exit logic and want professional-grade validation and risk analysis.
Backtest Pro is not a signal service and does not provide discretionary trade recommendations. All entries and exits — including alerts used for automation — are generated solely from user-defined logic.
You bring the logic — Backtest Pro provides the structure, metrics, and discipline.
Backtest Pro helps swing traders, day traders, and strategy developers streamline the backtesting process without sacrificing depth or accuracy. It offers flexible stop management, enhanced Data Window metrics, refined Strategy Tester labeling, and clean on-chart visuals to support consistent evaluation.
Backtest Pro supports trading and backtesting on futures (continuous contracts), forex, crypto, stocks, ETFs, and commodity/index CFDs (tradable if offered by your broker).
________________________________________________________________________________
⚡ Quick Start
Add Backtest Pro to your chart. It appears as BT Pro as the script title and in the Strategy Tester, alerts, and chart labels.
Add a few connector lines to your indicator, then link your custom entry and exit signals.
Adjust position sizing, stops, and pyramiding.
Run the TradingView Strategy Tester for instant results.
________________________________________________________________________________
🔄 From PSE to Backtest Pro
Backtest Pro builds on the foundation of the PSE (Practical Strategy Engine), evolving it into a more refined tool. While PSE introduced flexible stop handling, Backtest Pro enhances the experience with:
More accurate intrabar trailing stops
Expanded stop type options (Points, ATR Multiplier, %)
Upgraded Data Window for easier review
Clearer trade signals in the Strategy Tester
Cleaner, more consistent chart labels
Wash Sale Prevention is Now Optional. If enabled, it only applies to assets of types stock and fund.
🛠 INPUTS TAB SETTING
📅 Trading Window
Enable Trading Window to define the date/time when trading is allowed. Disable to trade the entire market data.
Partition the time when trading is allowed to see if your indicator settings work well across the different ranges. Your resulting metrics should be acceptable across all four (4) ranges: entire range, 1st half, IQR, and 2nd half.
Show Trading Window Lines – Enable to draw vertical lines at the start and end of the trading window for clear visual definition of when trading is allowed.
💰 Position Sizing (Money Management)
Separating the equity risk into initial position and pyramid position allows for greater ability to maximize profits within your acceptable drawdown.
Note : Position sizing is determined on the anticipated fill price which is affected by the maximum of slippage and selected price gap (discussed in the Execution Rules section). Max Equity per Position (%) : This setting applies to each position within a trade group . Limits the position size and will not exceed this amount. Set as desired. Default is 20% for non-leverage trading. For leveraged trading, adjust accordingly. Example: for 3× leverage, enter 300 (3 × 100 = 300).
Max Equity Drawdown Warning (%) : Triggers an alert if the strategy’s equity drawdown exceeds this threshold. Select the method to use for this warning. If BT Pro, then it is based on peak equity at bar-close. If TradingView, then it is based on the built-in variable strategy.max_drawdown_percent. Helps you manage strategy-level risk tolerance.
Scaled Pyramiding : Adjusts position size incrementally for each pyramid entry—either decreasing or increasing exposure relative to the prior entry.
Start Position: The entry number at which scaling begins. For example, 3 means scaling starts on the 2nd pyramid (the 3rd entry overall).
Chg(%): The percentage change applied to each subsequent pyramid entry.
Max(%): The maximum cumulative reduction allowed when scaling downward. Ignored for upward scaling because increases are already capped by Max Equity per Position (%).
⚖️ Execution Rules
Trade Direction : Select either Both , Long Only, or Short Only.
Alert Failed to Trade – Enable to alert you when a trade did not happen due to low equity or low order size. Applicable only for the first position of a trade group.
Cooldown Period : Controls how long the engine waits after an exit before allowing a new trade group. Backtest Pro also applies a small built-in safeguard to prevent unrealistic same-bar flips: ● 1 bar minimum for same-direction entries
● 2 bars minimum for direction changes
Prevent Wash Sales : Enable if you want the Backtest Pro to enforce a minimum cooldown period of 30 days for trade groups that result in a loss. Only applies to assets of types stock and fund.
Pyramid Conditions with Price Gaps : Dwn Gap and Up Gap refer to price gaps. A price gap is the difference between the closing price of the previous candle and the opening price of the current candle, and their value is shown in the Data Window. Selection options include: disabled (the default), median, avg, p80 (for 80th percentile), and p90 (for 90th percentile). The values reflect ~500 most recent bars from the cursor position. Disabled sets the Dwn Gap and Up Gap to zero in the below logic. Pyramids require a tailing stop loss, TSL. The price gaps are used in conditions for pyramids:
To ensure the previous position is protected when opening a pyramid position. A new pyramid position will not open until its trailing stop loss protects the prior position.
To prevent a pyramid position from becoming a loss when too close to a take profit level, TP (if enabled), due to commission cost.
The logic for #1 and #2 is as follows:
For a Long Pyramid: TSL: Stop Price - max(DwnGap, slippage) > LastEntryPrice
TP (if enabled): Long take profit > close + max(UpGap, slippage) AND gain > commission cost
For a Short Pyramid:
TSL: Stop Price + max(UpGap, slippage) < LastEntryPrice
TP (if enabled): Short take profit < close - max(DwnGap, slippage) AND gain > commission cost
Show All Gap Stats in Data Window
Enable to show all price gap statistics in the Data Window to review market conditions.
Disable for the Backtest Pro to run most efficiently.
Note: Statistics selected in Dwn Gap and Up Gap settings are always shown, regardless of this option.
🛑 Exit Strategy (Risk Management)
Backtest Pro supports multiple stop loss styles, giving traders the tools to backtest strategies in TradingView with precision:
The Exit Strategy applies a common protective stop across the entire trade group.
Pyramids require a trailing stop loss. A new pyramid position will not open until its trailing stop loss protects the prior position.
Plot Stop Level : You can plot the stop level either as of bar close (the default) or as of bar open. This only affects the visual plot. The underlying logic does not change. The trades will be the same regardless of the setting.
ATR Length : The ATR Length is used with the ATR multiplier and is common to stop loss, SL, trailing stop loss, TSL, take profit, TP, and the time-based exit option. It is the number of bars (periods) used in ATR calculation.
Price-Based Exits Stop Loss and Trailing Stop Loss options are Points, ATR Multiplier, and %.
The Trailing Stop Loss is activated from entry of the initial position of a trade group.
Take Profit options are Points, ATR Multiplier, %, and R-Multiple. How Trailing Stops Work in the Backtest Pro All trailing stop inputs (Points, ATR Multiplier, or %) are converted at the first entry into a fixed currency offset.
That offset is reactive intrabar and applied as the trailing distance from the most favorable price (highest for longs, lowest for shorts) since the first entry in the trade group.
Even if “%” is selected as the input method, the engine uses the fixed currency offset.
The trailing stop offset (points) is displayed in the Data Window for reference, allowing you to enter that offset directly at your broker if needed.
⚠️ Caution: Always enter a points-based trailing stop at your broker—never a percentage-based trailing stop. Volatility-Based Exit While in a trade, ATR values are accumulated each bar. The position exits once the total exceeds ATR Multiplier × ATR at entry if the Reward/Risk is below the set threshold.
Dividends are not included in reward (i.e., profit).
👉 These flexible stop types solve one of the biggest limitations of the legacy PSE and make Backtest Pro a true TradingView backtesting engine.
📑 Trade Signal Labels in Strategy Tester
Backtest Pro uses standardized trade labels in the Strategy Tester → List of Trades. These labels make it easy to understand the reason behind each entry or exit at a glance. Entry : Standard entry signal when conditions are met.
Stop : Stop-loss exit triggered at your defined stop level.
Pyr-Entry : Pyramid entry, adds to an existing position.
Trail-Stop : Trailing stop exit based on offset logic. Note : If the stop level has been adjusted to equal the trailing stop level, the Strategy Tester may display Stop instead of Trail-Stop. The exit displayed is the one Pine Script evaluates first, but the actual exit behavior remains correct.
Exit : Standard exit signal.
Delay-Exit : One-bar delayed exit, prevents immediate exit when position entry and exit signal occur on the same bar.
TP : Take Profit exit, closes position at your profit target.
RR-Exit : Reward/Risk exit — position closes when ATR accumulation exceeds the set threshold and R/R is below target.
📊 Performance Metrics & Reporting
Include Dividends in Profit
Adjusts ROI, CAGR, Reward/Risk, Avg Invest/Trade-Grp, and Equity.
Assumes dividends are taken as cash (not reinvested). They are applied to Equity on the ex-date instead of the payment date.
Only applies if the security issues dividends and the chart is 1D or lower timeframe; otherwise ignored.
Include Dividends in Profit Factor
Applies only when Include Dividends in Profit is enabled.
Adds dividend income to both gross profits and gross losses when calculating Profit Factor, so PF reflects total return (trading + dividends).
Affects Avg Trade-Grp Loss, Equity Loss from ECL, and Equity Loss from ECL (%).
Show Dividends
Displays the payout in currency/share, as well as the total amount based on the number of shares of the position(s) currently held by the trade group. For long positions you earned the dividends. For short positions you owe the dividends.
Show Metrics Table
The on-chart Metrics Table displays a compact set of key statistics for quick reference and mobile use. Full and expanded metrics are available in the Data Window on desktop or browser. Section groupings may differ between the table and Data Window to optimize readability and presentation in each context.
📊 Data Window
Note : Accessible via a button on the right-hand toolbar of the chart interface. Unlike the Metrics Table, Data Window values update dynamically as you move your cursor across bars. All metrics are based on trade groups.
Trade Information
Enter Price
Stop Price
Favorable Extreme : only shows if trailing stop loss is enabled on Inputs tab. The most favorable price (highest for longs, lowest for shorts) since the first entry in the trade group.
TSL Offset Points : only shows if trailing stop loss is enabled on Inputs tab.
Take Profit : only shows if take profit is enabled on Inputs tab.
Leverage information applies to trade groups.
Fail Pos / Margin (%) : Shows zero if the failed position size was <1, or the margin % that failed to meet the requirement in the Properties tab. A flag appears above the bar where a failed trade occurred. Only applies to the first position of a trade group. Hover over the flag to view the value in the Data Window.
Notional Value : total trade group position size x latest entry price x point value. The equity must be > notional value x margin requirement for a trade to occur.
Current Margin (%) : must be greater than margin requirement set on the Properties tab in order for a trade to occur.
Margin Call Price : when enabled on the Style tab is displayed on both the chart and the Data Window as shown below.
Performance Net Profit (%) : Will include dividends if 'Include Dividends in Profit' is enabled. Only shows in Data Window if 'Include Dividends in Profit' is enabled.
ROI (%) and CAGR (%) : Based on Avg Invest/Trade-Grp. Adjusted for dividends if enabled.
Reward/Risk (profit/risked, expectancy per amount risked): Adjusted for dividends if enabled. Color is green if above breakeven, red if below, and yellow if within ±0.1 tolerance.
Profit Factor (PF) : By default, dividends are not counted in win/loss classification.
Win % : Uses same coloring scheme as Reward/Risk except uses a ±2% tolerance for yellow. Breakeven point is the balance between Reward/Risk and Win %, showing whether the system can be profitable. For example, for a low Win % a high Reward/Risk is needed for the system to be potentially profitable. Equity & Growth
Equity : Your current equity.
Dividend Sum : The amount of total dividends accumulated since entering the market. Only shows in Data Window if 'Include Dividends in Profit' is enabled. Risk & Drawdown
Maximum Drawdown (MDD)
Measures the largest peak-to-trough decline in account equity over the entire backtest.
A new peak is recorded whenever equity reaches a new high; the system then tracks the lowest equity seen until a new peak forms.
This method uses bar-close equity including both realized and unrealized P&L. Therfore, it may not match TradingView’s displayed drawdown values which use a different method.
Maximum Drawdown %
Expresses MDD as a percentage of the equity peak from which the decline occurred.
This normalizes drawdown across different account sizes and assets, making strategy-to-strategy risk comparisons more meaningful.
Maximum Consecutive Losses applies to trade groups.
Equivalent Consecutive Losses (ECL) : Based on Win % and Nbr of Trade-Grp’s.
Simulates a realistic losing streak with intermittent small wins.
Lowered by increasing Win %.
Equity Loss from ECL : Equity drawdown estimated from ECL.
Equity Loss from ECL (%) : Same, expressed as a percentage.
Avg Trade-Grp Loss Trade Structure
Backtesting Years : The trading window in years.
Nbr of Trade-Grp’s : Count of trade groups.
Nbr of Positions : The count of positions shown on the chart.
The TV list of trades in the Strategy Tester may indicate more than what is actually shown on the chart.
Avg Invest/Trade-Grp : Avg money invested per trade group. Adjusted for dividends if enabled.
Avg Trade-Grp Days : The average number of days for trade groups.
Time in Market (%) : The percentage of time in a trade based on the trading window.
Cnt 1st EE Same-Bar is the count of first positions in a trade group that enter and exit on the same bar. Labels appear above for easy reference. Helps assess optimal stop-loss settings.
Cnt Pyr EE Same-Bar is the count of pyramid positions in a trade group that enter and exit on the same bar. Labels appear above for easy reference. Helps assess optimal stop-loss settings. Up Gaps / Dwn Gap (Ticks) ( Show All Gap Stats in Data Window enabled )
Median gap
Avg gap
80 percentile
90 percentile
Price Gap (Ticks) ( Show All Gap Stats in Data Window disabled )
Dwn Gap : Shows selected option if not disabled.
Up Gap : Shows selected option if not disabled.
Data Quality
Tick Resolution measures how many minimum price increments (ticks) fit into the current asset’s price. It is calculated as: Tick Resolution = Price / Minimum Tick Size. This value indicates the precision available for order placement and stop calculations.
Green – High resolution (>= 1000). The strategy’s stop and profit calculations will operate with normal accuracy.
Yellow – Moderate resolution (100-999). Stop levels are still functional but may exhibit minor rounding effects.
Red – Low resolution (< 100). This can distort trailing stops, stop losses, or take profits due to coarse rounding by TradingView’s broker emulator.
⚠️ Caution : When Tick Resolution is in the red zone, results from backtests may differ significantly from live trading because price precision is too low for reliable simulation.
💡 Tip : If low tick resolution is present at the beginning of the chart’s market data (often with very old price history), use the Trading Window to restrict backtesting to later periods where the asset price has risen and tick resolution is higher.
👁 Visualization
Highlight Traded Background
Trade groups are shown in background color of green for long positions and red for short positions. Set as desired.
Show Losing Trade Groups
Losing trade groups are indicated at the exit with label text in the color blue. Used to easily find consecutive losses affecting your strategy’s performance. The dividend payment, if any, is not considered in the calculation of a win or loss.
Show Position Values
Enable to show the currency value of each position in gold color.
Show Max Drawdown (Peak & Trough) Enable to show the peak and trough labels on the price chart. Based on equity at bar close. Use to easily identify the bar associated with the peak and trough of equity.
Select label size for your preference.
Alert on Expiring GTC Orders
Backtest Pro includes an optional alert that warns you when a Good-Til-Canceled (GTC) order is approaching expiration. This feature is designed as a safety net, helping you avoid unprotected trades caused by broker-imposed GTC expirations. This alert is sent a few days before a 60-day time period you’re if still in an open position.
By default, the alert is enabled, offering protection for traders who may not actively monitor order expiry rules.
Professional users who already track expirations can disable the feature in the settings to streamline alerts.
🔌 Signal Connection
Click the dropdown and select the entry and exit signal to establish a connection to your indicator.
Separate Entry and Exit Signal Connections.
Backtest Pro requires separate entry and exit signals. Indicators that already produce distinct events integrate cleanly and make strategies easier to read, debug, and maintain.
If your indicator currently uses a combined signal (e.g., buy = 1, sell = –1, flat = 0), that structure can create overlap or conflicts during backtesting.
Don’t worry — later in this manual, you’ll learn exactly how to adapt your indicator so it outputs clear entry and exit signals compatible with Backtest Pro.
🔌 Configure Your Indicator for Entry and Exit Signals
This section explains how to structure your indicator’s entry and exit signals so they can connect seamlessly with the Backtest Pro engine.
Define your own conditions for when to enter or exit positions using any technical logic you prefer. You can configure exits independently of entries or make them dependent on them—for example, exiting only when the opposite entry condition occurs.
Below are a few examples of how you might define Long and Short Entry Signals before connecting them to Backtest Pro.
________________________________________________________________________________
Examples of Long Entry Signals
ind_sig_long = oscillator > UpperLimit
ind_sig_long = ta.crossover(ta.sma(close, 14), ta.sma(close, 28))
ind_sig_long = MACD_hist > 0 Examples of Short Entry Signals
ind_sig_short = oscillator < LowerLimit
ind_sig_short = ta.crossunder(ta.sma(close, 14), ta.sma(close, 28))
ind_sig_short = MACD_hist < 0 ________________________________________________________________________________
Combining and Refining Your Signals
If your indicator uses multiple internal conditions, you can combine them using logical operators or threshold rules before connecting to the Backtest Pro engine.
1. Combine multiple conditions
Use logical and / or to merge your conditions into one signal:
Entry_Long = ind_sig_long1 and ind_sig_long2 // both must be true
Entry_Short = ind_sig_short1 or ind_sig_short2 // either may be true ________________________________________________________________________________
2. Require a minimum number of confirming conditions
You can also define a threshold for how many entry conditions must be true before triggering a signal. This can help ensure stronger confirmation.
minNbr_Entries = input.int(defval=1, title='Min Number of Entry Conditions')
// Convert boolean signals to numeric form
longCount = (ind_sig_long1 ? 1 : 0) + (ind_sig_long2 ? 1 : 0)
shortCount = (ind_sig_short1 ? 1 : 0) + (ind_sig_short2 ? 1 : 0)
// Require at least minNbr_Entries to confirm signal
Entry_Long = longCount >= minNbr_Entries
Entry_Short = shortCount >= minNbr_Entries
Do likewise for your Exit conditions to ensure consistency in trade confirmation.
________________________________________________________________________________
Defining Exits
Independent of Entries
Exit_Long = ta.crossunder(ta.rsi(close, 14), 70)
Exit_Short = ta.crossover(ta.rsi(close, 14), 30) Dependent on Entries
Exit_Long = Entry_Short // exit longs when short entry triggers
Exit_Short = Entry_Long // exit shorts when long entry triggers ________________________________________________________________________________
Final Signals to Connect to Backtest Pro
entry_signal = Entry_Long ? 1 : Entry_Short ? -1 : 0
exit_signal = Exit_Long ? 1 : Exit_Short ? -1 : 0
plot(entry_signal, title="entry_signal", color = color.blue, display=display.data_window)
plot(exit_signal, title="exit_signal", color = color.red, display=display.data_window) ________________________________________________________________________________
Notes
You can easily expand this structure to handle three or more conditions by adding them to the count expression.
If your indicator already provides a single entry_signal, you can connect it directly to Backtest Pro without modification.
Always ensure your final Entry_Long, Entry_Short, Exit_Long, and Exit_Short variables are boolean (true / false).
🔒 Connecting Closed-Source Indicators
If your indicator is closed-source (meaning you cannot view or modify its internal code), you’ll need to work with the plotted values it provides.
Create a connection indicator that reads those plotted values and converts them into clear entry and exit signals using the logic described above.
This connection indicator acts as a bridge between the closed-source indicator and Backtest Pro, allowing you to translate its behavior into standardized signal logic that the engine can process.
⚙️ PROPERTIES TAB SETTING
Initial Capital : Set as desired.
Base Currency : Leave as Default. The Backtest Pro is designed to use the instrument’s native currency, so changing this is not necessary.
Order Size : Essentially disabled. Position sizing is handled in the Inputs tab and is based on a percentage of equity.
Pyramiding : Set as desired.
Commission : Enter as a percentage of position value. The Backtest Pro is designed to work only with commission expressed this way.
Verify Price for Limit Orders : Set as desired.
Slippage : Set as desired. See the Dwn/Up Gap values in Data Window to get an idea of possible values to use.
Margin (Leverage Trading):
The Backtest Pro supports both leveraged and non-leveraged trading (default is no leverage).
Note : The following two settings apply at the trade group level . For example, to trade with 5× leverage, enter 20 (1 ÷ 5 × 100 = 20).
Margin for Long Positions : Set as desired. Default is 100%.
Margin for Short Positions : Set as desired. Default is 100%.
Recalculate After Order Is Filled (default is enabled)
Enabling this allows the Backtest Pro to function correctly and to recalculate immediately after an order is filled , which makes it possible to:
Enter and exit on the same bar (because the strategy sees the fill instantly).
Trigger alerts immediately after the fill , instead of waiting for the next bar close.
You may see the following Caution! message in the TradingView Strategy Tester:
This warning occurs because the strategy parameter calc_on_order_fills = true . You can safely close the caution message and know the Backtest Pro will produce realistic backtest results.
Recalculate On every tick : Disable.
Fill Orders
Using Bar Magnifier : Recommended if your TradingView plan supports it. Improves intrabar accuracy, but the strategy can still run without it.
On Bar Close : Must remain disabled. Enabling this prevents the Backtest Pro from working as intended.
⚠️ Caution : Enabling On Bar Close forces all orders to be evaluated only at bar close. This disables intrabar logic, prevents same-bar entries and exits, and breaks trailing stop / pyramid behavior. For the Backtest Pro to work as intended, On Bar Close must remain disabled .
Using Standard OHLC : Recommended if running the strategy on Heikin Ashi charts. Otherwise, set as desired. The default is enabled.
📢 Using The Alert Dialog Box Message Field
When setting alerts, include alert() function calls with order fills to allow notifications for drawdown exceeded, Failed to Trade (if enabled), and to be warned of expiring GTC orders (if enabled).
Example Message for Order Fill Alerts
(This is just an example. Consult TV manual for possible placeholders to use.)
Position: Current = {{strategy.market_position}}, Previous = {{strategy.prev_market_position}}
{{strategy.order.action}} {{strategy.order.contracts}} shares at price = {{strategy.order.price}} on {{exchange}}:{{ticker}} (TF: {{interval}})
Equity_Multiplier = {{strategy.order.contracts}} x {{strategy.order.price}} ÷ {{plot("Equity")}}
{{strategy.order.alert_message}}
Note :
Use a known account equity multiplied by Equity_Multiplier to determine the total currency amount required for position sizing—especially when managing multiple accounts with different equity levels.
What {{strategy.order.alert_message}} Includes
This placeholder automatically inserts the additional information generated for each order fill alert (blank for exits):
Stop Price (on first entries is based on bar close prior to order fill bar)
TSL Offset (Pts) distance from Favorable Extreme (for pyramid entries)
TP (on first entries is based on bar close prior to order fill bar)
Price Gap (Pts) based on your gap selection and slippage entered
Example Message for Bot Trading Alerts
(You must consult your specific bot for configuring the alert message. This is just an example.)
"action": "{{strategy.order.action}}",
“price”: {{strategy.order.price}}
"amount": {{strategy.order.contracts}},
"botId": "1234"
Multi-Indicator DashboardMulti-timeframe trading dashboard overlay on your chart. Analyzes Trend, Momentum, Swing, Strength, Direction, Volatility, and delivers a final VIEW (Bullish/Bearish/Flat) across 5 key timeframes. Perfect for quick multi-TF alignment checks! W → D → 2H → 1H → 15M
Features
Color-Coded Cells: Green (Bullish), Red (Bearish), Gray (Neutral).
Historical Mode: Toggle "Enable Historical View" → Slider picks N bars back (chart TF-aware: e.g., 10 bars = 2.5H on 15M).
Yellow vertical line + date label marks the exact bar
Quick Setup
Add to chart → Customize inputs.
Historical: Enable + slide "Bars Back" for past data snapshots.
Views Update Live: Real-time on current/historical bars.
DAX-30 ATRX V2Updated DAX-30 ATRX strategy with visuals to manually trade the strategy.
FX:GER30
Optimized settings:
HTF timeframe for trend bias: 4 hours
HTF EMA length: 24
Min HA body size (pts): 0.5
- Use RSI filter
RSI length: 14
RSI threshold: 50
- Use Fisher filter
Fisher length: 18
- Use Volume filter
Volume lookback: 20
Volume spike multiplier: 1.2
ATR length: 13
ATR mean length: 80
SL = ATR x: 0.9
TP = Risk x: 2.1
- Use NY session filter
NY session start hour: 9
NY session end hour: 18
Max trades per day: 2
☑ Show SL/TP Boxes
☑ Show Entry Label
SL/TP Line Length (bars): 5
Master Analytics Dashboard Pro V6Works in any market including Crypto and Stocks
1. Navigating the Settings (Inputs)
Click the "Gear" icon next to the indicator name on your chart to open the settings. You will see several sections with (i) icons—hover over these for helpful tips.
Dashboard Aesthetics: Use this to move the dashboard (e.g., to "Bottom Left") or change the background transparency.
Dashboard Data Toggles: What to display on dashboard.
Technical Settings: This is where you adjust the UT Bot Key and RSI lengths/MACD. For beginners, the default settings are usually best.
SMA/EMA and VWAP Lines: Can add up to 5 SMA and 3 EMA lines and fully customizable. By default SMA 610 ( for lowest bottom) and classical EMA 9, 20, 200 and VWAP will display.
MTF Timeframes: You can choose which timeframes the dashboard monitors. By default, it tracks from 5m up to 1D to show you the "Big Picture" trend.
2. Understanding the Dashboard & Ribbon
The dashboard acts as your "Control Center," aggregating data so you don't have to switch charts.
Trend Ribbon (Cloud): When the cloud is Green, the immediate trend is bullish. When it is Red, the trend is bearish.
Ribbon Trend (MTF): This row shows if the ribbon is bullish or bearish across other timeframes.
Confluence %: This is your most important number. A score of 80% or higher means almost all indicators (MACD, RSI, Trends) are aligned in one direction.
3. Setting Up Individual Alerts
One of the most powerful features of this script is the ability to trigger alerts individually.
Select Your Triggers: In the indicator settings under "7. Alert Thresholds," check only the boxes you want (e.g., Bullish Ribbon Flip). By default, all other alerts are unchecked to prevent spam.
Create the Alert: Click the "Alert" icon (Alarm Clock) on the TradingView sidebar.
Condition: Select "Analytics" and then select "Any alert() function call".
Frequency: Choose "Once Per Bar Close" to ensure the signal is confirmed before you get a notification.
How to Trade:
🟢 The Bullish "Perfect Trade" Checklist
To confirm a high-probability Long entry, aim for as many of these "Green" signals as possible:
Trend Ribbon Flip: The primary ribbon cloud on your chart has turned Green, and price is trading above it.
Confluence Score ≥ 80%: The dashboard shows a bullish confluence of 80% or higher, indicating that RSI, MACD, and Trends are aligned.
MTF Alignment: At least 4 out of the 5 timeframes (e.g., 15m, 1h, 4h, 1D) show a BULL status.
Trend Status: The "Trend Source" row (EMA 200 or SMA 200) reads BULLISH, confirming the long-term trend is in your favor.
UT Bot Confirmation: A tiny BUY label has appeared on the chart (confirmed on bar close).
RSI Momentum: The RSI is above its Moving Average (TRUE) but has not yet crossed the Overbought (80) threshold. Look out for Yellow caution to indicate RSI is OB/OS (Above the candle is OB, below the candle is OS.
🔴 The Bearish "Perfect Trade" Checklist
To confirm a high-probability Short entry, look for these "Red" signals:
Trend Ribbon Flip: The ribbon cloud has turned Red, and price is trading below the basis line.
Confluence Score ≤ 20% (80% Bearish): The aggregate signal shows strong bearish pressure.
MTF Alignment: The higher timeframes (TF 4 and TF 5) specifically show a BEAR status, ensuring you aren't "fighting the trend".
Trend Status: Price is trading below the 200 EMA/SMA, showing the dashboard Trend Status as BEARISH.
UT Bot Confirmation: A tiny SELL label has appeared on the chart.
MACD State: The MACD Fast line is below the Signal line (FALSE on the "MACD > Sig" row).
SessionsThis indicator highlights the New York After Hours and Pre-Market session and visually defines its structure on the chart.
The session runs from 18:00 to 09:30 New York time, covering the full overnight and pre-market trading window leading into the regular cash open.
During this period, the script tracks and marks the high and low of the New York pre-market, allowing traders to clearly see the overnight range that often acts as key liquidity, support, and resistance during the regular trading session.
The session range can be displayed as a shaded background or as a high/low range, depending on user preference.
For clarity and precision, the indicator is visible only on intraday timeframes:
5-minute
30-minute
1-hour
This makes it especially useful for futures, index, and intraday traders who incorporate pre-market structure into their trading plans.
ETH Trading bot H1 Money maker i dont know what i did but it is looking good ; make sure you arent in a trade before you start the bot
Sessions by nolimitCustom Trading Sessions Indicator (6 Sessions)
This indicator allows you to display up to 6 customizable trading sessions on your chart with full control over timing, colors, and timezone settings.
Features:
- 6 independent trading sessions that can be enabled/disabled individually
- Flexible time range settings for each session
- Individual color selection for each session background
- Timezone selection (UTC-12 to UTC+12) that applies to all sessions
- Clean, organized settings grouped by session
Nuh's Complete Multi-Timeframe Dashboard v4.0Nuh's Complete Multi-Timeframe Dashboard v4.0 - Unified Power System
Professional Multi-Timeframe Technical Analysis Dashboard
Nuh's Complete Multi-Timeframe Dashboard v4.0 represents a comprehensive trading analysis system that unifies 20 powerful technical indicators across up to 6 customizable timeframes into a single, intelligent dashboard. This advanced indicator combines trend analysis (EMA, Alpha Trend, SuperTrend, ADX, DI), momentum oscillators (RSI, Stochastic RSI, MACD, CCI, Williams %R, WaveTrend, KST), volume indicators (OBV, CMF, Volume Analysis, MFI), and volatility measures (Squeeze Momentum, Bollinger Bands, ATR, Williams VIX Fix) to provide traders with a holistic market perspective. Each indicator can be independently enabled or disabled, allowing complete customization based on your trading strategy and preferences.
The revolutionary Weighted Power System is the core innovation of this dashboard, transforming raw indicator signals into actionable market power scores. Unlike traditional dashboards that simply count bullish or bearish signals, this system applies sophisticated weighting to each indicator based on your chosen preset (Balanced, Trend Focus, Momentum Focus, Volume Focus) or custom weights. It then combines these weighted signals across multiple timeframes—with timeframe-specific weighting for scalping, day trading, or swing trading styles—to calculate an Overall Market Power score. This provides you with clear percentage-based bullish and bearish power readings, eliminating guesswork and enabling confident trade decisions backed by mathematical confluence.
Built for serious traders who demand precision and flexibility, the dashboard features a fully customizable display with 20 indicator rows that can be reordered to match your preferences, color-coded gradient visualization for instant market sentiment recognition, and integrated Wundertrading-compatible alerts for automated trading. The system supports both legacy count-based alerts and modern power-threshold alerts, allowing you to receive notifications when market conditions meet your specified confluence requirements. Whether you're scalping on lower timeframes or swing trading on higher timeframes, this professional-grade tool adapts to your trading style while maintaining clean, readable visualization that won't clutter your charts.
Malaysian SNR Levels + FVGThis indicator combines the precision of Malaysian SnR levels with Fair Value Gap (FVG) detection, filtering levels to only appear within active FVG zones. This unique combination helps traders focus on the most relevant support and resistance levels where institutional order flow is likely present.
█ WHAT ARE FAIR VALUE GAPS (FVGs)?
A Fair Value Gap is a three-candle pattern where price moves so aggressively that it leaves an unfilled gap between the first and third candle:
Bullish FVG: Occurs when the low of candle 3 is higher than the high of candle 1, creating a gap to the upside.
Bearish FVG: Occurs when the high of candle 3 is lower than the low of candle 1, creating a gap to the downside.
These gaps represent areas of imbalance where price moved too quickly, often due to institutional activity. Price tends to return to these zones to "fill" or "mitigate" the gap before continuing its move.
█ WHAT ARE MALAYSIAN SNR LEVELS?
Malaysian SnR identifies support and resistance not as zones but as precise horizontal levels derived from a line chart perspective:
A-Level: Located at peaks of the line chart (shaped like the letter A)
V-Level: Located at valleys of the line chart (shaped like the letter V)
Gap Level: Located at the Close/Open gap between two consecutive candles of the same color
Levels can be Fresh (solid line) or Unfresh (dashed line):
A level is fresh if it hasn't been tested by a wick
Fresh levels have higher probability of price reaction
A level becomes fresh again if crossed by a candle body
█ THE COMBINATION: SNR LEVELS INSIDE FVGs
This indicator only displays SNR levels that fall within an active (non-invalidated) FVG zone. This filtering mechanism provides several advantages:
Reduced Noise: Instead of showing all nearby levels, only those within institutional imbalance zones are displayed
Higher Confluence: When a precise SNR level sits inside an FVG, it creates a high-probability reaction zone
Dynamic Updates: As FVGs get invalidated, the associated levels disappear, keeping your chart clean
█ FVG INVALIDATION LOGIC
An FVG remains active until price invalidates it:
Bullish FVG: Invalidated when price moves below the bottom of the gap
Bearish FVG: Invalidated when price moves above the top of the gap
You can choose the invalidation method:
Body Close (default): FVG is only invalidated when a candle body closes beyond the zone
Wick: FVG is invalidated as soon as a wick touches beyond the zone
█ MULTI-TIMEFRAME SUPPORT
Both FVGs and SNR levels are calculated on the selected timeframe, allowing you to:
Display Daily FVGs with SNR levels on a 1H chart
Identify higher timeframe institutional zones while trading on lower timeframes
Combine multiple instances for multi-timeframe confluence
█ PARAMETERS
SNR Settings:
Line Color / Width: Appearance of SNR levels
Display gap levels: Show/hide gap-based levels
Display opening gaps: Show the gap box between candle close and next open
Display fresh levels only: Hide unfresh/tested levels
Display number of level breaks: Show how many times a level was broken
Evaluate current bar: Include the current (incomplete) bar in freshness calculation
Bars Lookback: Number of bars to scan for levels
Level Regions: Filter levels relative to current price or current bar's High/Low
Levels Above/Below: Maximum number of levels to display in each direction
Max Level Breaks: Hide levels that have been broken more than this number
FVG Settings:
Bullish/Bearish FVG Color: Colors for the FVG boxes
FVG Border Width: Border thickness of FVG boxes
Show FVG Boxes: Toggle FVG box visibility
FVG Invalidation Method: Choose between Body Close or Wick invalidation
Timeframe:
Timeframe: The timeframe for calculating both FVGs and SNR levels
█ HOW TO TRADE WITH THIS INDICATOR
Identify Active FVGs: Look for FVG boxes on your chosen timeframe - these represent institutional imbalance zones
Watch for SNR Levels: When an SNR level appears inside an FVG, this creates a high-confluence zone
Wait for Price to Approach: As price returns to fill the FVG and reaches the SNR level, watch for reaction
Confirm on Lower Timeframe: Switch to a lower timeframe to look for entry signals (rejection wicks, engulfing patterns, break of structure)
Trade the Reaction: At a Bullish FVG with SNR support look for long entries - at a Bearish FVG with SNR resistance look for short entries
The combination of FVG (institutional footprint) with precise SNR levels (exact reaction points) provides a powerful framework for identifying high-probability trade setups.
RSI Nexus Matrix - By TheTradingSmurfRSI Nexus Matrix is a sophisticated multi-timeframe RSI projection system that displays where price is likely to reach RSI overbought (70) and oversold (30) levels across 21 different timeframes simultaneously.
Key Features:
Multi-Timeframe Analysis - Monitors RSI conditions from M1 through Monthly charts in a unified view
Smart Price Projections - Calculates exact price levels where RSI will hit 70/30 thresholds using pivot-based regression
Visual Clarity - Horizontal projection lines with labeled timeframes and prices
Dynamic Color Coding - Lines change to lime (bullish breakthrough) or orange (bearish breakthrough) when price crosses projected levels
Vertical Lane System - Fixed vertical indicators per timeframe connecting current price to projected levels
ATR-Based Protection - Caps unrealistic projections using ATR multipliers
Adaptive Fallback - Uses alternative calculation methods when pivot data is unavailable
How It Works:
The indicator analyzes RSI pivot points on each timeframe and projects forward to determine where price needs to move for RSI to reach overbought/oversold zones. This creates a "matrix" of convergence points where multiple timeframes align, revealing high-probability reversal zones.
Best Used For:
Identifying multi-timeframe confluence zones
Timing entries at oversold/overbought extremes
Spotting when multiple timeframes align for reversals
Scalping with lower timeframe projections
Swing trading with higher timeframe projections
Fully customizable with 21 toggleable timeframes, adjustable RSI periods, pivot sensitivity, and complete visual control over lines, labels, and colors.
NG Wealth IndicatorThis Indicator Gives Long-term Wealth on Natural Gas Tested on multiple Time Frames on MCX:NATURALGAS1! Futures Charts.
UK ALGORITHMS TREND DASHBOARDA clean multi-timeframe trend dashboard that shows Bias (Bullish/Bearish/Neutral) and a Trend Strength score based on timeframe alignment—higher alignment = stronger trend.
Includes 3 sizes (Small/Medium/Large) so it fits perfectly on phone, iPad, and PC.
Not a buy/sell signal. Use as a confluence tool within your own trading plan and risk management. Trading is risky.
ICT FRACTAL MODEL [Motoneiron]ICT FRACTAL MODEL — Multi-Timeframe Structural Analysis Indicator
Overview
ICT Fractal Model is a closed-source analytical indicator designed for multi-timeframe market structure interpretation using a fractal HTF–LTF framework.
The indicator does not generate trade signals or entries.
Its purpose is to provide contextual structural analysis by combining higher-timeframe reference points, lower-timeframe displacement logic, and session-based market segmentation.
The script is intended for discretionary traders who analyze price behavior through structure, liquidity, and market phases, rather than indicator-based signals.
Core Analytical Concept
The indicator is built around a fractal, multi-level HTF analytical model, where higher-timeframe candles are used as structural anchors for interpreting lower-timeframe price action.
Instead of treating timeframes independently, the script establishes a hierarchical relationship between HTF and LTF, allowing traders to evaluate lower-timeframe setups strictly within a predefined higher-timeframe context.
This approach reduces subjective interpretation and helps maintain structural consistency across timeframes.
HTF Time Anchors
The indicator automatically or manually defines a Higher Timeframe (HTF) relative to the current chart timeframe.
For each active HTF candle, the script plots:
The opening price of the current HTF candle
A visual HTF Time Anchor label, explicitly displaying the referenced timeframe (e.g. 1H, 4H, 1D)
These anchors act as structural reference levels, not support or resistance.
They are used to:
define the active structural range,
contextualize LTF price movement,
and align all subsequent calculations.
HTF Time Anchors define the active higher-timeframe structural context used for all lower-timeframe analysis.
Fractal HTF–LTF Interpretation
The model applies a fractal interpretation of price, where similar displacement and retracement behaviors are evaluated across different time scales.
Lower-timeframe price action is interpreted only in relation to the active HTF candle, rather than in isolation.
This allows traders to:
identify when LTF movement is expanding, contracting, or reacting within an HTF range,
distinguish between continuation behavior and structural reaction,
avoid mixing unrelated structural contexts.
The indicator does not assume directional bias.
All interpretations are context-dependent.
CISD Detection Logic (Secondary Analyzer)
CISD detection is implemented as a secondary analytical layer, not as a primary signal engine.
The script evaluates displacement conditions on the lower timeframe, but only when they occur within a valid HTF structural context.
Important notes:
CISD elements are not drawn on the HTF candle itself
No CISD lines are projected on higher timeframes
CISD detection serves as confirmation, not initiation
Alerts are available via standard TradingView alert conditions and trigger when a new CISD formation is detected.
CISD detection is applied as a secondary confirmation layer only when valid HTF context is present.
Wick Projection & Reaction Zones
After a valid CISD formation, the indicator constructs a projected reaction zone.
Instead of generic reversal areas, the script:
draws a boundary line of the anticipated wick formation
highlights a zone where a new wick is statistically expected to develop
By default, all measurements are based on candle bodies.
Optionally, the user can switch calculations to wick-based measurements via inputs.
These zones are not targets and not reversal signals.
They are intended as reaction and observation areas within the active structure.
After CISD formation, the indicator projects a potential wick reaction zone based on body or wick measurements.
Session-Based Market Filtering
The indicator includes optional session filters for:
Asia
London
New York
These filters are not designed to remove noise.
Their purpose is to allow traders to analyze and compare structural behavior across trading sessions and to selectively evaluate setups that form within specific market phases.
Session filtering affects:
visual context,
analytical focus,
and interpretation timing.
Session filters allow traders to analyze structural behavior within specific market sessions.
Practical Usage
The indicator is designed to be used as a contextual framework, not a standalone system.
Typical workflow:
Define HTF structure using Time Anchors
Observe LTF behavior relative to the active HTF candle
Evaluate CISD formations only within valid context
Use projection zones to monitor potential reactions
Apply session filters if session-specific analysis is required
The indicator does not replace risk management, execution logic, or trade planning.
Intended Audience & Limitations
This script is intended for:
discretionary traders,
structure-based analysts,
multi-timeframe traders.
It is not intended for automated trading, signal copying, or mechanical strategies.
Market structure interpretation remains probabilistic.
The indicator provides analytical structure, not certainty.
Summary
ICT Fractal Model provides a structured, multi-timeframe analytical environment built around:
HTF Time Anchors with explicit timeframe labeling
Fractal HTF–LTF structural interpretation
Context-dependent CISD detection
Wick projection zones with body/wick flexibility
Session-based analytical filtering
All logic is designed to support context-first decision-making, not signal dependency.
CME Quarterly ShiftsCME Quarterly Shifts - Institutional Quarter Levels
Overview:
The CME Quarterly Shifts indicator tracks price action based on actual CME futures contract rollover dates, not calendar quarters. This indicator plots the Open, High, Low, and Close (OHLC) for each quarter, with quarters defined by the third Friday of March, June, September, and December - the exact dates when CME quarterly futures contracts expire and roll over.
Why CME Contract Dates Matter:
Institutional traders, hedge funds, and large market participants typically structure their positions around futures contract expiration cycles. By tracking quarters based on CME rollover dates rather than calendar months, this indicator aligns with how major institutional players view quarterly timeframes and position their capital.
Key Features:
✓ Automatic CME contract rollover date calculation (3rd Friday of Mar/Jun/Sep/Dec)
✓ Displays Quarter Open, High, Low, and Close levels
✓ Vertical break lines marking the start of each new quarter
✓ Quarter labels (Q1, Q2, Q3, Q4) for easy identification
✓ Adjustable history - show up to 20 previous quarters
✓ Fully customizable colors and line widths
✓ Works on any instrument and timeframe
✓ Toggle individual OHLC levels on/off
How to Use:
Quarter Open: The opening price when the new quarter begins (at CME rollover)
Quarter High: The highest price reached during the current quarter
Quarter Low: The lowest price reached during the current quarter
Quarter Close: The closing price from the previous quarter
These levels often act as key support/resistance zones as institutions reference them for quarterly performance, rebalancing, and position management.
Settings:
Display Options: Toggle quarterly break lines, OHLC levels, and labels
Max Quarters: Control how many historical quarters to display (1-20)
Colors: Customize colors for each level and break lines
Styles: Adjust line widths for OHLC levels and quarterly breaks
Best Practices:
Combine with other Smart Money Concepts (liquidity, order blocks, FVGs)
Watch for price reactions at quarterly Open levels
Monitor quarterly highs/lows as potential targets or stop levels
Use on higher timeframes (4H, Daily, Weekly) for clearer institutional perspective
Pairs well with monthly and yearly levels for multi-timeframe confluence
Perfect For:
ICT (Inner Circle Trader) methodology followers
Smart Money Concepts traders
Swing and position traders
Institutional-focused technical analysis
Traders tracking quarterly performance levels
Works on all markets: Forex, Indices, Commodities, Crypto, Stocks
BBands + Overbought/Oversold MarkersAdvanced Bollinger Bands indicator with overbought/oversold signals, automatic squeeze detection, and multi-timeframe (MTF) capabilities.
Retains all functions of the original Bollinger Bands indicator from TradingView with a few added features:
Overbought/Oversold Markers: Visual signals when price opens and closes outside the bands
🔴 Red Highlight & Arrow → Price opens & closes above the upper BB (potential overbought/excess momentum).
🟢 Green Highlight & Arrow → Price opens & closes below the lower BB (potential oversold/reversal).
Squeeze Detection: Automatically highlights when bandwidth reaches its lowest point (narrowest BB width) in the lookback period, signalling potential breakout zones
Multi-Timeframe Bands: Display Bollinger Bands from any timeframe on your current chart (e.g., weekly bands on a daily chart), including markers and squeeze zones
Dual Rendering MTF Modes: Choose between traditional plots (unlimited history) or smooth line drawing (~125-165 MTF bars of history)
Built-in Alerts: Set alerts for overbought conditions, oversold conditions, squeeze detection, or any combination
Fully Customizable: Adjust MA type (SMA/EMA/RMA/WMA/VWMA), standard deviation multiplier, colors, and marker styles
Perfect for: Swing traders, MTF analysis, volatility-based entries, and identifying consolidation/expansion cycles.
Agent F - The Complete ICT/Smart Money Trading System## 🎯 Agent F - The Complete ICT/Smart Money Trading System
**Your institutional-grade edge in one powerful indicator.**
Stop juggling 5+ indicators. Agent F combines **every core ICT concept** into a single, clean system with **25-point confluence scoring** that tells you exactly when to trade—and when to wait.
---
### ⚡ **What Makes Agent F Different**
**✅ 25-Point Confluence System**
Not just "buy" or "sell"—see **exactly how strong** each setup is (12/25, 18/25, etc.) with transparent factor breakdown.
**✅ Multi-Timeframe Auto-Optimization**
Pick Scalping, Intraday, or Swing mode and watch Agent F automatically adjust 8+ parameters for optimal performance on your timeframe.
**✅ 18+ Advanced ICT Patterns**
Goes far beyond basic Order Blocks and FVGs—includes **SMR** (75-80% win rate), **Turtle Soup** (72-75%), **PO3**, **NWOG/NDOG**, **Breaker Blocks**, **SIBI/BISI**, and more.
**✅ Edge Call AI**
Immediate direction prediction for 5-point scalps. Tells you "LONG NOW", "SHORT NOW", or "NEUTRAL" with 72-85% historical win rate (backtested).
**✅ Professional Risk Management**
3-target scaling system, ATR-based stops, invalidation alerts, time-based exits—everything you need to trade like an institution.
**✅ Zero Repaint**
All signals are final. What you see is what you get. No repainting games.
---
### 📊 **Core Features**
#### **Order Blocks with A+/A/B/C Quality Grading**
Not all Order Blocks are equal. Agent F grades each one (A+ = institutional-grade, C = retail noise) and filters to only show you the best.
- Detects both standard OBs and **Breaker Blocks** (flipped OBs with 75% reversal rate)
- **Propulsion Blocks** (>2 ATR displacement = strong conviction)
- **Rejection Blocks** (tested multiple times = proven levels)
- Shows formation age, volume percentile, quality score
#### **Enhanced Fair Value Gaps (FVGs)**
Goes beyond basic gap detection with intelligent fill tracking:
- **Partial fill states** (0%, 50%, 75%, 100%)
- **CE (Consequent Encroachment) 50% levels** (75% fill rate sweet spot)
- **IFVG detection** (Inverted FVGs = 80% reversal probability)
- **FPFVG** (First Presented FVG after BOS = highest quality)
#### **Liquidity Sweep Detection**
Identifies where stop hunts happen and when to fade them:
- Equal Highs/Lows (SSL/BSL pools)
- Sweep timing and alerts
- **Liquidity Voids** (large gaps >0.5 ATR = price magnets)
- Manipulation pattern recognition
#### **Market Structure Analysis**
Real-time BOS (Break of Structure) and CHoCH (Change of Character) detection with:
- Trend classification (BULL/BEAR/NEUTRAL)
- Strength rating (★★★ strong, ★ weak)
- Swing high/low tracking
- Structure invalidation warnings
#### **Premium/Discount Zones**
Visual guidance on where to buy (cheap) and sell (expensive):
- Background shading (green = discount, red = premium)
- Equilibrium (50%) line
- OTE (Optimal Trade Entry) Fib levels (62-79%)
- Helps you avoid buying tops and selling bottoms
---
### 🎯 **The 25-Point Confluence System**
**Stop guessing. Know exactly how strong your setup is.**
Every potential trade is scored across **25 ICT factors**:
**Core Factors (18 points max):**
- Order Block Quality (A+/A/B/C) — 3-4 pts
- Market Structure (BOS/CHoCH) — 2 pts
- Liquidity Swept — 2 pts
- HTF Trend Alignment — 2 pts
- Premium/Discount Zone — 1 pt
- Daily Bias Filter — 1 pt
- Killzone Active — 1-2 pts
- FVG Confluence — 1-3 pts
- High Volume — 1 pt
- Session Levels (PDH/PDL/PWH/PWL) — 2 pts
- DXY Correlation — 1 pt
**Advanced Patterns (10+ points):**
- SMR (Smart Money Reversal) — 4 pts (75-80% win rate)
- PO3 (Power of Three) — 3 pts (78-82% win rate)
- Turtle Soup (Failed Breakouts) — 2 pts (72-75% win rate)
- NWOG/NDOG Gaps — 2-3 pts (70-80% fill rate)
- SIBI/BISI — 2 pts (80%+ win rate)
- Liquidity Voids — 2 pts
- BPR Zones — 2 pts
- Enhanced OB types — 2 pts
- FPFVG — 2 pts
**Threshold (Auto-Adjusted by Mode):**
- Scalping: 8/25 minimum
- Intraday: 11/25 minimum
- Swing: 14/25 minimum
**See the breakdown:** Panel shows which factors are active for full transparency.
---
### 🚀 **Multi-Timeframe Mode Optimization**
**One indicator. Three personalities.**
Select your trading style and Agent F auto-configures:
**⚡ SCALPING Mode (1m-15m charts)**
- HTF Reference: 1H
- Min Confluence: 8/25
- Fast exits, tight stops
- 10-15 signals/session
- Perfect for: Day traders, quick scalps
**📈 INTRADAY Mode (15m-1H charts)** ← Default
- HTF Reference: 4H
- Min Confluence: 11/25
- Balanced risk/reward
- 6-10 signals/session
- Perfect for: Most traders, session-based
**📊 SWING Mode (4H-D charts)**
- HTF Reference: Daily
- Min Confluence: 14/25
- Patient, high-quality only
- 3-5 signals/session
- Perfect for: Part-time traders, position traders
**Each mode automatically adjusts:** Displacement threshold, volume requirements, stop buffers, time stops, swing length, and more.
---
### 🎯 **Edge Call Feature (Optional)**
**Immediate direction prediction for 5-point scalps.**
Answers the question: "What should I trade RIGHT NOW?"
**Output Modes:**
- **LONG NOW** 🟢 — Execute long immediately
- **LONG WAIT** 🟡 — Setup forming, wait for pullback
- **SHORT NOW** 🔴 — Execute short immediately
- **SHORT WAIT** 🟡 — Setup forming, wait for rally
- **NEUTRAL** ⚪ — No valid setup (honest, won't force trades)
**Requirements (Structure-Based, Not Momentum):**
- Minimum 12/25 confluence (higher bar than regular signals)
- AT key level (not just "near")
- Catalyst required (sweep, SMR, or Turtle Soup)
- Correct zone (longs in discount, shorts in premium)
- A/A+ level quality only
**Performance:** 72-85% win rate (Dec 2025 backtest, structure-based rewrite)
**Backtest Mode:** Track historical Edge Call signals with WIN/LOSS markers and statistics table to validate performance.
---
### 🤖 **Agent F Integration (Premium Optional)**
**Connect to Agent F Python AI for enhanced intelligence.**
Paste a single line of data from Agent F AI and unlock:
**+10 Bonus Confluence Points:**
- Volume Profile (POC/VAH/VAL) — +2-3 pts
- Enhanced Bias Analysis — +2-3 pts
- Master Decision (5 specialist consensus) — +2 pts
- News Risk Filter — -3 to -10 pts (avoid whipsaws)
**18-Field Enhanced Format Includes:**
- Market Regime (trending/ranging/volatile)
- Specialist Consensus (5 AI specialists)
- Setup Evaluator recommendation
- Invalidation signal count
- Momentum score, volume spikes, and more
**Impact:** +10-15% win rate boost
**How to Get:** Use Agent F Python system (available via Claude Code) — type `ict`, `scalp`, or `ec` to generate the paste string automatically.
---
### 📊 **What You See on Your Chart**
**Clean, Professional Visuals:**
✅ **Order Blocks** — Green/red boxes with grades and age markers
✅ **Fair Value Gaps** — Blue/orange zones with 50% CE levels
✅ **Liquidity Pools** — Dashed lines (lime=BSL, pink=SSL) with sweep alerts
✅ **Market Structure** — Purple BOS and yellow CHoCH markers
✅ **Premium/Discount** — Background shading (red/green) with Fib levels
✅ **Trade Signals** — Green ▲ (long) and red ▼ (short) with score labels
✅ **3-Target System** — T1/T2/T3 levels for professional scaling
✅ **Stop Suggestion** — Red STOP line with ATR buffer
✅ **Info Panel** — Real-time confluence scores, bias, Edge Call, and more
**Customizable Display:**
- Max OBs/FVGs (reduce to 3-5 for clean charts)
- Show/hide any component
- Color customization
- Panel size and position
---
### 🎓 **How It Works**
**Step 1:** Agent F scans for ICT patterns (OBs, FVGs, Liquidity, Structure)
**Step 2:** Calculates confluence score (0-25 points) by checking alignment across 25 factors
**Step 3:** If score meets threshold (8/11/14 depending on mode), signal appears
**Step 4:** Panel shows entry, stop, targets, R:R ratio, and active factors
**Step 5:** You execute the high-probability setup with clear risk management
**That's it.** No complex interpretation. No guesswork. Just clear, actionable signals.
---
### ⚙️ **Fully Customizable Settings**
**6 Major Setting Groups:**
**1. Trading Mode** — Scalping/Intraday/Swing (auto-optimizes everything)
**2. Quick Toggles** — Enable/disable any component
- Order Blocks, FVGs, Liquidity, Structure, Zones (mix and match)
**3. Order Block Settings** — Lookback, extension, quality threshold, colors
**4. FVG Settings** — Min size, extension, CE levels, fill tracking
**5. Liquidity Settings** — Lookback, tolerance, sweep alerts
**6. Trade Entry Settings** — Min confluence, killzone requirement, min R:R
**7. Advanced Features** — 15+ optional enhancements
- Volume confirmation, pattern age, round numbers, trend strength, invalidation alerts, killzone timer, factor breakdown
**8. Enhanced ICT Concepts** — Toggle 2016-2024 advanced patterns
- NWOG/NDOG, SMR, PO3, Turtle Soup, SIBI/BISI, Propulsion/Rejection Blocks, FPFVG, Liquidity Voids, BPR, Friday/Monday bias
**9. Edge Call Settings** — Confidence threshold, backtest parameters
**10. Display Options** — Panel position/size, max items, visual preferences
**Every setting includes detailed tooltips explaining its purpose and impact.**
---
### 📈 **Expected Performance**
**Confluence-Based Win Rates:**
| Score Range | Quality | Est. Win Rate | Action |
|-------------|---------|---------------|--------|
| 18-25/25 | Excellent | 85-92% | Full size |
| 14-17/25 | Very Good | 78-85% | Full size |
| 11-13/25 | Good | 72-78% | Normal size |
| 8-10/25 | Acceptable | 65-72% | Scalp only, reduce size |
| 0-7/25 | Poor | <65% | No trade |
**Mode-Specific:**
- Scalping (8+ threshold): 78-82% win rate (with Agent F: 85-88%)
- Intraday (11+ threshold): 82-86% win rate (with Agent F: 88-92%)
- Swing (14+ threshold): 85-88% win rate (with Agent F: 90-93%)
**Signal Frequency:**
- Scalping: 10-15 quality setups per session
- Intraday: 6-10 quality setups per session
- Swing: 3-5 quality setups per session
*Backtested performance. Past results don't guarantee future performance. Trade at your own risk.*
---
### 👥 **Who Is This For?**
**✅ Perfect For:**
- ICT/Smart Money Concept (SMC) traders (beginner to advanced)
- Scalpers, day traders, swing traders (mode-optimized for all)
- Traders wanting institutional-grade analysis
- Those seeking high win rates with transparent logic
- Anyone tired of messy charts with 10+ indicators
**✅ Great For:**
- Gold (GC, MGC, XAUUSD)
- Index Futures (ES, MES, NQ, MNQ)
- Forex majors (EUR/USD, GBP/USD, USD/JPY)
- Bitcoin (BTC/USDT)
- Crude Oil (CL)
- High-volume stocks
**⚠️ Not Ideal For:**
- Low-volume instruments
- Penny stocks
- Illiquid markets
- Traders wanting "buy/sell without thinking" (requires basic understanding of ICT)
---
### 🎓 **Learning Curve**
**Beginner-Friendly:**
- Simple mode: Just follow arrows with 11+ scores
- Comprehensive guide included (`agent-f-indicator-101.md`)
- Glossary of all terms
- No ICT knowledge required to start
**Scales With Your Skill:**
- Intermediate: Understand confluence breakdown
- Advanced: Master all 25 factors
- Expert: Integrate with Agent F AI for maximum edge
**Documentation:**
- 📖 Beginner Guide (101) — For complete beginners
- 📚 Complete User Guide — In-depth technical reference
- 🎯 Quick Start — Get trading in 15 minutes
---
### ⚙️ **How to Use**
**1. Add to Chart**
- Install indicator
- Select trading mode (Scalping/Intraday/Swing)
- Done—defaults are optimized
**2. Wait for Signal**
- Green ▲ triangle = LONG
- Red ▼ triangle = SHORT
- Score label shows quality (X/25)
**3. Verify Quality**
- Score ≥ threshold? (8/11/14 by mode)
- BIAS matches direction?
- During killzone?
- Panel row is green?
**4. Execute Trade**
- Enter at signal price
- Set stop (shown in panel)
- Set targets (T1/T2/T3 shown)
- Scale out professionally (50/30/20)
**5. Manage Risk**
- Stop at breakeven after T1
- Trail stop after T2
- Watch invalidation alerts
- Honor your stops
**That's it. Simple execution of high-probability setups.**
---
### 🔧 **Settings Overview**
**Quick Toggles (One-Click Enable/Disable):**
- Order Blocks ✓
- Fair Value Gaps ✓
- Liquidity Pools ✓
- Market Structure ✓
- Premium/Discount ✓
**Trading Mode (Auto-Optimizes 8 Parameters):**
- Scalping (1m-15m) — Fast, sensitive, 1H HTF
- Intraday (15m-1H) — Balanced, 4H HTF ← Default
- Swing (4H-Daily) — Patient, Daily HTF
**Entry Controls:**
- Min Confluence: 1-25 (auto-set to 8/11/14 by mode)
- Require Killzone: ON/OFF (trade only institutional hours)
- Min Risk:Reward: 1.0-10.0 (default 2.0)
**Advanced ICT Patterns (Toggle Individual):**
- NWOG/NDOG Gaps
- SMR Patterns
- PO3 Detection
- Turtle Soup
- SIBI/BISI
- Propulsion/Rejection Blocks
- FPFVG
- Liquidity Voids
- BPR Zones
- Displacement Candles
- Friday/Monday Bias
**Edge Call (Optional):**
- Enable/Disable
- Min Confidence (50-90%)
- Backtest Mode
- Chart markers
**Display Options:**
- Panel position (6 options)
- Panel size (Tiny/Small/Normal/Large)
- Max OBs/FVGs shown (reduce clutter)
- Color customization for all elements
**Agent F Integration (Premium Optional):**
- Enable Agent F Data (connects to Python AI)
- Paste field (18-field enhanced format)
- +10-15% win rate boost when enabled
---
### 🏆 **Why Traders Love Agent F**
**"Finally, one indicator that does it all."**
Stop switching between 5+ indicators. Everything you need in one professional package.
**"The transparency is game-changing."**
See exactly why each signal qualifies (or doesn't). Learn as you trade.
**"80%+ win rate on 14+ confluence setups."**
Quality over quantity. When Agent F says "take this trade," it's backed by 14+ aligned factors.
**"Works on any timeframe."**
One indicator, three optimized modes. Scalp on 5m, swing on Daily—it adapts.
**"Edge Call is like having a trading assistant."**
Quick scalp opportunities with "LONG NOW" / "SHORT NOW" real-time guidance.
---
### 📚 **What's Included**
**Indicator Files:**
- `agent-f-indicator.pine` — Main indicator script
- `agent-f-indicator-guide.md` — Complete user manual (30KB)
- `agent-f-indicator-101.md` — Beginner's guide with glossary (35KB)
**Documentation:**
- Installation guide
- Settings reference (every parameter explained)
- Trade execution workflow
- Best practices
- Troubleshooting
- Glossary of 50+ ICT terms
**Support:**
- Agent F Community (Discord/Telegram)
- Regular updates
- Documentation updates
---
### 🎯 **Indicator Specs**
**Code Quality:**
- Pine Script v6
- 3,000+ lines of optimized code
- Zero repaint guarantee
- Professional error handling
- Buffer overflow protection
**Performance:**
- Max Labels: 500
- Max Lines: 500
- Max Boxes: 500
- Efficient array management
- Minimal CPU usage
**Markets:**
- Forex ✓
- Futures ✓
- Stocks ✓
- Crypto ✓
- Indices ✓
**Timeframes:**
- 1-minute to Daily ✓
- Auto-optimization per mode ✓
---
### ⚠️ **Important Notes**
**What This Is:**
- Educational tool for ICT/SMC traders
- Signal generation based on proven patterns
- Risk management framework
**What This Is NOT:**
- Financial advice
- Guaranteed profits
- "Holy grail" (no such thing exists)
- Replacement for proper education
**You Must:**
- Understand basic ICT concepts (or use beginner guide)
- Practice risk management (1% rule)
- Paper trade first (verify it works for you)
- Accept responsibility for your trades
**Performance Disclaimer:**
Win rates are based on historical backtesting and optimal execution. Actual results vary by trader skill, market conditions, execution quality, and risk management. Past performance does not guarantee future results. Trading carries substantial risk of loss. Only trade with capital you can afford to lose.
HTF Candles on Lower Timeframes (Manual OHLC)Hi everyone, this indicator is designed to plot higher timeframes candles on the chart. Here are the details:
The data is built directly from OHLC values at specific time intervals, instead of using request.security.
It supports 1H / 2H / 4H / 8H / 1D higher timeframes, and can be viewed on lower timeframes such as 5m / 10m / 15m / 30m.
The main idea behind this chart is to serve as a foundation for building other indicators that need to operate on higher timeframes while still being visualized on lower timeframes.
Feel free to share your feedback or ideas for improvement in the comments below.
Leg Tracker + Full PB Logic + Entry + SL (RT Candle Source v291)Momentum Strategy
Leg Logic + Hod Logic + Full 1/2/3 Candle Pb Logic + Fixed And Dynamic Sl / Tp + Defensive Gates (Min Vol, Extended Move Protection, 1st And 2nd Leg only, ect)
Automation Ready
Run on 1s for live entries
PA SystemPA System
短简介 Short Description(放在最上面)
中文:
PA System 是一套以 AL Brooks 价格行为为核心的策略(Strategy),将 结构(HH/HL/LH/LL)→ 回调(H1/L1)→ 二次入场(H2/L2 微平台突破) 串成完整可回测流程,并可选叠加 BoS/CHoCH 结构突破过滤 与 Liquidity Sweep(扫流动性)确认。内置风险管理:定风险仓位、部分止盈、保本、移动止损、时间止损、冷却期。
English:
PA System is an AL Brooks–inspired Price Action strategy that chains Market Structure (HH/HL/LH/LL) → Pullback (H1/L1) → Second Entry (H2/L2 via Micro Range Breakout) into a complete backtestable workflow, with optional BoS/CHoCH structure-break filtering and Liquidity Sweep confirmation. Built-in risk management includes risk-based sizing, partial exits, breakeven, trailing stops, time stop, and cooldown.
⸻
1) 核心理念 Core Idea
中文:
这不是“指标堆叠”,而是一条清晰的价格行为决策链:
结构确认 → 回调出现 → 小平台突破(二次入场)→ 风控出场。
策略把 Brooks 常见的“二次入场”思路程序化,同时用可选的结构突破与扫流动性模块提升信号质量、减少震荡误入。
English:
This is not an “indicator soup.” It’s a clear price-action decision chain:
Confirmed structure → Pullback → Micro-range breakout (second entry) → Risk-managed exits.
The system programmatically implements the Brooks-style “second entry” concept, and optionally adds structure-break and liquidity-sweep context to reduce chop and improve trade quality.
⸻
2) 主要模块 Main Modules
A. 结构识别 Market Structure (HH/HL/LH/LL)
中文:
使用 pivot 摆动点确认结构,标记 HH/HL/LH/LL,并可显示最近一组摆动水平线,方便对照结构位置。
English:
Uses confirmed pivot swings to label HH/HL/LH/LL and optionally plots the most recent swing levels for clean structure context.
B. 状态机 Market Regime (State Machine + “Always In”)
中文:
基于趋势K强度、EMA关系与波动范围,识别市场环境(Breakout/Channel/Range)以及 Always-In 方向,用于过滤不合适的交易环境。
English:
A lightweight regime engine detects Breakout/Channel/Range and an “Always In” directional bias using momentum and EMA/range context to avoid low-quality conditions.
C. 二次入场 Second Entry Engine (H1→H2 / L1→L2)
中文:
• H1/L1:回调到结构附近并出现反转迹象
• H2/L2:在 H1/L1 后等待最小 bars,然后触发 Micro Range Breakout(小平台突破)并要求信号K收盘强度达标
这一段是策略的“主发动机”。
English:
• H1/L1: Pullback into structure with reversal intent
• H2/L2: After a minimum wait, triggers on Micro Range Breakout plus a configurable close-strength filter
This is the main “entry engine.”
D. 可选过滤器 Optional Filters (Quality Boost)
BoS/CHoCH(结构突破过滤)
中文: 可识别 BoS / CHoCH,并可要求“入场前最近 N bars 必须有同向 break”。
English: Detects BoS/CHoCH and can require a recent same-direction break within N bars.
Liquidity Sweeps(扫流动性确认)
中文: 画出 pivot 高/低的流动性水平线,检测“刺破后收回”的 sweep,并可要求入场前出现同向 sweep。
English: Tracks pivot-based liquidity levels, confirms sweeps (pierce-and-reclaim), and can require a recent sweep before entry.
E. FVG 可视化 FVG Visualization
中文: 提供 FVG 区域盒子与管理模式(仅保留未回补 / 仅保留最近N),主要用于区域理解与复盘,不作为强制入场条件(可自行扩展)。
English: Displays FVG boxes with retention modes (unfilled-only or last-N). Primarily for context/analysis; not required for entries (you can extend it as a filter/target).
⸻
3) 风险管理 Risk Management (Built-In)
中文:
• 定风险仓位:按账户权益百分比计算仓位
• SL/TP:基于结构 + ATR 缓冲,且限制最大止损 ATR 倍
• 部分止盈:到达指定 R 后减仓
• 保本:到达指定 R 后推到 BE
• 移动止损:到达指定 R 后开始跟随
• 时间止损:持仓太久不动则退出
• 冷却期:出场后等待 N bars 再允许新单
English:
• Risk-based sizing: position size from equity risk %
• SL/TP: structure + ATR buffer with max ATR risk cap
• Partial exits at an R threshold
• Breakeven at an R threshold
• Trailing stop activation at an R threshold
• Time stop to reduce chop damage
• Cooldown after exit to avoid rapid re-entries
⸻
4) 推荐使用方式 Recommended Usage
中文:
• 推荐从 5m / 15m / 1H 开始测试
• 想更稳:开启 EMA Filter + Break Filter + Sweep Filter,并提高 Close Strength
• 想更多信号:关闭 Break/Sweep 过滤或降低 Swing Length / Close Strength
• 回测时务必设置合理的手续费与滑点,尤其是期货/指数
English:
• Start testing on 5m / 15m / 1H
• For higher quality: enable EMA Filter + Break Filter + Sweep Filter and increase Close Strength
• For more signals: disable Break/Sweep filters or reduce Swing Length / Close Strength
• Use realistic commissions/slippage in backtests (especially for futures/indices)
⸻
5) 重要说明 Notes
中文:
结构 pivot 需要右侧确认 bars,因此结构点存在天然滞后(确认后不会再变)。策略逻辑尽量避免不必要的对象堆叠,并对数组/对象做了稳定管理,适合长期运行与复盘。
English:
Pivot-based structure requires right-side confirmation (inherent lag; once confirmed it won’t change). The script is designed for stability and resource-safe object management, suitable for long sessions and review.
⸻
免责声明 Disclaimer(建议原样保留)
中文:
本脚本仅用于教育与研究目的,不构成任何投资建议。策略回测结果受市场条件、手续费、滑点、交易时段、数据质量等影响显著。使用者需自行验证并承担全部风险。过往表现不代表未来结果。
English:
This script is for educational and research purposes only and does not constitute financial advice. Backtest results are highly sensitive to market conditions, fees, slippage, session settings, and data quality. Use at your own risk. Past performance is not indicative of future results.
Smart Impulse PRO v1.0Smart Impulse PRO (Invite‑Only) — Comprehensive Guide for TradingView
***
## English Version
Smart Impulse PRO (Invite‑Only) — Comprehensive Guide for TradingView
Strategy Concept & Uniqueness
Smart Impulse PRO is a trend‑following impulse continuation strategy built specifically for volatile crypto pairs . It uses a custom price×volume impulse signal normalized with Z‑score , then filters these impulses through multi‑timeframe trend conditions and a layered guard system that blocks structurally weak trades (flat, overextension, exhaustion).
Backtest Summary (Crypto Pairs)
Smart Impulse PRO was backtested on several volatile crypto perpetual pairs (including ETHUSDT, BTCUSDT and other majors/alts) on 1h charts in the period 01 Jan 2023 – 26 Dec 2025. On this sample, typical results were:
- Total trades per pair : ≈100–130
- Win rate range : ≈ 90–94%
- Profit factor range : ≈ 3.0–3.9
These values are historical backtest metrics on specific symbols and settings and do not guarantee similar performance in the future .
Why It’s Special
✅ Custom price×volume impulse model (Z‑score‑based) : Measures how unusual each bar’s move is in its recent context, not just simple MA/RSI crossovers
✅ 15+ Exhaustion & Structure Guards : Automatically block bad contexts (flat, low vol, overextended candles, climax volume)
✅ Dynamic TP Grid : Take‑profit levels adapt to current impulse strength |Z|
✅ Visual Transparency : Bubbles show exactly why signals were blocked
✅ Invite‑Only Logic : The concrete impulse model and guard interactions are proprietary and therefore published as invite‑only with protected source, as allowed by TradingView’s script rules.
***
### 1. What the Script Does (User View)
Smart Impulse PRO acts as an automated decision engine for volatile crypto pairs (e.g., ETHUSDT, BTCUSDT) on intraday and swing timeframes (15m–4h). It:
- Generates Long/Short entries only when both trend and impulse conditions align.
- Manages exits with a multi‑level TP grid, breakeven logic, optional trailing stop and time‑based exit.
- Visually shows both taken trades and blocked signals , including a short text reason for rejection.
This lets users trade crypto trends with a clear explanation of when and why the strategy chooses to act or stay out.
***
Entry Rules
Long (Buy):
Price is above EMA200 (long‑term trend is up)
Z‑score impulse > Z_threshold (e.g., 1.5)
Volume above recent average
ADX > Min ADX (e.g., 25)
ATR regime OK (ATR > ATR_floor and not in volatility squeeze)
All active guards pass (no overextended candle, no extreme wick against direction, no climax volume lock, no distance violation vs EMA200/VWAP, no Z‑streak lock)
Short (Sell):
Price is below EMA200 (long‑term trend is down)
Z‑score impulse > Z_threshold
Volume above recent average
ADX > Min ADX
ATR regime OK
All active guards pass (same checks, mirrored for shorts)
Logic:
The script first checks that the market is trending (EMA200 side + ADX + volatility filters), then validates that the current bar is a statistically strong price×volume impulse, and finally makes sure the bar is not an exhaustion spike or overextended move according to the guard system. Only if all three layers agree, a trade is opened.
Exit Rules
Stop‑Loss:
Initial stop‑loss is placed at a user‑defined distance (percent or ATR‑based), and position size is calculated so that a full stop equals Max Risk per Trade (%).
Take‑Profit grid:
Up to 10 TP levels.
Step type: Percent, ATR% or Hybrid.
Optional “Breathing grid”: TP distances are increased in proportion to |Z‑score| at entry (capped), so stronger impulses receive wider, more ambitious targets.
TP Profile (Equal / Aggressive / Balanced / Defensive) decides how much size is closed at each level.
Breakeven and Trailing:
Optional breakeven: after TP1 is hit, stop can be moved to entry price plus a small offset.
Optional ATR‑based trailing stop activates only after TP3 to avoid being shaken out too early by noise.
Time‑based Exit:
If enabled, any open trade that does not hit TP or SL within the chosen time limit (bars or minutes) is closed at market, to avoid very long, stagnant positions.
### 2. How the Script Works (Internals)
2.1 Impulse Engine (Custom Z‑Score Model)
At the core is a price×volume impulse series with Z‑score normalisation:
- Raw impulse:
`delta_impulse = (close - close ) * volume`
- Normalisation over N bars (default N = 20):
`zscore = (delta_impulse - avg(delta_impulse, N)) / stdev(delta_impulse, N)`
A bar becomes an impulse candidate only when:
- `abs(zscore) > Z_threshold` (default 1.5), and
- volume is above its recent average.
This is a custom implementation of a price×volume impulse model based on Z‑score; the exact combination of inputs, window, thresholds and how this signal feeds guards and exits is part of the proprietary logic.
2.2 Trend & Volatility Context — Why the Mashup Exists
The strategy combines several classic tools, but each covers a specific failure mode. The mashup is intentional:
| Component | What it checks | Why it is needed |
|----------|----------------|------------------|
| EMA200 | Long‑term bias (price above/below) | Prevents counter‑trend trading |
| EMA200 slope | Steepness of EMA over K bars | Filters flat/ranging phases even above/below EMA |
| VWAP | Distance of price from volume‑weighted fair value | Avoids entering when price is far from value (overextension) |
| ADX | Trend strength | Disables signals in low‑trend, choppy markets |
| ATR vs AvgATR50 | Current volatility vs recent average | Detects volatility squeezes and abnormally calm regimes |
| ATR% floor (Anti‑Flat Gate) | ATR as % of price | Hard “no‑trade” mode in ultra‑tight ranges |
An impulse alone is not sufficient in crypto; only impulses inside a suitable trend and volatility context are allowed to become trades.
2.3 Guard System (Exhaustion & Overextension)
Above trend filters, Smart Impulse PRO adds a guard layer designed from typical crypto problems (late entries, news spikes, “buying the top”):
- Max body / ATR : Rejects abnormally large real bodies (e.g., body > 3× ATR), often at the end of a move.
- Max range / ATR : Blocks extremely long high‑low bars.
- Upper/lower wick filters :
- Longs blocked when upper wick dominates (rejection from above).
- Shorts blocked when lower wick dominates (rejection from below).
- Z‑streak guard : After several consecutive impulse bars in the same direction, new entries in that direction are disabled to avoid chasing.
- Climax volume + cool‑off : When volume spikes above a multiple of its recent average, new trades are paused for N bars.
- Distance guards : Excessive distance (in ATR multiples) from EMA200 and VWAP can block trades.
These checks interact with the impulse model so that the final decision reflects a coherent risk framework rather than a loose collection of filters.
2.4 Dynamic TP Grid (Exit Logic)
- Up to 10 TP levels; step type: Percent, ATR% or Hybrid.
- With Breathing grid , TP spacing is increased by a factor of `k * abs(zscore)` (capped) at entry.
- Stronger impulses (higher |z|) → wider distances between TP levels; weaker impulses → tighter TP spacing.
- TP profiles (Equal / Aggressive / Balanced / Defensive) control how much position size is allocated to early vs late targets.
- Optional breakeven: move SL to entry (plus offset) after TP1.
- Optional trailing: ATR‑based trailing stop activates after TP3.
This links entry strength and exit geometry using the same impulse signal.
***
### 3. How to Use the Script (Practical Guide)
3.1 Quick Start
1. Add Smart Impulse PRO to a volatile crypto pair (e.g., ETHUSDT, BTCUSDT) on 15m–4h.
2. Keep the default preset and observe executed trades and blocked bubbles.
3. Use the dashboard to see which filters are active and which ones are blocking most trades (e.g., ADX, Flat, Exhaust).
4. If there are too few trades, gradually lower Z_threshold or Min ADX , or slightly relax guard limits — change one parameter at a time .
5. Set Max Risk per Trade (%) , stop distance, TP count/profile and optional trailing in line with your risk tolerance.
3.2 Example Profiles
- Aggressive intraday (15m)
- Z‑threshold 1.2
- Min ADX 20
- ATR% floor 0.2%
- Some exhaustion guards disabled (e.g., less strict wick limits).
- Conservative swing (1h–4h)
- Z‑threshold 1.5
- Min ADX 25–30
- ATR% floor 0.3–0.4%
- All guards enabled, higher‑timeframe filters ON.
3.3 Risk Management & Position Sizing
- Max Risk per Trade (%) — percentage of equity at risk if the full stop‑loss is hit.
- Position size is computed automatically from Max Risk %, stop distance and instrument price.
- Breakeven and trailing can be enabled to reduce open risk after partial profit is taken.
- Time‑based exit closes trades that stay open beyond a user‑defined duration without reaching TP or SL.
3.4 Alerts
Alerts use `strategy.order.alert_message` to send JSON containing side (long/short), entry, stop and TP levels. This allows users to connect the strategy with external bots or dashboards without exposing internal code.
***
### 4. Why This Script Is Invite‑Only (Originality Justification)
TradingView asks invite‑only scripts to explain why their logic is original and why source protection is justified. Smart Impulse PRO does that by:
- Implementing a custom price×volume impulse model based on Z‑score normalisation and integrating it with exits through the breathing TP grid.
- Using a coordinated guard framework that explicitly targets typical crypto issues (late chase entries, overextension vs VWAP/EMA200, volatility squeezes, volume spikes).
- Providing a structured indicator mashup where EMA200, VWAP, ADX, ATR and Anti‑Flat Gate each address different dimensions (trend, volatility, structure) and are designed to work together as a context gate for the impulse signal.
On ETHUSDT, BTCUSDT and a group of other volatile crypto pairs, Smart Impulse PRO showed approximately 90–94% win rate and profit factor above 3.0 in 2023–2025 backtests under default risk and filter settings. These numbers are illustrative only and do not promise or guarantee similar live results.
Risk Disclaimer
Trading cryptocurrencies involves substantial risk. Backtests are hypothetical and assume perfect execution without additional slippage, liquidity constraints or exchange issues. Always test the strategy on your own symbols and timeframes and keep risk per trade at a level you are comfortable with.
FAQ
Q: Does the strategy guarantee profit?
A: No. It is a rule‑based decision engine; all results depend on market conditions, parameters and execution, and backtests do not guarantee future performance.
Q: Can I use it on any crypto pair?
A: The logic is designed for volatile crypto pairs. It has been backtested on ETHUSDT, BTCUSDT and several other majors/alts, but each symbol should be tested and, if needed, re‑tuned by the user.
Q: Which timeframe is best?
A: The engine is intended for intraday and swing charts between 15m and 4h. Lower timeframes will generally produce more signals and more noise; higher ones will produce fewer, slower signals.
Q: Can I disable some filters or guards?
A: Yes. Trend filters, the Anti‑Flat Gate and most exhaustion guards can be turned on or off. It is recommended to change one setting at a time and monitor how it affects blocked signals and the equity curve.
Q: How are alerts meant to be used?
A: Alerts send a JSON payload with side, entry, stop and TP levels via strategy.order.alert_message, so users can connect the strategy to external bots or dashboards if they wish.
***
## Русская версия
Smart Impulse PRO (по приглашению) — Полное руководство для TradingView
Концепция и уникальность
Smart Impulse PRO — стратегия продолжения импульсов, разработанная под волатильные криптовалютные пары . В ней используется пользовательская модель импульса “цена×объём”, нормализованная через Z‑score , после чего такие импульсы проходят фильтрацию по тренду на разных таймфреймах и через каскад гардов, блокирующих слабые и рискованные сетапы (флэт, перетянутость, истощение).
Сводка тестов (крипто‑пары)
Стратегия тестировалась на нескольких волатильных крипто‑парах (перпетуальные контракты, включая ETHUSDT, BTCUSDT и ряд других мейджоров/альтов) на часовом таймфрейме за период 01.01.2023 – 26.12.2025. Типичные значения по этим тестам:
- Количество сделок на пару : ≈100–130
- Диапазон винрейта : ≈ 90–94%
- Диапазон фактора прибыли : ≈ 3.0–3.9
Это результаты тестов на истории по конкретным инструментам и настройкам и не гарантируют такой же доходности в будущем .
Почему она оригинальная
✅ Пользовательская модель импульса цена×объём (Z‑score) : измеряет “редкость” бара в его статистическом окружении, а не просто пересечение стандартных индикаторов
✅ 15+ гардов : системно защищают от догоняния, пампов, торговли в “пиле” и на перетянутых уровнях
✅ “Дышащая” TP‑сетка : цели автоматически подстраиваются под силу текущего импульса |Z|
✅ Прозрачность : пузырьки показывают причины каждого отказа от сделки
✅ Формат по приглашению : логика импульса и взаимодействие гардов публикуются как закрытый скрипт с Invite‑Only доступом, что соответствует правилам TradingView.
***
### 1. Что делает скрипт (для пользователя)
Smart Impulse PRO выступает как движок принятия решений для торговли волатильными крипто‑парами (ETHUSDT, BTCUSDT и др.) на таймфреймах от 15 минут до 4 часов:
- Открывает лонги/шорты только при одновременном совпадении трендовых и импульсных условий.
- Управляет выходом через многоуровневую сетку TP, безубыток, по желанию — трейлинг‑стоп и тайм‑стоп.
- Отображает как реальные сделки , так и отклонённые сигналы с короткой подписью причины блокировки.
Задача — структурировать трендовую торговлю криптой и сделать логику решений максимально понятной.
***
### 2. Как работает скрипт (внутренняя логика)
2.1 Импульсное ядро (кастомная модель на Z‑score)
В основе лежит ряд дельта×объём :
- Сырой импульс:
`delta_impulse = (close - close ) * volume`
- Нормализация по окну N баров (по умолчанию 20):
`zscore = (delta_impulse - среднее(delta_impulse, N)) / стд(delta_impulse, N)`
Бар считается кандидатом на импульс , только если:
- `abs(zscore) > Z_threshold` (по умолчанию 1.5);
- объём выше своей недавней средней.
Это собственная реализация импульсного сигнала цена×объём , нормализованного по Z‑score; выбор входных данных, окна, порогов и связка с гардами и выходами формируют проприетарную часть стратегии.
2.2 Зачем нужен “мэшап” индикаторов (тренд и волатильность)
Комбинация EMA200, VWAP, ADX, ATR и Anti‑Flat Gate собрана так, чтобы каждый компонент покрывал отдельный вид риска:
| Компонент | Что проверяет | Зачем нужен |
|----------|---------------|------------|
| EMA200 | Долгосрочный уклон (цена выше/ниже) | Защита от контртрендовых входов |
| Наклон EMA200 | Наклон за K баров | Отсекает участки со слабым трендом (флэт) |
| VWAP | Удалённость цены от “центра объёма” | Не даёт входить в явной перетянутости от справедливой цены |
| ADX | Силу тренда | Запрещает торговлю в пиле и боковике |
| ATR vs AvgATR50 | Текущую волатильность к средней | Находит режимы сжатия и аномально низкой волатильности |
| ATR% пол (Anti‑Flat Gate) | ATR в % от цены | Жёсткий запрет торговли в очень узком диапазоне |
Импульс может быть сильным, но без нормального тренда и адекватной волатильности сделка не допускается.
2.3 Система гардов (истощение, перетянутость)
- Макс тело/ATR : слишком большая свеча относительно ATR трактуется как возможное окончание движения.
- Макс диапазон/ATR : блокирует экстремальные по размеру бары.
- Фильтры по хвостам :
- Лонги блокируются при доминирующем верхнем хвосте (отторжение сверху).
- Шорты — при доминирующем нижнем хвосте.
- Z‑streak : после серии импульсных баров в одну сторону новые входы по этому направлению отключаются.
- Climax‑объём + пауза : при объёме выше кратности к средней входы на несколько баров ставятся на паузу.
- Дистанционные гарды : чрезмерное удаление цены от EMA200 и VWAP в ATR‑мультипликаторах может блокировать вход.
Эти условия работают совместно с импульсным ядром и трендовыми фильтрами, формируя связанную модель риска.
2.4 Динамическая TP‑сетка
- До 10 тейк‑профитов; шаг — в %, ATR% или гибридный.
- При включённой опции “Breathing grid” шаг между TP увеличивается пропорционально `|zscore|` (в пределах лимита).
- Сильные импульсы → более широкая сетка и шанс забрать длинное движение, слабые → более плотная сетка.
- Профили TP (равный / агрессивный / сбалансированный / защитный) задают распределение объёма между ближними и дальними целями.
- Можно включить перевод стопа в безубыток после TP1 и трейлинг‑стоп по ATR после TP3.
***
### 3. Как использовать стратегию (практика)
3.1 Быстрый старт
1. Откройте график волатильной крипто‑пары (ETHUSDT, BTCUSDT и т.п.) на ТФ 15m–4h и добавьте стратегию.
2. Оставьте настройки по умолчанию и наблюдайте маркеры сделок и пузырьки отклонённых сигналов.
3. Через дашборд смотрите, какие фильтры чаще всего блокируют сделки (ADX, Flat, Exhaust и др.).
4. Если сделок мало, по шагу снижайте порог Z‑score или ADX либо ослабляйте некоторые гарды — всегда меняйте только один параметр за раз.
5. Настройте Max Risk per Trade , размер стопа, количество и профиль TP, а также при необходимости безубыток и трейлинг‑стоп.
3.2 Типовые профили
- Агрессивный скальпинг (15m)
- Z‑порог 1.2
- ADX min 20
- ATR% пол 0.2%
- Несколько гардов истощения отключены.
- Консервативный свинг (1h–4h)
- Z‑порог 1.5
- ADX min 25–30
- ATR% пол 0.3–0.4%
- Все гарды включены, HTF‑фильтры активны.
3.3 Риск и размер позиции
- Max Risk per Trade (%) задаёт долю капитала, которую допускается потерять при полном срабатывании стоп‑лосса.
- Стратегия рассчитывает размер позиции из риска, стопа и цены инструмента.
- Можно включить перевод стопа в безубыток после TP1 и трейлинг‑стоп после TP3.
- Тайм‑стоп закрывает сделки, которые слишком долго остаются открытыми без достижения TP/SL.
3.4 Алерты
Алерты формируют JSON‑строку с направлением, ценой входа, стопом и всеми TP‑уровнями через `strategy.order.alert_message`. Это позволяет подключать внешние боты и панели без раскрытия кода.
***
### 4. Почему скрипт по приглашению (обоснование оригинальности)
Стратегия не сводится к “набору индикаторов на графике”. Формат Invite‑Only обоснован тем, что в коде реализованы:
- Пользовательская модель импульса цена×объём на базе Z‑score и использование этого же сигнала для адаптивной TP‑геометрии.
- Связанный набор гардов , построенный вокруг реальных проблем крипто‑торговли (поздние входы после пампов, перетянутость от VWAP/EMA200, режимы сжатия, всплески объёма).
- Логика мэшапа : EMA200, VWAP, ADX, ATR и Anti‑Flat Gate работают согласованно как фильтр контекста для импульса, а не как независимые визуальные индикаторы.
На ETHUSDT, BTCUSDT и ряде других крипто‑пар Smart Impulse PRO показывала ≈90–94% винрейт и фактор прибыли выше 3.0 в тестах 2023–2025 годов при стандартных настройках фильтров и риска. Эти значения служат иллюстрацией поведения стратегии в прошлом и не являются обещанием аналогичных результатов в реальной торговле.
Предупреждение о рисках
Торговля криптовалютами связана с повышенным риском. Результаты бэктестов гипотетичны и предполагают идеальное исполнение без дополнительного проскальзывания и проблем с ликвидностью. Перед использованием стратегии на реальном счёте протестируйте её на своих инструментах и выбирайте риск на сделку в соответствии с личной толерантностью к убыткам.
FAQ
В: Гарантирует ли стратегия прибыль?
О: Нет. Это набор правил для принятия решений; результат зависит от рынка, настроек и исполнения. Любые бэктесты не гарантируют такую же доходность в будущем.
В: Можно ли использовать её на любой крипто‑паре?
О: Логика рассчитана на волатильные криптовалютные пары. Стратегия тестировалась на ETHUSDT, BTCUSDT и нескольких других мейджорах/альтах, но для каждого инструмента параметры желательно проверить и при необходимости подстроить.
В: Какой таймфрейм предпочтителен?
О: Стратегия рассчитана на внутридневную и свинговую торговлю в диапазоне 15m–4h. На младших ТФ сигналов больше и шума выше; на старших — сигналов меньше, но они формируются медленнее.
В: Можно ли отключать отдельные фильтры и гарды?
О: Можно. Трендовые фильтры, Anti‑Flat Gate и большинство гардов истощения включаются и выключаются отдельно. Рекомендуется менять настройки по одной и смотреть, как это влияет на заблокированные сигналы и кривую капитала.
В: Для чего нужны алерты?
О: Алерты отправляют JSON‑сообщение с направлением, ценой входа, стопом и уровнями TP через strategy.order.alert_message, что позволяет при желании подключать внешних ботов и панели управления риском.
Ocean Master [JOAT]Ocean Master QE - Advanced Oceanic Market Analysis with Quantum Flow Dynamics
Overview
Ocean Master QE is an open-source overlay indicator that combines multiple analytical techniques into a unified market analysis framework. It uses ATR-based dynamic channels, volume-weighted order flow analysis, multi-timeframe correlation (quantum entanglement concept), and harmonic oscillator calculations to provide traders with a comprehensive view of market conditions.
What This Indicator Does
The indicator calculates and displays several key components:
Dynamic Price Channels - ATR-adjusted upper, middle, and lower channels that adapt to current volatility conditions
Order Flow Analysis - Separates buying and selling volume pressure to calculate a directional delta
Smart Money Index - Volume-weighted order flow metric that highlights potential institutional activity
Harmonic Oscillator - Weighted combination of 10 Fibonacci-period EMAs (5, 8, 13, 21, 34, 55, 89, 144, 233, 377) to identify trend direction
Multi-Timeframe Correlation - Measures price correlation across 1H, 4H, and Daily timeframes
Wave Function Analysis - Momentum-based state detection that identifies when price action becomes decisive
How It Works
The core channel calculation uses ATR with a configurable quantum sensitivity factor:
float atr = ta.atr(i_atrLength)
float quantumFactor = 1.0 + (i_quantumSensitivity * 0.1)
float quantumATR = atr * quantumFactor
upperChannel := ta.highest(high, i_length) - (quantumATR * 0.5)
lowerChannel := ta.lowest(low, i_length) + (quantumATR * 0.5)
midChannel := (upperChannel + lowerChannel) * 0.5
Order flow is calculated by separating volume into buy and sell components based on candle direction:
The harmonic oscillator weights shorter EMAs more heavily using inverse weighting (1/1, 1/2, 1/3... 1/10), creating a responsive yet smooth trend indicator.
Signal Generation
Confluence signals require multiple conditions to align:
Bullish: Harmonic oscillator crosses above zero + positive Smart Money Index + positive Order Flow Delta
Bearish: Harmonic oscillator crosses below zero + negative Smart Money Index + negative Order Flow Delta
Dashboard Panel (Top-Right)
Bias - Current market direction based on price vs mid-channel
Entanglement - Multi-timeframe correlation score (0-100%)
Wave State - COLLAPSED (decisive) or SUPERPOSITION (uncertain)
Volume - Current volume relative to 20-period average
Volatility - ATR as percentage of price
Smart Money - Volume-weighted order flow reading
Visual Elements
Ocean Depth Layers - Gradient fills between channel levels representing different price zones
Channel Lines - Upper (surface), middle, and lower (seabed) dynamic levels
Divergence Markers - Triangle shapes when harmonic oscillator crosses zero
Confluence Labels - BULL/BEAR labels when multiple factors align
Suggested Use Cases
Identify trend direction using the harmonic oscillator and channel position
Monitor order flow for potential institutional activity
Use multi-timeframe correlation to confirm trade direction across timeframes
Watch for confluence signals where multiple factors align
Input Parameters
Length (default: 14) - Base period for channel and indicator calculations
ATR Length (default: 14) - Period for ATR calculation
Quantum Depth (default: 3) - Complexity factor for calculations
Quantum Sensitivity (default: 1.5) - Channel width multiplier
Timeframe Recommendations
Works on all timeframes. Higher timeframes (4H, Daily) provide smoother signals; lower timeframes require faster reaction times and may produce more noise.
Limitations
Multi-timeframe requests add processing overhead
Order flow estimation is based on candle direction, not actual order book data
Correlation calculations require sufficient historical data
Open-Source and Disclaimer
This script is published as open-source under the Mozilla Public License 2.0 for educational purposes. It does not constitute financial advice. Past performance does not guarantee future results. Always use proper risk management and conduct your own analysis before trading.
- Made with passion by officialjackofalltrades






















