Stochastique Divergences IndicatorHello,
I made a custom indicator.
Divergences with stochastique and price are really strong signals.
About the indicator
A bullish divergence happens when the stoch K makes a higher low and is depicted by a green triangle up.
A bearish divergence happens when the stoch K makes a lower high and is depicted by a red triangle down.
This script is the base for my next strategy that I should upload soon.
I will grant access (to this script and my others) to people willing to make a small donation.
Here is my BTC address : 19sVQvCDmVfEACq7BiMnWSMqFPZ8qfSQ2K
If you prefer ETH : 0xc8a5d3a63a05db0c2363ea1c08b37a01cce9ebfb
Send me a Private Message with the ID of the transaction
If you want to do some forward testing first, send me a message.
Also check blockchainfiesta.com
Cari skrip untuk "bear"
wTF50This is a customized trend filter that has several uses:
It helps identify trend direction, either bullish or bearish
It distinguishes between a pullback and a trend reversal
It helps identify areas where traders should stand aside
It highlights areas of consolidation
dTF50This is a customized trend filter that has several uses:
It helps identify trend direction, either bullish or bearish
It distinguishes between a pullback and a trend reversal
It helps identify areas where traders should stand aside
It highlights areas of consolidation
OBV divergence hidden and regular on both bearish and bullish.OBV (on balance volume) divergence indicator with hidden and regular signal on both bearish and bullish.
CMYK VRMI◊ Introduction
This script indicates the relative movement of price x volume.
◊ Origin
Based on 'The Relative Momentum Index' by Roger Altman : February, 1993 issue of Technical Analysis of Stocks & Commodities magazine.
While RSI counts up and down days from close to close, the Relative Momentum Index counts up and down days from the close relative to a close x number of days ago.
This results in an RSI that is smoother. The input has been changed to the change of a smoothed close multiplied by a smoothed volume.
The polarity of VRMI indicates bearish/bullish movement.
◊ Adjustments
CMYK color theme applied.
◊ Usage
VRMI indicates the force the market moves with.
◊ Future Prospects
-
◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊
CMYK VRMI RAYS ◊ Introduction
Introducing VRMI in this script, an RMI based on price movement and volume, to indicate bullish and bearish trends.
This script marks the background depending on RMI <> VRMI , VRMI polarity and large buy/sell sprees.
◊ Origin
Based on 'The Relative Momentum Index' by Roger Altman : February, 1993 issue of Technical Analysis of Stocks & Commodities magazine.
While RSI counts up and down days from close to close, the Relative Momentum Index counts up and down days from the close relative to a close x number of days ago.
This results in an RSI that is smoother.
In addition VRMI reacts quick, it is used to cut off latency from RMI, and it's polarity indicates the beginning and end of a trend.
Large buy sell sprees and detected in their proportion with an sma on the volume
◊ Adjustments
CMYK color theme applied.
◊ Usage
This indicator can be used to detect trends and mark reversals.
◊ Prospects
◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊
Bullish and Bearish Engulfing Patterns auto detectionThis simple indicator detects automatically most important bullish and bearish candlestick patterns formations. Used to locate potential supply and demand imbalances.
Copyright 2017 Alfonso Moreno www.set-and-forget.com
Super Envolvente (Bullish y Bearish)Identificador de Super-envolventes (SE), se encarga de darle un color verde a la SE alzista (Bullish) verde y rojo a la bajista (Bearish).
Bears VS BullsThis indicator will work on ANY instrument.
The red line is a moving average of ONLY sellers in the market.
The blue line is a moving average of ONLY buyers in the market.
The period or "length" of the individual moving averages can be adjusted in the indicator settings.
The default, it is set to 50.
Buying and selling trends often provide indications of market moves such as the most recent bottom in Cryptocurrencies.
Feel free to comment and share any indicator concepts or ideas for content you would like to see added to the Technical Indicator Bundle on www.kenzing.com
Bearish Trailing stopIt is a trailing SL. Works very well. Good good very good. Looks like my description needs more, so here is more random text.
bearish Price Below PDL - Complete Multi-Confirmation Alert🎯 KEY IMPROVEMENTS:
1. Enhanced Alert Visibility:$jmoskyhigh
✅ HUGE triangle down marker with "SELL" text
✅ Alert title: "SELL SIGNAL - PDL BREAKDOWN CONFIRMED"
✅ Prominent info panel with red theme
✅ Clear "SELL ALERT: TRIGGERED" status
2. Better Visual Feedback:
Red frame around info panel
Larger shapes and markers
Color-coded confirmations (green = OK, red = FAIL)
Progress percentage displayed
Breakdown price label
3. Complete Alert System:
Main Alert: "SELL SIGNAL - PDL BREAKDOWN CONFIRMED"
Early Warning: "PDL Breakdown Started - Monitoring"
Reset Alert: "Confirmation Lost - Breakdown Reset"
Bearish signal using Point of Control (POC) with PAC by guruThis indicator code helps traders identify potential sell opportunities using several important technical indicators:
Point of Control (POC) – This is the price level where the most volume was traded over the past several days.
Previous Day's Low – This shows the lowest price reached during the previous day.
PAC (Price Action Channel) EMA – These are two moving averages (one based on the low price and one based on the close price) that help determine if the price is trending within a certain range.
Volume SMA – This is a 3-day simple moving average (SMA) of volume, which helps filter out signals based on market activity.
What the Script Does:
Point of Control (POC):
The script looks at the last 50 days (configurable) and calculates which price level had the highest trading volume.
It then plots a red line on the chart at the POC level. This is important because it helps identify areas where there was strong market interest in the past.
Volume Moving Average:
The script calculates a 3-day SMA of volume, but it excludes the current day to avoid premature signals based on today’s trading.
The volume SMA is used to ensure there’s enough market activity (with a threshold set to 25 units) before triggering a sell signal.
Price Action Channel (PAC) EMA:
The PAC consists of two exponential moving averages (EMAs):
The PAC Low EMA: This is based on the low prices over the last 34 periods (configurable).
The PAC Close EMA: This is based on the closing prices over the last 34 periods.
These EMAs help determine if the price is trending above or below certain price levels.
Sell Signal Logic: The script checks three conditions before displaying a "Sell" signal:
Price Below POC and Previous Day’s Low:
The close price must be below both the Point of Control (POC) and the previous day's low.
Volume SMA Above 25:
The 3-day volume SMA must be greater than 25. This ensures the signal only triggers when there’s enough trading volume in the market.
Today’s Low is Above PAC EMAs:
Today's low price must be above both the PAC low EMA and the PAC close EMA. This prevents sell signals when prices are already significantly below the PAC, indicating possible exhaustion in the downtrend.
If all three conditions are met, the script will display a red "Sell" label on the chart, signaling a potential selling opportunity.
No Sell Signal if Price Reverses:
If the price crosses back above the POC or the previous day's low, the script will remove the sell signal and reset for a new opportunity.
Summary of Conditions:
For the script to display a "Sell" label:
The close price must be below the Point of Control (POC) and the previous day’s low.
The 3-day volume SMA (excluding today) must be greater than 25 units.
The low price of the current day must be above both the PAC low EMA and the PAC close EMA.
If these conditions are met, a red sell label appears on the chart as a potential signal for a short (sell) trade.
Bearish FS Continuation S1BB - baby bar / inside bar
DF - downflow, meaning 20MA below 50MA
EXE - execution bar, indicator to short
Mainly to identify execution bar for shorting using inside bar identification and force top
Guneet-ScalperBearish trend candle color change to red with sell print
Bullish trend candle color change to green with buy print
thanks
jas toor
ICT DAILY BIAS PROICT DAILY BIAS PRO
-----
Introduction
The ICT TTRADES DAILY BIAS | AMD Session Bias & Draw on Liquidity is an all-in-one indicator built by professionals upon TTrades' Daily Bias Candle methodology and ICT's Power of Three (PO3) framework. This indicator transforms complex multi-session price action into an intuitive, actionable trading system by visualizing the accumulation, manipulation, and distribution phases across the Asia, London, and New York sessions.
By combining Higher Timeframe (HTF) candle visualization on Lower Timeframes (LTF), intelligent Draw on Liquidity (DOL) projections, and precision entry tools like CISD, Equilibrium, and Imbalances, this indicator provides traders with a comprehensive view of institutional price delivery—from the initial manipulation to the final expansion.
The indicator dynamically adapts to daily conditions, automatically identifying bias direction based on session sweeps and expansion candle analysis. All visual elements remain stable and non-repainting within their defined time periods, offering traders reliable levels for analysis and execution.
Every feature is fully customizable, allowing traders to tailor the indicator to their specific trading style, preferred sessions, and visual preferences.
This indicator is built to guide traders through the daily market narrative, combining Daily Bias, AMD / PO3 session structure, Draw on Liquidity, and precision entry confirmations into a clean, non-repainting framework.
---
key features:
🕯️ HTF Candle Visualization
View Higher Timeframe session candles directly on your Lower Timeframe chart. Supports 1D → 1H fractal pairings, allowing macro structure awareness with micro-precision execution.
---
TTrades Daily Bias Logic
The indicator uses multi-day price action analysis comparing D-1 (yesterday) against D-2 (day before yesterday) to determine today's directional bias:
Three Main Pattern Types:
| Pattern | Condition | Bias |
|---|---|---|
| Break (Expansion) | D-1 closes ABOVE D-2 High or BELOW D-2 Low | Continuation |
| Failure to Break (FTB) | D-1 wicks beyond D-2 High/Low but closes back inside | Reversal
| Inside Bar | D-1 doesn't test either D-2 High or Low | Neutral |
Break (Expansion Day):
- Bullish: D-1 closes ABOVE D-2's High → expect continuation higher
- Bearish: D-1 closes BELOW D-2's Low → expect continuation lower
- Requires ≥50% body for conviction (weak body = Neutral)
Failure to Break (FTB):
- Bullish FTB: D-1 wicks BELOW D-2 Low but closes inside → liquidity sweep below → bullish reversal
- Bearish FTB: D-1 wicks ABOVE D-2 High but closes inside → liquidity sweep above → bearish reversal
- If FTB candle has >50% contradicting body → marked as Weak/Neutral
50% Continuation Level:
- Expansion Day: 50% of D-1's full candle range
- FTB Day: 50% of D-1's manipulation wick only
- Zone between daily open and 50% level highlights high-probability continuation area
- Disappears if violated by Htf candle close
---
🕯️ session Visualization (AMD/PO3)
View Higher Timeframe session candles directly on your Lower Timeframe chart. Supports 1D to 1H pairings.
What it helps you see:
profiling sessions
• When Asia → London → NYC manipulate, reverse, or expand a range
• Session-to-session momentum and volatility shifts
• session Liquidity highs/lows and market narrative
This tool helps traders apply ICT concepts like PO3, It’s particularly useful for identifying liquidity zones, Killzone reactions, and higher timeframe market structure while executing on a lower timeframe
Session Breakdown:
AMD Candle Construction
Session Breakdown (EST)
- CBDR — 14:00 – 20:00
Central Bank Dealers Range (pre-Asia positioning)
- Asia (C2) — 20:00 – 00:00
Accumulation, range establishment & liquidity build
- London Killzone (C3) — 02:00 – 05:00
Manipulation phase, sweeps Asia liquidity
- New York Killzone (C4) — 07:00 – 10:00
Distribution & true expansion
Each candle begins after the previous session ends, fully capturing the Accumulation → Manipulation → Distribution cycle:
- C1 — Starts at CBDR open
- C2 — Asia session
- C3 — opens Asia close and closes London Killzone close
- C4 — opens after London kz close → NYC expansion
This structure reveals where price is in the daily delivery process at a glance.
---
⏰ Killzone Auto Marking
Automatically plots London and New York Killzones with:
- DST-aware session timing
- Custom colors & transparency
- Clean, unobtrusive chart visuals
Trade only during institutional execution windows.
---
🔄 CISD — Change in State of Delivery
Identifies true order-flow shifts:
- Bullish & bearish CISD detection
- Clear visual markers on structure change
- Ideal entry confirmation inside killzones
Helps filter fake moves and confirms institutional intent.
---
📊 Imbalances / Fair Value Gaps (FVG)
Automatic detection of price inefficiencies:
- Configurable lookback period
- Highlights internal range liquidity and premium entry zones
Perfect for precision entries aligned with bias.
---
📈 SMT Divergence (Smart Money Technique)
Detects divergence between correlated pairs:
- Pivot-based high & low comparison
- Adjustable sensitivity
- Visual divergence lines
Reveals hidden institutional positioning when markets fail to confirm.
---
⚖️ Equilibrium (EQ) & T-Spot Levels
Key price levels for reversals and continuations.
Equilibrium (50%)
- Mean reversion level
- Premium vs discount clarity
- Bias validation or invalidation
T-Spot
- Anticipated wick-reaction zone
- Based on TTrades methodology
- Dynamically adapts to bias & session structure
---
🎯 Draw on Liquidity (DOL) Targets
Automatically projects where price is likely headed:
- Previous Day High / Low — External liquidity
- C2 (Asia) High / Low — Internal session liquidity
- Clear labels & target tracking
---
📋 Real-Time Bias Dashboard
A compact information panel showing:
- Daily expansion status
- Current directional bias
- Active liquidity targets
- SMT divergence counts
Fully customizable position, size, and visibility.
---
⚙️ Full Customization
Every element is adjustable:
- Colors, line styles & transparency
- Visibility toggles per feature
- Lookback periods & sensitivity controls
Designed to fit any ICT-based trading style.
---
🔍 Quick Feature Summary
| Feature | Purpose |
|---|---|
| AMD Candles | Visualize accumulation → manipulation → distribution |
| HTF Candles | Higher timeframe structure on LTF |
| DOL Targets | Smart liquidity-based price objectives |
| Killzones | Optimal institutional trading windows |
| CISD | Order-flow reversal confirmation |
| Imbalances (FVG) | Precision entry zones |
| SMT Divergence | Multi-pair smart money signals |
| EQ / T-Spot | Key reversal & continuation levels |
| Dashboard | Live bias & target tracking |
---
How to Use
1. **Add to Chart**
Apply the indicator to any Forex pair.
2. **SMT Comparison Symbol**
By default, SMT tracks **GBPUSD**. Change this in the settings to match a correlated pair for your chart:
- Trading **EURUSD** → Use **GBPUSD** as the comparison
- Trading **GBPUSD** → Use **EURUSD** as the comparison
- Trading **US30** → Use **NAS100** as the comparison
3. **Wait for Bias**
Let the indicator establish direction during **C3 (London)**. Once Asia levels are swept, **DOL targets appear automatically**.
4. **Trade the Killzones**
Enter during **London Killzone (02:00–05:00)** or **New York Killzone (07:00–10:00)** when price reaches DOL targets.
5. **Confirm with CISD**
Look for **Change in State of Delivery (CISD)** signals to confirm reversals at key levels.
6. **Use Imbalances**
Fair Value Gaps (FVGs) provide precision entry points — enter when price returns to fill the gap.
7. **Check Dashboard**
Monitor real-time bias, active targets, and SMT divergence count at a glance.
---
## Pro Tips
- Disable features you don’t use to keep the chart clean.
- Adjust the imbalance days back setting based on your trading style.
- Use killzone boxes to avoid trading outside optimal windows.
Non-Repainting • Fully Customizable • Forex, Indices & Crypto Compatible
Goldie Engine v2 (Clean Build)Purpose: A Smart Money Concepts (SMC) trading indicator that identifies high-probability institutional trading setups based on multiple confluence factors.
Key Features:
Higher Timeframe (HTF) Trend Filter
Analyzes 4-hour, 2-hour, and 30-minute timeframes
Confirms bullish/bearish trend alignment across all three timeframes
BUY: All bullish conditions met
TSELL: All bearish conditions met
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.
NY OPEN REVERSAL SCANNERNY OPEN REVERSAL SCANNER
Es un sistema de trading institucional diseñado para capturar giros de mercado de alta probabilidad justo después de la apertura de Nueva York (9:30 AM EST). Este indicador no sigue tendencias ciegas; su objetivo es detectar cuándo el mercado ha "atrapado" a los traders minoristas fuera del rango inicial para operar el regreso triunfal al valor real.
🔹 ¿Por qué es diferente?
La mayoría de los traders pierden dinero operando rupturas (breakouts) que fallan. NY OPEN REVERSAL SCANNER voltea la tortilla: utiliza un escáner de volatilidad avanzada para identificar el agotamiento y las señales de reversión en los extremos del rango de apertura.
🔹 Lógica de Alta Precisión
Filtro de Volatilidad Real (ATR %): El sistema ignora los días de bajo volumen. Solo activa señales en activos que han movido un porcentaje significativo de su ATR diario en los primeros 15 minutos, garantizando que haya suficiente liquidez para una reversión potente.
Screener Multiactivo 8-en-1: Monitorea simultáneamente Oro, Índices y Forex. El panel te dirá exactamente qué activo está "LISTO" (en zona de trampa) y cuál está en espera.
Confirmación de Acción del Precio (Price Action): El script busca patrones específicos de capitulación fuera de los límites de Nueva York:
Hammer & Inverted Hammer: Identifica patrones de agotamiento.
Bullish/Bearish Engulfing: Detecta el momento exacto en que el flujo de órdenes cambia de dirección fuera del rango.
Filtro de Volumen Inteligente: Solo se marcan las rupturas que muestran un volumen inusual, lo que suele preceder a los movimientos de "limpieza" o barrido de stops.
🔹 Ventajas Exclusivas
✅ Cero Repintado: Las alertas y etiquetas se confirman solo al cierre de la vela, dándote entradas sólidas y verificables.
✅ Niveles Magnéticos: Visualiza el High y Low de la apertura como zonas institucionales que el precio suele testear repetidamente.
✅ Alertas "Push" Optimizadas: Recibe notificaciones directamente en tu móvil o escritorio cuando se confirma una trampa de liquidez con un patrón de vela.
🔹 Guía Rápida de Operación
Paso 1: Espera a que el Screener marque un activo como "LISTO" (Volatilidad confirmada).
Paso 2: Observa si el precio sale del rango sombreado.
Paso 3: Si aparece una etiqueta de Hammer o Engulfing fuera del rango, busca la entrada en sentido contrario (hacia el interior del rango).
---------------------------------------------------------------------------------------------------------------------
NY OPEN REVERSAL SCANNER
NY OPEN REVERSAL SCANNER is an institutional-grade trading system engineered to capture high-probability market reversals immediately following the New York Open (9:30 AM EST). This indicator doesn't just blindly follow trends; its core objective is to detect when the market has "trapped" retail traders outside the initial range, allowing you to trade the reversal back to fair value.
🔹 What makes it different?
Most traders lose money by trading breakouts that fail. NY OPEN REVERSAL SCANNER flips the script: it utilizes an advanced volatility scanner to identify exhaustion and reversal signals at the extreme edges of the opening range.
Shutterstock
🔹 High-Precision Logic
True Volatility Filter (ATR %): The system ignores low-volume days. It only activates signals for assets that have moved a significant percentage of their Daily ATR within the first 15 minutes, ensuring there is enough momentum for a powerful reversal.
8-in-1 Multi-Asset Screener: Monitor Gold, Indices, and Forex simultaneously. The real-time dashboard tells you exactly which asset is "READY" (in the trap zone) and which is on standby.
Price Action Confirmation: The script scans for specific capitulation patterns outside the New York boundaries:
Hammer & Inverted Hammer: Identifies key exhaustion points.
Bullish/Bearish Engulfing: Detects the exact moment order flow shifts direction outside the range.
Smart Volume Filter: Breakouts are only flagged when they show unusual volume spikes, which typically precede "liquidity grabs" or stop-run maneuvers.
🔹 Exclusive Features
✅ Zero Repainting: All alerts and labels are confirmed only at the close of the candle, providing solid, verifiable entry points.
✅ Magnetic Levels: Automatically plots the Opening High and Low as institutional zones that price frequently retests throughout the session.
✅ Optimized Push Alerts: Get notified on your mobile or desktop the moment a liquidity trap is confirmed by a candlestick pattern.
🔹 Quick Start Guide
Step 1: Wait for the Screener to mark an asset as "READY" (Volatility confirmed).
Step 2: Observe if the price moves outside the shaded opening range.
Step 3: If a Hammer or Engulfing label appears outside the range, look for an entry in the opposite direction (targeting the interior of the range).
SLC: Hybrid Strategy v1 This indicator is the ultimate "Map" and "Compass" for the market, fusing Trend Following (Pro-Trend) with Smart Money Concepts (SMC / Counter-Trend). It visualizes the Liquidity Pools (Stop-Loss Clusters) targeted by institutional algorithms and the Traps (Fake-outs) that occur there, highlighting high-probability entry zones.
🚀 3 Key Features
1. Trend & Context (The Map)
Instantly identify the current market bias simply by looking at the background color and cloud.
Green: Up Trend (Bullish / Long Bias)
Red: Down Trend (Bearish / Short Bias)
Gray: Ranging Market (Neutral)
2. Liquidity Visualization (The Magnets)
Automatically draws key levels where price is magnetically attracted. These serve as excellent Take Profit targets or Reversal points.
Horizontal: Previous Day/Week Highs & Lows (PDH/L, PWH/L).
Session: Asia, London, and New York session ranges.
Psychological: Round numbers (e.g., 150.00, 1.1000).
Anchor: Daily Open (DO), Weekly Open (WO), and Gaps (NDOG).
Structure: Market Structure points (HH/LL/EqH/EqL).
3. Entry Signals (The Trigger)
Detects specific price action patterns at key levels to signal potential entries.
⚡TRAP (God Trap): A signal indicating a "Liquidity Grab" or "Fake-out" after a level is breached. A powerful reversal setup.
🟡 Golden Dot: Suggests a potential rebound from oversold conditions (Long consideration).
⚪ Silver Dot: Suggests a potential rejection from overbought conditions (Short consideration).
🎯 High-Probability Workflow
Check Context: Is the background Green (Bullish) or Red (Bearish)?
Wait: Allow price to gravitate towards the Liquidity Lines (dotted lines) or Anchor points.
Execute: Look for a ⚡TRAP or Dot signal near these zones to enter.
Trade alongside institutional money flow by identifying exactly when retail positions are being trapped.
Legend (Chart Lines)
Red/Blue Dotted Lines: Previous Day High/Low (Critical Support/Resistance).
Yellow Line: Weekly Baseline (Monday Range / Weekly Open).
Blue/Teal/Orange Boxes: Market Session Ranges (Tokyo/London/NY).
Psy ($$$): Psychological "Invisible Walls".






















