tafirstlibGeneral Purpose: Starts by stating it's a collection of utility functions for technical analysis.
Core Functionality Areas: Mentions key categories like:
Extrema detection (isMin, isMax, etc.)
Condition checking over time (isMachedInRange, isContinuous, etc.)
Rate of change analysis (isSlowDown)
Moving average calculation (getMA)
Advanced Features: Highlights the more complex functions:
Visualization helpers (getColorNew)
Moving Regression (mr) for smoothing/trend
Cycle analysis (bpDom)
Overall Goal: Concludes by stating the library's aim – simplifying development and enabling complex analysis.
Library "tafirstlib"
TODO: add library description here
isSlowDown(data)
isSlowDown
Parameters:
data (float) : array of numbers
Returns: boolean
isMin(data, maeLength)
isMin
Parameters:
data (float) : array of numbers
maeLength (int) : number
Returns: boolean
isMax(data, maeLength)
isMax
Parameters:
data (float) : array of numbers
maeLength (int) : number
Returns: boolean
isMinStopped(data, maeLength)
isMinStopped
Parameters:
data (float) : array of numbers
maeLength (int) : number
Returns: boolean
isMaxStopped(data, maeLength)
isMaxStopped
Parameters:
data (float) : array of numbers
maeLength (int) : number
Returns: boolean
isLongMinStopped(data, maeLength, distance)
isLongMinStopped
Parameters:
data (float) : array of numbers
maeLength (int) : number
distance (int) : number
Returns: boolean
isLongMaxStopped(data, maeLength, distance)
isLongMaxStopped
Parameters:
data (float) : array of numbers
maeLength (int) : number
distance (int) : number
Returns: boolean
isMachedInRangeSkipCurrent(data, findRange, findValue)
isMachedInRangeSkipCurrent
Parameters:
data (bool) : array of numbers
findRange (int) : number
findValue (bool) : number
Returns: boolean
isMachedInRange(data, findRange, findValue)
isMachedInRange
Parameters:
data (bool) : array of numbers
findRange (int) : number
findValue (bool) : number
Returns: boolean
isMachedColorInRange(data, findRange, findValue)
isMachedColorInRange isMachedColorInRange(series color data, int findRange, color findValue)
Parameters:
data (color) : series of color
findRange (int) : int
findValue (color) : color
Returns: boolean
countMachedInRange(data, findRange, findValue)
countMachedInRange
Parameters:
data (bool) : array of numbers
findRange (int) : number
findValue (bool) : number
Returns: number
getColor(data)
getColor
Parameters:
data (float) : array of numbers
Returns: color
getColorNew(data)
getColorNew
Parameters:
data (float) : array of numbers
Returns: color
isColorBetter(color_data)
isColorBetter
Parameters:
color_data (color) : array of colors
Returns: boolean
isColorWorst(color_data)
isColorWorst
Parameters:
color_data (color) : array of colors
Returns: boolean
isColorBetter2(color_data)
isColorBetter2
Parameters:
color_data (color) : array of colors
Returns: boolean
isColorWorst2(color_data)
isColorWorst2
Parameters:
color_data (color) : array of colors
Returns: boolean
isDecreased2Bar(data)
isDecreased2Bar
Parameters:
data (float) : array of numbers
Returns: boolean
isContinuousAdvance(targetSeries, range2Find, howManyException)
isContinuousAdvance
Parameters:
targetSeries (bool) : array of booleans
range2Find (int) : number
howManyException (int) : number
Returns: boolean
isContinuous(targetSeries, range2Find, truefalse)
isContinuous
Parameters:
targetSeries (bool) : array of booleans
range2Find (int) : number
truefalse (bool) : boolean
Returns: boolean
isContinuousNotNow(targetSeries, range2Find, truefalse)
isContinuousNotNow
Parameters:
targetSeries (bool) : array of booleans
range2Find (int) : number
truefalse (bool) : boolean
Returns: boolean
isContinuousTwoFactors(targetSeries, range2Find, truefalse)
isContinuousTwoFactors
Parameters:
targetSeries (bool) : array of booleans
range2Find (int) : number
truefalse (bool) : boolean
Returns: boolean
findEventInRange(startDataBarIndex, neededDataBarIndex, currentBarIndex)
findEventInRange
Parameters:
startDataBarIndex (int) : number
neededDataBarIndex (int) : number
currentBarIndex (int) : number
Returns: boolean
findMin(firstdata, secondata, thirddata, forthdata)
findMin
Parameters:
firstdata (float) : number
secondata (float) : number
thirddata (float) : number
forthdata (float) : number
Returns: number
findMax(firstdata, secondata, thirddata, forthdata)
findMax
Parameters:
firstdata (float) : number
secondata (float) : number
thirddata (float) : number
forthdata (float) : number
Returns: number
getMA(src, length, mav)
getMA
Parameters:
src (float) : number
length (simple int) : number
mav (string) : string
Returns: number
mr(mrb_src, mrb_window, mrb_degree)
Parameters:
mrb_src (float)
mrb_window (int)
mrb_degree (int)
bpDom(maeLength, bpw, mult)
Parameters:
maeLength (int)
bpw (float)
mult (float)
Statistics
Global M2 sandboxThis indicator aggregates global sources of liquidity to use as a proxy for the global money supply and allows an offsetting number of days to be implemented to use as a leading indicator.
// EUROZONE Data
EUM2D = request.security("ECONOMICS:EUM2*FX:EURUSD", "D", close, lookahead=barmerge.lookahead_on)
// North America Data
USM2D = request.security("ECONOMICS:USM2", "D", close, lookahead=barmerge.lookahead_on)
CAM2D = request.security("ECONOMICS:CAM2*FX_IDC:CADUSD", "D", close, lookahead=barmerge.lookahead_on)
// Non-EU Europe Data
CHM2D = request.security("ECONOMICS:CHM2*FX_IDC:CHFUSD", "D", close, lookahead=barmerge.lookahead_on)
GBM2D = request.security("ECONOMICS:GBM2*FX:GBPUSD", "D", close, lookahead=barmerge.lookahead_on)
FIPOP = request.security("ECONOMICS:FIM2/FX_IDC:USDFIM", "D", close, lookahead=barmerge.lookahead_on)
RUM2D = request.security("ECONOMICS:RUM2*FX_IDC:RUBUSD", "D", close, lookahead=barmerge.lookahead_on)
// Pacific Data
NZM2D = request.security("ECONOMICS:NZM2*FX_IDC:NZDUSD", "D", close, lookahead=barmerge.lookahead_on)
// Asia Data
CNM2D = request.security("ECONOMICS:CNM2*FX_IDC:CNYUSD", "D", close, lookahead=barmerge.lookahead_on)
TWM2D = request.security("ECONOMICS:TWM2*FX_IDC:TWDUSD", "D", close, lookahead=barmerge.lookahead_on)
HKM2D = request.security("ECONOMICS:HKM2*FX_IDC:HKDUSD", "D", close, lookahead=barmerge.lookahead_on)
INM2D = request.security("ECONOMICS:INM2*FX_IDC:INRUSD", "D", close, lookahead=barmerge.lookahead_on)
JPM2D = request.security("ECONOMICS:JPM2*FX_IDC:JPYUSD", "D", close, lookahead=barmerge.lookahead_on)
PHM2D = request.security("ECONOMICS:PHM2*FX_IDC:PHPUSD", "D", close, lookahead=barmerge.lookahead_on)
SGM2D = request.security("ECONOMICS:SGM2*FX_IDC:SGDUSD", "D", close, lookahead=barmerge.lookahead_on)
// Latin America Data
BRM2D = request.security("ECONOMICS:BRM2*FX_IDC:BRLUSD", "D", close, lookahead=barmerge.lookahead_on)
COM2D = request.security("ECONOMICS:COM2*FX_IDC:COPUSD", "D", close, lookahead=barmerge.lookahead_on)
MXM2D = request.security("ECONOMICS:MXM2*FX_IDC:MXNUSD", "D", close, lookahead=barmerge.lookahead_on)
// Middle East Data
AEM2D = request.security("ECONOMICS:AEM2*FX_IDC:AEDUSD", "D", close, lookahead=barmerge.lookahead_on)
TRM2D = request.security("ECONOMICS:TRM2*FX_IDC:TRYUSD", "D", close, lookahead=barmerge.lookahead_on)
// Africa Data
ZAM2D = request.security("ECONOMICS:ZAM2*FX_IDC:ZARUSD", "D", close, lookahead=barmerge.lookahead_on)
// Calculate Global Money Supply M2
total = (EUM2D + USM2D + CAM2D + CHM2D + GBM2D + FIPOP + RUM2D + NZM2D + CNM2D + TWM2D + HKM2D + INM2D + JPM2D + PHM2D + SGM2D + BRM2D + COM2D + MXM2D + AEM2D + TRM2D + ZAM2D) / 1000000000000
POF🔶 Smoothed POF Profile – Multi-Session Market Structure Tool 🔶
The Smoothed POF Profile is a precision-engineered market structure indicator that identifies the Point of Focus (POF) — the price level where market participation was most active — across Daily, Weekly, and Monthly sessions and plots them with smoothed over form to avoid whipsaws.
🔍 Powered by a custom-built algorithm for session profiling, this tool highlights:
🔶 POF: The most frequently traded or accepted price during a session
🟩 VAH / VAL: Dynamic Value Area High and Low markers (no cluttered lines — clean label-only display)
📐 The core logic utilizes a proprietary data refinement method that adapts to session volatility and filters out insignificant noise to avoid false shifts in structure. This results in smoothed POF readings that remain stable and meaningful — even during high-volatility periods.
🧠 Designed for traders who want to track evolving value, this tool provides a high-level view of where the market is finding agreement — and where price is likely to revert or expand from.
✅ Key Features:
Fully automated: Tracks Daily, Weekly, and Monthly sessions in real-time
Session-aware calculation of key structure levels
Elegant, non-obtrusive chart visuals (no histogram or volume bars)
Fully configurable Value Area % and display toggles
Multi-session color-coding (🟧 Daily, 🔵 Weekly, 🟣 Monthly)
🧭 Trading Applications:
POF Bias: Use POF as an evolving balance point. Price above = bullish lean, price below = bearish tilt
VAH/VAL Zones: Anticipate rejection or consolidation when price re-enters the value area. Use breakouts for continuation bias
Session Stack Confluence: When Daily, Weekly, and Monthly POFs cluster, it often signals strong interest zones and potential turning points
🧩 Use alongside your preferred price action, volume, or trend confirmation tools. This is not a signal-based system — it’s a contextual framework to help you align with market intent and structure.
⚠️ Disclaimer: This tool is intended for educational and informational purposes only. It is not financial advice. Use with proper risk management and your own due diligence.
Levels Map Overlay🗺️ Levels Map Overlay – is a comprehensive visual tool built for traders who want more than just signals—they want narrative, context, and confluence. This script brings together institutional-level concepts—daily levels, FVGs, order blocks, Fibonacci retracements, CHoCH (Change of Character), and a real-time breach table—to help you identify high-probability trade zones, liquidity traps, and structure shifts across all timeframes.
🔍 Core Components & Features
1. 🏦 Daily Key Levels (Previous High/Low/Open)
Previous High/Low: Act as liquidity pools. Price is often magnetized toward these levels before large moves or reversals.
Previous Open: A pivotal level that often dictates session bias.
Manipulation Zones: Automatically calculated buffer zones above/below the high/low. Price may dip into these areas to trigger stop hunts before reversing.
Distribution Zones: Projected outer zones based on range expansion. Can act as extended take profit targets or reversal zones in strong trends.
🧠 How to Use: Mark these levels as critical S/R areas. If price sweeps a Previous Low into a Manipulation Zone and forms a bullish CHoCH or reacts from a Bullish OB – that’s a high-confluence long setup.
2. 📐 Fibonacci Retracement Levels
Plots classic retracements (0.382 / 0.5 / 0.618) based on the previous day’s high and low.
Can be toggled on/off depending on your strategy.
🧠 How to Use: These levels give structure to pullbacks. Look for price reacting at the 0.618 Fib inside a Fair Value Gap or an Order Block for high-confluence entries.
3. 🧱 Order Blocks (OBs)
Identifies potential institutional demand and supply zones based on key candle formations and price behavior.
Customizable sensitivity helps control signal density.
🧠 How to Use: Wait for price to enter an OB and watch lower timeframes for confirmation (engulfing candles, CHoCH). OBs that align with daily levels or Fibonacci levels carry more weight.
4. ⚖️ Fair Value Gaps (FVGs)
Highlights price inefficiencies—gaps formed during impulsive moves.
Price often returns to these zones to rebalance.
Includes mitigation logic: hides FVGs that have been fully "filled".
🧠 How to Use: Treat these as magnets for price. Watch for reversal confirmation once price enters an unmitigated FVG. FVGs that overlap with OBs or Fib levels are high-probability.
5. 🔄 CHoCH – Change of Character
Detects when market structure shifts (from bullish to bearish or vice versa).
Acts as an early warning that trend direction may be changing.
🧠 How to Use: A Bullish CHoCH forming at a Previous Daily Low inside a Bullish OB? That’s a powerful signal that buyers may be stepping in. Combine with lower timeframe confirmation for entry.
6. 📊 Breach Status Table – Intraday Bias Snapshot
Real-time dashboard showing:
Whether the Previous High/Low has been breached.
Price behavior around the Open (rejection or acceptance).
Whether Manipulation Zones have been tagged.
🧠 How to Use: Scan this table to get a pulse on the current session.
Example:
Price sweeps the Previous Low (liquidity grab)
Rejects the Manipulation Low
Reclaims the Previous Open
→ Potential bullish reversal scenario
📌 Practical Trade Examples
Example 1: High-Probability Long Setup
Price sweeps the Previous Low
Manipulation Zone tagged
Bullish OB present
CHoCH forms and price closes back above Open → Enter long on confirmation with stop below OB, target next FVG or Previous High.
Example 2: Trend Continuation Short
Price breaks Previous Low and holds below Open
Bearish FVG forms after CHoCH
Price pulls back to 0.618 Fib retracement inside Bearish FVG → Enter short on bearish engulfing candle confirmation.
🛠️ Customization Options
Timeframe Settings: Switch between Daily and Weekly levels depending on your trade horizon.
OB/FVG Sensitivity: Fine-tune signal density—great for scalpers or swing traders.
Zone Multipliers: Adjust Manipulation/Distribution zones based on the asset's volatility.
CHoCH Pivot Strength: Change the number of bars used to detect CHoCHs (for faster vs. stronger signals).
Display Limits: Avoid clutter by limiting how many OBs/FVGs show on the chart.
🧭 Final Notes – Don’t Trade Blindly
This is not a signal indicator—this is a decision-support tool. Use it to:
Spot high-probability confluence zones
Understand what the market is trying to do
Time entries based on price action confirmation
Combine it with your own strategy, risk management rules, and backtesting.
📌 Pro Tip: The most powerful setups come from confluence.
A Fib retracement inside an unmitigated FVG that overlaps an OB and confirms with a CHoCH?
→ That’s a map worth following.
Happy Trading! 🚀
30s Opening rangeThis is a indicator to show opening range for 30s.
What this indicator do:
You can choose any start time to get that opening range
You can keep this range in different time frame
FunctionSurvivalEstimationLibrary "FunctionSurvivalEstimation"
The Survival Estimation function, also known as Kaplan-Meier estimation or product-limit method, is a statistical technique used to estimate the survival probability of an individual over time. It's commonly used in medical research and epidemiology to analyze the survival rates of patients with different treatments, diseases, or risk factors.
What does it do?
The Survival Estimation function takes into account censored observations (i.e., individuals who are still alive at a certain point) and calculates the probability that an individual will survive beyond a specific time period. It's particularly useful when dealing with right-censoring, where some subjects are lost to follow-up or have not experienced the event of interest by the end of the study.
Interpretation
The Survival Estimation function provides a plot of the estimated survival probability over time, which can be used to:
1. Compare survival rates between different groups (e.g., treatment arms)
2. Identify patterns in the data that may indicate differences in mortality or disease progression
3. Make predictions about future outcomes based on historical data
4. In a trading context it may be used to ascertain the survival ratios of trading under specific conditions.
Reference:
www.global-developments.org
"Beyond GDP" ~ www.aeaweb.org
en.wikipedia.org
www.kdnuggets.com
survival_probability(alive_at_age, initial_alive)
Kaplan-Meier Survival Estimator.
Parameters:
alive_at_age (int) : The number of subjects still alive at a age.
initial_alive (int) : The Total number of initial subjects.
Returns: The probability that a subject lives longer than a certain age.
utility(c, l)
Captures the utility value from consumption and leisure.
Parameters:
c (float) : Consumption.
l (float) : Leisure.
Returns: Utility value from consumption and leisure.
welfare_utility(age, b, u, s)
Calculate the welfare utility value based age, basic needs and social interaction.
Parameters:
age (int) : Age of the subject.
b (float) : Value representing basic needs (food, shelter..).
u (float) : Value representing overall well-being and happiness.
s (float) : Value representing social interaction and connection with others.
Returns: Welfare utility value.
expected_lifetime_welfare(beta, consumption, leisure, alive_data, expectation)
Calculates the expected lifetime welfare of an individual based on their consumption, leisure, and survival probability over time.
Parameters:
beta (float) : Discount factor.
consumption (array) : List of consumption values at each step of the subjects life.
leisure (array) : List of leisure values at each step of the subjects life.
alive_data (array) : List of subjects alive at each age, the first element is the total or initial number of subjects.
expectation (float) : Optional, `defaut=1.0`. Expectation or weight given to this calculation.
Returns: Expected lifetime welfare value.
Dynamic HL VWAP+ | Current & Prev🔴 Dynamic HL VWAP+ | Current & Previous 🔴
A precision volume-weighted tool for traders who want more than just standard VWAP.
🧠 What It Does
The Dynamic HL VWAP+ is a powerful custom-built indicator that anchors Volume Weighted Average Price (VWAP) lines not from the session open, but from the highest and lowest points of dynamically detected price cycles.
Unlike traditional VWAPs, this tool recalculates its anchor points from:
🔺 The most recent swing high (Highest Price in Lookback Period)
Please note currently it's limited to the default value or lower, as any higher, and it will conflict with Pine's restriction on "memory allocation" system for this kind of effort. Will update if there is any change in that.
🔻 The most recent swing low (Lowest Price in Lookback Period)
Then it does the same for the previous cycle (before the current lookback window), allowing you to see how price is behaving relative to past and present price extremes.
⚙️ Key Features
✅ Dynamic Anchoring
Anchors VWAPs from the most recent High and Low over a user-defined lookback period (len).
✅ Multi-Cycle Context
Plots both Current and Previous high/low-anchored VWAPs for contextual analysis.
✅ VWAP from Highs and Lows Separately
You’ll see how price reacts around bullish (High VWAP) and bearish (Low VWAP) pressures—great for scalping, pullbacks, and reversion plays.
✅ Line Visibility Control
You decide which lines to show:
Current High VWAP
Current Low VWAP
Previous High VWAP
Previous Low VWAP
✅ Lightweight and Label-Free
Optimized for performance. No labels, no alerts, just clean and effective plotting.
📈 How to Use
1. Trend Confirmation
When price holds above the Low VWAP or breaks the High VWAP, it signals trend strength.
If price rejects at High VWAP or fails to hold Low VWAP, it's a potential reversal/retest zone.
2. Reversion-to-Mean Plays
Look for price moving far from the VWAP lines and then curling back.
Works great on volatile intraday moves or swing setups.
3. Compare Current vs. Previous Cycle
If current VWAPs are higher than the previous ones, it shows bullish progress.
Converging VWAPs from prior and current cycles often indicate a squeeze or decision point.
📊 Example Scenarios
Example 1 – Intraday Bounce Play:
Price drops into a prior cycle’s Low VWAP line and forms a base—an ideal area to look for long scalps.
Example 2 – Breakout Retest:
Price breaks above the Current High VWAP, then comes back to retest it. If it holds, the breakout is likely valid.
Example 3 – Reversal Setup:
Price is trending up but fails at Current High VWAP and breaks down below Current Low VWAP—watch for short signals.
🛠 Settings
Lookback Bars: Defines how far back to look for the current swing High/Low (default = 66).
VWAP Source: Use ohlc4 for a balanced average, or customize to your preference.
Visibility Toggles: Easily enable/disable each of the four VWAP lines.
🧪 Best Timeframes & Markets
Works across all timeframes
Great for futures, crypto, stocks
Especially useful on 15m–1H intraday charts and 4H–D for swings
💬 Final Thoughts
If you're tired of static VWAPs that only anchor from the open, the Dynamic HL VWAP+ gives you a more price-reactive, context-aware, and actionable VWAP structure.
Ideal for:
Day traders looking for mean-reversion plays
Swing traders targeting pullbacks
Anyone who wants smarter VWAP lines built on recent price structure
This is an educational idea and publication, past performance or what you may see on chart might not be replicable for you. Use at your own risk.
Regards
MissedPrice[KiomarsRakei]█ Overview:
The MissedPrice script identifies price zones based on significant Open Interest shifts (including gaps) aligned with price movements. When sudden market positioning changes occur, the script pinpoints target zones where price is believed to return. Each signal directs you toward these opportunity zones with supporting metrics like Notional Value, Volume Ratio, and Funding Rate timing to help qualify the signals.
█ Core Concept:
Markets frequently "miss" critical price levels during rapid movements. These missed zones occur when:
Orders are revoked during sudden price shifts
Exchanges fail to execute at intended prices
TP/SL orders miss exact execution points
Institutional orders create supply/demand imbalances
Market structure shifts bypass key levels
Liquidity voids form from positioning changes
These missed price zones create natural targets that price tends to revisit. The MissedPrice indicator identifies these zones by analyzing the relationship between Open Interest, Price, and Volume.
█ Closer look at target zones:
Target zones are calculated using the open price where significant OI shifts occur, with zone width adjusted based on the High-Low ratio and ATR to adapt to current volatility. If a zone is touched once after a signal is generated, it is no longer valid. This can be understood as the missing positions and volume having now entered the market.
Each zone's Notional Value (NV) - calculated as OI change multiplied by price - measures the financial impact of the positioning shift. Higher NV indicates more significant market activity and greater liquidity, making price more likely to return to that area. Users can adjust NV ratio thresholds in the inputs to filter signal quality.
█ Features:
Statistical Dashboard: Real-time statistics table showing performance metrics for signals
Funding Rate Visualization: Vertical lines indicate funding rate times to help correlate signals with these significant market events
Alert Capability: Set up alerts for new signals to never miss a trading opportunity
Dynamic Entry Lines: Draws adjustable entry and target level lines to facilitate precise trade execution and measurement, customizable via inputs
█ Closer Look at Statistics Table:
Signal Count: Total numbers of signals generated and total candles included (limited by TradingView's OI historical data)
Win Rate: can be interpreted as the hit rate of target zones. Whenever price reaches the zone, it is calculated as a win, regardless of how far price may have moved in the opposite direction beforehand. This metric measures the script's accuracy in identifying price zones that eventually get revisited.
Total Profit: Calculates possible profit from first entry to target of hit signals - an estimate since humans can't take all signals and might have better entries or average down. By default is turned off can be turned on in the input menu.
Bad Signals: Signals taking too long to complete or moving much further from target
Bad but Hit: Bad signals that eventually hit the target despite early challenges
As you can see in the chart, there are zones that price does not return to touch. There is no guarantee that every identified zone will be reached, which is why the script provides additional qualification metrics to help assess signal probability.
Due to limitations of Open Interest data, you can only use this script on crypto pairs that have Open Interest data available on TradingView. While the script works on any timeframe, it performs best on timeframes less than daily.
█ Best Practices:
Use it in bar replay mode to master the strategy
Try different risk management systems based on how far price goes from the target and your creativity
Use the volume ratio and funding time data to further qualify signals
Notional Value plays a key role
Statistical Trailing Stop [LuxAlgo]The Statistical Trailing Stop tool offers traders a way to lock in profits in trending markets with four statistical levels based on the log-normal distribution of volatility.
The indicator also features a dashboard with statistics of all detected signals.
🔶 USAGE
The tool works out of the box, traders can adjust the data used with two parameters: data & distribution length.
By default, the tool takes volatility measures of groups of 10 candles, and statistical measures of the last 100 of these groups then traders can adjust the base level to use as trailing, the larger the level, the more resistant the tool will be to moves against the trend.
🔹 Base Levels
Traders can choose up to 4 different levels of trailing, all based on the statistical distribution of volatility.
As we can see in the chart above, each higher level is more resistant to market movements, so level 0 is the most reactive and level 3 the least.
It is up to the trader to determine the best level for each underlying, time frame and market conditions.
🔹 Dashboard
The tool provides a dashboard with the statistics of all trades, making it very easy to assess the performance of the parameters used for any given market.
As we can see on the chart, all Daily BTC signals with default parameters but different base levels, level 2 is the best performing of all four, giving a positive expectation of $2435 per trade, taking into account all long and short trades.
Of note are the long trades with a win rate of 76.47% and a risk-to-reward of 3.34, giving a positive expectation of $4839 per trade, with winners having an average duration of 210 days and losers 32 days.
This, compared to short trades with negative expectation, speaks to the uptrend bias of this particular market.
🔶 SETTINGS
Data Length: Select how many bars to use per data point
Distribution Length: Select how many data points the distribution will have
Base Level: Choose between 4 different trailing levels
🔹 Dashboard
Show Statistics: Enable/disable dashboard
Position: Select dashboard position
Size: Select dashboard size
DTT Yearly Volatility Grid [Pro+] (NINE/ANARR)Introduction :
This tool is designed to automate the Digital Time Theory (DTT) framework created by Ivan and Anarr and applies the DTT Yearly Volatility Grid to uncover swing trading opportunities by analyzing Time-based statistical market behavior across the 4H to Daily chart.
Description:
Built upon the proprietary Digital Time Theory (DTT) , this advanced version is tailored for traders seeking multi-day to multi-week moves . It equips swing traders with an edge by analyzing macro Time intervals and volatility behavior across higher Timeframes. Applicable to all major asset classes, including stocks, crypto, forex, and futures , this script breaks down the entire yearly range into Higher-Time Frame Time Models and statistical zones .
This version uses daily intervals to track broader volatility waves, highlight the DTT framework, and pinpoint premium/discount areas across swing cycles. Powered by Time-driven data insights, this tool assists traders in anticipating expansions, understanding long-range Time distortions, and positioning around statistically significant zones in the higher-Time frame narrative.
Key Features:
Time-Based Models and Macro Volatility Awareness:
Automatically populates the chart with DTT Yearly Time Models (4H, Daily), engineered to spotlight macro volatility events across broader market sessions. Helps swing traders identify potential inflection points, reversals, or trend continuation zones.
Average Model Range Probability (AMRP):
Measure the average volatility expected over higher Time-based models. Use AMRP Levels and Projections to assess the range potential of each Yearly Model Time window—vital for monitoring reversals, breakouts, or continuation plays across several sessions or weeks.
Digital Root Candles and HTF Liquidity Draws:
For DTT Yearly Models, the Digital Root Candles are calculated as a specific Daily candle, and can be viewed on the Daily or 4H Timeframe. Analysts can frame premium and discount zones, based on where price is trading in relation to the current or previous model's Digital Roots. These areas also act as anchors for institutional price movement, often serving as bases for accumulation/distribution periods or large impulse moves.
Extended Visualization:
Track and project prior model ranges (high, low, equilibrium) into the current swing window. This helps visualize macro support/resistance , range expansion, failure zones, and price gravitation levels for longer-term trade planning.
Lookback Periods and Model Count
Utilize adjustable lookback periods to control the number of past DTT Yearly Models displayed—ideal for swing traders and quarterly outlooks. Whether you’re reviewing one yearly model to focus on the present range or several months’ worth of data for backtesting and confluence, this feature keeps charts clean, structured, and aligned with your preferred historical perspective.
By tailoring how many previous Time-based models appear on the chart, traders can better visualize and backtest repeated behaviors, major volatility clusters, and how key levels evolve over Time.
Detailed Data Table:
View statistical AMRP data for multiple DTT Yearly Models in real-Time. The data table helps confirm whether current price movement exceeds, respects, or fails to reach historical volatility ranges—key for analyzing market compression or expansion phases.
Customization Options:
Toggle inner Time interval, calculate AMRP utilizing a custom model lookback, and display styles (solid/dotted lines), including color coordination per drawing. Easily customize your charts and settings to fit your swing trading system or macro analysis.
How Swing Traders Can Use DTT Yearly Volatility Grid Effectively
Identify Swing Premium and Discount Zones:
Use Root Candles and Yearly Time Model AMRP Zones to evaluate where price is positioned in the current Time Model. Using this tool, traders can plan trades with a longer term horizon for a minimum of 1 to 2-weeks or manage entries/exits around market structure shifts and liquidity pools
Expect Macro Volatility Shifts:
Use the HTF models to forecast when and which volatility models are historically known to create larger market impulses . These tools help spot periods of potential exhaustion or breakout, especially near key economic releases, quarterly closes , or macro liquidity zones .
Avoid Low Volatility Consolidations:
AMRP helps you detect when the market is compressing or coiling within a DTT Yearly Model. If price is trading between Digital Root Candles or the AMRP zones, analysts are likely to notice periods of consolidation, and the inability to reach their historical volatility averages.
Usage Guidance:
Add DTT Yearly Volatility Grid (NINE/ANARR) to your TradingView chart.
Make sure to be on the 4H, or Daily Timeframes depending on your asset class and analysis.
Use the DTT Model elements and the Data Table to track expansion zones, premium/discount extremes, and model range behavior.
Terms and Conditions
Our charting tools are products provided for informational and educational purposes only and do not constitute financial, investment, or trading advice. Our charting tools are not designed to predict market movements or provide specific recommendations. Users should be aware that past performance is not indicative of future results and should not be relied upon for making financial decisions. By using our charting tools, the purchaser agrees that the seller and the creator are not responsible for any decisions made based on the information provided by these charting tools. The purchaser assumes full responsibility and liability for any actions taken and the consequences thereof, including any loss of money or investments that may occur as a result of using these products. Hence, by purchasing these charting tools, the customer accepts and acknowledges that the seller and the creator are not liable nor responsible for any unwanted outcome that arises from the development, the sale, or the use of these products. Finally, the purchaser indemnifies the seller from any and all liability. If the purchaser was invited through the Friends and Family Program, they acknowledge that the provided discount code only applies to the first initial purchase of the Toodegrees Premium Suite subscription. The purchaser is therefore responsible for cancelling – or requesting to cancel – their subscription in the event that they do not wish to continue using the product at full retail price. If the purchaser no longer wishes to use the products, they must unsubscribe from the membership service, if applicable. We hold no reimbursement, refund, or chargeback policy. Once these Terms and Conditions are accepted by the Customer, before purchase, no reimbursements, refunds or chargebacks will be provided under any circumstances.
By continuing to use these charting tools, the user acknowledges and agrees to the Terms and Conditions outlined in this legal disclaimer.
Regg.v.scalp.Dom-6.Rev-108Regg.v.scalp.Dom-6.Rev-108 – Invite-Only Strategy
Description:
This is a basic scalping strategy created for volatile crypto markets. It is designed to generate small, consistent profits through short-term trades.
You can try this strategy free for one week. If it works well for you and gives profit, you can contact the author to continue using it.
Price IVolution ProPrice Ivolution Pro: Master Volatility with Unmatched Clarity & Confluence
Feeling Overwhelmed by Market Noise? Struggling for Consistent Trading Results?
Whether you're just starting out or you're an experienced trader, navigating today's markets can be challenging. Conflicting signals, confusing charts, and emotional decisions often lead to frustration. You need a clear, reliable way to understand market dynamics and spot opportunities with confidence.
Introducing Price Ivolution Pro – Your Intuitive Guide to Market Clarity.
Price Ivolution Pro is a powerful, yet user-friendly trading suite designed for traders of all levels on TradingView. Whether you're day trading options, scalping futures, or swing trading stocks, this indicator provides the clarity and confluence needed to make more informed decisions. Simplify your analysis and evolve your trading approach.
Unlock Your Potential with Key Features:
Dual Trend Clouds: Instantly visualize the market's short-term momentum (Green/Red areas) and longer-term trend (Blue/Orange areas). Easily identify when the market is trending strongly or consolidating, and spot key dynamic support/resistance zones.
Key Dynamic Pivot Line (Yellow Line): Track a crucial dynamic level that often acts as support or resistance. Watch how price interacts with this line for valuable clues about potential bounces or breaks.
Integrated Volatility Squeeze Detector: Anticipate potentially significant market moves! Identify periods when market energy is building and be ready for the subsequent expansion. Capture big moves before they happen, not after it's too late!
Clear Entry Signals (Standard & Confirmed): Receive straightforward Buy/Sell signals. Get Standard signals (Aqua/Purple triangles) for potential early entries before the move happens , and Confirmed signals (Green/Red triangles) that flag higher-probability setups, often after volatility confirmation.
Automatic Potential Target Levels: Eliminate guesswork with automatically plotted price levels based on recent market volatility (ATR). Use these objective levels to help plan your trade exits.
Comprehensive Status Dashboard: Your real-time command center! Instantly check the status of Trends, RSI, Volume, Momentum, Volatility Squeeze, and more – all in one place. Quickly confirm if multiple factors align for your trade idea.
Exclusive Market Internals (Index Trading Edge): Trading SPX/ES? Gain an optional edge with integrated NYSE TICK, ADD, and Volume Ratio data to gauge underlying market breadth and strength, right on your chart.
Built-in Alert Conditions: Stay informed. Easily create alerts in TradingView for all key signals – Entries, Exits, and potential Target levels – so you don't miss opportunities.
Who is Price Ivolution Pro For?
Beginner to Advanced Traders: Designed for clarity and ease of use, regardless of your experience level.
Day Traders, Scalpers, & Swing Traders: Adaptable to various trading styles and timeframes.
Options, Futures, Stock, & Forex Traders: Works across multiple asset classes available on TradingView.
Traders Seeking Clarity & Confidence: If you want to reduce noise, filter signals, and trade based on clear, confluent information, this is for you.
Learn and Grow with Your Subscription:
Comprehensive User Guide: Easy-to-understand explanations of every feature and core strategies.
Exclusive Mini-Course: Bite-sized video lessons to help you master the indicator quickly.
Private Whop Community Access: Join fellow traders, ask questions, and learn together in a supportive environment (links provided post-subscription).
Ready to See the Market Differently?
Stop trading in confusion. Start trading with the clarity and confidence provided by Price Ivolution Pro.
Subscribe via Whop Today and Request Invite-Only Access!
whop.com
(Note: You will need to provide your TradingView username during checkout on Whop for access granting)
Disclaimer: Trading involves substantial risk of loss and is not suitable for all investors. Past performance is not indicative of future results. Price Ivolution Pro is a tool for analysis and does not constitute financial advice or guarantee profits. Always use proper risk management and trade responsibly.
Global Liquidity IndexThe Global Liquidity Index measures the net liquidity in the global financial system by combining central bank balance sheets and M2 money supply, subtracting liquidity drains like TGA and RRP, and smoothing the result with moving averages or rate of change.
Lot Size Calculator - USD Quote Assets📌 Lot Size Calculator – USD Quote Assets
Description:
🔹 This Pine Script indicator calculates the optimal lot size based on your defined risk amount (in USD), entry price, and stop-loss price — specifically for assets that have USD as the quote currency.
✅ Works perfectly for:
Major and minor Forex pairs with USD as the quote (e.g., EURUSD, GBPUSD, USDJPY)
Gold (XAUUSD)
Silver (XAGUSD)
Oil (USOIL, WTICOUSD)
Indices (automatically detects if it's a CFD or E-mini Futures)
Cryptocurrencies quoted in USD (e.g., BTCUSD, ETHUSD)
🧠 The script auto-detects asset type and adjusts pip size, pip value, and lot multiplier accordingly. For indices, it even differentiates between CFDs and E-mini Futures for precise pip valuation.
📌 Displays a moving label on your chart for easy reference without interfering with price action.
Lot Size Calculator - Non-USD Quote Assets📌 Lot Size Calculator – Non-USD Quote Assets
Description:
🔹 This version of the Lot Size Calculator is designed for instruments that do not have USD as the quote currency, like EURCAD, XAUEUR, GBPAUD, or any Forex/metal pair where the quote is not USD.
✅ Perfect for:
Forex pairs like EURCAD, AUDJPY, NZDCAD, etc.
Metals like XAUJPY, XAUEUR
💱 It automatically fetches the real-time exchange rate to convert the quote currency to USD, so your risk is still calculated in USD while accurately handling foreign quotes.
🧠 Smart pip size detection, lot multiplier handling, and conversion rate adjustment ensure you get accurate lot size recommendations every time.
📌 The output remains pinned to the chart, providing a consistent visual reference for your lot sizing, regardless of bar movement.
Indian Market Price LevelsScript to mark levels in Indian market to look for levels in market that including supports and resistance in the market
Composite Scaled EMA LevelsComposite Scaled EMA Levels Indicator
This TradingView Pine Script indicator calculates a “composite EMA” that compares the closing price of the current asset with that of the XU100 index and scales the EMA values to the XU100 level. It then visualizes these computed levels as horizontal lines on the chart with corresponding labels.
Key Components:
Inputs and Data Retrieval:
Length Input: The user defines a parameter length (default is 10) which determines over how many bars the horizontal line is drawn.
Data Collection:
The daily closing price of the current symbol (current_close) is retrieved using request.security().
The daily closing price of the XU100 index (xu100) is also retrieved.
A ratio is computed as current_close / xu100. This ratio serves as the basis for calculating the composite EMAs.
EMA Calculations:
The indicator computes Exponential Moving Averages (EMAs) on the ratio for specific periods.
In the provided version, the script calculates EMAs for three periods (34, 55, and 233), though you can easily expand this to other periods if needed.
Each computed EMA (for instance, EMA34, EMA55, EMA233) is then scaled by multiplying it with the XU100 index’s close, converting it to a price level that is meaningful on the chart.
Drawing Horizontal Lines:
Instead of using the standard plot() function, the script uses line.new() to draw horizontal lines representing the scaled EMA values over the last “length” bars.
Before drawing new lines, any existing lines and labels are deleted to ensure that only the most current values are shown.
Adding Labels to Lines:
The script creates a label for each EMA using label.new(), placing the label at the current bar (i.e., the rightmost position on the chart) using label.style_label_left so that the text appears to the right of the line.
The label displays the name of the composite EMA (e.g., "Composite EMA 34") along with its current scaled value.
Visualization:
The horizontal lines and labels provide a visual reference for the composite EMA levels. These lines help traders see critical support/resistance levels derived from the relationship between the current asset and the XU100 index.
Colors are assigned for clarity (for example, the EMA lines in this version use green).
Summary:
The Composite Scaled EMA Levels indicator is designed to help traders analyze the relationship between an asset’s price and the broader market index (XU100) by calculating a ratio and then applying EMAs on that ratio. By scaling these EMAs back to price levels and displaying them as horizontal lines with clear labels on the chart, the indicator offers a visual tool to assess trend direction and potential support or resistance levels. This can assist in making informed trading decisions based on composite trend analysis.
CAM | Currency Strength PerformanceOverview 📊
The "CAM | Currency Strength Performance" indicator is a powerful forex trading tool that blends traditional composite analysis with dynamic performance tracking! 🚀 It compares the strength of a currency pair’s base and quote currencies against the pair’s price movement, offering traders a clear, colorful view of market dynamics through normalized lines and an upgraded strength-based histogram. 🎨
How It Works 🛠️
🔍 Automatic Currency Detection: Instantly identifies the base (e.g., XAU in XAUUSD) and quote (e.g., USD) currencies—no setup required!
📈 Composite Strength Calculation: Measures each currency’s power by averaging its exchange rate against a basket of 10 major currencies (GBP, EUR, CHF, USD, AUD, CAD, NZD, JPY, NOK, XAU). A classic strength snapshot! 💪
📏 Normalization: Scales composites and pair prices with a smart formula (price minus moving average, divided by standard deviation) for easy comparison. ⚖️
🎨 Dynamic Visualization:
Plots 3 normalized lines with unique colors:
Base Composite
Quote Composite
Actual Pair (⚪ white)
Benefits 🌈
🧠 Simplified Analysis: Normalized composites make static strength clear, while the new histogram reveals dynamic trends.
✅ Enhanced Decisions: Color-coded lines and a performance-driven histogram pinpoint trading opportunities fast—spot when base or quote takes the lead! 🚨
⏱️ Time-Saver: Auto-detection and dual metrics (static + dynamic) streamline your workflow.
🌍 Versatile: Works across all supported pairs, with colors adapting to currencies (e.g., orange AUD, yellow XAU).
👀 Eye-Catching: Vibrant visuals (purple GBP, green USD) and a purple histogram make it engaging and intuitive.
How It Helps Traders 💡
📈 Spot Trends: Normalized lines show steady strength; the histogram tracks recent outperformance—perfect for timing trades.
⚠️ Catch Divergences: See when strength shifts (e.g., base surging, quote lagging) don’t match price—hello, reversal signals! 🔍
🛡️ Manage Risk: Levels (1, -1) and histogram swings help gauge overbought/oversold conditions for smarter stops.
🔮 Big Picture: Combines static strength with dynamic momentum, giving a fuller market view for scalping or long-term strategies.
Conclusion ✨
"CAM | Currency Strength Performance" now fuses classic strength analysis with real-time performance tracking. With its upgraded histogram, traders get a dual lens—static composites plus dynamic strength—turning complex forex data into actionable insights! 📈💰
Mar 11
Release Notes
✨ New Feature: Strength Histogram:
Tracks the performance of base and quote currencies over a customizable lookback period (default: 10 bars). 📅
Calculates strength as the currency’s percentage change minus the basket’s average change, then plots the difference (base - quote) as a purple histogram. 📊
⚙️ Customizable Settings: Adjust Scaling Period (50), Histogram Scale Factor (0.5), Lookback Bars (10), and Levels (1, -1) to fit your trading style! 🎚️
How It Differs from the Previous Version 🔄
Old Histogram:
Showed the static difference between normalized base and quote composites—a snapshot of relative strength at a single point in time. 📷
Focused on current exchange rate levels, scaled by the pair’s normalized price movement.
New Histogram:
Displays the dynamic strength difference (base strength - quote strength) over a user-defined lookback period (e.g., 10 bars). 🌊
Measures past and current performance by calculating percentage changes relative to a basket, highlighting momentum and trends. 📈
Offers a more responsive, time-based view, showing how each currency has performed recently rather than just its absolute strength.
VBSMI Strategy by QTX Algo SystemsVolatility Based SMI Strategy by QTX Algo Systems
Overview
The Volatility Based SMI Strategy transforms our popular VBSMI with Dynamic Bands indicator into a fully automated strategy that traders can backtest inside TradingView. It retains all core logic from the indicator—including adaptive volatility scaling and trend-based overbought/oversold thresholds—but adds two configurable entry methods, exit conditions, and a dual-mode trade execution engine.
This script is published separately from the VBSMI indicator because some traders use VBSMI as a confluence tool within their existing system, while others prefer a rules-based strategy that can be simulated, optimized, and tracked over time. This script serves the latter use case.
How It Works
Like the original indicator, this strategy uses:
Double-Smoothed SMI Calculation: Based on smoothed momentum using EMA of the relative and full range.
Adaptive Volatility Scaling: Uses a normalized BBWP-based factor to reflect current market volatility.
Dynamic Band Adjustment: Trend direction and strength shift overbought/oversold levels upward or downward.
Band Tilt & Compression Controls: Inputs allow users to define how aggressively the bands shift with trend conditions.
What’s different is the strategy layer—you now choose from two types of entry and exit logic, and two execution styles.
🛠️ Entry & Exit Modes
There are two logic modes for both entry and exit, allowing you to adapt the strategy to your own philosophy:
Cross Mode (SMI Crosses EMA):
Entry: Buy when SMI crosses above its EMA
Exit: Close when SMI crosses below its EMA
Exit OB/OS Mode (Band Exit Logic):
Entry: Buy when price exits dynamic oversold zone (crosses back above tilted oversold band)
Exit: Close when price exits dynamic overbought zone (crosses back below tilted overbought band)
You can mix and match the modes (e.g., enter on Cross, exit on Band Exit).
⚙️ Spot vs. Leverage Mode
Spot Mode
Designed for traders who prefer long-only setups
Enters a long position and holds until the exit condition is met
Prevents overlapping trades—ensures only one position at a time
Leverage Mode
Designed for those testing bi-directional systems (e.g., long/short switching)
Automatically flips between long and short entries depending on the signals
Useful for testing symmetrical strategies or inverse conditions
Both modes work across any asset class and timeframe.
Customization Options
Users can adjust:
Smoothing K/D: Controls how fast or slow the momentum reacts
SMI EMA Length: Determines the responsiveness of the signal line
Trend Lookback Period: Influences how stable the dynamic band tilt is
Band Tilt & Compression Strengths: Refines how far bands adjust based on trend
Entry/Exit Logic Type: Choose between “Cross” or “Exit OB/OS” logic
Trading Mode: Select either "Spot" or "Leverage" depending on your use case
Why It’s Published Separately
This script is not a cosmetic or minor variation of the original indicator. It introduces:
Entry/exit logic
Order execution
Strategy testing capabilities
Mode selection (Spot vs. Leverage)
Signal logic control (Cross vs. Band Exit)
Because the original VBSMI indicator is widely used as a charting and confirmation tool, converting it into a strategy changes how it functions. This version is intended for strategy evaluation and automation, while the original remains available for discretionary and visual use.
Use Cases
This strategy is best suited for:
Evaluating VBSMI-based signals in backtests
Comparing entry and exit logic over time
Testing setups on different assets and timeframes
Automating VBSMI-based logic in a structured and risk-aware framework
Disclaimer
This strategy is for educational purposes only. It does not guarantee future results or profitability. Always test in simulation before using any strategy live, and use proper risk management and trade discipline.
Uptrick: Stellar NexusOverview
Uptrick: Stellar Nexus is a multi-layered chart tool designed to help traders visualize market behavior with enhanced clarity and depth. It presents various overlays, signal triggers, and an asset-level behavioral table in one cohesive interface. Its core focus is to illustrate how different market states shift over time. By displaying directional structures, dynamic zones, momentum shifts, and a real-time probability assessment of multiple assets, it aims to deliver a comprehensive perspective for those looking to navigate complex market environments more confidently.
Purpose
The primary purpose of Stellar Nexus is to unify several market assessment methods into a single framework, sparing users the need to rely on multiple disjointed indicators. It is especially useful for traders who value having layered signals, interactive overlays, and a quick reference to asset-specific metrics within one tool. By consolidating multiple market insights, the script aspires to reduce guesswork, limit information overload, and present clear triggers for potential trade opportunities or risk management decisions.
Originality
Stellar Nexus stands out because it relies on a proprietary set of logic layers, each carefully designed to detect nuanced shifts in price movement. The script brings forward a streamlined depiction of underlying market changes through color-coded zones, shape markers, and short textual tags. Its architecture also accommodates multiple “modes” of viewing the market—be it through layered cloud structures, trend ribbons, or step-based overlays—so traders can adapt its outputs to match changing conditions. The presence of a specialized probability table and a real-time market state meter (HUD Meter) further underscores its uniqueness, providing at-a-glance scoring for various instruments and a gauge that visually displays ongoing transitions from trending to ranging phases.
Inputs
Stellar Nexus includes several user-configurable settings, organized into themed groups. Each input subtly modifies how information is derived or rendered on the chart:
General
Silken Veil (integer input) : Governs how smooth or responsive various underlying signals will appear.
Canvas (dropdown) : Chooses the primary visual overlay style among Nebula Trail, Velora, or Stellar Stepfilter.
Signals (dropdown) : Selects which built-in signal engine (Fluxor or Flowgen) is responsible for painting buy and sell markers.
Nova Tension (integer input) : Influences the internal motion sensitivity used by certain triggers.
Astral Ribbon (integer input) : Imparts a broader directional bias layer that can highlight whether the current environment is bullish or bearish.
Bands
Phase Delay (integer input) : Impacts baseline offsets for certain dynamic band calculations.
Band Softener (float input) : Creates a blended baseline, balancing two distinct smoothing techniques.
Spread Factor (float input) : Scales how wide or narrow the generated envelope bands become.
Layer Offset (float input) : Adjusts spacing between multiple layered boundaries in the band structure.
Smooth Mode (dropdown boolean) : Toggles an extra layer of smoothing on or off for the plotted envelopes.
Feed Matrix
Burst (integer input) : Adjusts how the Flowgen engine interprets momentum buildup. Higher values generally lead to more conservative signals.
Delta Curve Sync (integer input) : Alters the sensitivity of directional alignment within the Flowgen system, refining how quickly the script adapts to market slope changes.
Lambda Pulse Shift (integer input) : Controls timing offsets within the Flowgen structure, subtly influencing the trigger timing of transitions.
Sync Drift Limit (integer input) : Provides a stabilizing effect on the internal motion detection engine, helping reduce erratic behavior during choppy conditions.
WMA Open Filter Tunnel (integer input) : Filters signal validity by applying a dynamic range check on opening price structures, reducing false positives in unstable markets.
Probability Table
Show Predictability Table (boolean) : Enables or disables a table of asset metrics.
Show Numeric Values (boolean) : Switches between displaying numeric values and using simple directional markers in the table cells.
Stepfilter
Sensitivity (dropdown) : Offers a range of speed profiles (Very Fast to Very Slow and TURTLE option) that define how quickly or slowly the step-based overlay reacts to price changes.
HUD Meter
Show Stellar HUD Meter (boolean) : Turns on or off a specialized gauge for quick insight into trending vs. ranging conditions.
Take Profit Signals
Show TP Signals (boolean) : Determines whether exit or take-profit markers are displayed after certain conditions have been met.
Phase Length (integer input) : Influences the internal baseline used for the exit signal logic.
Sync Channel (integer input) : Sets a period within which different data points are compared or synced.
Filter (integer input) : Imposes an additional smoothing on exit-related cues.
Features
Signals (Fluxor and Flowgen)
Fluxor
Logic: Fluxor focuses on detecting specific price transitions, validating them against an internal directional and momentum layer, and then confirming the move based on the script’s overarching market bias.
Visual Representation: When Fluxor is activated, up and down label markers (“▲+” or “▼+”) appear at points the system regards as noteworthy transitions. These do not guarantee trades but are designed to guide users on when buying or selling pressure may have intensified or reversed.
How It Helps: Fluxor is streamlined for those who want simpler, clearer triggers that factor in both trend alignment and short-term motion shifts. This option is more for mean reversion traders.
Flowgen
Logic: Flowgen employs a slightly more sophisticated approach that evaluates multiple “environmental layers,” including structural alignment, directional slope checks, and distinct open-state filters.
Visual Representation: When Flowgen senses a valid transition, it prints discrete up and down markers, much like Fluxor, but triggered by different, multi-layer considerations.
How It Helps: Flowgen caters to traders who desire more emphasis on layered agreement—where multiple aspects of the market must line up before a signal is shown. This option is more for trend following traders.
Overlays (Nebula Trail, Velora, Stellar Stepfilter)
Nebula Trail
Purpose: This indicator employs dynamic, color-coded bands around price action to illustrate prevailing market bias and track which side—bulls or bears—wields greater influence, aligning with a trend-following approach.
Usage: This indicator creates outer and inner “band” regions that can function as potential support or resistance in alignment with market momentum. In bullish phases, the cloud below price acts as a supportive barrier, whereas during bearish conditions, the cloud above price provides a point of resistance. When a bearish signal is detected, traders may enter short positions on a price bounce off this band and then exit when subsequent take-profit cues appear, effectively leveraging the band for both entry and exit strategies.
Velora
Purpose: Extends the concept of band visualization into layered “tiers,” giving a more fine-grained view of how price transitions from one band to another.
Representation: Zones are subdivided into multiple steps, each with distinct shading. As the script’s internal logic detects shifts between bullish or bearish conditions, these layered bands expand or contract to reflect changing momentum.
Usage: Velora subdivides zones into multiple steps, each featuring distinct shading. As the script's internal logic detects shifts between bullish or bearish conditions, these layered bands expand or contract, signaling changes in momentum. When price enters the upper band, especially if the HUD meter shows less definitive momentum, it may hint at a non-trending environment; conversely, in a bearish scenario, the lower band can act as potential support. Narrower bands often point to an impending breakout, while wider bands can suggest a possible reversion in price. Velora is well-suited for traders wanting to see more intermediate zones where the market may hesitate or show partial confirmation—ideal for refined entries or exits.
Smooth:
Choppy:
Stellar Stepfilter
Purpose: Focuses on a persistent directional line that only updates when the script’s logic deems a genuine shift is taking place.
Representation: A single line plots on the chart to represent the “locked” direction. During periods of noise or indecision, this line may remain static, reducing false signals. Optionally, bars can be recolored to reflect bullish or bearish states.
Usage: Traders who prefer a minimalistic, stand-back approach often select Stellar Stepfilter for its ability to filter out choppy conditions and highlight clearer momentum strides. When the line remains flat—particularly in the very slow or “turtle” mode—it signals a ranging market, offering valuable insight into periods of reduced volatility. In TURTLE mode, bars are recolored green or orange to reflect locked trend direction more visibly. TURTLE mode offers the most conservative setting within the Stepfilter engine, emphasizing stability and clarity by reacting only to the strongest directional conditions and visually reinforcing its state through bar coloring.
Very Fast
Very Slow
TURTLE Mode
Probability Table
Description: The Probability Table is displayed on the top-right corner (by default). It automatically fetches data for a handful of assets (in this case, five popular cryptocurrencies), then scores each asset on multiple behavioral metrics. By default, the Probability Table monitors SOL, BTC, ETH, BNB, and XRP from Binance.
Metrics Explained:
HV: Suggests how the asset’s price is fluctuating relative to a standard reference.
ATR/Vol: A ratio that provides insight into volatility compared to trading activity.
WBR: Compares candle wicks against their bodies to gauge the frequency of price swings outside an open-close range.
Liq Clust: Indicates if there are pockets of stable or unstable liquidity.
Momentum: Observes shifts in buying or selling pressure.
PRI: Shows a baseline measure of how far price has deviated from a certain average over time.
Final Verdict: Based on each metric’s reading, an overall classification emerges: Predictable, Moderate, or Chaotic.
How It Helps: Traders can quickly scan this table to see if an asset’s environment is “Predictable” (potentially more structured), “Moderate” (balanced or transitional), or “Chaotic” (unstable and riskier). Each cell can optionally show either numeric approximations or simple “up/down” arrows to reduce clutter.
Non Numeric Values
Numeric Values
Stellar HUD Meter
Description: Located at the top center of the chart, this horizontal gauge toggles between “Trending” and “Ranging,” representing how firmly price is locked in directional expansion versus sideways hesitation.
Mechanics (General): The gauge increments or decrements over time, smoothing out abrupt shifts. A pointer slides across the meter, indicating whether conditions are leaning more toward persistent momentum or uncertain, choppy movement.
How It Helps: This immediate visual feedback helps traders decide if momentum strategies or mean-reversion approaches are more suitable at a given moment, avoiding reliance on guesswork alone.
Take Profit Signals
Description: After any buy or sell trigger occurs (either through Fluxor or Flowgen), the script can flag up to three potential exit points.
Trigger Logic (General): These exits appear when certain internal checks sense that short-term upside or downside pressure may be waning.
Representation: Small markers (“X”) appear near the top or bottom of the candle.
How It Helps: Rather than passively holding a position, these optional signals remind traders of possible exhaustion points. If they choose to follow them, it can help secure partial or full profits during a trend.
Why more than one indicator?
Having more than one internal indicator engine allows Stellar Nexus to adapt to different market behaviors and personal trading styles. Sometimes traders require swift, high-frequency triggers (Fluxor). Other times, they prefer more layered agreement before taking a position (Flowgen). Similarly, each overlay—Nebula Trail, Velora, and Stellar Stepfilter—offers a distinct method for visualizing price action. Markets are dynamic, and no single representation is ideal for all conditions. By blending multiple approaches into one script, Stellar Nexus provides flexibility: a user can switch between sets of signals or overlays based on market phase, personal risk preference, or the timeframe being traded.
Additional Features
Alert System: Built-in alerts for every trigger or state change ensure that traders can receive real-time notifications, even when away from the chart. The alert system includes buy/sell triggers, trend shifts, overlay transitions, take-profit points, and predictability status changes across monitored assets.
Selective Visibility: Users can enable or disable various modules—Probability Table, HUD Meter, Take Profit Signals—to keep their chart interface uncluttered.
State Persistence: Certain modules “lock in” their reading until a strong reason emerges to change it, which can help minimize false flips in volatile conditions.
Tailored Aesthetics: Color choices and label styling are curated to be visually distinct, reducing confusion when multiple signals or overlays occur simultaneously.
Conclusion
Uptrick: Stellar Nexus is a comprehensive, multi-layer script that merges aesthetic clarity with functional depth. It combines diverse overlays, signal engines, probability analyses, and a heads-up market meter into one cohesive tool. By handling trending vs. ranging states, evaluating asset predictability, and offering selective take-profit cues, it serves as a versatile companion for traders who want organized, visually intuitive guidance. Its originality is found not only in how it disguises internal computations, but in the ease with which users can cycle through different overlays and signals to suit changing market conditions. As always, personal due diligence, market awareness, and risk management remain essential. Stellar Nexus simply provides a refined canvas on which to read and interpret price action more confidently.
Disclaimer
This indicator is provided solely for informational and educational purposes. It does not constitute investment advice or a recommendation to engage in any trading activities. Trading and investing in financial markets involve significant risk, and past performance is not indicative of future results. Always conduct your own research, utilize proper risk management, and consider consulting a qualified financial professional before making any investment decisions. Neither the creator nor any contributors to this script accept any liability for financial losses or damages arising from its use. Users of this indicator assume full responsibility for their trading activities.
Market OracleMarket Oracle Indicator: User Guide
Market Oracle is a powerful, all-in-one trading indicator for TradingView that combines multiple technical signals into a clear, actionable dashboard. Built for traders seeking a reliable edge, it analyzes trend, momentum, volatility, volume, and more to generate high-confidence buy and sell signals. With features like dynamic position sizing, market regime performance tracking, and customizable settings, it’s perfect for stocks, forex, crypto, or any market on any timeframe.
What It Does
Market Oracle evaluates market conditions using a blend of proven indicators (RSI, Stochastic RSI, EMAs, SuperTrend, MACD, Ichimoku Cloud, Bollinger Bands, ATR, ADX, and candlestick patterns) to produce a Composite Score (0-100) that reflects bullish or bearish strength. It generates:
Buy/Sell Signals: Triggered when the score crosses user-defined thresholds, filtered by volume, ADX, and trading hours.
Dynamic Position Sizing: Adjusts trade size based on volatility (ATR), reducing risk in choppy markets.
Market Regime Insights: Tracks performance in trending vs. ranging markets to highlight strategy strengths.
Comprehensive Dashboard: Displays real-time metrics like signal confidence, stop/take-profit levels, win rates, and more.
Whether you’re a day trader, swing trader, or long-term investor, Market Oracle simplifies decision-making with clear insights and robust backtesting.
Key Features
Composite Score:
Combines trend (EMAs, SuperTrend, MACD), momentum (RSI, Stochastic RSI), volatility (Bollinger Bands, ATR), volume (OBV, MA), Ichimoku Cloud, divergences, multi-timeframe trends, and candlestick patterns.
Score > 50 indicates bullishness; < 50 indicates bearishness. Extreme values (>90 or <10) flag overbought/oversold conditions.
Smart Signals:
Buy signals trigger when the score exceeds a threshold (default 70), with filters for volume, ADX strength, and Ichimoku/pattern confirmation.
Sell signals trigger below 100-threshold (default 30), with similar filters.
Signals include confidence levels (0-100%) based on indicator alignment.
Dynamic Position Sizing:
Scales trade size using ATR to limit risk in volatile markets (e.g., smaller positions when ATR is high).
Caps volatility adjustments (default 3x ATR) to maintain reasonable sizing.
Bases risk on a user-defined percentage (default 1% per trade).
Market Regime Performance:
Identifies trending (high ADX or wide Bollinger Bands) vs. ranging markets.
Tracks win rates separately for each regime, helping you optimize strategies for specific conditions.
Backtesting Metrics:
Shows buy/sell win rates, recent win rate, trending/ranging win rates, profit factor, max drawdown, and equity trend.
Helps evaluate strategy performance over time.
Customizable Dashboard:
Displays key metrics: Composite Score, Trend, Momentum, Volatility, Ichimoku, ADX, Divergences, Signal Status, Confidence, Stop/Take-Profit, Position Size, and more.
Toggles to show/hide backtest stats, Ichimoku Cloud, or multi-timeframe trends.
Clean layout with no clutter (e.g., no unnecessary “!” markers).
Alerts:
Set alerts for Buy/Sell Signals, Signal Exits, High Scores, or Overbought/Oversold conditions.
Messages include score and confidence (e.g., “Oracle+: Buy signal (Score: 75.2, Confidence: 80%)”).
Flexible Settings:
Adjust thresholds, indicator lengths, weights, risk parameters, and more.
Enable/disable features like trailing stops, market regime filters, or trading hour restrictions.
How to Use It
1. Add to TradingView
Copy the Market Oracle script into TradingView’s Pine Editor.
Click “Add to Chart” to apply it to your chosen market (e.g., BTC/USD, EUR/USD, SPY).
The dashboard appears in the bottom-right corner, showing real-time data.
2. Read the Dashboard
The dashboard is split into three sections:
Market State:
Composite Score: Current score and confidence (e.g., “75.2 (50.4%)”). “(OB)” or “(OS)” flags overbought/oversold.
Adjusted Threshold: Signal trigger level, adjusted for market regime.
Trend/MTF Trend: Bullish, Bearish, or Neutral (based on EMAs, SuperTrend, higher timeframe).
Momentum: Bullish, Bearish, or Neutral (RSI, Stochastic RSI).
Volatility: High or Low (Bollinger Bands, ATR).
Ichimoku Cloud: Bullish, Bearish, or Neutral (if enabled).
ADX Strength: Strong or Weak.
Divergence: Bullish, Bearish, or None (RSI, MACD).
Signals:
Signal Status: “Buy”, “Sell”, or “None”.
Signal Confidence: Percentage (e.g., “80%”) based on indicator agreement.
Stop Level/Take-Profit: Price levels for risk management.
Position Size: Units to trade, adjusted for volatility.
Avg Trade Duration: Average bars per trade.
Signal History: Recent signals/exits (e.g., “Buy | Buy Win”).
Backtest (optional):
Buy/Sell Win Rate: Percentage of winning trades.
Recent Win Rate: Win rate for recent trades.
Trending/Ranging Win Rate: Performance by market condition.
Profit Factor: Profit-to-loss ratio.
Max Drawdown: Largest equity drop.
Equity Trend: Up, Down, or Flat.
3. Customize Settings
Access the indicator’s settings by clicking the gear icon:
Signal Sensitivity:
Base Signal Threshold (default 70): Higher = stricter signals.
Min Confidence for Alerts (default 60%): Filters weaker alerts.
Risk Management:
Risk % per Trade (default 1%): Sets base risk.
Max ATR Multiplier (default 3.0): Caps position size reduction.
Take-Profit Ratio (default 2.0): Sets reward-to-risk ratio.
Use Trailing Stop (default false): Enable for dynamic stops.
Filters:
Use Volume Filter (default true): Requires above-average volume.
Use ADX Filter (default true): Requires strong trend (ADX > 25).
Use Market Regime Filter (default true): Adjusts thresholds for trending/ranging markets.
Avoid Specific Hours (default false): Skip signals during set hours (e.g., 0-6 UTC).
Indicators:
Adjust lengths for RSI (14), EMAs (20/50), MACD (12/26/9), etc.
Enable/disable Use Candlestick Patterns (default true) and choose type (Hammer, Engulfing, etc.).
Display:
Show Backtest Metrics (default true): Show win rates and stats.
Show Ichimoku Cloud (default true): Include cloud signals.
Show MTF Trend (default true): Include higher timeframe trend.
4. Set Alerts
In TradingView, click the alarm icon and select Market Oracle conditions:
Buy/Sell Signal: Triggers on new signals with sufficient confidence.
Signal Exit: Triggers when a trade closes (stop or take-profit hit).
High Score Alert: Triggers when score exceeds a threshold (default 80).
Overbought/Oversold: Warns of extreme conditions (if enabled).
Alerts include details for easy tracking (e.g., score, confidence).
5. Test and Trade
Test Markets: Try on forex (EUR/USD 1H), crypto (BTC/USD 4H), or stocks (AAPL daily).
Check Volatility: Monitor Position Size in volatile markets (e.g., XAU/USD); it shrinks to reduce risk.
Evaluate Regimes: Use “Trending Win Rate” and “Ranging Win Rate” to see where the strategy shines.
Backtest: Review Profit Factor and Max Drawdown to assess performance.
Start Small: Use a demo account to test signals before trading live.
Tips for Success
Match Your Style: Adjust scoreThreshold and timeframe to suit day trading (e.g., 15m, stricter threshold) or swing trading (e.g., 4H, looser threshold).
Monitor Regimes: If “Trending Win Rate” is higher, focus signals during strong trends (high ADX).
Manage Risk: Keep riskPerTrade low (e.g., 0.5-2%) and review Position Size for sanity.
Combine with Analysis: Use signals alongside support/resistance or news events for confirmation.
Tune Parameters: Experiment with atrVolatilityCap (e.g., 2.0 for tighter sizing) or adxThreshold (e.g., 30 for stronger trends).
Avoid Overtrading: Filter signals with minConfidenceForAlert (e.g., 70%) to focus on high-probability setups.
Example Scenarios
Crypto Breakout (BTC/USD 4H):
Composite Score jumps to 82, Signal Status shows “Buy” with 80% confidence.
Position Size is moderate due to high ATR during a rally.
“Trending Win Rate” is 65%, suggesting strength in directional moves.
Set an alert and enter with a 2:1 take-profit (e.g., stop at 60,000, target at 62,000).
Forex Range (EUR/USD 1H):
Score hovers near 45, no signal (Neutral).
“Ranging Win Rate” is 55%, indicating decent performance in consolidation.
Wait for a score above 70 or use a higher timeframe (e.g., Daily MTF Trend).
Stock Swing (AAPL daily):
Score hits 75, “Buy” signal with a small Position Size (low ATR).
Dashboard shows Bullish Ichimoku and MTF Trend.
Trade with a trailing stop to capture a multi-day move.
Why Choose Market Oracle?
All-in-One: Combines multiple indicators into one easy-to-read dashboard, saving you time.
Adaptive: Adjusts signals and sizing for market conditions (trending, ranging, volatile).
Transparent: Shows confidence, win rates, and risk levels to build trust in trades.
Customizable: Tailor to any market, timeframe, or trading style with dozens of settings.
No Clutter: Clean interface with no distracting visuals, just actionable data.
Getting Started
Add Market Oracle to your chart and explore the dashboard.
Test on a market you trade (e.g., ETH/USD 1H) with default settings.
Adjust scoreThreshold or riskPerTrade to match your risk tolerance.
Set alerts for Buy/Sell Signals and monitor performance via “Trending Win Rate” and “Profit Factor”.
Join TradingView communities to share setups and tips!
For questions or tweaks (e.g., adding VWAP, changing alert conditions), consult your indicator’s developer or TradingView’s Pine Script resources. Happy trading!
Average Body RangeThe Average Body Range (ABR) indicator calculates the average size of a candle's real body over a specified period. Unlike the traditional Average Daily Range (ADR), which measures the full range from high to low, the ABR focuses solely on the absolute difference between the open and close of each bar. This provides insight into market momentum and trading activity by reflecting how much price is actually moving from open to close , not just in total.
This indicator is especially useful for identifying:
Periods of strong directional movement (larger body sizes)
Low-volatility or indecisive markets (smaller body sizes)
Changes in trend conviction or momentum
Customization:
Length: Number of bars used to compute the average (default: 14)
Use ABR to enhance your understanding of price behavior and better time entries or exits based on market strength.
RTH and ETH RangesKey Functions :
Visualizes Regular Trading Hours (RTH) and Extended Trading Hours (ETH) price ranges
Tracks session highs, lows, and 50% levels where significant market reactions occur
Detects breakouts beyond previous session extremes
Trading Applications :
Exposes potential liquidity raids at session boundaries where smart money targets stop orders
Identifies critical price thresholds where institutional activity concentrates
Highlights divergences between RTH and ETH behavior that precede directional moves
Provides measurement of session volatility differences
Maps key price levels for objective entry and exit parameters
Reveals market dynamics at session transitions where institutional positioning changes
Dirty Market IndexThis indicator is designed to out an index displaying the level of dirtiness in market.
This level is defined by:
Sum of shadow lengths of last n candles (n is input and user can change it, it's 100 by default)
divided by
Sum of full candle bodies of last n candles (high - low)
This factor indicates how many percents of the market movement has been placed in shadows of candles, the higher this number, the dirtier market would be.