Teemo Volume Delta & Market HUDTeemo Volume Delta & Market HUD
Description:
Teemo Volume Delta goes beyond simple volume indicators to provide expert-level analysis of Buy and Sell pressure within the market. It visualizes supply/demand imbalances inside candles and provides an immediate grasp of market control via a real-time HUD.
With the v1.2.0 update, we have removed unnecessary overlays (like EMAs) to focus on Pure Delta Analysis and a flexible Smart Accumulation System, making the tool lighter and more powerful.
๐ Key Features
1. Dual Calculation Modes Offers two calculation methods tailored to your trading environment and goals:
Estimation: Rapidly estimates buy/sell volume based on candle shape (OHLC) and price range. It features fast loading times and works instantly on all assets.
Intraday: Analyzes lower timeframe data (e.g., 1-minute bars) to calculate the precise delta of the current timeframe. (Loading time may vary depending on TradingView data limits.)
2. Smart Accumulation System Supports strategic analysis beyond simple summation with two distinct modes:
Time Based: Resets the Cumulative Delta to 0 at specific intervals (e.g., every 4 hours, Daily). This is optimized for session-based analysis or day trading.
Infinite: Continuously accumulates data without resetting, ideal for analyzing long-term Divergences between price and delta.
3. Intuitive HUD (Heads-Up Display) Displays critical market data on the chart for instant decision-making:
Delta Panel: Shows real-time Buy/Sell volume and Net Delta for the current candle.
Market HUD: Provides a comprehensive view of Trend Strength (ADX), Momentum (RSI), and the Cumulative Buy/Sell status for the current period.
4. Teemo Design System (v1.2) Provides optimized color themes for visual comfort during long trading sessions:
Teemo Neon: High-contrast Mint/Purple theme optimized for dark backgrounds.
Classic Soft: A calming Soft Green/Red theme designed to reduce eye strain (Recommended for all backgrounds).
โ๏ธ Settings Guide
Calculation Mode: Choose between Estimation (Speed) or Intraday (Precision).
Accumulation Mode: Choose Time Based (Periodic Reset) or Infinite (Continuous).
Reset Period: Set the reset interval for Time Based mode (e.g., 1D = Daily Reset).
Color Preset: Select between Teemo Neon or Classic Soft themes.
๐ก Trading Tips
Delta Divergence: If the price makes a higher high but the Cumulative Delta (HUD) makes a lower high, it signals weakening buying pressure and a potential reversal.
Candle Coloring: A solid Mint (or Green) candle body indicates a price rise accompanied by strong actual buying volume, offering higher reliability than standard candles.
HUD Confluence: Consider trend-following entries when the ADX is above 25 and the Delta is heavily skewed in one direction.
This indicator is for informational purposes only and does not constitute financial advice. The Estimation mode provides approximations based on algorithms, and the Intraday mode's accuracy depends on the quality of the lower timeframe data provided by the exchange.
Developed by Teemo Trading Systems
------------------------------------------------------------------------
Teemo Volume Delta & Market HUD
์ค๋ช
๋ณธ๋ฌธ:
Teemo Volume Delta๋ ๋จ์ํ ๊ฑฐ๋๋ ์งํ๋ฅผ ๋์ด, ์์ฅ ๋ด๋ถ์ ๋งค์(Buy)์ ๋งค๋(Sell) ์๋ ฅ์ ์ ๋ฐํ๊ฒ ๋ถ์ํ๋ ์ ๋ฌธ๊ฐ์ฉ ๋๊ตฌ์
๋๋ค. ์บ๋ค ๋ด๋ถ์ ์๊ธ ๋ถ๊ท ํ์ ์๊ฐํํ๊ณ , ์ค์๊ฐ HUD๋ฅผ ํตํด ์์ฅ์ ์ฃผ๋๊ถ์ด ๋๊ตฌ์๊ฒ ์๋์ง ์ฆ๊ฐ์ ์ผ๋ก ํ์
ํ ์ ์๋๋ก ๋์ต๋๋ค.
v1.2.0 ์
๋ฐ์ดํธ๋ฅผ ํตํด ๋ถํ์ํ ๋ณด์กฐ์งํ(EMA)๋ฅผ ์ ๊ฑฐํ๊ณ , ์์ํ ๋ธํ ๋ถ์๊ณผ ์ ์ฐํ ๋์ (Accumulation) ์์คํ
์ ์ง์คํ์ฌ ๋์ฑ ๊ฐ๋ณ๊ณ ๊ฐ๋ ฅํด์ก์ต๋๋ค.
๐ ์ฃผ์ ๊ธฐ๋ฅ (Key Features)
1. ๋์ผ ๊ณ์ฐ ๋ชจ๋ (Dual Calculation Modes) ์ฌ์ฉ์์ ํ๊ฒฝ๊ณผ ๋ชฉ์ ์ ๋ง์ถฐ ๋ ๊ฐ์ง ๊ณ์ฐ ๋ฐฉ์์ ์ ๊ณตํฉ๋๋ค.
Estimation (์ถ์ ๋ชจ๋): ์บ๋ค์ ํํ(OHLC)์ ๊ฐ๊ฒฉ ๋ณ๋ํญ์ ๊ธฐ๋ฐ์ผ๋ก ๋งค์/๋งค๋ ๋ณผ๋ฅจ์ ๋น ๋ฅด๊ฒ ์ถ์ ํฉ๋๋ค. ๋ก๋ฉ ์๋๊ฐ ๋น ๋ฅด๋ฉฐ ๋ชจ๋ ์์ฐ์ ์ฆ์ ์ ์ฉ ๊ฐ๋ฅํฉ๋๋ค.
Intraday (์ ๋ฐ ๋ถ์ ๋ชจ๋): ํ์ ํ์ํ๋ ์(์: 1๋ถ๋ด)์ ๋ฐ์ดํฐ๋ฅผ ๋ถ์ํ์ฌ ์์ ํ์ํ๋ ์์ ๋ธํ๋ฅผ ์ ๋ฐํ๊ฒ ๊ณ์ฐํฉ๋๋ค. (TradingView ๋ฐ์ดํฐ ์ ํ์ ๋ฐ๋ผ ๋ก๋ฉ ์๊ฐ์ด ์์๋ ์ ์์ต๋๋ค.)
2. ์ค๋งํธ ๋์ ์์คํ
(Smart Accumulation) ๋จ์ ๋์ ์ ๋์ด, ์ ๋ต์ ๋ถ์์ ์ํ ๋ ๊ฐ์ง ๋ชจ๋๋ฅผ ์ง์ํฉ๋๋ค.
Time Based: ์ง์ ํ ์ฃผ๊ธฐ(์: 4์๊ฐ, 1์ผ)๋ง๋ค ๋์ ๋ธํ๋ฅผ **0์ผ๋ก ์ด๊ธฐํ(Reset)**ํฉ๋๋ค. ์ธ์
๋ณ ์๊ธ ๋ถ์์ด๋ ๋ฐ์ด ํธ๋ ์ด๋ฉ์ ์ต์ ํ๋์ด ์์ต๋๋ค.
Infinite: ์ด๊ธฐํ ์์ด ๋ฐ์ดํฐ๋ฅผ ๊ณ์ ๋์ ํ์ฌ, ์ฅ๊ธฐ์ ์ธ ๊ฐ๊ฒฉ๊ณผ ๋ธํ์ **๋ค์ด๋ฒ์ ์ค(Divergence)**๋ฅผ ๋ถ์ํ๋ ๋ฐ ์ ์ฉํฉ๋๋ค.
3. ์ง๊ด์ ์ธ HUD (Heads-Up Display) ์ฐจํธ ์ฐ์ธก๊ณผ ์ข์ธก์ ํต์ฌ ์ ๋ณด๋ฅผ ์์ฝํ์ฌ ๋ณด์ฌ์ค๋๋ค.
Delta Panel: ํ์ฌ ์บ๋ค์ ๋งค์/๋งค๋ ๊ฑฐ๋๋๊ณผ ์๋งค์(Net Delta) ์ํ๋ฅผ ์ค์๊ฐ์ผ๋ก ํ์ํฉ๋๋ค.
Market HUD: ADX(์ถ์ธ ๊ฐ๋), RSI(๋ชจ๋ฉํ
), ๊ทธ๋ฆฌ๊ณ ํ์ฌ ๊ตฌ๊ฐ์ ๋์ ๋งค์/๋งค๋ ํํฉ์ ํ๋์ ๋ณผ ์ ์์ต๋๋ค.
4. Teemo Design System (v1.2) ์ฅ์๊ฐ ์ฐจํธ๋ฅผ ๋ณด๋ ํธ๋ ์ด๋๋ฅผ ์ํด ์์ธ์ฑ์ด ๋ฐ์ด๋ ์ปฌ๋ฌ ํ
๋ง๋ฅผ ์ ๊ณตํฉ๋๋ค.
Teemo Neon: ์ด๋์ด ๋ฐฐ๊ฒฝ์ ์ต์ ํ๋ ๊ณ ๋๋น ๋ฏผํธ/ํผํ ํ
๋ง.
Classic Soft: ๋์ ํผ๋ก๋ฅผ ์ค์ฌ์ฃผ๋ ์ฐจ๋ถํ ๊ทธ๋ฆฐ/๋ ๋ ํ
๋ง (๋ฐ์/์ด๋์ด ๋ฐฐ๊ฒฝ ๋ชจ๋ ์ถ์ฒ).
โ๏ธ ์ค์ ๊ฐ์ด๋ (Settings)
Calculation Mode: Estimation(์๋ ์ค์ฌ) ๋๋ Intraday(์ ํ๋ ์ค์ฌ) ์ค ์ ํ.
Accumulation Mode: Time Based(์ฃผ๊ธฐ๋ณ ๋ฆฌ์
) ๋๋ Infinite(๋ฌดํ ๋์ ) ์ ํ.
Reset Period: Time Based ๋ชจ๋ ์ฌ์ฉ ์ ๋ฆฌ์
ํ ์ฃผ๊ธฐ ์ค์ (์: 1D = ๋งค์ผ ๋ฆฌ์
).
Color Preset: Teemo Neon ๋๋ Classic Soft ํ
๋ง ์ ํ.
๐ก ํ์ฉ ํ (Trading Tips)
๋ธํ ๋ค์ด๋ฒ์ ์ค: ๊ฐ๊ฒฉ์ ์ ๊ณ ๊ฐ๋ฅผ ๊ฐฑ์ ํ์ง๋ง ๋์ ๋ธํ(Cum Delta)๋ ๋ฎ์์ง๋ค๋ฉด, ๋งค์์ธ๊ฐ ์ฝํ๋๊ณ ์๋ค๋ ๊ฐ๋ ฅํ ๋ฐ์ ์ ํธ์
๋๋ค.
์บ๋ค ์ปฌ๋ฌ๋ง: ์บ๋ค์ ๋ชธํต ์์์ด ์ง์ ๋ฏผํธ์(๋๋ ๊ทธ๋ฆฐ)์ด๋ผ๋ฉด ๊ฐ๋ ฅํ ๋งค์์ธ๊ฐ ๋๋ฐ๋ ์์น์ ์๋ฏธํ๋ฉฐ, ์ ๋ขฐ๋๊ฐ ๋์ต๋๋ค.
HUD ํ์ฉ: ADX๊ฐ 25 ์ด์์ด๋ฉด์ ๋ธํ๊ฐ ํ์ชฝ ๋ฐฉํฅ์ผ๋ก ์ ๋ฆด ๋ ์ถ์ธ ๋งค๋งค๋ฅผ ๊ณ ๋ คํ์ธ์.
์ด ์งํ๋ ์ ๋ณด ์ ๊ณต์ ๋ชฉ์ ์ผ๋ก๋ง ์ฌ์ฉ๋๋ฉฐ, ์ฌ์ ์ ์กฐ์ธ์ด ์๋๋๋ค. Estimation ๋ชจ๋๋ ๊ทผ์ฌ์น๋ฅผ ์ ๊ณตํ๋ฉฐ, Intraday ๋ชจ๋๋ ๊ฑฐ๋์์์ ์ ๊ณตํ๋ ํ์ ๋ฐ์ดํฐ์ ํ์ง์ ๋ฐ๋ผ ์ ํ๋๊ฐ ๋ฌ๋ผ์ง ์ ์์ต๋๋ค.
Statistics
Apex-Wallet - Risk & Reward Calc (Futures/Prop-Firm)Overview The Apex Risk & Reward Calc is a specialized utility tool designed for Futures traders, particularly those working with Prop Firms (Apex, MyFundedFutures, etc.). It eliminates the need for manual calculations by providing an instant, clear visualization of your Risk/Reward parameters directly on the chart.
How it works Trading Futures (ES, NQ, MES, MNQ) requires knowing exactly how many ticks correspond to your financial target. This script automatically detects the active instrument and calculates the precise number of ticks needed for both your Take Profit (TP) and Stop Loss (SL) based on your desired cash outcome and chosen ratio.
Key Features:
Automatic Ticker Recognition: Supports ES, NQ, MES, and MNQ with built-in tick values.
Cash-Based Planning: Enter your desired profit in dollars (e.g., $50), and the script tells you the required tick move.
Dynamic Ratio Selection: Choose from 9 different R:R ratios (from 1/5 to 5/1) to instantly see the impact on your Stop Loss.
Compact Professional UI: A clean, 3-column dashboard at the bottom-right of your screen showing active lots, ticks, and gross cash values.
Trading Application Perfect for intraday scalpers who need to set their ATM strategies in platforms like Tradovate or NinjaTrader. It ensures your execution remains consistent with your risk management plan.
RSI Statistics [Honestcowboy]โฏ Overview
Research tool for analysing price behaviour based on RSI, find out how your favorite trading pair / timeframe combinations react to RSI. 5 Different projections based on 5 different value zones of RSI:
RSI between 100-80 (very overbought)
RSI between 80-60 (overbought)
RSI between 60-40 (normal)
RSI between 40-20 (oversold)
RSI between 20-00 (very oversold)
The script simply show price projections of different RSI environments so you can get an idea of what price could do when RSI reaches this RSI value zone. Ofcourse past price performance does not guarantee future returns and this is just projections based on the past.
The script also projects RSI just like it does with price so you can get an idea of how long RSI might stay in overbought or very overbought etc
Script is mainly a research tool to use to get ideas to explore further and build upon. Here are some examples:
โฏ Settings
RSI Lenght: this is just normal RSI settings you find in standard RSI (bars used to calculate RSI)
Projection Length: Amount of bars to save for projections. The projections will also project this many bars in futre. Higher values here increase loading time drastically.
Price Action Boundaries: turn the highs / lows of projection zone on or off. I usually turn this off to look more closely at the averages themselves.
Maximum Stats history: Not on by default, in case you only want to show the average projection of last X amount of occurences RSI was in a specific RSI value zone
Selection of the different zones: in case you want to look at a specific zone alone or turn of some zones. It will no longer project for that zone both in the price projection and RSI projections.
โฏ How are these calculated?
To calculate the average price reaction script uses a very simple approach. On each bar it will save price action array up to projection length back in time. It will then check what the RSI value was there and store the array inside the right matrix.
It will use this matrix to calculate the averages, highs and lows of all these arrays for that specific RSI zone. It uses a simple arithmatic averaging method to get average value.
The script uses a similar approach for projecting the RSI itself into the future.
I include a visual showing it a bit better. This is from a different indicator of me using same approach:
The script will force you into a specific background, bar color and color template. Script is not meant to be used with other scripts and should be used as a standalone tool.
Daily Relative Strength (Daily Update)๐ Daily Relative Strength Rank Table (Crypto / Multi-Asset)
This indicator provides a daily relative strength ranking of multiple assets using normalized percentage returns (Z-Scores). It is designed to help traders quickly identify which tokens are outperforming or underperforming the group, both today (live) and yesterday (finalized).
๐ How It Works
Each assetโs daily percentage return is calculated from the daily close.
Returns are then normalized (Z-score) across the selected group, showing how far each asset deviates from the group average.
Assets are ranked from strongest to weakest based on todayโs normalized score.
๐ Table Columns
Rank โ Relative position vs other assets (higher = stronger)
Token โ Asset symbol
Today Z โ Live, intraday relative strength (updates in real time)
Yday Z โ Frozen relative strength from the previous daily close
The Yesterday score does not repaint and remains constant throughout the day, allowing for clear comparison between todayโs performance and the prior session.
๐ฏ Why Use This Indicator?
Quickly spot leaders and laggards
Compare assets on a percent-based, normalized scale
Avoid price bias (low-price and high-price assets are treated equally)
Ideal for rotation strategies, momentum trading, and market strength analysis
โ๏ธ Customization
All symbols can be changed directly in the indicator settings
Works on any timeframe (daily logic is handled internally)
Designed for crypto, but works with stocks, forex, or indices
๐ง Best Use Cases
Identifying top outperformers
Confirming trend continuation
Comparing sector or basket strength
Improving timing and capital allocation decisions
Arbitrage Matrix [LuxAlgo]The Arbitrage Matrix is a follow-up to our Arbitrage Detector that compares the spreads in price and volume between all the major crypto exchanges and forex brokers for any given asset.
It provides traders with a comprehensive view of the entire marketplace, revealing hidden relationships among different exchanges for the same asset and offering easy, visual comparisons.
๐ถ USAGE
Arbitrage is the practice of taking advantage of price differences for the same asset across different markets. Arbitrage traders look for these discrepancies to profit from buying where itโs cheaper and selling where itโs more expensive to capture the spread.
For begginers this tool is a clear snapshot of how different markets value the same asset, making global price dynamics easy to grasp.
For advanced traders it is a powerful scanner for arbitrage setups, helping you identify where the biggest opportunities lie in real time.
Arbitrage opportunities are often shortโlived, but they can be highly profitable. By showing you where spreads exist, this tool helps traders:
Understand market inefficiencies
Avoid trading at unfavorable prices
Identify potential profit opportunities across exchanges
By default, the tool searches all the enabled sources for the asset in the chart. It uses crypto exchanges as sources for crypto assets and forex brokers for all other assets.
The data is displayed on a dashboard, which is the tool's only visual element.
Traders can enable or disable any exchange or broker from the settings panel. All are enabled by default.
๐น Displayable Data
Traders can choose from four types of data to display: last price, last volume, average price, and average volume.
Note that price and volume data may not be available for all assets at all sources, and sources without data will not be displayed.
As the image shows, each chart displays a different type of data for the same asset. In this case, the asset is ETHUSDT.
๐น Reading the Matrix
Traders must read the data in a row-by-column format, as shown in the following example.
Assume that we are charting BTCUSDT Daily. In the row, we have Exchange A; in the column, we have Exchange B. The data is the average price, and the value is 100. The default length for the average is 20.
It reads like this: The average BTCUSDT price over the last 20 days is $100 higher on Exchange A than on Exchange B.
If the value were -100, it would mean that the average price is $100 lower in Exchange A than in Exchange B.
๐น Matrix Style
Traders can change the colors and disable the background gradient, which is enabled by default.
They can also fine-tune the location and dashboard size from the settings panel.
๐ถ SETTINGS
Sources: Choose between crypto exchanges, forex brokers, or automatic selection based on the asset in the chart.
Average Length: Select the length for the price and volume averages.
Crypto Exchanges: Enable or disable any available exchange.
Forex Brokers: Enable or disable any available broker.
๐น Dashboard
Data: Select the data to display.
Position: Select the dashboard location.
Size: Select the dashboard size.
๐น Style
Bullish: Select bullish color.
Bearish: Select bearish color.
Background Gradient: Enable background gradient color.
CVD - Cumulative Volume Delta Line - TheActulaSnailCVD โ Cumulative Volume Delta Line
Author: TheActualSnail
Description:
The CVD (Cumulative Volume Delta) Line indicator calculates the net difference between buying and selling volume over time, helping traders visualize market pressure and order flow. Instead of bars, this version plots a smooth line representing cumulative delta, making it easier to spot trends, divergences, and resets.
Key Features:
Smooth CVD line showing cumulative volume delta.
Optional Moving Average for trend smoothing.
Configurable resets: daily, fixed higher timeframe, session start, or specific intraday time.
Zero line for reference.
Background highlights when the CVD resets.
Settings Explanation
1. CVD Resets (resetInput)
Defines when the CVD calculation resets to zero:
None: Never resets; the CVD accumulates indefinitely.
On a stepped higher timeframe: Resets at the start of each bar of a higher timeframe (e.g., daily on a 1H chart).
On a fixed higher timeframe: Resets at the start of a specific timeframe you choose (fixedTfInput).
At a fixed time: Resets at a specific hour and minute each day (hourInput and minuteInput). Works only on intraday charts.
At the beginning of the session: Resets at the start of each trading session (useful for markets with fixed open/close hours).
2. Fixed Higher Timeframe (fixedTfInput)
Used with fixed higher timeframe reset. Example: "D" = reset at the start of each day, "W" = reset at the start of each week.
3. Fixed Time (hourInput & minuteInput)
Used only with At a fixed time reset. Example: hour = 9, minute = 30 โ CVD resets at 9:30 AM each day.
4. Volume Delta Calculation (vdCalcModeInput)
Volume delta: Cumulative delta = up volume โ down volume.
Volume delta percent: Relative delta = (up โ down) / total volume.
5. Visuals
CVD Line Colors: Green for positive delta, red for negative.
CVD MA: Optional moving average to smooth the line.
Zero Line: Reference for zero cumulative delta.
Background Color on Reset: Highlights bars when CVD resets.
Usage Notes
This indicator is for informational purposes only.
It does not provide buy or sell signals.
Always combine CVD analysis with other indicators, price action, and risk management.
Market conditions can change rapidly; use caution when making trading decisions.
Tip:
For intraday charts, consider using fixed time resets to see daily market pressure clearly.
For higher timeframe analysis, use daily or weekly resets.
Sizing Coach HUD Long and Short This HUD is designed as a systematic execution layer to bridge the gap between technical analysis and mechanical risk management. Its primary purpose is to eliminate the "discretionary gap"โthe moment where a traderโs "feeling" about volatility or spreads causes hesitation.
By using this tool, you are not just watching price; you are managing a business where Risk is a constant and Size is a variable.
Core Functionality: The Position Sizing Engine
The HUD automates the math of "Capital-Based Tiers". Instead of choosing an arbitrary share size, the system calculates your position based on three predefined levels of conviction:
Tier 1 (1% Notional): Low-confidence or high-volatility "tester" positions.
Tier 2 (3% Notional): Standard, high-probability setups.
Tier 3 (5% Notional): High-conviction trades where multiple timeframes and factors align.
Execution Workflow (The Poka-Yoke)
To use this HUD effectively and eliminate the "hesitation" identified in the Five Whys analysis, follow this workflow:
Toggle Direction: Set the HUD to Long or Short based on your setup (e.g., NEMA Continuation).
Define Invalidation: Identify your technical stop (default is High/Low of Day +/- 5%). The HUD will automatically calculate the distance to this level.
Check Risk $: Observe the Risk $ row. This tells you exactly how much you will lose in dollars if the stop is hit. If the volatility is extreme (like the NASDAQ:SNDK 14% plunge), the HUD will automatically shrink your Shares count to keep this dollar amount constant.
Execute via HUD: Transmit the order using the Shares provided in your selected Tier. Do not manually adjust the size based on "gut feeling".
Trade Management: The "R" Focus
The bottom half of the HUD displays your Targets (PnL / R).
VWAP & Fibonacci Levels: Automatically plots and calculates profit targets at key institutional levels (VWAP, 0.618, 0.786, 0.886).
Binary Exit Logic: The color-coded logic flags any target that yields less than 1R (Reward-to-Risk) as a warning.
Systematic Holding: Ride the trade to the targets or until your technical exit (e.g., 1M candle close above/below NEMA) is triggered, ignoring the fluctuating P&L.
Hedge Mini Calculator (Avg Long/Short + Alerts) with dca
Hedge Mini Calculator is a position-management indicator for traders who use long & short hedging.
It plots:
Long average price
Short average price
Optional hedge close level (+% above hedge average)
The indicator also provides alerts when price reaches the long or short average, helping you manage hedge exits and directional bias with precision.
Designed for risk control, not signals.
๐น How to Use (Simple & Clear)
1. Enter Your Positions
In the indicator settings:
Add the dollar amount and entry price for each long leg
Add the dollar amount and entry price for each short leg
Set your leverage (default x4)
The indicator does not connect to your exchange.
All values are entered manually.
2. Read the Lines
Avg Long line โ average entry of all long positions
Avg Short line โ average entry of all short positions
Hedge Close line (optional) โ price level where you may close shorts and stay long
3. Use Alerts
You can create alerts for:
Price reaching Avg Long
Price reaching Avg Short
Alerts trigger when the candle touches the average price (highโlow range).
4. Manage the Hedge
Typical workflow:
Keep both long & short active while price is inside the range
When price moves favorably and reaches your target level:
Close the hedge leg (usually shorts)
Keep the directional position (longs)
5. PnL Awareness
The info table shows:
Estimated Long PnL
Estimated Short PnL
Net PnL (based on margin & leverage)
These values are approximations for decision support.
โ ๏ธ Disclaimer
This indicator is not a trading signal.
It is a position management tool for hedging, scaling, and risk control.
BarCoreLibrary "BarCore"
BarCore is a foundational library for technical analysis, providing essential functions for evaluating the structural properties of candlesticks and inter-bar relationships.
It prioritizes ratio-based metrics (0.0 to 1.0) over absolute prices, making it asset-agnostic and ideal for robust pattern recognition, momentum analysis, and volume-weighted pressure evaluation.
Key modules:
- Structure & Range: High-precision bar and body metrics with relative positioning.
- Wick Dynamics: Absolute and relative wick analysis for identifying price rejection.
- Inter-bar Logic: Containment, coverage, and quantitative price overlap (Ratio-based).
- Gap Intelligence: Real body and price gaps with customizable significance thresholds.
- Flow & Pressure: Volume-weighted buying/selling pressure and Money Flow metrics.
isBuyingBar()
โโChecks if the bar is a bullish (up) bar, where close is greater than open.
โโReturns: bool True if the bar closed higher than it opened.
isSellingBar()
โโChecks if the bar is a bearish (down) bar, where close is less than open.
โโReturns: bool True if the bar closed lower than it opened.
barMidpoint()
โโCalculates the absolute midpoint of the bar's total range (High + Low) / 2.
โโReturns: float The midpoint price of the bar.
barRange()
โโCalculates the absolute size of the bar's total range (High to Low).
โโReturns: float The absolute difference between high and low.
barRangeMidpoint()
โโCalculates half of the bar's total range size.
โโReturns: float Half the bar's range size.
realBodyHigh()
โโReturns the higher price between the open and close.
โโReturns: float The top of the real body.
realBodyLow()
โโReturns the lower price between the open and close.
โโReturns: float The bottom of the real body.
realBodyMidpoint()
โโCalculates the absolute midpoint of the bar's real body.
โโReturns: float The midpoint price of the real body.
realBodyRange()
โโCalculates the absolute size of the bar's real body.
โโReturns: float The absolute difference between open and close.
realBodyRangeMidpoint()
โโCalculates half of the bar's real body size.
โโReturns: float Half the real body size.
upperWickRange()
โโCalculates the absolute size of the upper wick.
โโReturns: float The range from high to the real body high.
lowerWickRange()
โโCalculates the absolute size of the lower wick.
โโReturns: float The range from the real body low to low.
openRatio()
โโReturns the location of the open price relative to the bar's total range (0.0 at low to 1.0 at high).
โโReturns: float The ratio of the distance from low to open, divided by the total range.
closeRatio()
โโReturns the location of the close price relative to the bar's total range (0.0 at low to 1.0 at high).
โโReturns: float The ratio of the distance from low to close, divided by the total range.
realBodyRatio()
โโCalculates the ratio of the real body size to the total bar range.
โโReturns: float The real body size divided by the bar range. Returns 0 if barRange is 0.
upperWickRatio()
โโCalculates the ratio of the upper wick size to the total bar range.
โโReturns: float The upper wick size divided by the bar range. Returns 0 if barRange is 0.
lowerWickRatio()
โโCalculates the ratio of the lower wick size to the total bar range.
โโReturns: float The lower wick size divided by the bar range. Returns 0 if barRange is 0.
upperWickToBodyRatio()
โโCalculates the ratio of the upper wick size to the real body size.
โโReturns: float The upper wick size divided by the real body size. Returns 0 if realBodyRange is 0.
lowerWickToBodyRatio()
โโCalculates the ratio of the lower wick size to the real body size.
โโReturns: float The lower wick size divided by the real body size. Returns 0 if realBodyRange is 0.
totalWickRatio()
โโCalculates the ratio of the total wick range (Upper Wick + Lower Wick) to the total bar range.
โโReturns: float The total wick range expressed as a ratio of the bar's total range. Returns 0 if barRange is 0.
isBodyExpansion()
โโChecks if the current bar's real body range is larger than the previous bar's real body range (body expansion).
โโReturns: bool True if realBodyRange() > realBodyRange() .
isBodyContraction()
โโChecks if the current bar's real body range is smaller than the previous bar's real body range (body contraction).
โโReturns: bool True if realBodyRange() < realBodyRange() .
isWithinPrevBar(inclusive)
โโChecks if the current bar's range is entirely within the previous bar's range.
โโParameters:
โโโโ inclusive (bool) : If true, allows equality (<=, >=). Default is false.
โโReturns: bool True if High < High AND Low > Low .
isCoveringPrevBar(inclusive)
โโChecks if the current bar's range fully covers the entire previous bar's range.
โโParameters:
โโโโ inclusive (bool) : If true, allows equality (<=, >=). Default is false.
โโReturns: bool True if High > High AND Low < Low .
isWithinPrevBody(inclusive)
โโChecks if the current bar's real body is entirely inside the previous bar's real body.
โโParameters:
โโโโ inclusive (bool) : If true, allows equality (<=, >=). Default is false.
โโReturns: bool True if the current body is contained inside the previous body.
isCoveringPrevBody(inclusive)
โโChecks if the current bar's real body fully covers the previous bar's real body.
โโParameters:
โโโโ inclusive (bool) : If true, allows equality (<=, >=). Default is false.
โโReturns: bool True if the current body fully covers the previous body.
isOpenWithinPrevBody(inclusive)
โโChecks if the current bar's open price falls within the real body range of the previous bar.
โโParameters:
โโโโ inclusive (bool) : If true, includes the boundary prices. Default is false.
โโReturns: bool True if the open price is between the previous bar's real body high and real body low.
isCloseWithinPrevBody(inclusive)
โโChecks if the current bar's close price falls within the real body range of the previous bar.
โโParameters:
โโโโ inclusive (bool) : If true, includes the boundary prices. Default is false.
โโReturns: bool True if the close price is between the previous bar's real body high and real body low.
isPrevOpenWithinBody(inclusive)
โโChecks if the previous bar's open price falls within the current bar's real body range.
โโParameters:
โโโโ inclusive (bool) : If true, includes the boundary prices. Default is false.
โโReturns: bool True if open is between the current bar's real body high and real body low.
isPrevCloseWithinBody(inclusive)
โโChecks if the previous bar's closing price falls within the current bar's real body range.
โโParameters:
โโโโ inclusive (bool) : If true, includes the boundary prices. Default is false.
โโReturns: bool True if close is between the current bar's real body high and real body low.
isOverlappingPrevBar()
โโChecks if there is any price overlap between the current bar's range and the previous bar's range.
โโReturns: bool True if the current bar's range has any intersection with the previous bar's range.
bodyOverlapRatio()
โโCalculates the percentage of the current real body that overlaps with the previous real body.
โโReturns: float The overlap ratio (0.0 to 1.0). 1.0 means the current body is entirely within the previous body's price range.
isCompletePriceGapUp()
โโChecks for a complete price gap up where the current bar's low is strictly above the previous bar's high, meaning there is zero price overlap between the two bars.
โโReturns: bool True if the current low is greater than the previous high.
isCompletePriceGapDown()
โโChecks for a complete price gap down where the current bar's high is strictly below the previous bar's low, meaning there is zero price overlap between the two bars.
โโReturns: bool True if the current high is less than the previous low.
isRealBodyGapUp()
โโChecks for a gap between the current and previous real bodies.
โโReturns: bool True if the current body is completely above the previous body.
isRealBodyGapDown()
โโChecks for a gap between the current and previous real bodies.
โโReturns: bool True if the current body is completely below the previous body.
gapRatio()
โโCalculates the percentage difference between the current open and the previous close, expressed as a decimal ratio.
โโReturns: float The gap ratio (positive for gap up, negative for gap down). Returns 0 if the previous close is 0.
gapPercentage()
โโCalculates the percentage difference between the current open and the previous close.
โโReturns: float The gap percentage (positive for gap up, negative for gap down). Returns 0 if previous close is 0.
isGapUp()
โโChecks for a basic gap up, where the current bar's open is strictly higher than the previous bar's close. This is the minimum condition for a gap up.
โโReturns: bool True if the current open is greater than the previous close (i.e., gapRatio is positive).
isGapDown()
โโChecks for a basic gap down, where the current bar's open is strictly lower than the previous bar's close. This is the minimum condition for a gap down.
โโReturns: bool True if the current open is less than the previous close (i.e., gapRatio is negative).
isSignificantGapUp(minRatio)
โโChecks if the current bar opened significantly higher than the previous close, as defined by a minimum percentage ratio.
โโParameters:
โโโโ minRatio (float) : The minimum required gap percentage ratio. Default is 0.03 (3%).
โโReturns: bool True if the gap ratio (open vs. previous close) is greater than or equal to the minimum ratio.
isSignificantGapDown(minRatio)
โโChecks if the current bar opened significantly lower than the previous close, as defined by a minimum percentage ratio.
โโParameters:
โโโโ minRatio (float) : The minimum required gap percentage ratio. Default is 0.03 (3%).
โโReturns: bool True if the absolute value of the gap ratio (open vs. previous close) is greater than or equal to the minimum ratio.
trueRangeComponentHigh()
โโCalculates the absolute distance from the current bar's High to the previous bar's Close, representing one of the components of the True Range.
โโReturns: float The absolute difference: |High - Close |.
trueRangeComponentLow()
โโCalculates the absolute distance from the current bar's Low to the previous bar's Close, representing one of the components of the True Range.
โโReturns: float The absolute difference: |Low - Close |.
isUpperWickDominant(minRatio)
โโChecks if the upper wick is significantly long relative to the total range.
โโParameters:
โโโโ minRatio (float) : Minimum ratio of the wick to the total bar range. Default is 0.7 (70%).
โโReturns: bool True if the upper wick dominates the bar's range.
isUpperWickNegligible(maxRatio)
โโChecks if the upper wick is very small relative to the total range.
โโParameters:
โโโโ maxRatio (float) : Maximum ratio of the wick to the total bar range. Default is 0.05 (5%).
โโReturns: bool True if the upper wick is negligible.
isLowerWickDominant(minRatio)
โโChecks if the lower wick is significantly long relative to the total range.
โโParameters:
โโโโ minRatio (float) : Minimum ratio of the wick to the total bar range. Default is 0.7 (70%).
โโReturns: bool True if the lower wick dominates the bar's range.
isLowerWickNegligible(maxRatio)
โโChecks if the lower wick is very small relative to the total range.
โโParameters:
โโโโ maxRatio (float) : Maximum ratio of the wick to the total bar range. Default is 0.05 (5%).
โโReturns: bool True if the lower wick is negligible.
isSymmetric(maxTolerance)
โโChecks if the upper and lower wicks are roughly equal in length.
โโParameters:
โโโโ maxTolerance (float) : Maximum allowable percentage difference between the two wicks. Default is 0.15 (15%).
โโReturns: bool True if wicks are symmetric within the tolerance level.
isMarubozuBody(minRatio)
โโCandle with a very large body relative to the total range (minimal wicks).
โโParameters:
โโโโ minRatio (float) : Minimum body size ratio. Default is 0.9 (90%).
โโReturns: bool True if the bar has minimal wicks (Marubozu body).
isLargeBody(minRatio)
โโCandle with a large body relative to the total range.
โโParameters:
โโโโ minRatio (float) : Minimum body size ratio. Default is 0.6 (60%).
โโReturns: bool True if the bar has a large body.
isSmallBody(maxRatio)
โโCandle with a small body relative to the total range.
โโParameters:
โโโโ maxRatio (float) : Maximum body size ratio. Default is 0.4 (40%).
โโReturns: bool True if the bar has small body.
isDojiBody(maxRatio)
โโCandle with a very small body relative to the total range (indecision).
โโParameters:
โโโโ maxRatio (float) : Maximum body size ratio. Default is 0.1 (10%).
โโReturns: bool True if the bar has a very small body.
isLowerWickExtended(minRatio)
โโChecks if the lower wick is significantly extended relative to the real body size.
โโParameters:
โโโโ minRatio (float) : Minimum required ratio of the lower wick length to the real body size. Default is 2.0 (Lower wick must be at least twice the body's size).
โโReturns: bool True if the lower wick's length is at least `minRatio` times the size of the real body.
isUpperWickExtended(minRatio)
โโChecks if the upper wick is significantly extended relative to the real body size.
โโParameters:
โโโโ minRatio (float) : Minimum required ratio of the upper wick length to the real body size. Default is 2.0 (Upper wick must be at least twice the body's size).
โโReturns: bool True if the upper wick's length is at least `minRatio` times the size of the real body.
isStrongBuyingBar(minCloseRatio, maxOpenRatio)
โโChecks for a bar with strong bullish momentum (open near low, close near high), indicating high conviction.
โโParameters:
โโโโ minCloseRatio (float) : Minimum required ratio for the close location (relative to range, e.g., 0.7 means close must be in the top 30%). Default is 0.7 (70%).
โโโโ maxOpenRatio (float) : Maximum allowed ratio for the open location (relative to range, e.g., 0.3 means open must be in the bottom 30%). Default is 0.3 (30%).
โโReturns: bool True if the bar is bullish, opened in the low extreme, and closed in the high extreme.
isStrongSellingBar(maxCloseRatio, minOpenRatio)
โโChecks for a bar with strong bearish momentum (open near high, close near low), indicating high conviction.
โโParameters:
โโโโ maxCloseRatio (float) : Maximum allowed ratio for the close location (relative to range, e.g., 0.3 means close must be in the bottom 30%). Default is 0.3 (30%).
โโโโ minOpenRatio (float) : Minimum required ratio for the open location (relative to range, e.g., 0.7 means open must be in the top 30%). Default is 0.7 (70%).
โโReturns: bool True if the bar is bearish, opened in the high extreme, and closed in the low extreme.
isWeakBuyingBar(maxCloseRatio, maxBodyRatio)
โโIdentifies a bar that is technically bullish but shows significant weakness, characterized by a failure to close near the high and a small body size.
โโParameters:
โโโโ maxCloseRatio (float) : Maximum allowed ratio for the close location relative to the range (e.g., 0.6 means the close must be in the bottom 60% of the bar's range). Default is 0.6 (60%).
โโโโ maxBodyRatio (float) : Maximum allowed ratio for the real body size relative to the bar's range (e.g., 0.4 means the body is small). Default is 0.4 (40%).
โโReturns: bool True if the bar is bullish, but its close is weak and its body is small.
isWeakSellingBar(minCloseRatio, maxBodyRatio)
โโIdentifies a bar that is technically bearish but shows significant weakness, characterized by a failure to close near the low and a small body size.
โโParameters:
โโโโ minCloseRatio (float) : Minimum required ratio for the close location relative to the range (e.g., 0.4 means the close must be in the top 60% of the bar's range). Default is 0.4 (40%).
โโโโ maxBodyRatio (float) : Maximum allowed ratio for the real body size relative to the bar's range (e.g., 0.4 means the body is small). Default is 0.4 (40%).
โโReturns: bool True if the bar is bearish, but its close is weak and its body is small.
balanceOfPower()
โโMeasures the net pressure of buyers vs. sellers within the bar, normalized to the bar's range.
โโReturns: float A value between -1.0 (strong selling) and +1.0 (strong buying), representing the strength and direction of the close relative to the open.
buyingPressure()
โโMeasures the net buying volume pressure based on the close location and volume.
โโReturns: float A numerical value representing the volume weighted buying pressure.
sellingPressure()
โโMeasures the net selling volume pressure based on the close location and volume.
โโReturns: float A numerical value representing the volume weighted selling pressure.
moneyFlowMultiplier()
โโCalculates the Money Flow Multiplier (MFM), which is the price component of Money Flow and CMF.
โโReturns: float A normalized value from -1.0 (strong selling) to +1.0 (strong buying), representing the net directional pressure.
moneyFlowVolume()
โโCalculates the Money Flow Volume (MFV), which is the Money Flow Multiplier weighted by the bar's volume.
โโReturns: float A numerical value representing the volume-weighted money flow. Positive = buying dominance; negative = selling dominance.
isAccumulationBar()
โโChecks for basic accumulation on the current bar, requiring both positive Money Flow Volume and a buying bar (closing higher than opening).
โโReturns: bool True if the bar exhibits buying dominance through its internal range location and is a buying bar.
isDistributionBar()
โโChecks for basic distribution on the current bar, requiring both negative Money Flow Volume and a selling bar (closing lower than opening).
โโReturns: bool True if the bar exhibits selling dominance through its internal range location and is a selling bar.
LEVENT: Lifetime Estimation via Efficiency-Regime EventLEVENT โ Lifetime Estimation via Efficiency-Regime Event Transitions
LEVENT is a research-grade indicator that estimates the remaining structural lifetime of the current market regime.
Unlike trend, volatility, or momentum tools, LEVENT does not measure price movement โ it measures how long the current market structure is likely to survive before breaking.
This script implements the LEVENT model published on Zenodo (Bรผlent Duman, 2026) and is built on top of the open-source DERYA (Dynamic Efficiency Regime Yield Analyzer) microstructural efficiency framework.
What LEVENT measures
LEVENT outputs a single continuous variable L that represents the remaining survival capacity of the active efficiency regime.
High L โ the current regime has strong structural endurance
Falling L โ the regime is consuming its capacity
L โ 0 โ regime exhaustion and elevated probability of transition
This makes LEVENT a forward-looking structural time variable, not a price indicator.
What is inside this script
This implementation contains the following components:
1. DERYA (open-source microstructure efficiency)
DERYA is computed from OHLC data as:
Net close-to-close movement divided by total intrabar range
It is smoothed with an EMA and normalized over a rolling window to produce a bounded efficiency state (0โ100).
This is an open-source indicator and is explicitly credited in the LEVENT paper.
2. Transition Strength (S)
S measures how unstable the regime is by combining:
the slope of DERYA
the acceleration of DERYA
This is not RSI, MACD, or ATR โ it is a state-transition intensity metric.
3. Regime Engine
Markets are classified into four structural regimes:
Expansion
Exhaustion
Collapse
Base / Recovery
A debounce + persistence filter is used to avoid noise-based flickering.
4. Structural Lifetime (LEVENT L)
Each regime is assigned a capacity (ฮ) and a fragility (ฮฑ).
LEVENT then evolves as a jump-and-countdown survival process:
On regime change โ L resets to full capacity
Inside a regime โ L decays deterministically
High instability โ faster decay
This is not a moving average, oscillator, or probability estimate โ it is a structural survival clock.
How to use LEVENT
LEVENT is designed to be used as a regime-health overlay, not a buy/sell trigger.
Typical uses:
Detect late-stage trends when L is low
Avoid initiating positions when the regime is near collapse
Compare structural stability across assets
Combine with price, trend, or volume systems
Do not use LEVENT alone as a trading signal.
LEVENT tells you โhow long the structure may lastโ, not โwhere price will go.โ
Visuals
Background colors show the current regime
The LEVENT line shows remaining structural lifetime
A table displays the active regime and current L value
Important notes
LEVENT is not RSI, MACD, ATR, or trend
LEVENT does not predict price direction
LEVENT does not issue entry/exit signals
LEVENT is a research-grade structural model
The DERYA component used here is an open-source microstructural efficiency estimator and is credited accordingly.
Risk and disclaimer
This script is provided for research and analytical purposes only.
It is not financial advice and must not be used as a standalone trading system.
Markets are uncertain.
All trading decisions and risks remain entirely the responsibility of the user.
LEVENT: Lifetime Estimation via Efficiency-regime Event Transitions
Introducing a Regime-Dependent Structural Lifetime Estimator for Financial Markets Using OHLC Data
Author: DUMAN,Bรผlent
Affiliation: Independent Researcher
zenodo.org
Kalman Hull Trend Score [BackQuant]Kalman Hull Trend Score
Overview
Kalman Hull Trend Score is a trend-strength and regime-evaluation indicator that combines two ideas, Kalman filtering and Hull-style smoothing, then measures persistence of that filtered trend using a rolling score. The goal is to produce a cleaner, more stable trend read than typical moving average tools, while still reacting fast enough to be practical in live markets.
Instead of treating a moving average as a simple line you cross, this indicator turns the filtered trend into an oscillator-like score that answers: โIs the smoothed trend consistently progressing, or is it stalling and degrading?โ
Core idea
The indicator is built from two components:
A Kalman-based smoothing engine that estimates price state and reduces noise adaptively.
A Hull-style construction that uses multiple Kalman passes to create a responsive, low-lag trend filter.
Once the Kalman Hull filter is built, a persistence score is calculated by comparing the current Kalman Hull value to many past values. The result is a trend score that rises in sustained trends and compresses or flips during deterioration.
Why Kalman instead of standard smoothing
Traditional moving averages apply fixed smoothing rules regardless of market conditions. A Kalman filter behaves differently, it is designed to estimate an underlying state in noisy data, adjusting how much it โtrustsโ new price information versus prior estimates.
This script exposes that behavior through two key controls:
Measurement Noise: how noisy the observed price is assumed to be.
Process Noise: how much the underlying state is allowed to evolve from bar to bar.
Together, these settings let you tune the balance between smoothness and responsiveness without relying on blunt averaging alone.
Kalman filter mechanics (conceptual)
Each update cycle follows the classic structure:
Prediction: assume the state continues, and expand uncertainty by process noise.
Update: compute Kalman Gain, then blend the new price observation into the estimate.
Correction: reduce uncertainty based on how much the filter accepted the new information.
When measurement noise is higher, the filter becomes more conservative, smoothing harder. When process noise is higher, the filter adapts faster to regime changes, but can become more reactive.
Check out the original script:
Kalman Hull construction
The โHullโ component is not a standard HMA built from WMAs. Instead, it recreates the Hull idea using Kalman filtering as the smoothing primitive. The structure follows the same intent as HMA, reduce lag while keeping the line smooth, but does it with Kalman passes:
Apply Kalman smoothing over multiple effective lengths.
Combine them using the Hull-style weighting logic.
Run the combined output through another Kalman pass to finalize smoothing.
The result is a Kalman Hull filter that aims to track trend with less jitter than raw price, and less lag than slow averages.
Another Kalman Hull with Supertrend
Trend scoring logic
The trend score is computed by comparing the current Kalman Hull value to past Kalman Hull values over a fixed lookback range (1 to 45 bars in this script):
If current kalmanHMA > kalmanHMA , add +1
If current kalmanHMA < kalmanHMA , add -1
This produces a persistence score rather than a simple direction signal. Strong trends where the filter keeps advancing will accumulate positive comparisons. Weak trends, chop, or reversals will cause the score to flatten, decay, or flip negative.
Interpreting the score
Read the score as trend conviction and persistence:
High positive values: bullish persistence, the filtered trend is progressing consistently.
Low positive values: trend exists but is fragile, progress is slowing.
Near zero: indecision, range behavior, frequent challenges to structure.
Negative values: bearish persistence or sustained deterioration in the filtered trend.
The rate of change matters:
Score expansion suggests trend is gaining traction.
Score compression often signals consolidation or exhaustion.
Fast flips usually accompany regime transitions.
Signal thresholds and regime transitions
User-defined thresholds convert the score into regimes:
Long threshold: score must exceed this level to confirm bullish persistence.
Short threshold: a crossunder of the score triggers bearish regime transition.
This is intentionally conservative. Long bias is maintained while the score holds above the long threshold. Short transitions are event-triggered on breakdown via crossunder, helping avoid constant flipping during minor noise.
Signals are only plotted on regime changes (first bar of the flip), keeping them clean for alerts and backtests.
Visual presentation
The indicator provides multiple layers depending on how you want to use it:
Kalman Hull Trend Score oscillator, color-coded by active regime.
Optional Kalman Hull filter plotted on the price chart for structure context.
Optional threshold reference lines for quick regime mapping.
Optional candle coloring and background shading for instant readability.
You can run it as a pure score panel or as a combined panel + on-chart trend overlay.
How to use in practice
Trend filtering
Favor long setups when the score remains above the long threshold.
Reduce directional aggression when score compresses toward zero.
Treat a short-threshold breakdown as a regime risk event, not just a signal.
Trend quality assessment
Rising score supports continuation trades and adds confidence to breakouts.
Flat or falling score warns that trend persistence is fading.
If price trends but score fails to expand, trend may be weak or liquidity-driven.
Trade management
Use the Kalman Hull line as dynamic structure reference on chart.
Use score deterioration to scale out before a full regime flip.
Use regime flips as confirmation for bias shifts rather than prediction.
Tuning guidelines
Measurement Noise
Higher: smoother filter, fewer false shifts, slower to adapt.
Lower: more responsive, more sensitive to microstructure noise.
Process Noise
Higher: adapts quicker to sudden changes, but can become twitchy.
Lower: steadier state estimate, but slower during sharp regime transitions.
A practical approach is to first tune measurement noise until the Kalman Hull line matches the โclean trend structureโ you want, then adjust process noise to control how quickly it reacts when the regime genuinely changes.
Summary
Kalman Hull Trend Score transforms a Kalman-based Hull-style trend filter into a quantified persistence oscillator. By combining adaptive Kalman smoothing with low-lag Hull logic and a rolling comparison score, it provides a cleaner read on trend quality than basic moving averages or single-condition trend tools. It is best used as a regime filter, trend strength gauge, and structure-aware trade management layer.
Share Size CalcCalculate the share size to be used based on a percentage risk per trade and total capital in the account.
Market State Fear & Greed Bubble Index V1Market State Fear & Greed Bubble Index V1
๐ Comprehensive Market Sentiment Analyzer
This advanced indicator measures market psychology through a multi-dimensional scoring system, combining demand/supply pressure, trend momentum, and statistical extremes to identify fear/greed cycles and trading opportunities.
๐ฏ Core Features
Five-Factor Fear & Greed Score
Weighted sentiment analysis:
Demand/Supply (25%): Real-time buying/selling pressure
RSI (25%): Momentum extremes
KDJ (20%): Overbought/oversold detection
Bollinger Band % (20%): Statistical positioning
ADX Trend (10%): Trend strength confirmation
Multi-Layer Market State Detection
Extreme Fear/Greed: Statistical bubble identification
Trend Bias: Bullish/Bearish/Neutral classification
Confidence Scoring: Setup reliability assessment
Reversal Alerts: Early trend change signals
Visual Dashboard
Top-right information panel displays:
Fear & Greed Score (0-100)
Market State Classification
Trend Bias & Confidence
Signal Quality & Alerts
๐ Key Components
Fear & Greed Gauge
0-30: Extreme Fear (buying opportunities)
30-47: Fear (accumulation zones)
47-70: Neutral (consolidation)
70-90: Greed (caution zones)
90-100: Extreme Greed (selling opportunities)
Deviation Zones
Red Zone (ยฑ17.065): Critical reversal areas
Yellow Zone (ยฑ34.135): Warning levels
Blue Zone (ยฑ47.72): Statistical extremes where reversals are highly likely. These occur when asset prices are in a bubble that's about to pop.
Signal Types
Buy/Sell Labels: Primary entry/exit signals
Scalp Signals: Short-term opportunities
Bottom/Top Detectors: Extreme reversal zones
Whale Indicators: Institutional activity markers
๐ Trading Applications
Extreme Fear Setups Conditions:
Fear & Greed Score < 34.135
BB% < 0 or < J-inverted line
RSI < 34.135
Confidence score > 68%
Bullish divergence present
Action: Accumulation positions, scaled entries
Extreme Greed Setup Conditions:
Fear & Greed Score > 68.2
BB% > 100 or > 80 with divergence
RSI > 68.2
ADX showing trend exhaustion
Multiple timeframe resistance
Action: Profit-taking, protective stops
Trend Following
Bullish Conditions:
Sentiment score rising from fear zones
DMI+ above DMI- and rising
Confidence > 75%
Volume supporting moves
Bearish Conditions:
Sentiment declining from greed zones
DMI- above DMI+ and rising
Distribution patterns
Multiple resistance failures
โ๏ธ Customization Options
Adjustable Parameters:
DMI Settings: DI lengths, ADX smoothing
KDJ Periods: Customizable sensitivity
BB% Range: Statistical band adjustments
Smoothing Options: Demand/Supply filtering
Alert Thresholds: Custom signal levels
Visual Customization:
Color schemes for different market states
Line thickness and style preferences
Information panel display options
Alert sound/visual preferences
๐ Signal Interpretation
Primary Signals:
Green 'B': Strong buy opportunity
Red 'S': Strong sell opportunity
White 'Scalp': Short-term trade
Trade Area: Accumulation/distribution zones
Visual Markers:
๐ฅ: Bullish momentum building
๐ป: Bear exhaustion building
๐ณ: Whale/institutional activity
Color-coded fills: Market state visualization
Confidence Levels:
โฅ80%: High reliability setups
60-79%: Moderate confidence
<60%: Low confidence, avoid or reduce size
โ ๏ธ Risk Management Guidelines
Critical Rules:
Never trade against extreme sentiment (Extreme Fear โ buy, Extreme Greed โ sell)
Require multiple confirmation signals
Use confidence scores for position sizing
Avoid When:
Conflicting signals between components
Low volume participation
Confidence score < 50%
Major news events pending
Extreme volatility conditions
๐ก Advanced Strategies
Sentiment Cycle Trading
Identify sentiment extremes
Wait for confirmation reversals
Enter with trend confirmation
Exit at opposite sentiment extreme
Use confidence scores and fear & greed scores to scale:
Fear & greed scores < 30 = buy area
Fear & greed score > 60 = sell area
Trend Momentum
Exit: At extreme greed with divergence
Enter: At extreme fear with divergence
๐ Market State Classification
Five Primary States:
EXTREME FEAR (BB% <0, RSI <34, Score <34)
FEAR (Score 34-47, bearish momentum)
NEUTRAL (Score 47-70, consolidation)
GREED (Score 70-90, bullish momentum)
EXTREME GREED (Score >90, BB% >100)
State Transitions:
Fear โ Neutral: Early accumulation
Neutral โ Greed: Trend development
Greed โ Extreme Greed: Distribution
Extreme โ Reversal: Trend change
๐ Information Panel Guide
Real-Time Metrics:
FEAR & GREED: Current sentiment score
Market State: Classification and bias
Trend Bias: Bullish/Bearish/Neutral
Confidence: Setup reliability percentage
Momentum: Current directional strength
Volatility: Market condition assessment
Signal Quality: Trade recommendation
Reversal Imminent: Early warning alerts
๐ Unique Advantages
Psychological Edge:
Quantifies market emotion through multiple indicators
Identifies bubbles before they pop
Provides statistical confidence for each setup
Combines technical extremes with sentiment analysis
Offers clear visual cues for decision making
Professional Features:
Multi-timeframe sentiment analysis
Real-time confidence scoring
Comprehensive alert system
Institutional activity detection
Clear risk/reward visualization
๐ Educational Value
This indicator teaches:
Market psychology cycles
Statistical extreme identification
Multi-indicator confirmation
Risk quantification methods
Professional trade management
Perfect for traders seeking to understand and profit from market sentiment cycles.
Disclaimer: For educational purposes. Trading involves risk. Past performance doesn't guarantee future results.
Candle Closing Range %Measuring strength of the daily closing candle after a gap up or strong open.
This indicator calculates where price closed within the dayโs range and expresses it as a percentage. It is designed to give immediate context on whether buyers or sellers controlled the session โ and is especially useful when analyzing gap days or trend continuation setups on intraday charts.
The indicator always references the most recent closed daily candle.
Formula:
Closing Range = (Close โ Low) / (High โ Low) ร 100
Range interpretation:
โข Closing range > 60% โ Buyers dominated
โข Closing range 40โ60% โ Neutral (directional bias unclear)
โข Closing range < 40% โ Sellers dominated
Style options:
โข Background color
โข Text Size
โข Text Color
FlowMaster 4H - Avanced Volume & Pip AnalyzerโVisualize market flow like an institutional trader โ track buy/sell volume, pip per tick, and candle efficiency in one table.โ
โVisualize market flow like an institutional trader โ track buy/sell volume, pip per tick, and candle efficiency in one table.โ
Short Description (Marketplace-Friendly):
Aggregated 4H candle analysis with buy/sell volume breakdown.
Pip/Tick calculation with weighted averages for smarter entry/exit signals.
Compare current candle volume to previous candle and 20-bar average.
All key metrics in a compact, easy-to-read table below the chart.
Ideal for Forex swing & position traders seeking institutional-style insights directly in TradingView.
Long Description / Full Product Info:
FlowMaster 4H is a professional-grade trading indicator designed to provide quantitative order flow analysis on Forex markets using 4-hour candles. By aggregating volume data, tick information, and pip movements, FlowMaster gives traders a unique perspective on market dynamics typically reserved for institutional participants.
Key Features:
Volume Relative Metrics: Compare the current candle volume to the previous candle and to the average of the last 20 candles.
Pip/Tick Analysis: Calculates pip per tick using a scaled price approach, giving insights into the efficiency of price moves.
Weighted Pip/Tick Averages: Tracks volume-weighted pip/tick over the last 20 candles for both buyers and sellers.
Percentage Metrics: Visualize the proportion of buy and sell volume relative to total ticks, helping identify absorption and impulse movements.
User-Friendly Table: All key indicators displayed in a compact, easy-to-read table below the chart.
Why use FlowMaster 4H:
Identify market absorption and impulse using reliable volume and pip metrics.
Optimize trade entry and exit decisions based on quantitative order flow data.
Works directly in TradingView, offering a professional order flow view without needing access to Level 2 order book data.
Pioneering approach in aggregating 4H candle data with detailed pip/tick insights.
Ideal For: Swing and position traders, Forex traders seeking institutional-style volume analysis, and anyone looking to improve order flow reasoning using TradingView.
P/E, EPS, Price & Price-to-Sales DisplayThis indicator displays key fundamental valuation metrics for the selected stock.
It shows:
Earnings Per Share (EPS)
Price-to-Earnings (P/E) ratio
Calculated theoretical price based on P/E ร EPS
Price-to-Sales (P/S) ratio
These values help traders quickly assess valuation without switching to separate financial panels.
๐ Instructions for Use
Add the indicator to your chart.
Click on the three dots (โฏ) next to the indicator name.
Select Move to โ New pane above.
Minimize the indicator pane to display only the numerical values.
Hide the plotted lines if you want a clean, numbers-only view.
This setup allows you to monitor fundamental metrics efficiently without cluttering the price chart.
Futures Risk Manager (Futures)Risk management table for consistency trading.
Auto adjustable for MINI/MICRO based on your account.
can change RR shows SL and TP and amount to enter.
Please take note that you need to update every trade the stop tick and RR ratio.
Good luck in your trading journey.
CVD Complete Volume Analysis ProCVD Complete Volume Analysis Pro | Order Flow & Absorption
Introduction:
In the world of modern trading, Price is the advertisement, but Volume is the fuel. However, standard volume indicators on TradingView are often insufficient. They tell you how much was traded, but they donโt tell you how it was traded.
Was that large volume spike aggressive buying driving the trend? or was it a "buying frenzy" hitting a wall of passive limit orders (absorption)?
The CVD Complete Volume Analysis Pro (v5) is an advanced institutional-grade Order Flow engine. By utilizing 1-second intrabar data, this indicator reconstructs the "Tick Rule" to separate Aggressive (Market) orders from Passive (Limit) orders. It calculates Cumulative Volume Delta (CVD), detects Absorption/Distribution anomalies, and utilizes an embedded Logistic Regression model to predict daily directional bias.
This is not just an indicator; it is a complete Order Flow Dashboard designed to aid and support complex footprint charts for the everyday trader.
๐๏ธ How It Works: The "Micro-Structure" Engine
Most volume indicators on TradingView look at the close of a 1-minute or 5-minute bar to guess the volume direction. This script goes deeper.
1. The 1-Second Granularity
Using TradingView's request.security_lower_tf capability, this script pulls 1-second resolution data regardless of the chart timeframe you are on.
It analyzes the price movement every second.
It applies the "Tick Rule": If price moves up, volume is classified as Buy. If price moves down, volume is classified as Sell.
This allows for a highly accurate reconstruction of Buying vs. Selling pressure that standard indicators miss.
2. The "Cluster" Concept
The script aggregates these 1-second data points into Clusters.
Default: 60 seconds (1 minute) per cluster.
This creates a normalized "Heartbeat" of the market, allowing us to compare the efficiency of volume over fixed time windows, removing the noise of time-based chart distortions.
3. The "Passive" Detection Logic (The Core Feature)
This is the most powerful aspect of the tool. It calculates the relationship between Effort (CVD) and Result (Price Move).
The Baseline: The script calculates a rolling statistical baseline (Standard Deviation) of how much price should move for a given amount of Delta.
Absorption (Hidden Buying): If we see massive Aggressive Selling (Negative CVD) but price refuses to drop (or drops significantly less than the statistical model predicts), the script identifies this as Passive Buying.
Distribution (Hidden Selling): If we see massive Aggressive Buying (Positive CVD) but price refuses to rise, the script identifies this as Passive Selling.
๐ The Dashboard Breakdown
The on-screen dashboard is your command center. It updates in real-time to provide a snapshot of the market's internal mechanics.
Section 1: Flow Analysis
This section analyzes the current session's behavior.
Flow Type: Categorizes the market state using algorithmic logic.
Aggressive Buying/Selling: The market is trending, and aggressive participants are winning.
Strong Accumulation/Distribution: A reversal signal. Aggressive participants are trapped, and passive whales are absorbing order flow.
Flow vs. Price: Detects divergences instantly.
Bullish Divergence: Net Flow is Positive, but Price is down (indicates manipulation or temporary suppression).
Bearish Divergence: Net Flow is Negative, but Price is up (indicates a "trap" move).
Section 2: Volume Breakdown
A detailed ledger of the day's activity.
Aggressive Buy/Sell: Market orders executing at the ask/bid. This represents "Impatience."
Passive Buy/Sell: The estimated volume of Limit Orders absorbing the aggressive flow. This represents "Intent."
Net Flow: The mathematical sum of all buy pressure minus sell pressure.
Section 3: Net Positioning (Multi-Day)
Markets don't happen in a vacuum. This section looks back (default 5 days) to see the accumulated inventory.
Bias: Are we in a multi-day accumulation or distribution phase?
Activity Type:
High Hidden Activity: Indicates a fighting market with heavy limit orders (choppy/reversal prone).
Mostly Aggressive: Indicates a trending market with low resistance.
Section 4: Predictive Model (Machine Learning)
The script features an embedded Logistic Regression Model.
It trains on the last N days of Flow Data (CVD, Net Aggressive, Net Passive, Passive Ratios).
It outputs a Probability Score (0% to 100%) regarding the likelihood of an UP close for the current session.
Note: This is a probability model based on order flow history, not a guarantee. Use it as a bias confirmation tool.
๐ง Educational: How to Trade With This
Strategy 1: The "Absorption" Reversal
Context: Price hits a major resistance level.
Look at the Dashboard: You want to see "Flow Type" switch to "Strong Distribution".
The Logic: Price is rising, and aggressive buyers are hitting the ask. However, the script detects that for every buy order, a passive seller is absorbing it. Price stops moving up despite high volume.
The Trigger: When Price creates a lower low on the chart while the dashboard shows Distribution, this is a high-probability short entry.
Strategy 2: The Flow Divergence
Context: Price is trending down.
Look at the Dashboard: Price is making new lows, but the "Net Flow" is turning Green (Positive), or the "Cum CVD" is sloping upwards.
The Logic: This is "Effort vs. Result." Sellers are exhausted. They are pushing price down, but the net flow is shifting to buyers.
The Trigger: Enter Long on the first structure break.
Strategy 3: Trend Continuation
Context: Market is opening or breaking a range.
Look at the Dashboard: You want "Full Alignment."
Signals: "Flow Type" says Aggressive Buying, Net Flow is Positive, and the Predictive Model shows >60% Bullish Probability.
The Logic: There is no passive resistance. Aggressive buyers are pushing price up freely.
The Trigger: Buy pullbacks.
โ๏ธ Settings & Configuration
Cluster Size: The number of 1-second bars to group together.
Use 60 (1 min) for Scalping.
Use 300 (5 min) for Day Trading.
Average Length: The baseline for statistical calculations. Higher numbers = smoother baselines but slower adaptation.
Detection Settings:
Passive Multiplier: Adjusts the sensitivity of the absorption estimation. 1.0 is standard. Increase to 1.5 if you only want to see extreme anomalies.
Daily Tracking:
History Days: How many days of data to display in the table. Note: Due to TradingView data limits, keeping this between 3-5 days ensures the most stability.
โ ๏ธ Important Technical Limitations
Please read this section carefully to understand the constraints of the Pine Script environment:
Data Depth (The 100k Limit): TradingView limits request.security_lower_tf to approximately 100,000 intrabars.
This means the script can typically only "see" the last 3 to 5 days of true 1-second data.
If you set History Days or Training Days too high (e.g., 20 days), the script may return 0 values for older dates because the high-resolution data simply doesn't exist on the server.
Approximation of Ticks: While 1-second data is extremely precise, it is still an aggregation. In extremely high-volatility events (like CPI releases), multiple ticks happen inside one second. The script attributes the volume of that second based on the close relative to the open/prev close. It is the best approximation possible on TradingView, but not a replacement for Level 3 Tick Data feeds.
Calculation Time: This is a heavy script. On lower-end devices or when loading on many charts simultaneously, you may experience a "Calculation took too long" warning. If this happens, reduce the History Days to 3.
๐ก๏ธ Disclaimer
No Repainting: This indicator uses strict historical referencing and does not repaint closed clusters.
Not Financial Advice: This tool provides data visualization. Order flow is a subjective art. Always manage your risk.
Author's Note:
I built this tool because I wanted the power of Order Flow footprint charts without the visual clutter. By using statistical baselines to detect passive liquidity, we can finally see the "invisible hand" of the market directly on our TradingView charts. I hope this adds value to your trading.
๐ If you find this script useful, please leave a Boost and a Comment below!
Spearman Correlation๐ Spearman Correlation โ Ranked Relationship Tracker
Overview:
This indicator calculates and plots the Spearman Rank Correlation Coefficient between the current chartโs asset and a custom comparison ticker (the example shown is BTC vs the OTHERS market cap for crypto). Unlike Pearson correlation, which measures linear relationships, Spearman correlation captures monotonic (ranked) relationshipsโmaking it better suited for analysing assets that move in sync but not necessarily in a linear fashion.
๐ง What It Does:
Computes ranked correlation between two assets over a user-defined lookback period
Smooths the correlation curve for better readability
Visually shades the background by correlation strength and direction:
๐ฉ Strong Positive (+0.5 to +1)
๐จ Weak Positive (+0.1 to +0.5)
โฌ No Correlation (โ0.1 to +0.1)
๐ง Weak Negative (โ0.5 to โ0.1)
๐ฅ Strong Negative (โ1 to โ0.5)
โ๏ธ User Inputs:
Lookback Period: Number of bars used to calculate correlation
Comparison Ticker: Choose any asset to compare against
Shading Toggles: Customize which correlation zones are highlighted
๐ Use Cases:
Identify evolving relationships between assets (e.g., BTC vs DXY, ETH vs SPX)
Spot when assets become inversely correlated or lose correlation entirely
Track regime shifts where traditional relationships break down or re-align
Use alongside trend or momentum strategies to add a cross-asset confirmation layer
๐ Interpreting the Correlation:
+1 โ Perfect positive (ranks match exactly)
+0.5 to +1 โ Strong positive relationship
+0.1 to +0.5 โ Weak but positive relationship
โ0.1 to +0.1 โ Essentially uncorrelated
โ0.5 to โ0.1 โ Weak negative correlation
โ1 to โ0.5 โ Strong inverse relationship
โ1 โ Perfect negative (rankings are completely opposite)
๐งช Technical Notes:
Calculation uses ranked returns to better reflect monotonic relationships
Smoothed with a simple moving average (SMA) for stability
Arrays are managed internally to maintain performance and adaptability
This script is ideal for traders seeking deeper insight into cross-asset dynamics, portfolio hedging, or timing divergence-based strategies.
Directional Comparisons - Two Tickers๐ Directional Comparisons โ Two Tickers
Overview:
This tool allows you to visually and statistically compare the directional behaviour of any two assets on any chart timeframe. It identifies and color-codes each bar based on how both the current asset and your chosen comparison asset performed in that period (e.g., both up, both down, diverging). A statistical summary table dynamically updates in the corner of your chart, tracking the probability and streak performance of each condition.
๐ How It Works:
Each candle is analysed and color-coded based on the relationship between the current chart's asset and a comparison asset of your choice:
โ
Green โ Both tickers closed higher (bullish alignment)
๐ป Red โ Both tickers closed lower (bearish alignment)
๐ท Blue โ Current ticker up, comparison ticker down (positive divergence)
๐ง Orange โ Current ticker down, comparison ticker up (negative divergence)
You can toggle each colour condition on/off independently.
๐ Statistical Table (Top Right):
For the candles in the visible chart range, the indicator displays:
The frequency (probability) of each condition
Longest, shortest, and average streaks for each condition
Average % change for both the current and comparison asset under each scenario
All stats auto-update as you zoom or scroll through the chart.
๐ง User Inputs:
Comparison Ticker: Choose any ticker symbol to compare against the current chart
Toggle Conditions: Enable or disable individual directional conditions (color-coded)
โ
Use Cases:
Spot high-probability alignment zones between two assets (e.g., BTC vs ETH, SPX vs VIX)
Identify divergence opportunities for trading signals
Analyse historical relationships and co-movements between assets
Perform correlation streak studies directly on the chart
๐ Notes:
The script works across all timeframes (1min to monthly).
Stats only consider visible bars on your chart for responsiveness.
Ideal for pair traders, macro analysts, or anyone interested in cross-asset relationships.
Percentage Price LevelsPercentage Price Levels displays dynamic price levels based on percentage gains and losses from the current price. Instantly visualize where price would be at ยฑ2%, ยฑ4%, ยฑ6%, ยฑ8%, ยฑ10%(and beyond) โ perfect for setting profit targets, stop-losses, and understanding potential price movement.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ฏ WHAT IT DOES
โข Draws horizontal lines at percentage-based price levels above and below current price
โข Green lines = potential profit targets (positive %)
โข Red lines = potential stop-loss zones (negative %)
โข Yellow line = current price reference
โข Summary table shows all levels in a clean, easy-to-read format
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ๏ธ FEATURES
โข Up to 8 positive and 8 negative percentage levels
โข Fully customizable percentages (set your own values)
โข Toggle each level on/off individually
โข Adjustable font size (Tiny to Huge)
โข Multiple line styles (Solid, Dashed, Dotted)
โข Movable summary table (any corner)
โข Base price options: Close, Open, High, Low, HL2, OHLC4
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ HOW TO USE
1. Add the indicator to your chart
2. Default shows ยฑ2%, ยฑ4%, ยฑ6%, ยฑ8%, ยฑ10% levels
3. Open Settings to customize:
โข Enable/disable specific levels
โข Change percentage values
โข Adjust colors and font size
โข Move table position
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ก USE CASES
โข Day Trading โ Quick intraday profit targets
โข Swing Trading โ Visualize multi-day price zones
โข Risk Management โ Set stop-losses based on % risk tolerance
โข Options Trading โ Find strike prices relative to spot
โข Position Sizing โ See exact dollar values at each level
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ง DEFAULT SETTINGS
Positive: +2%, +4%, +6%, +8%, +10% (3 extra slots available)
Negative: -2%, -4%, -6%, -8%, -10% (3 extra slots available)
Font Size: Normal
Line Style: Dashed
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
If you find this useful, please leave a like! Feedback and suggestions welcome in the comments.
SA Trump Volatility Pattern Wick + Volume Shock ReversalDisclaimer (read first)
Educational use only โ not financial advice. This script does not provide entries/exits, targets, position sizing, or profit guarantees. Trading (especially options/futures) involves substantial risk and can result in loss of principal (and more for leveraged products). Use at your own discretion.
Best use cases on the 2-Hour timeframe
On 2H, this script becomes a high-signal-quality โshock reversalโ detector instead of a noisy candle toy. Youโre essentially filtering for:
Large wick rejection
Small real body
Statistically unusual volume (Z-score > threshold)
Context alignment (trend filter + prior bar direction + optional RSI)
What 2H is best for
1) Detecting โevent shockโ reversals
2H bars often capture:
Macro headlines
Fed commentary
earnings reactions (for equities)
sudden volatility expansions
When the script fires on 2H, it often means:
โAggressive push happened, liquidity got rejected, and participation was unusually high.โ
Thatโs a structural clue, not a trade instruction.
2) Filtering false breakouts / breakdowns
The wick requirement is basically โfailed continuation.โ
On 2H, this is powerful around:
prior day highs/lows
weekly pivots
obvious consolidation edges
key moving averages (fast SMA / slow SMA gate)
Bull pattern = flush + reclaim behavior.
Bear pattern = pop + rejection behavior.
3) Options traders: timing โpremium exposure windowsโ
On 2H, this is great for options traders who want to avoid buying premium into a fake move.
BullTrump on 2H can be used as a โdonโt chase puts / be cautious shortโ context shift.
BearTrump on 2H can be used as a โdonโt chase calls / be cautious longโ context shift.
Itโs a โregime hintโ for the next few sessions, not a one-bar command.
4) Futures traders: rotation vs continuation framework
A 2H โTrump Candleโ often marks:
the end of a liquidation leg
a stop-run / squeeze peak
a pivot moment where the market shifts from impulse to balance
Use it to decide whether youโre in:
continuation mode (trend carries)
or rotation mode (mean-reversion / two-way)
How to use it (2H workflow)
Step A โ Keep it strict at first
Recommended defaults for 2H:
wickFracThreshold: 0.40โ0.55
bodyMaxFrac: 0.35โ0.45
volZThresh: 1.0โ1.5
useRSIFilter: ON
RSI bull min / bear max: 45 / 55 (good baseline)
Step B โ Treat triggers as โcontext eventsโ
When it prints, ask 3 questions:
Where did it happen? (key level or random spot)
Was it aligned with trend gate? (SMA fast/slow)
Did volume Z-score spike? (true shock vs normal wick)
Higher quality triggers happen when:
the wick pierces a known level (prior swing / range edge)
and the close re-enters the range
and volume Z-score is meaningfully positive
Step C โ Confirm with the next 1โ2 candles (optional)
On 2H, itโs reasonable to wait for:
a follow-through close
or a hold above/below fast SMA
or a second โacceptanceโ candle
You can do this manually without changing code.
Other recommended timeframes (best to worst)
โ
4H (even cleaner, fewer signals)
Use for:
swing context
multi-day pivots
big reversal points
โ
1H (more signals, still structured)
Use for:
intraday + overnight context
day-trade bias shifts
โ
30m (for active traders)
Use for:
tighter responsiveness
more setups
But requires more discretion; noise increases.
โ ๏ธ 15m and below (only if you increase strictness)
If you want to run it on 5m/15m:
raise volZThresh (ex: 1.5โ2.0)
raise wickFracThreshold (ex: 0.50โ0.65)
lower bodyMaxFrac (ex: 0.25โ0.35)
Otherwise it will trigger too often.
Best markets for this script
Works best on:
Index futures: /NQ, /ES (big volume makes Z-score meaningful)
Liquid ETFs: SPY, QQQ
High-volume large caps (AAPL, MSFT, NVDA etc.)
Less reliable on:
thin small caps (volume Z-score gets weird)
low-volume premarket candles
illiquid options underlyings
Signal Inside the Script โ
SA ZoneEngine Bias Filtered is a market-structure bias and confirmation tool designed for futures To request access: ๐ Purchase here: trianchor.gumroad.com
Best GBT for this indicator
chatgpt.com
chatgpt.com
chatgpt.com
Range Breakout Statistics [Honestcowboy]โฏ Overview
The Range Breakout Statistics uses a very simple system to detect ranges/consolidating markets. The principle is simple, it looks for areas where the slope of a moving average is flat compared to past values. If the moving average is flat for X amount of bars that's a range and it will draw a box.
The statistics part of the script is a bit more complicated. The aim of this script is to expand analysis of trading signals in a different way than a regular backtest. It also highlights the polyline tool, one of my favorite drawing tools on the tradingview platform.
โฏ Statistics Methods
The script has 2 different modes of analyzing a trading signals strength/robustness. It will do that for 2 signals native to the script.
Upper breakout: first price breakout at top of box, before max bars (100 bars by default)
Lower breakout: first price breakout at bottom of box, before max bars
The analysis methods themselves are straightforward and it should be possible for tradingview community to expand this type of analysis to other trading signals. This script is a demo for this analysis, yet some might still find the native signals helpful in their trading, that's why the script includes alerts for the 2 native signals. I've also added a setting to disable any data gathering, which makes script run faster if you want to automate it.
For both of the analysis methods it uses the same data, just with different calculations and drawing methods. The data set is all past price action reactions to the signals saved in a matrix. Below a chart for explaining this visually.
โฏ Method 1: Averages Projection
The idea behind this is that just showing all price action that happened after signal does not give actionable insights. It's more a spaghetti jumble mess of price action lines. So instead the script averages the data out using 3 different approaches, all selectable in the settings menu.
Geometric Average: useful as it accurately reflects compound returns over time, smoothing out the impact of large gains or losses. Accounts for volatility drift.
Arithmetic Average: a standard average calculation, can be misleading in trading due to volatility drift. It is the most basic form of averaging so I included it.
Median: useful as any big volatility huge moves after a signal does not really impact the mean as it's just the middle value of all values.
These averages are the 2 lines you will find in the middle of the projection. Having a clear difference between a lower break average and upper break average price reaction can signal significance of the trading signal instead of pure chaos.
Outside of this I also included calculations for the maximum and minimum values in the dataset. This is useful for seeing price reactions range to the signal, showing extreme losses or wins are possible. For this range I also included 2 matrices of highs and lows data. This makes it possible to draw a band between the range based on closing price and the one using high/low data.
Below is a visualisation of how the averages data is shown on chart.
โฏ Method 2: Equity Simulation
This method will feel closer to home for traders as it more closely resembles a backtest. It does not include any commissions however and also is just a visualisation of price reaction to a signal. This method will simulate what would happen if you would buy at the breakout point and hold the trade for X amount of bars. With 0 being sell at same bar close. To test robustness I've given the option to visualise Equity simulation not just for 1 simulation but a bunch of simulations.
On default settings it will draw the simulations for 0 bars holding all the way to 10 bars holding. The idea behind it is to check how stable the effect is, to have further confirmation of the significance of the signal. If price simulation line moves up on average for 0 bars all the way to 10 bars holding time that means the signal is steady.
Below is a visualisation of the Equity Simulation.
โฏ Signal filtering
For the boxes themselves where breakouts come from I've included a simple filter based on the size of the box in ATR or %. This will filter out all the boxes that are larger top to bottom than the ATR or % value you setup.
โฏ Coloring of Script
The script includes 5 color themes. There are no color settings or other visual settings in the script, the script themes are simple and always have colors that work well together. Equity simulation uses a gradient based on lightness to color the different lines so it's easier to differentiate them while still upper breaks having a different color than lower breaks.
This script is not created to be used in conjunction with other scripts, it will force you into a background color that matches the theme. It's purpose is a research tool for systematic trading, to analyse signals in more depth.
Metaverse color theme:
โฏ Conclusion
I hope this script will help traders get a deeper understanding of how different assets react to their assets. It should be possible to convert this script into other signals if you know how to code on the platform. It is my intention to make more publications that include this type of analysis. It is especially useful when dealing with signals that do not happen often enough, so a regular backtest is not enough to test their significance.






















