PROTECTED SOURCE SCRIPT
Telah dikemas kini Trident Pattern [SpeculationLab]

This indicator is based on the increasingly popular Trident strategy, and is best suited for the 30-minute timeframe. It performs particularly well on naturally bullish instruments such as gold, Bitcoin, and Nasdaq.All components of this indicator are original work by Speculation Lab.
Rather than stacking random features, this script is designed as a modular structure where each part works in synergy to build the Trident logic.
🔧 Modules Included:
Session Highlight — Visual display of the London Kill Zone
5 Customizable EMAs — Fully adjustable length, color, and toggling
Bullish Fair Value Gap (FVG) detection
Four types of Doji candlestick recognition
🧫 Logic Breakdown:
1. Time Session Filter
By default, the indicator highlights the London Kill Zone, defined as 03:00–06:30 New York time.Users can freely adjust the time zone, time range, and background color, with preconfigured zones including New York, London, Tokyo, Shanghai, and Sydney.
⚠️ Note: To maintain flexibility, the London Kill Zone is not enforced as a mandatory entry condition.
Users may apply it as an optional filter based on their own trading style.
2. 5 EMA Trend Filter
The script uses a five-EMA structure to confirm market trend.The default EMA lengths are 5, 9, 13, 21, and 200.A valid entry requires:
EMAs 5, 9, 13, 21 stacked in descending order
AND the 1-hour close is above EMA(200)
All EMAs are fully customizable and can be toggled on/off.
3. Bullish Fair Value Gap (FVG)
Bullish FVGs are detected using a 3-bar logic, from high[3] to low[1].To filter noise, the gap must be greater than 0.7 × ATR(14) by default.Both the ATR period and multiplier are adjustable.
The FVG Extend setting has two roles:
It controls how many bars the FVG box extends to the right (default: 20)
It defines the active window for confirming entries within the FVG zone
Users can fully customize the box color, text, and center line.
4. Doji Detection
The script detects four types of Doji candlesticks:
Standard Doji
Long-legged Doji
Dragonfly Doji
Gravestone Doji
The Body Ratio setting controls how small the candle body must be relative to the full range (default ≤ 0.1).Long Wick Ratio and Short Wick Ratio further help fine-tune wick length criteria.
✅ Entry Signal Logic:
A Trident entry is confirmed when all the following conditions are met:
Trend Filter Passes
EMAs are stacked: 5 > 9 > 13 > 21
1H close is above EMA(200)
A Doji candle appears inside an active FVG zone
The next candle closes below the Doji’s high
If all conditions are satisfied, a Trident signal is triggered at the close of the confirming candle.
⚠️ Disclaimer
This indicator is intended for educational and research purposes only. It does not constitute financial advice or trading signals.Trading involves high risk. Please act according to your own risk management.Speculation Lab and the author bear no responsibility for any financial outcomes resulting from the use of this script.
本指标基于近年来日益流行的 Trident(三叉戟)策略,推荐使用在 30分钟时间框架,尤其适用于黄金、比特币、纳斯达克等具有自然上涨倾向的交易品种。本指标由 Speculation Lab 原创开发,结构严谨,逻辑清晰。
本指标采用模块化设计,各部分功能相辅相成,共同构建三叉戟策略逻辑,而非杂乱堆砌。
🔧 指标包含以下功能模块:
交易时段高亮 — 默认显示 伦敦杀戮区
五条可调节 EMA 均线 — 长度与颜色可自定义,模块可单独开关
看涨 Fair Value Gap(公平价值缺口)检测
四种 Doji(十字星)K线形态识别
🧫 逻辑说明:
1. 交易时段过滤
默认高亮显示的伦敦杀戮区为 纽约时间03:00–06:30。用户可自由调整 参考时区、具体时段和 背景颜色,支持预设时区包括纽约、伦敦、东京、上海和悉尼。
⚠️ 说明:为保持策略灵活性,伦敦杀戮区并非强制入场条件。
是否采用此过滤,可由用户自行决定。
2. 趋势过滤(五条EMA)
该指标采用五条 EMA 来确认市场趋势。默认长度为 5、9、13、21、200。入场信号要求满足以下条件:
EMA 5、9、13、21 从上到下依次排列(多头排列)
且 1小时图上的收盘价高于 EMA200
所有均线均可单独启用/关闭,长度与颜色均可自定义。
3. 看涨 FVG 区域识别
FVG 使用 3 根K线结构进行检测,从 high[3] 到 low[1]。默认要求缺口 大于等于 0.7 × ATR(14),以过滤微小无效缺口。ATR周期与乘数均可自定义设置。
“FVG Extend”参数有两个作用:
控制图表上 FVG 区域箱体的右延伸长度(默认20根K线)
用作 FVG 活跃期的判断标准,仅在此区间内出现的 Doji 才会被视为有效信号触发条件
用户可自由设置 FVG 的背景颜色、文字样式与中线颜色。
4. Doji(十字星)识别
支持以下四种常见 Doji 形态识别:
标准十字星
长腿十字星
蜻蜓线(下影线长)
墓碑线(上影线长)
“Body Ratio” 控制实体占K线全长的比例,默认不超过0.2。“Long Wick Ratio” 与 “Short Wick Ratio” 可进一步调节影线长度识别标准。
✅ 入场信号逻辑:
符合以下所有条件时,触发三叉戟入场信号:
趋势过滤通过
EMA 依次排列为 5 > 9 > 13 > 21
且 1小时收盘价高于 EMA200
在 FVG 区域内出现有效 Doji 十字星
下一根K线收盘价 低于 Doji 的最高价
若以上条件均满足,则在确认K线收盘时触发三叉戟入场信号。
⚠️ 免责声明 Disclaimer
本指标旨在提供技术分析工具,仅用于教育与研究目的,不构成任何投资建议或交易指令。交易具有高风险,请根据自身风险承受能力合理操作。使用本脚本所导致的任何盈亏,作者与 Speculation Lab 不承担任何责任。
Rather than stacking random features, this script is designed as a modular structure where each part works in synergy to build the Trident logic.
🔧 Modules Included:
Session Highlight — Visual display of the London Kill Zone
5 Customizable EMAs — Fully adjustable length, color, and toggling
Bullish Fair Value Gap (FVG) detection
Four types of Doji candlestick recognition
🧫 Logic Breakdown:
1. Time Session Filter
By default, the indicator highlights the London Kill Zone, defined as 03:00–06:30 New York time.Users can freely adjust the time zone, time range, and background color, with preconfigured zones including New York, London, Tokyo, Shanghai, and Sydney.
⚠️ Note: To maintain flexibility, the London Kill Zone is not enforced as a mandatory entry condition.
Users may apply it as an optional filter based on their own trading style.
2. 5 EMA Trend Filter
The script uses a five-EMA structure to confirm market trend.The default EMA lengths are 5, 9, 13, 21, and 200.A valid entry requires:
EMAs 5, 9, 13, 21 stacked in descending order
AND the 1-hour close is above EMA(200)
All EMAs are fully customizable and can be toggled on/off.
3. Bullish Fair Value Gap (FVG)
Bullish FVGs are detected using a 3-bar logic, from high[3] to low[1].To filter noise, the gap must be greater than 0.7 × ATR(14) by default.Both the ATR period and multiplier are adjustable.
The FVG Extend setting has two roles:
It controls how many bars the FVG box extends to the right (default: 20)
It defines the active window for confirming entries within the FVG zone
Users can fully customize the box color, text, and center line.
4. Doji Detection
The script detects four types of Doji candlesticks:
Standard Doji
Long-legged Doji
Dragonfly Doji
Gravestone Doji
The Body Ratio setting controls how small the candle body must be relative to the full range (default ≤ 0.1).Long Wick Ratio and Short Wick Ratio further help fine-tune wick length criteria.
✅ Entry Signal Logic:
A Trident entry is confirmed when all the following conditions are met:
Trend Filter Passes
EMAs are stacked: 5 > 9 > 13 > 21
1H close is above EMA(200)
A Doji candle appears inside an active FVG zone
The next candle closes below the Doji’s high
If all conditions are satisfied, a Trident signal is triggered at the close of the confirming candle.
⚠️ Disclaimer
This indicator is intended for educational and research purposes only. It does not constitute financial advice or trading signals.Trading involves high risk. Please act according to your own risk management.Speculation Lab and the author bear no responsibility for any financial outcomes resulting from the use of this script.
本指标基于近年来日益流行的 Trident(三叉戟)策略,推荐使用在 30分钟时间框架,尤其适用于黄金、比特币、纳斯达克等具有自然上涨倾向的交易品种。本指标由 Speculation Lab 原创开发,结构严谨,逻辑清晰。
本指标采用模块化设计,各部分功能相辅相成,共同构建三叉戟策略逻辑,而非杂乱堆砌。
🔧 指标包含以下功能模块:
交易时段高亮 — 默认显示 伦敦杀戮区
五条可调节 EMA 均线 — 长度与颜色可自定义,模块可单独开关
看涨 Fair Value Gap(公平价值缺口)检测
四种 Doji(十字星)K线形态识别
🧫 逻辑说明:
1. 交易时段过滤
默认高亮显示的伦敦杀戮区为 纽约时间03:00–06:30。用户可自由调整 参考时区、具体时段和 背景颜色,支持预设时区包括纽约、伦敦、东京、上海和悉尼。
⚠️ 说明:为保持策略灵活性,伦敦杀戮区并非强制入场条件。
是否采用此过滤,可由用户自行决定。
2. 趋势过滤(五条EMA)
该指标采用五条 EMA 来确认市场趋势。默认长度为 5、9、13、21、200。入场信号要求满足以下条件:
EMA 5、9、13、21 从上到下依次排列(多头排列)
且 1小时图上的收盘价高于 EMA200
所有均线均可单独启用/关闭,长度与颜色均可自定义。
3. 看涨 FVG 区域识别
FVG 使用 3 根K线结构进行检测,从 high[3] 到 low[1]。默认要求缺口 大于等于 0.7 × ATR(14),以过滤微小无效缺口。ATR周期与乘数均可自定义设置。
“FVG Extend”参数有两个作用:
控制图表上 FVG 区域箱体的右延伸长度(默认20根K线)
用作 FVG 活跃期的判断标准,仅在此区间内出现的 Doji 才会被视为有效信号触发条件
用户可自由设置 FVG 的背景颜色、文字样式与中线颜色。
4. Doji(十字星)识别
支持以下四种常见 Doji 形态识别:
标准十字星
长腿十字星
蜻蜓线(下影线长)
墓碑线(上影线长)
“Body Ratio” 控制实体占K线全长的比例,默认不超过0.2。“Long Wick Ratio” 与 “Short Wick Ratio” 可进一步调节影线长度识别标准。
✅ 入场信号逻辑:
符合以下所有条件时,触发三叉戟入场信号:
趋势过滤通过
EMA 依次排列为 5 > 9 > 13 > 21
且 1小时收盘价高于 EMA200
在 FVG 区域内出现有效 Doji 十字星
下一根K线收盘价 低于 Doji 的最高价
若以上条件均满足,则在确认K线收盘时触发三叉戟入场信号。
⚠️ 免责声明 Disclaimer
本指标旨在提供技术分析工具,仅用于教育与研究目的,不构成任何投资建议或交易指令。交易具有高风险,请根据自身风险承受能力合理操作。使用本脚本所导致的任何盈亏,作者与 Speculation Lab 不承担任何责任。
Nota Keluaran
Unnecessary input fields hidden from the Data WindowNota Keluaran
The indicator has been optimized as follows:First, a condition has been added that entry signals must occur within the London Kill Zone.
Second, to ensure trade quality, we have set a specific time window for FVG formation — by default, 2:30–4:00 AM New York time. Any FVGs outside this time window will not be detected. This time window, like the London Kill Zone, can be flexibly adjusted in the settings.
Third, since this entry rule is quite strict, we have relaxed the default display criteria for FVGs. By default, any FVG larger than 0.1 times the ATR is considered valid. Of course, you can change this value in the settings to apply stricter or more lenient conditions.
指标优化内容如下:
新增入场信号必须出现在伦敦杀戮区的条件。
为保证交易质量,设定了 FVG 的出现时段,默认为纽约时间 2:30–4:00。该时段外的 FVG 不会显示。此时间段与伦敦杀戮区一样,可在设置中灵活调整。
由于入场规则较为严格,放宽了 FVG 的默认判定标准,目前默认大于 ATR 的 0.1 倍即为有效。你可在设置中更改该数值,以获得更严格或更宽松的判断。
Nota Keluaran
Optimized the display in the data panel and adjusted the precision settings.优化了数据栏的显示,并调整了精度(precision)设置。
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.