업데이트됨
[blackcat] L1 Digitized KDJ

Level: 1
Background
This is a simple model for digitized KDJ
Function
Lime for bull and Red for bear with digitized candles.
Key Signal
lime candle --> bull
red candle --> bear
blue candle --> watch
yellow candle --> long entry
fuchsia candle --> overbought
Remarks
Feedbacks are appreciated.
Readme
In real life, I am a prolific inventor. I have successfully applied for more than 60 international and regional patents in the past 12 years. But in the past two years or so, I have tried to transfer my creativity to the development of trading strategies. Tradingview is the ideal platform for me. I am selecting and contributing some of the hundreds of scripts to publish in Tradingview community. Welcome everyone to interact with me to discuss these interesting pine scripts.
The scripts posted are categorized into 5 levels according to my efforts or manhours put into these works.
Level 1 : interesting script snippets or distinctive improvement from classic indicators or strategy. Level 1 scripts can usually appear in more complex indicators as a function module or element.
Level 2 : composite indicator/strategy. By selecting or combining several independent or dependent functions or sub indicators in proper way, the composite script exhibits a resonance phenomenon which can filter out noise or fake trading signal to enhance trading confidence level.
Level 3 : comprehensive indicator/strategy. They are simple trading systems based on my strategies. They are commonly containing several or all of entry signal, close signal, stop loss, take profit, re-entry, risk management, and position sizing techniques. Even some interesting fundamental and mass psychological aspects are incorporated.
Level 4 : script snippets or functions that do not disclose source code. Interesting element that can reveal market laws and work as raw material for indicators and strategies. If you find Level 1~2 scripts are helpful, Level 4 is a private version that took me far more efforts to develop.
Level 5 : indicator/strategy that do not disclose source code. private version of Level 3 script with my accumulated script processing skills or a large number of custom functions. I had a private function library built in past two years. Level 5 scripts use many of them to achieve private trading strategy.
Background
This is a simple model for digitized KDJ
Function
Lime for bull and Red for bear with digitized candles.
Key Signal
lime candle --> bull
red candle --> bear
blue candle --> watch
yellow candle --> long entry
fuchsia candle --> overbought
Remarks
Feedbacks are appreciated.
Readme
In real life, I am a prolific inventor. I have successfully applied for more than 60 international and regional patents in the past 12 years. But in the past two years or so, I have tried to transfer my creativity to the development of trading strategies. Tradingview is the ideal platform for me. I am selecting and contributing some of the hundreds of scripts to publish in Tradingview community. Welcome everyone to interact with me to discuss these interesting pine scripts.
The scripts posted are categorized into 5 levels according to my efforts or manhours put into these works.
Level 1 : interesting script snippets or distinctive improvement from classic indicators or strategy. Level 1 scripts can usually appear in more complex indicators as a function module or element.
Level 2 : composite indicator/strategy. By selecting or combining several independent or dependent functions or sub indicators in proper way, the composite script exhibits a resonance phenomenon which can filter out noise or fake trading signal to enhance trading confidence level.
Level 3 : comprehensive indicator/strategy. They are simple trading systems based on my strategies. They are commonly containing several or all of entry signal, close signal, stop loss, take profit, re-entry, risk management, and position sizing techniques. Even some interesting fundamental and mass psychological aspects are incorporated.
Level 4 : script snippets or functions that do not disclose source code. Interesting element that can reveal market laws and work as raw material for indicators and strategies. If you find Level 1~2 scripts are helpful, Level 4 is a private version that took me far more efforts to develop.
Level 5 : indicator/strategy that do not disclose source code. private version of Level 3 script with my accumulated script processing skills or a large number of custom functions. I had a private function library built in past two years. Level 5 scripts use many of them to achieve private trading strategy.
릴리즈 노트
OVERVIEWA digitized KDJ indicator that combines trend analysis with an advanced choppiness index for enhanced trading signals. This script provides clear visual cues for buying, selling, and watching positions on TradingView charts.
FEATURES
• Digitized KDJ Analysis:
Fire signal detection
Hill strength measurement
Clear visual indicators for buy/sell signals
• Choppiness Index Integration:
Dynamic ATR-based choppiness detection
Adjustable threshold settings
Market condition filtering
• Visual Elements:
Color-coded trading zones
Interactive price alerts
Customizable transparency levels
HOW TO USE
Add the script to your chart
Adjust inputs as needed:
Length: Sets the period for choppiness calculation
Threshold: Controls alert sensitivity
Monitor the following signals:
• Buy signal: Green arrow at bottom
• Sell signal: Red arrow with price tag
• Watch zone: Blue indicator
• Overbought: Purple flag
• Bottom: Yellow marker
LIMITATIONS
• Requires sufficient historical data for accurate calculations
• Performance may vary in highly volatile markets
• Best used in conjunction with other technical indicators
NOTES
The script uses a proprietary Blackcat algorithm for enhanced signal accuracy. Parameters can be fine-tuned based on market conditions and trading preferences.
릴리즈 노트
█ OVERVIEWL1 Digitized KDJ renders momentum as digitized candles: each bar's candle height shows how long the momentum streak ran and how long it has been stalled. Entries run through a position state machine, are gated by an ATR choppiness measure, and close on switchable exit logic with ATR stop and target levels.
█ CONCEPTS
Two engines share one pane:
• Momentum digitizer — counts consecutive bars where the fast EMA points up, and how many bars passed since it last pointed down. Both are drawn as candles in a separate pane, so streak length and stall risk read at a glance.
• Choppiness gate — compares smoothed ATR against the range of the same window. When volatility stops expanding inside that range, the gate blocks new entries and the pane background turns gray instead of lime.
Key principles:
• Signals are edge-triggered and state-aware — no duplicate entry while a position state is already open.
• Entries and exits never fight on the same bar; exits win.
• Risk levels scale with volatility, so one preset travels across symbols and timeframes.
█ HOW TO USE
1 — Add the indicator to any chart. It opens its own pane, so the price chart stays clean.
2 — Read the pane: lime and red candles mark an active streak, blue the watch row, fuchsia an overbought streak, yellow the restart row.
3 — Trade the labels: E opens long, S opens short, XL and XS close long and short. Green or red background reflects the open position state; lime or gray background reflects the choppiness gate while flat.
4 — Leave defaults alone first: they reproduce the original V1 values.
Input Parameters
• KDJ Core — EMA Length (5), Hill Window (5), Fire Lookback (3): the momentum counters.
• Choppiness Filter — Length (13), Threshold (21), ATR Length (3), DIF Alma Length (8), DEA Alma Length (144), Fast Alma Length (3), Use Filter on Signals (on).
• Signal Governance — Short Signals (on), Edge-Trigger Only (on), Same-bar Exclusivity (on), Cooldown Bars (3), Exit Mode (Reverse Signal / Extreme Anchor / Both / None), Anchor Window (10).
• Risk (ATR) — ATR Length (14), Stop Loss 2.0x ATR, Take Profit 3.0x ATR, TP/SL Guard (on), Chandelier Trail (off), Trail 3.0x ATR.
• Visual — Digitized Candles, Signal Labels, Position Background, Filter Background, Dashboard.
█ FEATURES
• Position state machine with cooldown and same-bar exclusivity — no whipsaw spam, no contradictory signals.
• Three exit paths: opposite signal, extreme-anchor break, and ATR guard hit when price reaches stop or target.
• ATR stop, target and optional chandelier trail published in the data window and mirrored in the dashboard.
• Dashboard table: position, entry price, ATR, stop, target, gate state and DEA spread.
• Four alert channels plus dynamic alerts that fire once per bar close.
█ SIGNALS
Visual Elements
• E (green, below the row): long entry — momentum streak restarts while the gate passes.
• S (maroon, above the row): short entry — momentum stalls after a sustained streak.
• XL / XS (orange cross): position closed by exit logic.
• Background: green or red while a position state is open; lime or gray shows the choppiness gate when flat.
█ IMPLEMENTATION NOTES
Built on ta.ema, ta.barssince, ta.atr, ta.alma, ta.lowest, ta.highest and math.sum. Range and ratio denominators are floored to syminfo.mintick, so flat markets cannot divide by zero. Signals use closed-bar values and alerts fire once per bar close, so nothing repaints within a bar.
█ LIMITATIONS
• The gate suppresses entries in quiet ranges; breakout entries may arrive one bar late.
• Cooldown and exclusivity reduce signal count — set Cooldown Bars to 0 and disable exclusivity for the raw V1 cadence.
• Stop and target are reference levels published in the data window of a non-overlay pane; use them as order parameters rather than chart lines.
• Best on liquid markets from 15m to 4h. Nothing here is investment advice.
█ NOTES
• V2 keeps the V1 algorithm, naming and defaults; every addition is switchable, so V1 behaviour is one click away.
• License: Mozilla Public License 2.0.
═════════════════════════════════════════════════════════════════════════
For questions or feedback, use comments section below.
Feel free to use and modify — attribution appreciated.
Don't miss out! The first and most important thing to do is to join my Discord chat now! Click here to start your adventure: discord.com/invite/ZTGpQJq My new github for more pine development soon: github.com/wxt-coder
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
Don't miss out! The first and most important thing to do is to join my Discord chat now! Click here to start your adventure: discord.com/invite/ZTGpQJq My new github for more pine development soon: github.com/wxt-coder
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.