PROTECTED SOURCE SCRIPT

coinbot_ICT_Unicorn(AUTOTRADE)

21
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.

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.