−8 and +8. When the score crosses your threshold, GEDE4 marks an entry, draws the stop, sizes the position, and — if wired up — fires a webhook to the Lasirèn bridge for paper or live execution.
GEDE4 is a single-file Pine v6 indicator. You can paste it into any TradingView account — free or paid. Webhook delivery (the alert() calls that fire to the Lasirèn bridge) requires TradingView's Premium plan; the on-chart panel, signals, and email/push alerts work on every tier.
Grab the script from this site: cryptolwa.io/GEDE4.pine. It's about 650 lines of Pine v6. You can also open the Lasirèn terminal and use the ⚰ GEDE4 tab's COPY TO CLIPBOARD button.
Sign into tradingview.com. Open any chart. At the very bottom of the chart window, find the Pine Editor tab and click it to expand.
In the Pine Editor, select ALL existing default code and replace it with the entire contents of GEDE4.pine. Then click Save (give it a name like GEDE4 · MVV) and click Add to chart.
Saving requires a name, name it something memorable like GEDE4 · Confluence. You can rename later.After clicking Add to chart, the chart should show: a translucent Bollinger Band, a Keltner channel, a VWAP line, and the GEDE4 INTELLIGENCE panel in the top-right of the chart. If the Pine Editor's lower console shows any red errors, copy them to clipboard and ping us — the v6 source is meant to compile clean.
Top-right corner of TradingView, click the cloud icon → Save as… and give it a name like GEDE4 · BTC 1H. Now every time you reopen this chart, GEDE4 loads with all your inputs preserved.
GEDE4 paints in two places: on the chart (overlays + signal markers) and in the Intelligence Panel (a 28-row data table in the top-right). Both are driven by the same underlying calculations — the panel is a readable summary of what the indicator is "thinking" at the most recent bar.
The chart is layered. Each layer means something specific. Once you can name every glyph, you can read the indicator at a glance — most of the time you will not need to consult the panel.
| Glyph | What it is | What it means |
|---|---|---|
| ━ teal band | Bollinger Band (upper / lower) | 20-period mean ± 2σ. Tight bands = compression; wide bands = expansion. Touches at the edges hint at reversal. |
| ┄ amber dashes | Keltner Channel | EMA ± 1.5×ATR. When BB sits INSIDE Keltner you are in a squeeze — a coiled spring. |
| ⚡ yellow tint | Squeeze background | The background flashes yellow when a squeeze just released. Volatility expansion is starting. |
| ⏵ purple tint | Squeeze active | Currently in a BB-inside-Keltner squeeze. Wait for release. |
| ━ yellow line | VWAP | Volume-weighted average price for the session. Below = bearish bias, Above = bullish bias. |
| ┄ gold dashes | Auto-Fibonacci | 0.382, 0.500, 0.618 of the recent 100-bar swing. Confluence zones for entries. |
| ▲ green arrow | LONG signal | Confluence threshold met (default ≥ 4 of 8) AND not already in qualifying state last bar. |
| ▼ red arrow | SHORT signal | Same logic, opposite side. |
| ◆ yellow diamond | Squeeze release | Volatility breakout candidate. Combine with momentum direction. |
| ● teal circle | Bullish divergence | Price made a lower low but RSI or OBV made a higher low. Classic reversal cue. |
| ● orange circle | Bearish divergence | Price higher high, momentum/OBV lower high. Classic top cue. |
| ▲ small green | Pivot Low | 10-bar local low confirmed (looks 10 forward + 10 back, hence drawn slightly delayed). |
| ▼ small red | Pivot High | 10-bar local high confirmed. |
| ▮ green BG | Support zone background | Price within 0.5% of a pivot support level. |
| ▮ red BG | Resistance zone background | Price within 0.5% of a pivot resistance level. |
DECISION cell matches the arrow, and 3) the trade label that prints next to the candle shows you the exact entry / stop / T1 / T2 / T3 / position size. If those three things agree, you've read the signal correctly.The big label that appears next to the candle on a fresh signal looks like this:
🟢 GEDE4 LONG
Entry : 67410.50
Stop : 67100.20
T1 : 68030.10
T2 : 68340.40
T3 : 68961.00
Size : 0.4823 units
Risk$ : $150.00
Score : 6/8
Vol : NORMAL
That label is the trade in plain English. Entry is the close at signal time; Stop is ATR below the candle low (or above the high for shorts); T1/T2/T3 are R:R multiples driven by your Min R:R input; Size is calculated to risk exactly your Risk per Trade % of your Account Size.
The Intelligence Panel is the right-hand table that updates on every bar. Its 28 rows are grouped into four colored sub-headers: MOMENTUM (navy), VOLATILITY (purple), VOLUME (teal), and GEDE4 SIGNAL (maroon).
| Row | What you see | How to read it |
|---|---|---|
| RSI(14) | Number + OVERSOLD ▲ / OVERBOUGHT ▼ / NEUTRAL | Below 30 = oversold (potential long), above 70 = overbought (potential short). |
| MACD | Histogram value + CROSS UP ▲ / CROSS DN ▼ / HIST ▲ / HIST ▼ | Cross up/down is a fresh signal; HIST ▲ means histogram is rising (momentum building). |
| STOCH %K | Number + CROSS UP ▲ below 20 or CROSS DN ▼ above 80 | Fast-moving oscillator; cross at extremes is high-probability reversal. |
| CCI(20) | Number + EXTREME LOW ▲ / EXTREME HIGH ▼ | Past −100 or +100 means trend is unusually stretched; combine with divergences. |
| Williams %R | Number + OVERSOLD ▲ below −80, OVERBOUGHT ▼ above −20 | Mirror of RSI on a different scale; double-confirms the RSI read. |
| ROC(12) | Number + ACCEL ▲ / DECEL ▼ / FLAT | Rate of change. ACCEL means price is moving faster in current direction. |
| MOM SCORE | +4 / ±6 with 🔥 STRONG BULL / 🧊 STRONG BEAR / MILD / MIXED | Composite of the six oscillators above. The single number that summarizes momentum. |
| Row | What you see | How to read it |
|---|---|---|
| BB Width | Percent + 🟣 SQUEEZE / EXPANSION / NORMAL | Width relative to recent average. Squeeze = compression before a move. |
| ATR(14) | Number + percentile (0–100) | Average True Range. The number is "expected candle size"; percentile tells you if volatility is unusual. |
| BB Squeeze | ON (12 bars) / OFF + regime label | Bars in current squeeze. 8+ bars = coiled spring; releases tend to be powerful. |
| Row | What you see | How to read it |
|---|---|---|
| OBV vs SMA | ABOVE / BELOW + ACCUMULATE / DISTRIBUTE | On-Balance Volume above its moving average means smart money is accumulating. |
| MFI(14) | Number + OVERSOLD ▲ / OVERBOUGHT ▼ | Money Flow Index is volume-weighted RSI; better than RSI for spot reversals. |
| VWAP | Value + PRICE ABOVE / PRICE BELOW | Session VWAP is the institutional fair-value line. Reclaim above = bullish. |
| CVD Proxy | NET BUYING / NET SELLING + VOL SPIKE / LOW VOL / NORMAL | GEDE4's cumulative-delta approximation. NET BUYING + VOL SPIKE = aggressive bid. |
| VOL SCORE | +3 / ±4 with 💪 STRONG FLOW / ⚠ WEAK FLOW / MODERATE | Composite of the four volume signals. Single number for volume regime. |
| Row | What you see | How to read it |
|---|---|---|
| HTF Bias | BULL / BEAR / NEUTRAL + timeframe | Daily 20/50/200 EMA alignment. NEVER trade against a strong HTF bias. |
| LONG Score | 6 / 8 + ✅ ENTRY VALID / ⏳ WATCHING | How many of the 8 long checks are currently passing. |
| SHORT Score | 2 / 8 + ✅ ENTRY VALID / ⏳ WATCHING | Same for short side. Both sides are computed in parallel. |
| DECISION | 🟢 GO LONG / 🔴 GO SHORT / ⚪ STANDBY | The final call. R:R is validated; size is computed; if it's GO, trust it. |
| Entry / Stop / T1 | Exact prices for current signal | Mirror of the on-chart label. Use these to set your manual orders. |
| Position Size | Units to buy/sell + Risk $ | Pre-calculated using your Account Size + Risk % so you never over-bet. |
| → Lasirèn | Capital ribbon | Cosmetic — reminds you the signal is destined for the Lasirèn bridge if wired. |
| Divergences | RSI Bull / OBV Bull / RSI Bear / OBV Bear / None detected | Live tally of every divergence GEDE4 is currently seeing. |
Right-click the GEDE4 indicator name on the chart → Settings. You'll see seven tabs, one per input group. Defaults are tuned for 1H crypto; tighter timeframes need slightly smaller windows.
| Risk per Trade (%) | Default 1.5%. The percentage of your account you're willing to lose on a single trade. Drives position size. Industry-standard is 1–2%. |
| Min R:R Ratio | Default 2.0. Reward must be at least this multiple of risk before GEDE4 takes the trade. Drives T1 location. |
| Max Portfolio Heat (%) | Default 8%. The maximum total open risk across all positions. Currently informational; bridge enforces. |
| Portfolio DD Stop (%) | Default 15%. Bridge stops trading if account drawdown hits this. Informational here. |
| Account Size (USD) | Your reference capital for size calculations. Set to your real number — labels use it to compute units. |
| RSI Length / OB / OS | 14 / 70 / 30. Standard. Crypto can be jumpier — 12 / 75 / 25 works on 5m, 14 / 70 / 30 on 1H. |
| MACD Fast / Slow / Signal | 12 / 26 / 9. The classic. Don't change unless you know why. |
| Stoch %K / %D / Smooth | 14 / 3 / 3. Smooth Stochastic. %K crossing %D below 20 is high-quality bottom; above 80 is high-quality top. |
| CCI Length | 20. Marks extreme stretches. |
| ROC Length | 12. Rate of change; how fast price is moving relative to 12 bars ago. |
| Williams %R Length | 14. Inverted-scale oscillator; mirrors RSI. |
| BB Length / Std Dev | 20 / 2.0. The textbook Bollinger setting. |
| ATR Length | 14. Drives stop distance + squeeze + percentile. |
| ATR Stop Multiplier | 2.0. Stop sits 2× ATR away from candle high/low. Loosen to 2.5 for noisy assets, tighten to 1.5 for tight ranges. |
| Keltner Length / Mult | 20 / 1.5. Standard Keltner setup. BB inside Keltner = squeeze. |
| MFI Length | 14. Money Flow Index = volume-weighted RSI. |
| OBV Smooth Length | 5. SMA period for the OBV trend filter. |
| VWAP Source | HLC3 by default. Switch to close if your asset has very wide wicks. |
| Volume Avg Length | 20. Baseline for spike detection. |
| Volume Spike Threshold | 1.5× baseline. Tighter (2.0) for high-noise assets; looser (1.3) for slow alts. |
| Pivot Detection Length | 10. How many bars left + right to confirm a pivot. Bigger = fewer but cleaner pivots. |
| Show Auto-Fibonacci | True. Draws the 0.382 / 0.500 / 0.618 lines on the recent swing. |
| Show Daily Pivot Points | True. Plots S/R triangles on confirmed daily pivots. |
| Fibonacci Swing Lookback | 100. How many bars back GEDE4 scans for the swing high/low. |
| Min Confluence Score (1–8) | 4 by default. How many of the 8 confluence checks must agree to fire. 5 = stricter / fewer trades / higher win rate; 3 = looser / more trades / more noise. |
| Show Trade Labels | The big multi-line label next to fresh signals. Turn off if it's cluttering the chart. |
| Show Intelligence Panel | The 28-row data table. Keep on — that's the indicator's whole point. |
| Higher Timeframe (Trend Bias) | D by default. Set to W when trading 1H crypto for slower-moving bias filtering. |
| Enable Alerts | Master toggle. When false, no alertcondition or alert() fires. |
This is the heart of GEDE4. For every bar, GEDE4 runs eight independent checks for the long side and the same eight for the short side. Each passing check is worth +1. The total is the confluence score, range 0–8.
| # | Check name | LONG passes when… | SHORT passes when… |
|---|---|---|---|
| 1 | HTF Bias | Daily 20 > 50 > 200 EMA and price above 20 | Daily 20 < 50 < 200 EMA and price below 20 |
| 2 | Momentum Score | MOM SCORE ≥ +2 | MOM SCORE ≤ −2 |
| 3 | Volume Score | VOL SCORE ≥ +1 | VOL SCORE ≤ −1 |
| 4 | Value Area | Price touched BB lower, OR at a Fib level, OR at pivot support | Price touched BB upper, OR at a Fib level, OR at pivot resistance |
| 5 | Volatility Catalyst | Squeeze just released, OR coiled (8+ bars) + ROC rising | Squeeze just released, OR coiled + ROC falling |
| 6 | Volume Confirmation | Volume spike (1.5× avg) on a green candle | Volume spike on a red candle |
| 7 | Divergence Bonus | RSI bullish div OR OBV bullish div | RSI bearish div OR OBV bearish div |
| 8 | VWAP Structure | VWAP just reclaimed (close crossed above) | VWAP just rejected (close crossed below) |
A signal fires on the bar that the score first crosses the Min Confluence threshold. If your threshold is 4 and the score goes from 3 to 5, GEDE4 marks a signal. The next bar, if the score is still ≥ 4, GEDE4 does not fire a fresh signal — it only fires once on the transition.
A LONG signal is composed of five computed values that print together as the trade label. Here is the math.
// On the bar where score crosses threshold:
long_stop = bar_low - (ATR × ATR_Stop_Multiplier) // e.g. low − 2×ATR
long_risk = close - long_stop // dollars per unit
long_t1 = close + long_risk × Min_RR // R:R 1:2
long_t2 = close + long_risk × (Min_RR + 1) // R:R 1:3
long_t3 = close + long_risk × (Min_RR + 3) // R:R 1:5
long_size = (Account_Size × Risk_per_Trade%) / long_risk
// Trade only proceeds if T1 > current price (sanity check)
long_rr_valid = long_signal and long_t1 > close
Short side is the mirror — stop is above the bar high, targets are below close.
GEDE4 emits two kinds of alerts: alertcondition (clickable in the TV alert dialog) and alert() (dynamic, with full JSON payload — fires automatically). The alert() variant is what you wire to the Lasirèn bridge.
In the alert dialog, set Condition to GEDE4 · MVV. Pick from the dropdown — the options include Any alert() function call (recommended for webhooks) and the named conditions like GEDE4 Long Entry.
Select a named condition (e.g. GEDE4 Long Entry). Set Actions to Send email or Show pop-up. Click Create. You're done — no webhook needed.
Select Any alert() function call as the condition. In Notifications, check Webhook URL and paste your Lasirèn bridge endpoint:
https://your-bridge.onrender.com/signal
── or ──
https://www.cryptolwa.io/api/lasiren/control // Pages function proxy
Leave the Message field empty — the alert() calls in GEDE4 supply the full JSON body. Set Expiration to Open-ended. Click Create.
Open your Lasirèn bridge logs (Render dashboard / Fly logs). When GEDE4 next prints a signal, you'll see a POST /signal entry with the agent name GEDE4 and a structured JSON body. If you see 401, your LASIREN_HMAC_SECRET env var doesn't match between TradingView and the bridge — fix and redeploy.
The Lasirèn bridge receives three message shapes from GEDE4. Each is a single JSON object with the fields below.
{
"agent": "GEDE4",
"action": "long",
"symbol": "COINBASE:BTCUSD",
"entry": 67410.50,
"stop": 67100.20,
"tp1": 68030.10,
"score": 6,
"vol": "NORMAL",
"htf": "BULL",
"tf": "60",
"time": "1715420400"
}
{
"agent": "GEDE4",
"action": "short",
"symbol": "COINBASE:ETHUSD",
"entry": 3041.20,
"stop": 3082.50,
"tp1": 2958.60,
"score": 5,
"vol": "ELEVATED",
"htf": "BEAR",
"tf": "60",
"time": "1715420400"
}
{
"agent": "GEDE4",
"action": "squeeze_release",
"symbol": "BYBIT:SUIUSDT",
"bars": 18,
"vol": "QUIET",
"mom": 3,
"time": "1715420400"
}
The Lasirèn bridge validates the HMAC signature header, cross-checks with GEDE2 (gas + simulation) and GEDE3 (pattern), then routes to BRIGITTE for execution (paper or live).
Default settings are tuned for the 1-hour crypto chart. Use these adjusted values for other timeframes:
| TF | Min Confluence | HTF Bias | ATR Stop Mult | Notes |
|---|---|---|---|---|
| 5m | 5 | 1H | 1.5 | Very noisy. Tighten everything. Avoid news windows. |
| 15m | 5 | 4H | 1.8 | Good for intraday swings. Standard crypto sweet spot. |
| 1H (default) | 4 | D | 2.0 | The default. Best signal-to-noise for crypto. |
| 4H | 5 | D | 2.0 | Slower, cleaner. Allow looser threshold for swing trades. |
| 1D | 5 | W | 2.5 | Position trades. Weekly bias filter. Wider stops. |
The five issues users hit most often — and the exact fix.
| Symptom | Fix |
|---|---|
| Script won't compile | Re-download GEDE4.pine — paste often drops trailing characters. The Pine Editor console names the failing line. |
| No signals appearing | Lower Min Confluence Score from 4 to 3. Confirm Show Trade Labels is on. Wait — a 1H signal can take hours. |
| Too many signals (noise) | Raise Min Confluence Score to 5. Switch HTF Bias to Weekly. Increase ATR Stop Multiplier. |
| Webhook 401 / Unauthorized | LASIREN_HMAC_SECRET in TradingView and on the bridge must be identical. Re-paste both. |
| Webhook 404 / 405 | Bridge URL is wrong. Verify it's up: curl https://your-bridge.onrender.com/health. |
| ATR | Average True Range. Measures volatility — how big a typical candle is. |
| BB / Bollinger Bands | 20-period mean ± 2 standard deviations. Statistical envelope around price. |
| Confluence | Multiple independent signals agreeing simultaneously. GEDE4's edge. |
| CVD | Cumulative Volume Delta. Running tally of buy volume minus sell volume. |
| Divergence | Price and an oscillator move in opposite directions. Classic reversal cue. |
| Fibonacci | 0.236 / 0.382 / 0.500 / 0.618 / 0.786 of a swing. Magnet levels. |
| HTF | Higher Timeframe. Used for bias filtering — never trade against it. |
| Keltner Channel | EMA ± multiple of ATR. Used with BB to detect squeezes. |
| MACD | Moving Average Convergence Divergence. Trend-following momentum indicator. |
| MFI | Money Flow Index. Volume-weighted RSI. Better for catching reversals. |
| OBV | On-Balance Volume. Running total of volume on green vs red candles. |
| Pivot | Local high/low confirmed by N bars on either side. |
| R:R | Risk-to-reward ratio. 1:2 means risking $1 to potentially make $2. |
| ROC | Rate of Change. Percent change over N bars. Measures velocity. |
| RSI | Relative Strength Index. The classic oscillator, 0–100. |
| Squeeze | BB sitting entirely inside Keltner. Compression before a move. |
| Stochastic | Fast-moving oscillator showing position within recent range. |
| VWAP | Volume-Weighted Average Price. Institutional fair-value line for the session. |
| Williams %R | Inverted-scale oscillator. Mirrors RSI on a −100 to 0 scale. |