RSI Adaptive Structure Engine (RASE)RSI Adaptive Structure Engine (RASE) is a regime-based market structure indicator built entirely using the Relative Strength Index (RSI).
Rather than focusing on overbought or oversold conditions, RASE is designed to help traders identify directional market regimes and trend quality by combining multiple layers of RSI analysis into a single, structured framework.
🔹 What RASE Does
RASE analyzes the market using:
Structural RSI slope to determine directional bias
RSI efficiency to filter noisy or choppy conditions
Smoothed RSI momentum to confirm trend continuation
Fast RSI behavior for timing alignment
Higher-timeframe RSI confirmation for strong trend validation
The indicator uses state-based logic, meaning signals appear only when a regime changes. This helps reduce noise and avoids repetitive or cluttered signals.
🔔 Signal Types
🔹 Base Signal (Single Triangle)
Indicates early alignment of structure, momentum, and efficiency
Uses the current timeframe only
Intended to highlight potential regime shifts
🔹 Strong Signal (Double Triangle)
Confirms trend strength using higher-timeframe alignment
Appears only after a base regime is established
Intended to highlight stronger directional persistence
Optional execution-style markers can also be enabled for users who want additional same-timeframe context.
📈 How to Use
RASE is best used as a regime and directional bias tool, not as a standalone entry system.
Common use cases include:
Trend filtering for other strategies
Identifying favorable directional conditions
Avoiding trades during low-quality or choppy regimes
Multi-timeframe market structure analysis
⚠️ Disclaimer
This indicator is provided for educational and analytical purposes only. It does not constitute financial advice, investment guidance, or a recommendation to buy or sell any asset.
Trading and investing involve risk. Users are solely responsible for their own decisions and risk management. Past performance is not indicative of future results.
Wskaźniki i strategie
EMA 9/15 RSI StrategyIf the 9 crosses over 15 or crosses down 15 add Keltner channel to find a tradable option selling setup
Trend Strength + SSL Channel TableThis strategy is a time-in-trend awareness and exhaustion framework rather than a directional signal by itself. It uses a Hull Moving Average–based trend definition to continuously identify whether the market is in a bullish or bearish phase, then measures how long that trend typically lasts by averaging the durations of recent historical trends in the same direction. As a new trend unfolds, the system tracks how many bars have already closed and compares that progress against the trend’s historical “probable length.” The result is a live, adaptive estimate of where the current move sits within its natural life cycle, independent of price targets or indicators like RSI or MACD.
TRADING BITE Supply Demand Marker V2.1This Indicator Automatically identifies key supply and demand candles and highlights potential reversal zones. Integrated volume analysis validates market moves, helping traders make more informed entry and exit decisions. Perfect for spotting high-probability trades and understanding market structure at a glance.
Features:
Highlights Supply & Demand zones automatically
Marks key reversal candles
Volume-based validation for stronger signals
Easy-to-read visual alerts for trading decisions
Disclaimer / No Liability Notice:
This indicator is provided for educational and informational purposes only. It does not guarantee profits or predict future market movements. Trading financial instruments involves substantial risk of loss, and you should only trade with money you can afford to lose.
By using this indicator, you acknowledge that you assume full responsibility for any trading decisions made based on its signals. The developer accepts no liability for any losses, damages, or financial consequences that may result from using this tool.
Always perform your own analysis and consider consulting a licensed financial advisor before making trading decisions. Past performance is not indicative of future results.
NTrades [NDOG & NWOG + Premarket]NTrades highlights key ICT-based levels by automatically plotting Premarket High/Low ranges, New Day Opening Gaps (NDOG), and New Week Opening Gaps (NWOG). It also detects and displays the first Fair Value Gap (FPFVG) after the market open, helping traders identify important liquidity zones, price imbalances, and potential reaction levels.
Volume Structure Regime Engine (VSRE)Volume Structure Regime Engine (VSRE) is a professional, volume-based market analysis tool designed to help traders identify high-quality directional opportunities with clarity and discipline.
The indicator is built around a three-layer analytical framework, each serving a distinct purpose in the decision-making process:
🔹 Structure Layer
Uses Anchored VWAP to determine directional bias and identify which side of the market is in control. This layer defines the broader context and filters out low-probability trades.
🔹 Regime Layer
Analyzes volume-weighted participation to distinguish between expansion, compression, and distribution phases. This helps traders focus only on periods where meaningful activity is present.
🔹 Execution Layer
Detects short-term volume acceleration aligned with structure and regime, highlighting moments of aggressive participation.
📊 Signal Types
Strong Signals
Appear once per structural move and indicate the first high-quality opportunity aligned with both structure and participation.
Elite Signals
Appear selectively on the first meaningful pullback within an active move, offering refined entry opportunities.
Signals are state-based and non-repetitive, designed to reduce chart clutter and avoid signal overfitting.
✅ Key Features
Volume-driven (no lagging price averages)
Clean, minimal visuals
Non-repainting logic
Built-in signal throttling to reduce noise
Suitable for discretionary trading across intraday and swing timeframes
⚠️ Disclaimer
This indicator is intended for educational and analytical purposes only. It does not constitute financial advice or a recommendation to buy or sell any financial instrument. Trading involves risk, and users are responsible for their own trading decisions.
HeikenAshi Trend Lite [SolQuant]The HeikenAshi Trend Lite indicator displays double-smoothed Heikin-Ashi candles on the current timeframe as a trend overlay. By applying two passes of EMA smoothing to Heikin-Ashi calculations, it filters out market noise to reveal clean trend direction.
This is the free version of HeikenAshi Trend , providing the core double-smoothed HA trend visualization on a single timeframe without the multi-timeframe overlays available in the full version.
█ USAGE
Reading the Trend
The indicator draws a filled ribbon representing the smoothed Heikin-Ashi body. When the smoothed HA close is above the smoothed HA open, the ribbon is bullish. When below, it is bearish. The body uses a semi-transparent fill, while the wick range is drawn with a lighter shade, creating a layered visual.
Color changes represent confirmed trend shifts after double smoothing has absorbed enough price data. This filtering eliminates most false signals from choppy conditions.
█ DETAILS
The calculation follows three steps:
1 — EMA smoothing of raw OHLC values
2 — Heikin-Ashi transformation of the smoothed values
3 — Second EMA pass on the resulting HA values
This double-smoothing approach reduces noise effectively while maintaining less lag than equivalent single-pass smoothing with very long periods.
█ SETTINGS
• EMA Length: Period for the first EMA smoothing pass (default: 10).
• Smoothing Length: Period for the second EMA pass (default: 10).
• Bullish / Bearish Color: Customizable trend colors.
• Show Candles: Display traditional HA candle bodies alongside the ribbon.
This indicator uses synthetic Heikin-Ashi values that do not represent actual traded prices. It does not constitute financial advice. Past performance does not guarantee future results.
Trend Strength TableThis strategy is a time-in-trend awareness and exhaustion framework rather than a directional signal by itself. It uses a Hull Moving Average–based trend definition to continuously identify whether the market is in a bullish or bearish phase, then measures how long that trend typically lasts by averaging the durations of recent historical trends in the same direction. As a new trend unfolds, the system tracks how many bars have already closed and compares that progress against the trend’s historical “probable length.” The result is a live, adaptive estimate of where the current move sits within its natural life cycle, independent of price targets or indicators like RSI or MACD.
The real edge comes from contextual trade management. By converting elapsed trend time into a percentage of the probable trend length, the table classifies the move into Strong, Medium, Declining, or Exhaustion phases. Early stages (Strong/Medium) favor continuation trades and holding winners, while later stages (Declining/Exhaustion) warn against chasing momentum and instead encourage scaling out, tightening stops, or looking for reversal and mean-reversion setups. In practice, this strategy acts as a risk-timing overlay—helping traders decide when to press, when to be patient, and when to stand down—rather than telling them what direction to trade.
LONG TRADE RULES (Bullish Trend)
✅ Long Entry Recommendations
Only consider longs when the table shows a Bullish trend.
Best entry zones by Trend Strength:
Strong (< 25%)
✅ Best continuation entries
Enter on:
First pullback to VWAP / 9–20 EMA
Bullish engulfing candle
ORB continuation
Bias: Aggressive size allowed
Expect expansion
Medium (25%–50%)
✅ Still valid, but be selective
Enter on:
Higher low + strong close
Break-and-hold above key level
Bias: Normal size
Avoid chasing extended candles
Declining (50%–75%)
⚠️ Late trend
Only enter if:
Tight consolidation breakout
Strong volume confirmation
Bias: Reduced size
Faster profit-taking
Exhaustion (> 75%)
❌ No new longs
Trend is statistically mature
Look for:
Failed breakouts
Bearish rejection candles
🎯 Long Exit Rules
Partial exits
Take first scale at 50%–75%
Full exit
Mandatory by Exhaustion
Stop management
Strong/Medium → structure-based stop
Declining → tighten aggressively
Hard rule
Do not hold longs once trend flips bearish
SHORT TRADE RULES (Bearish Trend)
✅ Short Entry Recommendations
Only consider shorts when the table shows a Bearish trend.
Best entry zones by Trend Strength:
Strong (< 25%)
✅ Best short continuation zone
Enter on:
Failed bounce into resistance
VWAP / EMA rejection
ORB breakdown
Bias: Aggressive size allowed
Medium (25%–50%)
✅ Good continuation, slower
Enter on:
Lower high confirmation
Breakdown after consolidation
Bias: Normal size
Declining (50%–75%)
⚠️ Trend is aging
Only enter:
On clean breakdowns
With defined risk
Bias: Reduced size
Exhaustion (> 75%)
❌ No new shorts
Expect:
Short-covering
Dead-cat bounces
Reversal attempts
🎯 Short Exit Rules
Partial exits
Begin scaling out at 50%–75%
Full exit
Required at Exhaustion
Stop management
Strong/Medium → above lower high
Declining → tight trailing stop
Hard rule
Cover all shorts if trend flips bullish
🔥 Power Rules (Do NOT break these)
Never open new trades in Exhaustion
Strong = press, Declining = protect
Trend strength dictates size, not conviction
Direction comes from trend, timing comes from price
Safer Reversal: CHoCH & Div 1st BoS Entry & Exits & Pro FeaturesProfessional traders (in ICT/SMC frameworks) often exit reversal trades using these logic layers for better risk control and to avoid holding into reversals:
Opposing CHoCH → Strongest exit/reversal warning: If you’re in a bullish trade and a bearish CHoCH forms (breaks structure against your direction), it’s time to exit fully or scale out aggressively. This signals the new trend might be over or reversing.
Failed BoS / Lack of Continuation → If no new BoS occurs for many bars after entry (e.g., 10–20 bars, adjustable), momentum is fading → partial or full exit.
Target Zones → Common exits at next major POI: e.g., opposite-side liquidity (equal highs/lows), recent swing extremes, or a fixed RR (like 1:2 or 1:3 from entry).
Trailing via Swings → After each new BoS in your direction, trail stop to the recent swing low/high (or below last BoS level) for letting winners run.
Other Pro Touches:
Volume filter on entry BoS (require above-average volume for confirmation).
RSI extreme check (e.g., exit if RSI hits overbought/oversold in your trade direction after entry).
Alerts for exits (“EXIT BUY - Opposing CHoCH” etc.).
AURORA PRIME Alerts (Indicator)/@version=6
indicator("AURORA PRIME Alerts (Indicator)", overlay=true)
// --- inputs and logic copied from your strategy (only the parts needed for signals) ---
tfHTF = input.timeframe("60", "HTF for Structure")
// ... copy any inputs you want exposed ...
// Example: assume longEntry, shortEntry, canAdd are computed exactly as in your strategy
// (paste the same computations here or import them)
// For demonstration, placeholder signals (replace with your real conditions)
longEntry = false // <-- replace with your strategy's longEntry expression
shortEntry = false // <-- replace with your strategy's shortEntry expression
canAdd = false // <-- replace with your strategy's canAdd expression
inPosLong = false // <-- replace with your strategy's inPosLong expression
inPosShort = false // <-- replace with your strategy's inPosShort expression
// Alert conditions exposed to TradingView UI
alertcondition(longEntry, title="AURORA PRIME Long Entry", message="AURORA PRIME Long Entry")
alertcondition(shortEntry, title="AURORA PRIME Short Entry", message="AURORA PRIME Short Entry")
alertcondition(canAdd and inPosLong, title="AURORA PRIME Long Add", message="AURORA PRIME Long Add")
alertcondition(canAdd and inPosShort, title="AURORA PRIME Short Add", message="AURORA PRIME Short Add")
// Optional visuals to match strategy
plotshape(longEntry, title="Long", style=shape.triangleup, color=color.new(color.lime, 0), size=size.small, location=location.belowbar)
plotshape(shortEntry, title="Short", style=shape.triangledown, color=color.new(color.red, 0), size=size.small, location=location.abovebar)
stelaraX - Risk CalculatorstelaraX – Risk Calculator
stelaraX – Risk Calculator is a trade planning and risk management indicator that visualizes entry, stop loss, and up to three take profit levels directly on the chart. The script calculates risk amount and position size based on account size and risk percentage, and it supports both long and short trade scenarios.
For advanced AI-based chart analysis and automated trade planning tools, visit stelarax.com
Core logic
The indicator uses a manual signal lock to fix a trade setup:
* enable the signal lock
* input the entry price
* input the stop loss price
* select trade direction (Long or Short)
The script validates the trade direction:
* for Long, stop loss must be below entry
* for Short, stop loss must be above entry
Risk is calculated using account size and risk percentage:
* risk amount in currency is computed from account size and risk percent
* position size is derived from risk amount divided by the stop loss distance
Take profit levels are calculated using risk-to-reward multiples:
* TP1, TP2, TP3 can be enabled or disabled independently
* each TP level is calculated as a multiple of the stop loss distance based on the selected R:R value
Visualization
When the signal is active and valid, the indicator draws:
* entry line with price label
* stop loss line with risk amount label
* up to three take profit lines with R-multiple, price, and projected profit labels
* optional risk zone box between entry and stop loss
* optional info panel summarizing the full trade setup
Line length and display elements can be configured.
Alerts
Alert conditions are available for:
* entry level reached
* TP1 reached
* TP2 reached
* TP3 reached
* stop loss reached
Visual markers can also be displayed when any level is hit.
Use case
This indicator is intended for:
* fixed trade planning with manual entry and stop levels
* position sizing based on account risk
* defining multiple take profit targets using R:R
* visualizing risk and reward directly on the chart
* creating alert-based trade management workflows
For a fully automated AI-driven chart analysis solution, additional tools and insights are available at stelarax.com
Disclaimer
This indicator is provided for educational and technical analysis purposes only and does not constitute financial advice or trading recommendations. All trading decisions and risk management remain the responsibility of the user.
RSI Primed [ChartPrime] with AlertRSI Primed with Alert
Signal alert functionality added to the original version. Signal logic is as follows:
1. Uses EMA100 slope to filter trend direction
2. During EMA100 bullish trend, triggers oversold zone alert when RSI-MA turns in the oversold zone, consider buying the pullback;
3. During EMA100 bearish trend, triggers overbought zone alert when RSI-MA turns in the overbought zone, consider shorting the bounce;
4. Signal alerts are for reference only to improve chart monitoring efficiency. Not recommended for direct entry conditions - should be considered in conjunction with other factors.
RSI Primed with Alert
在原版基础上增加信号警报功能,信号逻辑如下:
1. 使用EMA100的斜率来过滤趋势方向
2. EMA100多头趋势时,RSI-MA在超卖区拐头时发出超卖区警报,可以考虑回调做多;
3. EMA100空头趋势时,RSI-MA在超买区拐头时发出超买区警报,可以考虑反弹做空;
4. 信号警报仅作为提高盯盘效率的参考,不建议直接用于入场条件,需参考其他条件综合考虑。
Volatility Expansion Indicator - D_QuantVolatility Expansion Indicator - D_Quant |V|C|E|
1. Concept & Overview
The Volatility Expansion Indicator (VCE) is a composite quantitative tool designed to identify robust trend states by aggregating signals from three distinct market dimensions: Relative Position (Volatility), Cyclical Momentum, and Price Velocity.
Unlike single-source indicators which often generate false positives during choppy markets, the VCE utilizes a "Consensus Engine." It normalizes signals from Bollinger %B, CCI, and ROC into a unified trend score (-1 to +1). This score drives the visual coloring of the price action and background, allowing traders to instantly gauge whether the market is in a state of volatility expansion (trending) or contraction (ranging).
2. Methodology & Calculation
The core logic relies on a weighted aggregation of three technical components. Users can toggle these components on or off in the settings to isolate specific market mechanics.
A. Component 1: Bollinger %B (Relative Positioning)
Logic: Measures where the price is located relative to the Bollinger Bands.
Bullish Condition: If %B > 0.5 (Price is operating in the upper hemisphere of the bands).
Bearish Condition: If %B < 0.0 (Price has broken below the lower band).
Purpose: Filters out weak trends by ensuring price is statistically significant relative to its recent volatility.
B. Component 2: CCI (Commodity Channel Index)
Logic: Measures current price levels relative to an average price level over a specific period.
Thresholds: A standard +100 / -100 threshold is used. Values above 100 add to the bullish score; values below -100 add to the bearish score.
Purpose: Identifies cyclical momentum extremes.
f_cci(_len) =>
cci_val = ta.cci(close, _len)
val = 0
if cci_val > 100
val := 1
if cci_val < -100
val := -1
val
C. Component 3: ROC (Rate of Change)
Logic: Calculates the percentage change between the current price and the price n periods ago.
Thresholds: Simple zero-line crossover. Positive ROC implies bullish velocity; negative implies bearish.
Purpose: Provides a raw directional bias based on pure price speed.
D. The Aggregation Engine: The script sums the active signals and divides by the number of active components.
Bullish Trend: Composite Score > 0 (Visualized as Deep Navy).
Bearish/Neutral: Composite Score ≤ 0 (Visualized as White).
E. Multi-Timeframe (MTF) Capability: The indicator includes a request.security module. This allows you to calculate the consensus trend on a higher timeframe (e.g., Daily) while viewing price action on a lower timeframe (e.g., 15-minute), ensuring you are trading in alignment with the macro trend.
// NEW: Timeframe Selection
tf_input = input.timeframe("", "VCE Timeframe", group=grp_sets, tooltip="Empty = Current Chart. Set to 'D' for fixed Daily trend.")
= request.security(syminfo.tickerid, tf_input, , lookahead=barmerge.lookahead_on)
3. Visualizations
The indicator overlays the following elements on the chart:
Trend SMMA: A central Smoothed Moving Average (SMMA 20) representing the mean.
Volatility Bands: Upper and Lower bands calculated at 2 Standard Deviations from the SMMA.
Bar Coloring:
Navy Blue: Indicates a confirmed Volatility Expansion (Bullish Confluence).
White: Indicates Neutrality, Retracement, or Bearish conditions.
Dynamic Fills: The space between the bands fills with color to highlight the strength of the current regime.
4. How to Use
Trend Following: Look for the bar color to switch to Navy. This indicates that momentum, volatility, and velocity have aligned bullishly. This is often an entry trigger for long positions.
Exits: When the bars switch from Navy back to White/Gray, the volatility expansion has ceased or momentum is diverging. This serves as a warning to tighten stops or take profits.
MTF Filter: Set the "VCE Timeframe" input to "D" (Daily). Trade on the H1 chart. Only take long positions when the Daily VCE paints the background/bands in the Bullish color.
5. Settings
Bollinger %B: Adjust Length and Multiplier (Default: 20, 2.0).
CCI: Adjust Length (Default: 23).
ROC: Adjust Length (Default: 50).
Signal Components: Toggle specific logic blocks on/off to customize the sensitivity of the composite score.
VCE Timeframe: Select the resolution for the calculation (Leave empty for current chart).
Disclaimer: This tool is for informational purposes only. Past performance of volatility expansion does not guarantee future results. Always manage risk appropriately.
Volume Conviction Index v1.0Volume Conviction Index (VCI) v1.0
This indicator helps answer a simple question: Does this price move have real strength behind it, or is the volume too weak to trust???
It measures "conviction" through how many participants are in the marketplace by looking at volume in a smart, reliable way:
- Spots unusual volume surges (buying or selling pressure) that stand out from normal (median line plotted) levels.
- visually helps with discretionary calls and allows the median avg of participation not just volume to be 'seen'
- Blends recent volume changes with how volume compares to its typical range.
How to read the chart (super straightforward):
- Teal columns above the zero line: Strong buying conviction — volume supporting the up move (good sign for breakouts or holds).
- Orange columns below zero: Strong selling conviction — heavy participation on the downside (watch for reversals or weakness on rallies).
- Flat/small bars near zero: Low conviction — price might be moving on fumes (often leads to fakeouts or quick fades).
- Optional white dashed line (the "median conviction"): A smoothed version over the last few bars. If it crosses zero or diverges from price, it can signal shifting momentum.
index works the same for both bears and bulls. teal bars in the positive are above participation or conviction in both bearish and bullish participation. also allows identifying exhaustion in both bearish and bullish scenarios.
works well equally on lower TFs and higher TFs
Why use it:
It uses robust statistics (rolling median volume + Median Absolute Deviation for a "z-like" score) instead of plain averages — much better at handling noisy or outlier-heavy markets like crypto, forex, or stocks during news events. Then it adds a weighted mix of short-term volume acceleration and relative volume for better context.
Great for:
- Beginners: Start with defaults — the colors and zero line make it easy to see at a glance.
- Day/swing traders: Filter entries/exits with real participation (e.g., teal spike on support bounce = higher odds).
- Anyone learning volume: Shows clearly when moves have "muscle" vs. when they're suspect.
Quick usage tips:
- Best on 5m to 4h charts with good volume data.
- Combine with price action, levels, or your favorite tools — use VCI to confirm conviction.
- Toggle the median line in settings if your timeframe is noisy.
Defaults work well across most assets — adjust "Volume Window" for longer/shorter lookback, or "Recent Weight" to emphasize sudden changes more/less.
I personally like using it on 1min / 5min / 30min charts. Has a microscope / high-rez feel about it when I'm on quicker TFs.
Open-source under © RU55IANROUL3TT3 — feel free to study, fork, or build on it!
Feedback welcomed — what markets/timeframes does it help you with?
WickPressureLibWickPressureLib: The Regime Dynamics Engine
DESCRIPTION:
WickPressureLib/b] is not a standard candlestick pattern library. It is an advanced analytical engine designed to deconstruct the internal dynamics of price action. It provides a definitive toolkit for analyzing candle microstructure and quantifying order flow pressure through statistical modeling.
█ CHAPTER 1: THE PHILOSOPHY — BEYOND PATTERNS, INTO DYNAMICS
A candlestick wick represents a specific market event: a rejection of price. Traditional analysis often labels these simply as "bullish" or "bearish." This library aims to go deeper by treating each candle as a dataset of opposing forces.
The WickPressureLib translates static price action into dynamic metrics. It deconstructs the candle into core components and subjects them to multi-layered analysis. It calculates Kinetic Force , estimates institutional Delta , tracks the Siege Decay of key levels, and uses Thompson Sampling (a Bayesian probability algorithm) to assess the statistical weight of each formation.
This library does not just identify patterns; it quantifies the forces that create them. It is designed for developers who need quantitative, data-driven metrics rather than subjective interpretation.
█ CHAPTER 2: THE ANALYTICAL PIPELINE — SIX LAYERS OF LOGIC
The engine's capabilities come from a six-stage processing pipeline. Each layer builds upon the last to create a comprehensive data object.
LAYER 1 — DELTA ESTIMATION: Uses a proprietary model to approximate order flow (Delta) within a single candle based on the relationship between wicks, body, and total range.
LAYER 2 — SIEGE ANALYSIS: A concept for measuring structural integrity. Every time a price level is tested by a wick, its "Siege Decay" score is updated. Repeated tests without a breakout result in a decayed score, indicating weakening support/resistance.
LAYER 3 — MAGNETISM ENGINE: Calculates the probability of a wick being "filled" (mean reversion) based on trend strength and volume profile. Distinguishes between rejection wicks and exhaustion wicks.
LAYER 4 — REGIME DETECTION: Context-aware analysis using statistical tools— Shannon Entropy (disorder), DFA (trend vs. mean-reversion), and Hurst Exponent (persistence)—to classify the market state (e.g., "Bull Trend," "Bear Range," "Choppy").
LAYER 5 — ADAPTIVE LEARNING (THOMPSON SAMPLING): Uses a Bayesian Multi-Armed Bandit algorithm to track performance. It maintains a set of "Agents," each tracking a different wick pattern type. Based on historical outcomes, the system updates the probability score for each pattern in real-time.
LAYER 6 — CONTEXTUAL ROUTING: The final layer of logic. The engine analyzes the wick, determines its pattern type, and routes it to the appropriate Agent for probability assessment, weighted by the current market regime.
█ CHAPTER 3: CORE FUNCTIONS
analyze_wick() — The Master Analyzer
The primary function. Accepts a bar index and returns a WickAnalysis object containing over 15 distinct metrics:
• Anomaly Score: Z-Score indicating how statistically rare the wick's size is.
• Kinetic Force: Metric combining range and relative volume to quantify impact.
• Estimated Delta: Approximation of net buying/selling pressure.
• Siege Decay: Structural integrity of the tested level.
• Magnet Score: Probability of the wick being filled.
• Win Probability: Adaptive success rate based on the Thompson Sampling engine.
scan_clusters() — Liquidity Zone Detection
Scans recent price history to identify "Pressure Clusters"—zones where multiple high-pressure wicks have overlapped. Useful for finding high-probability supply and demand zones.
detect_regime() — Context Engine
Uses statistical methods to determine the market's current personality (Trending, Ranging, or Volatile). This output allows the analysis to adapt dynamically to changing conditions.
█ CHAPTER 4: DEVELOPER INTEGRATION GUIDE
This library is a low-level engine for building sophisticated indicators.
1. Import the Library:
import DskyzInvestments/DafeWickLib/1 as wpk
2. Initialize the Agents:
var agents = wpk.create_learning_agents()
3. Analyze the Market:
regime = wpk.detect_regime(100)
wick_data = wpk.analyze_wick(0, regime, agents)
prob = wpk.get_probability(wick_data, regime)
4. Update Learning (Feedback Loop):
agent_id = wpk.get_agent_by_pattern(wick_data)
agents := wpk.update_learning_agent(agents, agent_id, 1.0) // +1 win, -1 loss
█ CHAPTER 5: THE DEVELOPER'S FRAMEWORK — INTEGRATION GUIDE
This library serves as a professional integration framework. This guide provides instructions and templates required to connect the DAFE components into a unified custom Pine Script indicator.
PART I: THE INPUTS TEMPLATE (CONTROL PANEL)
To provide users full control over the system, include the input templates from all connected libraries. This section details the bridge-specific controls.
// ╔═════════════════════════════════════════════════════════╗
// ║ BRIDGE INPUTS TEMPLATE (COPY INTO YOUR SCRIPT) ║
// ╚═════════════════════════════════════════════════════════╝
// INPUT GROUPS
string G_BRIDGE_MAIN = "════════════ 🌉 BRIDGE CONFIG ════════════"
string G_BRIDGE_EXT = "════════════ 🌐 EXTERNAL DATA ════════════"
// BRIDGE MAIN CONFIG
float i_bridge_min_conf = input.float(0.55, "Min Confidence to Trade",
minval=0.4, maxval=0.8, step=0.01, group=G_BRIDGE_MAIN,
tooltip="Minimum blended confidence required for a trade signal.")
int i_bridge_warmup = input.int(100, "System Warmup Bars",
minval=50, maxval=500, group=G_BRIDGE_MAIN,
tooltip="Bars required for data gathering before signals begin.")
// EXTERNAL DATA SOCKETS
bool i_ext_enable = input.bool(true, "🌐 Enable External Data Sockets",
group=G_BRIDGE_EXT,
tooltip="Enables analysis of external market data (e.g., VIX, DXY).")
// Example for one external socket
string i_ext1_name = input.string("VIX", "Socket 1: Name", group=G_BRIDGE_EXT, inline="ext1")
string i_ext1_sym = input.symbol("TVC:VIX", "Symbol", group=G_BRIDGE_EXT, inline="ext1")
string i_ext1_type = input.string("volatility", "Data Type",
options= ,
group=G_BRIDGE_EXT, inline="ext1")
float i_ext1_weight = input.float(1.0, "Weight", minval=0.1, maxval=2.0, step=0.1, group=G_BRIDGE_EXT, inline="ext1")
PART II: IMPLEMENTATION LOGIC (THE CORE LOOP)
This boilerplate code demonstrates the complete, unified pipeline structure.
// ╔════════════════════════════════════════════════════════╗
// ║ USAGE EXAMPLE (ADAPT TO YOUR SCRIPT) ║
// ╚════════════════════════════════════════════════════════╝
// 1. INITIALIZE ENGINES (First bar only)
var rl.RLAgent agent = rl.init(...)
var spa.SPAEngine spa_engine = spa.init(...)
var bridge.BridgeState bridge_state = bridge.init_bridge(i_spa_num_arms, i_rl_num_actions, i_bridge_min_conf, i_bridge_warmup)
// 2. CONNECT SOCKETS (First bar only)
if barstate.isfirst
// Connect internal sockets
agent := rl.connect_socket(agent, "rsi", ...)
// Register external sockets
if i_ext_enable
ext_socket_1 = bridge.create_ext_socket(i_ext1_name, i_ext1_sym, i_ext1_type, i_ext1_weight)
bridge_state := bridge.register_ext_socket(bridge_state, ext_socket_1)
// 3. MAIN LOOP (Every bar)
// --- A. UPDATE EXTERNAL DATA ---
if i_ext_enable
= request.security(i_ext1_sym, timeframe.period, )
bridge_state := bridge.update_ext_by_name(bridge_state, i_ext1_name, ext1_c, ext1_h, ext1_l)
bridge_state := bridge.aggregate_ext_sockets(bridge_state)
// --- B. RL/ML PROPOSES ---
rl.RLState ml_state = rl.build_state(agent)
= rl.select_action(agent, ml_state)
agent := updated_agent
// --- C. BRIDGE TRANSLATES ---
array arm_signals = bridge.generate_arm_signals(ml_action.action, ml_action.confidence, i_spa_num_arms, i_rl_num_actions, 0)
// --- D. SPA DISPOSES ---
spa_engine := spa.feed_signals(spa_engine, arm_signals, close)
= spa.select(spa_engine)
spa_engine := updated_spa
string arm_name = spa.get_name(spa_engine, selected_arm)
// --- E. RECONCILE REGIME & COMPUTE RISK ---
bridge_state := bridge.reconcile_regime(bridge_state, ml_regime_id, ml_regime_name, ml_conf, spa_regime_id, spa_conf, ...)
float risk = bridge.compute_risk(bridge_state, ml_action.confidence, spa_conf, ...)
// --- F. MAKE FINAL DECISION ---
bridge_state := bridge.make_decision(bridge_state, ml_action.action, ml_action.confidence, selected_arm, arm_name, final_spa_signal, spa_conf, risk, 0.25)
bridge.UnifiedDecision final_decision = bridge_state.decision
// --- G. EXECUTE ---
if final_decision.should_trade
// Plot signals, manage positions based on final_decision.direction
// --- H. LEARN (FEEDBACK LOOP) ---
if (trade_is_closed)
bridge_state := bridge.compute_reward(bridge_state, selected_arm, ...)
agent := rl.learn(agent, ..., bridge_state.reward.shaped_reward, ...)
// --- I. PERFORMANCE & DIAGNOSTICS ---
bridge_state := bridge.update_performance(bridge_state, actual_market_direction)
if barstate.islast
label.new(bar_index, high, bridge.bridge_diagnostics(bridge_state), textalign=text.align_left)
█ DEVELOPMENT PHILOSOPHY
DafeMLSPABridge represents a hierarchical design philosophy. We believe robust systems rely not on a single algorithm, but on the intelligent integration of specialized subsystems. A complete trading logic requires tactical precision (ML), strategic selection (SPA), and environmental awareness (External Sockets). This library provides the infrastructure for these components to communicate and coordinate.
█ DISCLAIMER & IMPORTANT NOTES
• LIBRARY FOR DEVELOPERS: This script is an integration tool and produces no output on its own. It requires implementation of DafeRLMLLib and DafeSPALib.
• COMPUTATION: Full bridged systems are computationally intensive.
• RISK: All automated decisions are based on statistical probabilities from historical data. They do not predict future market movements with certainty.
"The whole is greater than the sum of its parts." — Aristotle
Create with DAFE.
Sakalau02 10 sessionsMarket Sessions: The Institutional Chronological Compass
The "Market Sessions - By Sakalau" indicator is a high-precision visualization tool designed to map the temporal structure of financial markets directly onto your chart. It acts as a chronological guide, helping traders identify volatility cycles and the institutional "changing of the guard" across global financial hubs.
Here is why this script is essential for your strategy:
🌐 Extensive Global Coverage
Unlike standard indicators that only track the "Big Three" (London, New York, Tokyo), this script by Sakalau supports up to 10 fully customizable sessions. This allows you to track specific liquidity pockets, such as the Frankfurt open, Hong Kong, or Mumbai.
📊 Visualizing Market Phases
The indicator uses a Box-based visual system to encapsulate price action within specific timeframes. This makes it easy to identify:
Accumulation Phases: Typically seen during low-volume sessions (Sydney/Asia) where price moves sideways in a tight range.
Expansion/Trend Phases: Identified when a new session (London/NY) breaks out of the previous session’s high or low.
Distribution/Reversals: Indicated when price reaches the boundaries of a session box and fails to sustain the move.
🧠 Advanced Technical Insights
The script does more than draw shapes; it extracts crucial data for execution:
Open/Close Lines: Highlights the session's starting price versus its current trajectory at a glance.
0.5 Median Level (Equilibrium): Automatically plots the midpoint of each session's range. In institutional trading, this is considered "Fair Value"—a magnet for price and a major support/resistance area.
Performance Management: The Lookback feature ensures your chart remains fast and responsive by limiting processing to a set number of days.
🎨 Customization & Clarity
Display Modes: Choose between Boxes, Zones (background highlights), or Timeline views.
Aesthetics: Total control over colors, opacity, and line styles (solid, dashed, dotted) for a premium visual experience.
P.S
Alții caută confirmări, eu desenez zonele ✍️. O unealtă creată pentru cei care înțeleg că în trading, CÂND tranzacționezi este la fel de important ca CE tranzacționezi — nu uitați să verificați 0.5-ul! — Semnat, Andrei (Sakalau02)🧭🎯⌛💎
DCA Zones: MA100 Buffer (Buy-the-Dip Highlight)Highlights potential DCA buy zones when price drops X% below the 100-period MA.
Daily RVOL (Raw) SMA/EMA + Surge Marker - TP## Daily RVOL (Raw) SMA/EMA + Surge Marker (TP)
This indicator helps you spot **unusual institutional-style participation** by measuring **Daily Relative Volume (RVOL)** and highlighting **sudden RVOL “surges”** compared to the prior day.
### What it shows
**RVOL (raw)** is a ratio:
**RVOL = Today’s Daily Volume ÷ Average Daily Volume (lookback)**
* **1.00x** = normal volume
* **1.50x** = ~50% above normal
* **2.00x** = ~2x normal
The “Average Daily Volume” baseline can be calculated using either:
* **SMA** (simple average), or
* **EMA** (faster-reacting average)
The baseline uses **completed daily bars only**, so it won’t be distorted by a partially completed day.
### Surge Marker (Circle)
The circle prints when **today’s RVOL jumps significantly vs yesterday’s RVOL**:
**RVOL Surge % = (RVOL Today ÷ RVOL Prev − 1) × 100**
So if your surge threshold is **80%**, the circle triggers when:
**RVOL Today ≥ 1.80 × RVOL Prev**
This is meant to detect **volume acceleration**—not just “high volume,” but a **step-change** in participation.
### How to use it (in plain English)
Think of RVOL as a **crowd-size meter**, and the surge circle as a **“big money showed up today”** alert.
It does **not** directly label buy vs sell—it highlights **participation**. Direction comes from price action and context.
### Bullish vs Bearish clues (price + volume together)
Use the circle as a clue, then read the candle and key levels:
**Potential bullish signs**
* Breakout/reclaim of resistance + surge circle (strong confirmation)
* Strong up day (wide range, closes near highs) + surge circle
* **High volume down-close that *does NOT* break lower lows** (holds support)
→ Often means selling pressure was absorbed and price held the line. This can be a **bullish “support/absorption” tell**, especially if the next day confirms with strength.
**Potential bearish signs**
* Breakdown below support + surge circle (distribution confirmation)
* Rejection at resistance on surge circle (supply showing up)
* **High volume up-close that *fails to make higher highs* / can’t push through resistance**
→ Often suggests buying effort was met by strong supply (selling into strength). This can be a **bearish “stall/failure” tell**, especially if the next day confirms with weakness.
### Suggested settings
* **RVOL Length:** 20 is a solid default
* **SMA vs EMA:**
* SMA = smoother baseline
* EMA = reacts faster to recent volume changes
* **Surge Threshold:**
* **80–150%** = rare “shock” participation (fewer, stronger signals)
* **40–80%** = balanced signals
* **10–40%** = more signals, more noise
### Best practice
Use RVOL + surge circles as **confirmation**, not a standalone entry/exit:
* Combine with trend, support/resistance, and candle structure.
* The surge circle says **“participation surged”**—price action tells you **whether it’s accumulation (support) or distribution (supply).**
*(Educational use only. Not financial advice.)*
Price vs OI 24h Relative Change📘 How to Use – Price vs Open Interest (24h Relative Change)
This indicator compares price movement and open interest (OI) change over the last 24 hours, allowing you to better understand market positioning and trader behavior.
It does not generate signals by itself. It is designed as a context and confirmation tool.
🔹 What the Indicator Shows
Price Δ (green area)
The percentage change in price compared to 24 hours ago.
Open Interest Δ (purple area)
The percentage change in open interest compared to 24 hours ago
(based on Binance BTCUSDT perpetual futures).
Zero line
The 24h baseline. Values above zero indicate an increase, below zero a decrease.
🔹 How to Interpret the Relationship
📈 Price ↑ & OI ↑
➡️ New positions are being opened in the direction of the move
This usually confirms trend continuation.
📈 Price ↑ & OI ↓
➡️ Short positions are being closed
This often indicates a short squeeze or short covering rally, which can be less sustainable.
📉 Price ↓ & OI ↑
➡️ New short positions are entering the market
This suggests bearish conviction and possible downside continuation.
📉 Price ↓ & OI ↓
➡️ Positions are being closed on both sides
Often seen during deleveraging, consolidation, or range conditions.
🔹 How to Use It in Practice
Use it as a confirmation tool alongside price action
Compare price structure with OI behavior
Identify whether moves are driven by new positioning or position closures
Works on all timeframes (intraday to swing)
⚠️ Important Notes
This indicator is non-repainting
It uses relative changes, not absolute values
It is best used to understand market structure, not as a standalone trading system
Exponential Moving AveragesEMA of many time units.
Time units include 5, 10, 20, 60, 120, 200.
Enjoy!
% from 50 SMAThis calculates how much in percentage terms the current price is above or below simple 50 MA
Renko TimekeeperRenko charts delete time. This tool puts it back.The Renko Timekeeper prints a number next to every brick telling you exactly how many minutes that specific brick took to form.This converts a "Static Chart" into a "Velocity Chart." It allows you to spot Momentum Decay before the price actually reverses.1. The Visual GuideThe indicator prints a single number (e.g., 4.2) above or below every brick.Text ColorValue RangeEngineering StateInterpretationGREEN< 5.0High VelocityThe "Turbo" is on. Buyers/Sellers are aggressive. HOLD or ADD to the trade.GRAY5.0 – 15.0Normal CruiseThe trend is stable. Standard market breathing. HOLD.RED> 15.0STALL (Warning)The engine has died. The market is struggling to push price. EXIT immediately.
Larry Williams Short-Term Swing (LWS)automated swing trading using larry williams
it identifies swing highs and swing lows while excluding volatility moves like outside or inside bars.
Can be used effectively by combining the indicator on 2 time frames and taking entry on smaller time frame when the signals allign






















