PROTECTED SOURCE SCRIPT
coinbot_ICT_Unicorn(AUTOTRADE)

1. ๐ฏ ํต์ฌ ๊ธฐ๋ฅ: ์๋๋งค๋งค ์ ํธ ์ ์ก (Webhook)
์ด ์คํฌ๋ฆฝํธ๋ ๋งค๋งค ์ ํธ๊ฐ ๋ฐ์ํ ๋๋ง๋ค, ์ฌ์ฉ์๊ฐ '์๋๋งค๋งค ์ค์ (Autotrade Settings)'์ ์ ๋ ฅํ ๊ฐ๋ค์ ์กฐํฉํ์ฌ ๊ตฌ์ฒด์ ์ธ JSON ๋ฉ์์ง๋ฅผ ์์ฑํ๊ณ alert() ํจ์๋ฅผ ํตํด ์นํ ์ผ๋ก ์ ์กํฉ๋๋ค.
์ ๋ ฅ ์ค์ : user_id, exchange(๊ฑฐ๋์), leverage(๋ ๋ฒ๋ฆฌ์ง), capital_percent(ํฌ์ ์๋ %), sl_percent(์์ %), ๊ทธ๋ฆฌ๊ณ 3๋จ๊ณ ๋ถํ ์ต์ (tp1_price_percent, tp1_qty_percent ๋ฑ) ์ค์ ์ ์ ๋ ฅ๋ฐ์ต๋๋ค.
์ ํธ ์ข ๋ฅ:
ENTRY (์ง์ ): ๋งค์(buy) ๋๋ ๋งค๋(sell) ์ ํธ๊ฐ ๋ฐ์ํ๋ฉด, ์ ๋ชจ๋ ์ค์ ๊ฐ์ ํฌํจํ ์ง์ ๋ช ๋ น์ ๋ณด๋ ๋๋ค.
CLOSE (์์ ): ์ ๋ต์ ๋ด๋ถ ๋ก์ง์ ์ํด ์์ ๊ฐ์ ๋๋ฌํ๋ฉด(slAlertTick), ํฌ์ง์ ์ ์ข ๋ฃํ๋ผ๋ ์ ํธ๋ฅผ ๋ณด๋ ๋๋ค.
TAKE_PROFIT (์ต์ ): ๋ชฉํ๊ฐ์ ๋๋ฌํ๋ฉด(tpAlertTick), ์ค์ ๋ ๋ฌผ๋๋งํผ ์ต์ ํ๋ผ๋ ์ ํธ๋ฅผ ๋ณด๋ ๋๋ค.
2. ๐ ์๋ ์๋ฆฌ: "ICT ์ ๋์ฝ" ๋งค๋งค ์ ๋ต
์ด ์คํฌ๋ฆฝํธ์ ์ง์ ๋ก์ง์ ICT(Inner Circle Trader) ๊ฐ๋ ์ค ํ๋์ธ **'์ ๋์ฝ ๋ชจ๋ธ'**์ ๋ฐ๋ฆ ๋๋ค.
๊ตฌ์ฑ ์์ ์๋ณ:
Breaker Block (BB): '๋ธ๋ ์ด์ปค ๋ธ๋ก'์ ์๋ณํฉ๋๋ค. ์ด๋ ํน์ ๊ณ ์ /์ ์ ์ ๋ง๋ ํ ๊ทธ ๋ฐฉํฅ์ผ๋ก ๊ฐ์ง ๋ชปํ๊ณ ๋ฐ๋ ๋ฐฉํฅ์ผ๋ก ๋ํ(Break)๋ ์ค๋ ๋ธ๋ก(Order Block)์ ๋๋ค.
Fair Value Gap (FVG): '๊ณต์ ๊ฐ์น ๊ฐญ' (๊ฐ๊ฒฉ ๋ถ๊ท ํ ์์ญ)์ ์๋ณํฉ๋๋ค.
ํต์ฌ ์ง์ ์ ํธ (Unicorn): ์ด ์ ๋ต์ ํต์ฌ ์ง์ ์กฐ๊ฑด์ **Breaker Block(BB)๊ณผ Fair Value Gap(FVG)์ด ์ค์ฒฉ(Overlap)**๋๋, ์์ '์ ๋์ฝ'์ด๋ผ ๋ถ๋ฆฌ๋ ๊ฐ๋ ฅํ ์ง์ง/์ ํญ ์์ญ์ด ๋ฐ์ํ๋ ๊ฒ์ ๋๋ค.
Long (๋งค์) ์ง์ :
๊ฐ๊ฒฉ์ด ํ๋ฝํ๋ฉฐ **'ํ๋ฝํ ๋ธ๋ ์ด์ปค ๋ธ๋ก(Bearish Breaker Block)'**์ ๋ง๋ญ๋๋ค.
์ดํ ๊ฐ๊ฒฉ์ด ์์น ๋ํํ๋ฉฐ ์ด ๋ธ๋ ์ด์ปค ๋ธ๋ก ์์ญ๊ณผ ์ค์ฒฉ๋๋ **'์์นํ FVG(Bullish FVG)'**๋ฅผ ์์ฑํฉ๋๋ค.
์ด ์ค์ฒฉ ์์ญ(FVG-BB Overlap)์ด ๋ฐ๋ก ๋งค์ ์ง์ ์ ๊ทผ๊ฑฐ๊ฐ ๋ฉ๋๋ค. (์ฝ๋๊ฐ dbgRequireRetracement ์ค์ ์ ๋ฐ๋ผ FVG๋ก์ ๋๋๋ฆผ์ ๊ธฐ๋ค๋ฆฌ๊ฑฐ๋ ์ฆ์ ์ง์ ์ ํธ๋ฅผ ๋ณด๋ ๋๋ค.)
Short (๋งค๋) ์ง์ :
๊ฐ๊ฒฉ์ด ์์นํ๋ฉฐ **'์์นํ ๋ธ๋ ์ด์ปค ๋ธ๋ก(Bullish Breaker Block)'**์ ๋ง๋ญ๋๋ค.
์ดํ ๊ฐ๊ฒฉ์ด ํ๋ฝ ๋ํํ๋ฉฐ ์ด ๋ธ๋ ์ด์ปค ๋ธ๋ก ์์ญ๊ณผ ์ค์ฒฉ๋๋ **'ํ๋ฝํ FVG(Bearish FVG)'**๋ฅผ ์์ฑํฉ๋๋ค.
์ด ์ค์ฒฉ ์์ญ์ด ๋งค๋ ์ง์ ์ ๊ทผ๊ฑฐ๊ฐ ๋ฉ๋๋ค.
3. ๐ ๋ถ๊ฐ ๊ธฐ๋ฅ
์๊ฐํ: ์ฐจํธ ์์ FVG ์์ญ๊ณผ Breaker Block ์์ญ์ ๋ฐ์ค๋ก ๊ทธ๋ ค์ฃผ์ด(์ค์ ์ ๋ฐ๋ผ ํ์/์จ๊น ๊ฐ๋ฅ) ๋งค๋งค ๊ทผ๊ฑฐ๋ฅผ ์๊ฐ์ ์ผ๋ก ํ์ธํ ์ ์๊ฒ ํฉ๋๋ค.
๋ฐฑํ ์คํ ๋์๋ณด๋: ์ฐจํธ ์ฐ์ธก ์๋จ(๊ธฐ๋ณธ๊ฐ)์ ์ด ์ ๋ต์ ๋์ ์ฑ๊ณผ(์ด ์ง์ ํ์, ์น/ํจ, ์น๋ฅ , ์ด์์ต๋ฅ )๋ฅผ ๋ณด์ฌ์ฃผ๋ ๋์๋ณด๋๋ฅผ ํ์ํฉ๋๋ค.
์์ฝ
์ด ์คํฌ๋ฆฝํธ๋ **"Breaker Block๊ณผ FVG์ ์ค์ฒฉ(์ ๋์ฝ ๋ชจ๋ธ)"**์ ์ ์ผํ ์ง์ ์กฐ๊ฑด์ผ๋ก ์ฌ์ฉํ๋ ๋งค์ฐ ๊ตฌ์ฒด์ ์ธ ICT ์ ๋ต์ ๋๋ค. ์ด ์กฐ๊ฑด์ด ์ถฉ์กฑ๋๋ฉด, ์ฌ์ฉ์๊ฐ ๋ฏธ๋ฆฌ ์ค์ ํ ์์ธํ ๋ฆฌ์คํฌ ๊ด๋ฆฌ ๊ฐ๋ค์ ๋ด์ ์๋๋งค๋งค ๋ด์ผ๋ก ์ฆ์ ์คํ ๊ฐ๋ฅํ ์ฃผ๋ฌธ ์ ํธ๋ฅผ ์ ์กํ๋ '์ฌ์ธ์(All-in-One)' ์ ๋ต ์คํฌ๋ฆฝํธ์ ๋๋ค.
์์ฒญํ์ ๋๋ก, ํด๋น ์งํ ์์ฝ๋ณธ์ ์์ด๋ก ๋ฒ์ญํ์ฌ ์ ๊ณตํฉ๋๋ค.
This script is an automated trading (Autotrade) strategy signal generator based on the ICT "Unicorn" trading model.
As the "AUTOTRADE" in its name implies, the core purpose of this indicator is to detect specific conditions on the chart and send JSON-formatted order signals (webhooks) to an external automated trading bot.
Here are the core mechanics and features of this script:
1. ๐ฏ Core Feature: Automated Signal Transmission (Webhook)
Whenever a trade signal occurs, this script generates a specific JSON message by combining the values entered by the user in the "Autotrade Settings" and sends it via webhook using the alert() function.
Input Settings: It takes inputs for user_id, exchange, leverage, capital_percent (equity %), sl_percent (stop loss %), and settings for 3-stage split take-profits (e.g., tp1_price_percent, tp1_qty_percent).
Signal Types:
ENTRY: When a "buy" or "sell" signal occurs, it sends an entry command including all the settings above.
CLOSE (Stop-Loss): If the price hits the stop loss according to the strategy's internal logic (slAlertTick), it sends a signal to close the position.
TAKE_PROFIT: When a profit target is reached (tpAlertTick), it sends a signal to take profit on the specified quantity.
2. ๐ How It Works: The "ICT Unicorn" Strategy
The script's entry logic follows the "Unicorn Model," one of the concepts from ICT (Inner Circle Trader).
Identifying Components:
Breaker Block (BB): It identifies a "Breaker Block." This is an Order Block that, after creating a specific high/low, fails to continue in that direction and is instead broken through in the opposite direction.
Fair Value Gap (FVG): It identifies a "Fair Value Gap" (a price imbalance area).
Core Entry Signal (The Unicorn): The core entry condition for this strategy is the overlap of a Breaker Block (BB) and a Fair Value Gap (FVG), which creates a powerful support/resistance zone known as the "Unicorn."
Long Entry:
Price moves down, creating a "Bearish Breaker Block."
Subsequently, price breaks upward, creating a "Bullish FVG" that overlaps with this Breaker Block area.
This overlapping area (FVG-BB Overlap) becomes the basis for the long entry. (Depending on the dbgRequireRetracement setting, the code either waits for a retracement to the FVG or sends an immediate entry signal.)
Short Entry:
Price moves up, creating a "Bullish Breaker Block."
Subsequently, price breaks downward, creating a "Bearish FVG" that overlaps with this Breaker Block area.
This overlapping area becomes the basis for the short entry.
3. ๐ Additional Features
Visualization: It draws the FVG and Breaker Block zones as boxes on the chart (can be toggled in settings), allowing for visual confirmation of the trade setup.
Backtesting Dashboard: It displays a dashboard in the top-right corner (by default) showing the strategy's cumulative performance (total entries, wins/losses, win rate, total profit).
Summary
This script is a highly specific ICT strategy that uses the "overlap of a Breaker Block and an FVG (the Unicorn Model)" as its sole entry condition. When this condition is met, it transmits an immediately executable order signal to an automated trading bot, complete with all the detailed risk management values preset by the user. It is an "all-in-one" strategy script.
์ด ์คํฌ๋ฆฝํธ๋ ๋งค๋งค ์ ํธ๊ฐ ๋ฐ์ํ ๋๋ง๋ค, ์ฌ์ฉ์๊ฐ '์๋๋งค๋งค ์ค์ (Autotrade Settings)'์ ์ ๋ ฅํ ๊ฐ๋ค์ ์กฐํฉํ์ฌ ๊ตฌ์ฒด์ ์ธ JSON ๋ฉ์์ง๋ฅผ ์์ฑํ๊ณ alert() ํจ์๋ฅผ ํตํด ์นํ ์ผ๋ก ์ ์กํฉ๋๋ค.
์ ๋ ฅ ์ค์ : user_id, exchange(๊ฑฐ๋์), leverage(๋ ๋ฒ๋ฆฌ์ง), capital_percent(ํฌ์ ์๋ %), sl_percent(์์ %), ๊ทธ๋ฆฌ๊ณ 3๋จ๊ณ ๋ถํ ์ต์ (tp1_price_percent, tp1_qty_percent ๋ฑ) ์ค์ ์ ์ ๋ ฅ๋ฐ์ต๋๋ค.
์ ํธ ์ข ๋ฅ:
ENTRY (์ง์ ): ๋งค์(buy) ๋๋ ๋งค๋(sell) ์ ํธ๊ฐ ๋ฐ์ํ๋ฉด, ์ ๋ชจ๋ ์ค์ ๊ฐ์ ํฌํจํ ์ง์ ๋ช ๋ น์ ๋ณด๋ ๋๋ค.
CLOSE (์์ ): ์ ๋ต์ ๋ด๋ถ ๋ก์ง์ ์ํด ์์ ๊ฐ์ ๋๋ฌํ๋ฉด(slAlertTick), ํฌ์ง์ ์ ์ข ๋ฃํ๋ผ๋ ์ ํธ๋ฅผ ๋ณด๋ ๋๋ค.
TAKE_PROFIT (์ต์ ): ๋ชฉํ๊ฐ์ ๋๋ฌํ๋ฉด(tpAlertTick), ์ค์ ๋ ๋ฌผ๋๋งํผ ์ต์ ํ๋ผ๋ ์ ํธ๋ฅผ ๋ณด๋ ๋๋ค.
2. ๐ ์๋ ์๋ฆฌ: "ICT ์ ๋์ฝ" ๋งค๋งค ์ ๋ต
์ด ์คํฌ๋ฆฝํธ์ ์ง์ ๋ก์ง์ ICT(Inner Circle Trader) ๊ฐ๋ ์ค ํ๋์ธ **'์ ๋์ฝ ๋ชจ๋ธ'**์ ๋ฐ๋ฆ ๋๋ค.
๊ตฌ์ฑ ์์ ์๋ณ:
Breaker Block (BB): '๋ธ๋ ์ด์ปค ๋ธ๋ก'์ ์๋ณํฉ๋๋ค. ์ด๋ ํน์ ๊ณ ์ /์ ์ ์ ๋ง๋ ํ ๊ทธ ๋ฐฉํฅ์ผ๋ก ๊ฐ์ง ๋ชปํ๊ณ ๋ฐ๋ ๋ฐฉํฅ์ผ๋ก ๋ํ(Break)๋ ์ค๋ ๋ธ๋ก(Order Block)์ ๋๋ค.
Fair Value Gap (FVG): '๊ณต์ ๊ฐ์น ๊ฐญ' (๊ฐ๊ฒฉ ๋ถ๊ท ํ ์์ญ)์ ์๋ณํฉ๋๋ค.
ํต์ฌ ์ง์ ์ ํธ (Unicorn): ์ด ์ ๋ต์ ํต์ฌ ์ง์ ์กฐ๊ฑด์ **Breaker Block(BB)๊ณผ Fair Value Gap(FVG)์ด ์ค์ฒฉ(Overlap)**๋๋, ์์ '์ ๋์ฝ'์ด๋ผ ๋ถ๋ฆฌ๋ ๊ฐ๋ ฅํ ์ง์ง/์ ํญ ์์ญ์ด ๋ฐ์ํ๋ ๊ฒ์ ๋๋ค.
Long (๋งค์) ์ง์ :
๊ฐ๊ฒฉ์ด ํ๋ฝํ๋ฉฐ **'ํ๋ฝํ ๋ธ๋ ์ด์ปค ๋ธ๋ก(Bearish Breaker Block)'**์ ๋ง๋ญ๋๋ค.
์ดํ ๊ฐ๊ฒฉ์ด ์์น ๋ํํ๋ฉฐ ์ด ๋ธ๋ ์ด์ปค ๋ธ๋ก ์์ญ๊ณผ ์ค์ฒฉ๋๋ **'์์นํ FVG(Bullish FVG)'**๋ฅผ ์์ฑํฉ๋๋ค.
์ด ์ค์ฒฉ ์์ญ(FVG-BB Overlap)์ด ๋ฐ๋ก ๋งค์ ์ง์ ์ ๊ทผ๊ฑฐ๊ฐ ๋ฉ๋๋ค. (์ฝ๋๊ฐ dbgRequireRetracement ์ค์ ์ ๋ฐ๋ผ FVG๋ก์ ๋๋๋ฆผ์ ๊ธฐ๋ค๋ฆฌ๊ฑฐ๋ ์ฆ์ ์ง์ ์ ํธ๋ฅผ ๋ณด๋ ๋๋ค.)
Short (๋งค๋) ์ง์ :
๊ฐ๊ฒฉ์ด ์์นํ๋ฉฐ **'์์นํ ๋ธ๋ ์ด์ปค ๋ธ๋ก(Bullish Breaker Block)'**์ ๋ง๋ญ๋๋ค.
์ดํ ๊ฐ๊ฒฉ์ด ํ๋ฝ ๋ํํ๋ฉฐ ์ด ๋ธ๋ ์ด์ปค ๋ธ๋ก ์์ญ๊ณผ ์ค์ฒฉ๋๋ **'ํ๋ฝํ FVG(Bearish FVG)'**๋ฅผ ์์ฑํฉ๋๋ค.
์ด ์ค์ฒฉ ์์ญ์ด ๋งค๋ ์ง์ ์ ๊ทผ๊ฑฐ๊ฐ ๋ฉ๋๋ค.
3. ๐ ๋ถ๊ฐ ๊ธฐ๋ฅ
์๊ฐํ: ์ฐจํธ ์์ FVG ์์ญ๊ณผ Breaker Block ์์ญ์ ๋ฐ์ค๋ก ๊ทธ๋ ค์ฃผ์ด(์ค์ ์ ๋ฐ๋ผ ํ์/์จ๊น ๊ฐ๋ฅ) ๋งค๋งค ๊ทผ๊ฑฐ๋ฅผ ์๊ฐ์ ์ผ๋ก ํ์ธํ ์ ์๊ฒ ํฉ๋๋ค.
๋ฐฑํ ์คํ ๋์๋ณด๋: ์ฐจํธ ์ฐ์ธก ์๋จ(๊ธฐ๋ณธ๊ฐ)์ ์ด ์ ๋ต์ ๋์ ์ฑ๊ณผ(์ด ์ง์ ํ์, ์น/ํจ, ์น๋ฅ , ์ด์์ต๋ฅ )๋ฅผ ๋ณด์ฌ์ฃผ๋ ๋์๋ณด๋๋ฅผ ํ์ํฉ๋๋ค.
์์ฝ
์ด ์คํฌ๋ฆฝํธ๋ **"Breaker Block๊ณผ FVG์ ์ค์ฒฉ(์ ๋์ฝ ๋ชจ๋ธ)"**์ ์ ์ผํ ์ง์ ์กฐ๊ฑด์ผ๋ก ์ฌ์ฉํ๋ ๋งค์ฐ ๊ตฌ์ฒด์ ์ธ ICT ์ ๋ต์ ๋๋ค. ์ด ์กฐ๊ฑด์ด ์ถฉ์กฑ๋๋ฉด, ์ฌ์ฉ์๊ฐ ๋ฏธ๋ฆฌ ์ค์ ํ ์์ธํ ๋ฆฌ์คํฌ ๊ด๋ฆฌ ๊ฐ๋ค์ ๋ด์ ์๋๋งค๋งค ๋ด์ผ๋ก ์ฆ์ ์คํ ๊ฐ๋ฅํ ์ฃผ๋ฌธ ์ ํธ๋ฅผ ์ ์กํ๋ '์ฌ์ธ์(All-in-One)' ์ ๋ต ์คํฌ๋ฆฝํธ์ ๋๋ค.
์์ฒญํ์ ๋๋ก, ํด๋น ์งํ ์์ฝ๋ณธ์ ์์ด๋ก ๋ฒ์ญํ์ฌ ์ ๊ณตํฉ๋๋ค.
This script is an automated trading (Autotrade) strategy signal generator based on the ICT "Unicorn" trading model.
As the "AUTOTRADE" in its name implies, the core purpose of this indicator is to detect specific conditions on the chart and send JSON-formatted order signals (webhooks) to an external automated trading bot.
Here are the core mechanics and features of this script:
1. ๐ฏ Core Feature: Automated Signal Transmission (Webhook)
Whenever a trade signal occurs, this script generates a specific JSON message by combining the values entered by the user in the "Autotrade Settings" and sends it via webhook using the alert() function.
Input Settings: It takes inputs for user_id, exchange, leverage, capital_percent (equity %), sl_percent (stop loss %), and settings for 3-stage split take-profits (e.g., tp1_price_percent, tp1_qty_percent).
Signal Types:
ENTRY: When a "buy" or "sell" signal occurs, it sends an entry command including all the settings above.
CLOSE (Stop-Loss): If the price hits the stop loss according to the strategy's internal logic (slAlertTick), it sends a signal to close the position.
TAKE_PROFIT: When a profit target is reached (tpAlertTick), it sends a signal to take profit on the specified quantity.
2. ๐ How It Works: The "ICT Unicorn" Strategy
The script's entry logic follows the "Unicorn Model," one of the concepts from ICT (Inner Circle Trader).
Identifying Components:
Breaker Block (BB): It identifies a "Breaker Block." This is an Order Block that, after creating a specific high/low, fails to continue in that direction and is instead broken through in the opposite direction.
Fair Value Gap (FVG): It identifies a "Fair Value Gap" (a price imbalance area).
Core Entry Signal (The Unicorn): The core entry condition for this strategy is the overlap of a Breaker Block (BB) and a Fair Value Gap (FVG), which creates a powerful support/resistance zone known as the "Unicorn."
Long Entry:
Price moves down, creating a "Bearish Breaker Block."
Subsequently, price breaks upward, creating a "Bullish FVG" that overlaps with this Breaker Block area.
This overlapping area (FVG-BB Overlap) becomes the basis for the long entry. (Depending on the dbgRequireRetracement setting, the code either waits for a retracement to the FVG or sends an immediate entry signal.)
Short Entry:
Price moves up, creating a "Bullish Breaker Block."
Subsequently, price breaks downward, creating a "Bearish FVG" that overlaps with this Breaker Block area.
This overlapping area becomes the basis for the short entry.
3. ๐ Additional Features
Visualization: It draws the FVG and Breaker Block zones as boxes on the chart (can be toggled in settings), allowing for visual confirmation of the trade setup.
Backtesting Dashboard: It displays a dashboard in the top-right corner (by default) showing the strategy's cumulative performance (total entries, wins/losses, win rate, total profit).
Summary
This script is a highly specific ICT strategy that uses the "overlap of a Breaker Block and an FVG (the Unicorn Model)" as its sole entry condition. When this condition is met, it transmits an immediately executable order signal to an automated trading bot, complete with all the detailed risk management values preset by the user. It is an "all-in-one" strategy script.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations โ learn more here.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations โ learn more here.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.