KDJ – Long Only v3.0 (TradingView Strategy)

Overview|概覽
EN
A research strategy that automates long-only entries using a KDJ-centric core with multi-layer confirmations and volatility-aware exits. Default preset targets ETH 5m; other symbols/timeframes can be tuned.
中文
研究用策略,透過 KDJ 核心與多層確認來自動化只做多進場,並以隨波動調整的出場邏輯運作。預設為 ETH 5 分鐘;其他商品/週期可自行調參。
Backtest (hypothetical) example: ETHUSDT.P, 5m, 2024-09-18→2025-09-18, fee 0.05%, slippage 1 tick.(僅示意,屬假設性回測)
What it does|做什麼
EN
Signals are organized into channels:
A KDJ trend core
B OB/FVG touch pullback
CP Double-bottom (buffered neckline)
SR Support/Resistance bounce with rejection/zone checks
D EMA pullback (long EMA length)
E VWAP reclaim (lower-band pierce & recapture)
F Prior-low sweep & reclaim
中文
訊號分成多通道:
A KDJ 順勢核心
B OB/FVG 回踩觸價
CP 雙底(頸線含緩衝)
SR 支撐/阻力觸價不破(含拒絕與區域檢查)
D EMA 回踩(長週期 EMA)
E VWAP 收復(下緣穿越後收回)
F 前低掃回
High-level logic|高層級原理
HTF/Mid-TF context:內建 5/15/1H 或 15/60/4H 組合;以簡化趨勢線/區域提供觸價參考
Trend & structure:本階 EMA(8/21/200) 結構;Structure Breakout(近期高低點 ±ATR 緩衝)/EMA8/21 回踩
Momentum/volume:MACD、KDJ 金叉與低區偵測、量能驗證
Regime:ADX 閘(趨勢/盤整門檻)、EMA 帶寬過濾震盪、Peak Guard 避免過度延伸
No look-ahead:入場不使用前視;樞紐/趨勢線僅作情境參考
Inputs & Features|參數與功能
Market Preset:Generic / ETH(ETH 預設收緊若干門檻,開箱即用)
Entry Mode:KDJ_Core / CandleOnly / KDJ_and_Candle
Session Filter:最多三段交易時窗
Lite Filters:過度延伸、實體大小、DI 差距
S/R 模組:拒絕條件、KDJ 覆核、區域要求、即時 R:R 檢核
OrderBlock/FVG:近棒位移掃描
Chart Pattern:雙底 W,ATR 容差與頸線緩衝
Plotting:EMA200、通道字母標記、可選 TP/SL 標籤
Automation via Alerts(generic)|快訊自動化(通用)
EN
On entries/exits the strategy emits JSON through alert_message. Create alerts with “Any alert() function call” and route them to your own webhook/bridge. Symbol mapping, sizing mode, and user info are configurable in inputs.
中文
進出場時透過 alert_message 輸出 JSON。建立快訊時選 “Any alert() function call”,再由你的 webhook/橋接服務轉單;輸入面板可設定商品代碼、下單型式與使用者資訊。
提示:調整參數後,請重建快訊,並將訊息欄設為 {{strategy.order.alert_message}}。
Position sizing|部位大小
base / quote / percent_local / percent(percent_local 以本地 USD 估值計算)
可選「按數量模式」以便與本地部位同步(position_size sync)
Risk & Exits|風險與出場
SL:ATR / Swing / ATR_or_Swing;TP Cap 以 ATR 或 % 限制上限
Breakeven & Trailing:達指定 R:R 啟動保本;之後以 最高價回看 − ATR×k 追蹤
Same-bar exits:可允許/禁止同根觸發 TP/SL
Pyramiding:pyramiding=2,最多兩筆多單可同時存在(淨倉交易所請留意整體倉位的平倉行為)
Suggested workflow|建議流程
回測目標市場/週期 → 設定時段/濾網與門檻 → 微調 TP/SL 與部位大小 → 建立快訊({{strategy.order.alert_message}})→ 監看執行日誌
Notes & Disclaimer|注意與免責
回測結果仰賴時間框解析與成交規則;棒內路徑與實盤可能不同
僅供研究/教育;非投資建議
本頁無廣告、無外部連結或聯絡資訊
Release Notes|版本說明
2025-09-19
新增:One-shot Force Flat(一鍵清倉僅一次)— 於下一根收盤執行,完成後自動失效
Webhook:進/出場皆輸出 JSON;提醒更新參數後重建快訊
行為澄清:pyramiding=2,允許同圖表最多兩筆多單並存;同棒出場可設定
2025-09-18
Netted venue 說明:在淨倉模式下,出場會影響同商品的整體淨多倉;請留意手動單與策略單的互動
2025-08-28
修正小數顯示;預設優化(ETH/5m);保留隨波動的 RR/SL 邏輯
Script sur invitation seulement
Seuls les utilisateurs approuvés par l'auteur peuvent accéder à ce script. Vous devrez demander et obtenir l'autorisation pour l'utiliser. Celle-ci est généralement accordée après paiement. Pour plus de détails, suivez les instructions de l'auteur ci-dessous ou contactez directement yoyoman868.
TradingView ne recommande PAS de payer ou d'utiliser un script à moins que vous ne fassiez entièrement confiance à son auteur et que vous compreniez comment il fonctionne. Vous pouvez également trouver des alternatives gratuites et open-source dans nos scripts communautaires.
Instructions de l'auteur
Access will be granted after verification.
This is a growing AI-powered indicator that will be updated regularly based on market conditions and user feedback
Clause de non-responsabilité
Script sur invitation seulement
Seuls les utilisateurs approuvés par l'auteur peuvent accéder à ce script. Vous devrez demander et obtenir l'autorisation pour l'utiliser. Celle-ci est généralement accordée après paiement. Pour plus de détails, suivez les instructions de l'auteur ci-dessous ou contactez directement yoyoman868.
TradingView ne recommande PAS de payer ou d'utiliser un script à moins que vous ne fassiez entièrement confiance à son auteur et que vous compreniez comment il fonctionne. Vous pouvez également trouver des alternatives gratuites et open-source dans nos scripts communautaires.
Instructions de l'auteur
Access will be granted after verification.
This is a growing AI-powered indicator that will be updated regularly based on market conditions and user feedback