PROTECTED SOURCE SCRIPT
SMA Slope Turn Arrows ×3 + Mini Dots (KR/EN)_by Irum

목적 & 정의 (KR) / Purpose & Definition (EN)
KR — 목적/정의
이 인디케이터는 **최대 3개의 SMA(단순이동평균)**의 기울기(상승/하락) 전환 시점을 즉시 포착해 차트에 **상·하 화살표(▲/▼)**로 표시합니다. 또한 각 SMA 위에 **미니 도트(점선 효과)**를 함께 그려 시각적 가독성을 높입니다. 화살표 위치는 ATR(변동성) 기준 오프셋으로 SMA와 겹치지 않게 배치되며, **전환 민감도(최소 기울기 %)**와 **기울기 비교 간격(ΔBars)**을 조절해 노이즈 필터링이 가능합니다. 6개의 알림 조건(UP/DOWN × 3SMA)도 제공되어 자동화/웹훅 연동에 적합합니다.
EN — Purpose/Definition
This indicator tracks up to three SMAs and flags slope (up/down) turns with arrow labels (▲/▼). It also plots mini dots on each SMA for better visual tracking. Arrow positions are offset from the SMA using ATR-based distance, and you can tune turn sensitivity (min slope %) and comparison window (ΔBars) to filter noise. Six alert conditions (UP/DOWN × 3 SMAs) are included for automation/webhook workflows.
설정 메뉴 상세 (KR/EN)
0) 기본 / Core
기준가격 / Source (default: close)
차트에서 SMA를 계산할 기준 가격. 종가/고가/저가/HL2/HLCC4 등 선택 가능.
Source for SMA calculations (e.g., close, high, low, hl2, hlcc4).
기울기 감지 / Slope Detection
ΔN (기울기 비교 바 수) / ΔBars (default: 1, min 1)
현재 SMA와 N봉 전 SMA를 비교하여 기울기(%) 계산. N이 클수록 완만(덜 민감).
Compare current SMA to SMA N bars ago. Larger N = smoother, less noise.
민감도: 최소 기울기(%, 0=모든 전환) / Min slope (%) (default: 0.00, step 0.01)
전환으로 인정할 최소 기울기 절대값(%). 0이면 모든 부호 전환을 잡음까지 포함해 감지.
Minimum absolute slope (%) to qualify as a turn. 0 captures every sign flip (noisy).
화살표 오프셋(ATR 배수) / Arrow offset (×ATR) (default: 0.20, step 0.05)
화살표를 SMA선에서 떨어뜨리는 정도. 변동성 큰 종목은 값을 키워 겹침 방지.
Distance of arrows from SMA using ATR multiple; increase on high-volatility symbols.
시각화 / Visualization
화살표 크기 / Arrow size (Tiny/Small/Normal/Large/Huge; default: Normal)
라벨 사이즈 선택. 고해상도 모니터는 Large/Huge 권장.
Choose label size; Large/Huge suits high-DPI screens.
SMA에 점선(미니바) 표시 / Show mini dots on SMA (default: true)
SMA 위에 동그라미 스타일 점선(시각 강조).
Overlay circle-style mini dots on SMA.
미니 도트 두께 / Mini dot linewidth (1–3; default: 1)
미니 도트의 라인 두께.
Line width for mini-dot plots.
라벨 유지 최대 개수(≤500) / Keep at most N labels (50–500; default: 350)
과도한 라벨 누적 방지. 상한 초과 시 오래된 라벨부터 자동 삭제.
Caps total labels; oldest labels are deleted when exceeding the cap.
SMA #1 / #2 / #3
각 SMA 블록에 동일 항목 존재:
표시 / Show (bool; #1 default: on, #2: on, #3: off)
해당 SMA의 표시/비표시.
Toggle each SMA on/off.
길이 / Length (#1: 20, #2: 50, #3: 100; min 1)
SMA 기간.
SMA period.
색상 / Color (#1 teal, #2 orange, #3 purple)
SMA 및 화살표 색상.
Color for SMA and arrows.
두께 / Width (1–5; default: 2)
SMA 선 두께.
Line width of the SMA.
동작 원리 (KR/EN)
기울기(%) 계산 / Slope (%)
(𝑆𝑀𝐴0−𝑆𝑀𝐴𝑛)/∣𝑆𝑀𝐴𝑛∣×100(SMA0 −SMAn )/∣SMAn ∣×100 (n = ΔBars)
이 값의 부호가 음→양이면 상향 전환(▲), 양→음이면 **하향 전환(▼)**로 간주. 전환 시 |기울기| ≥ Min slope % 조건을 만족해야 화살표가 출력됩니다.
The slope sign flip negative→positive marks an UP turn (▲); positive→negative marks a DOWN turn (▼), provided |slope| ≥ Min slope %.
화살표 위치 / Arrow placement
각 SMA 위·아래 ATR(14) × 오프셋만큼 떨어진 위치에 ▲/▼ 라벨을 배치해 선과 겹침을 방지합니다.
Arrows are placed above/below SMA by ATR(14) × offset to avoid overlap.
라벨 관리 / Label housekeeping
표시 라벨 수가 Keep at most N labels를 넘어가면 오래된 것부터 자동 삭제합니다.
Old labels are deleted automatically when the cap is exceeded.
알림(Alerts) (KR/EN)
다음 6개 조건을 제공합니다(각 SMA의 상승/하락 전환):
Provides six alert conditions (UP/DOWN per SMA):
SMA1 slope turned UP / DOWN
SMA2 slope turned UP / DOWN
SMA3 slope turned UP / DOWN
트레이딩뷰에서 인디케이터 추가 후 Create Alert → Condition에서 원하는 항목을 선택하세요.
In TradingView, add the indicator → Create Alert → choose a condition.
추천 프리셋 & 활용 팁 (KR/EN)
KR — 추천값
ΔBars: 12(스캘핑/고변동), 23(일반 데이/스윙)
Min slope (%):
코인/지수 1–15분: 0.03~0.10
주식 5–30분: 0.05~0.20
SMA 조합: (20, 50, 100) 또는 (9, 21, 50)
Arrow offset (×ATR): 0.15~0.30 (종목 변동성에 맞춰 조절)
EN — Suggestions
ΔBars: 1–2 for fast markets; 2–3 for smoother signals
Min slope (%): 0.03–0.10 (crypto/indices 1–15m), 0.05–0.20 (equities)
SMA sets: (20, 50, 100) or (9, 21, 50)
Arrow offset: 0.15–0.30 × ATR
전략 결합 아이디어 / Strategy combos
추세 필터: 장기 SMA(100/200) 우상향일 때만 롱 전환 화살표 활용.
진입·청산 규칙: 전환 화살표 + 캔들 종가가 SMA 상/하 유지 확인 후 실행.
다중 확인: 전환 화살표 + BB 폭 축소/확대, RSI/DI 다이버전스 등과 결합.
문제 해결 (KR/EN)
화살표가 너무 많다(노이즈) → Min slope (%)↑ 또는 ΔBars↑
화살표가 SMA와 겹친다 → Arrow offset (×ATR)↑
라벨 제한 경고 → Keep at most N labels↓ 또는 필요 없는 SMA를 OFF
처음 몇 봉에서 표시 없음 → SMA가 충분히 형성될 때까지 대기(기간만큼 필요)
확장 제안 (선택) / Possible Enhancements
평활 옵션: 기울기(%)에 EMA/SMA 평활 길이 추가
다중 타임프레임: 상위 TF SMA 전환과 동시 조건
라벨 스타일 토글: 텍스트 ▲/▼ 대신 label.style_triangle_* 선택 토글
라벨 정리 루프 최적화: 필요 시 while 루프로 상한 초과분 즉시 정리
한눈에 요약 (KR) / Quick Recap (EN)
3개 SMA의 기울기 전환을 ▲/▼로 즉각 표기
민감도(최소 기울기 %)·ΔBars·ATR 오프셋으로 노이즈 제어
미니 도트로 SMA 흐름 강조
6개 알림(UP/DOWN × 3SMA) 제공
KR — 목적/정의
이 인디케이터는 **최대 3개의 SMA(단순이동평균)**의 기울기(상승/하락) 전환 시점을 즉시 포착해 차트에 **상·하 화살표(▲/▼)**로 표시합니다. 또한 각 SMA 위에 **미니 도트(점선 효과)**를 함께 그려 시각적 가독성을 높입니다. 화살표 위치는 ATR(변동성) 기준 오프셋으로 SMA와 겹치지 않게 배치되며, **전환 민감도(최소 기울기 %)**와 **기울기 비교 간격(ΔBars)**을 조절해 노이즈 필터링이 가능합니다. 6개의 알림 조건(UP/DOWN × 3SMA)도 제공되어 자동화/웹훅 연동에 적합합니다.
EN — Purpose/Definition
This indicator tracks up to three SMAs and flags slope (up/down) turns with arrow labels (▲/▼). It also plots mini dots on each SMA for better visual tracking. Arrow positions are offset from the SMA using ATR-based distance, and you can tune turn sensitivity (min slope %) and comparison window (ΔBars) to filter noise. Six alert conditions (UP/DOWN × 3 SMAs) are included for automation/webhook workflows.
설정 메뉴 상세 (KR/EN)
0) 기본 / Core
기준가격 / Source (default: close)
차트에서 SMA를 계산할 기준 가격. 종가/고가/저가/HL2/HLCC4 등 선택 가능.
Source for SMA calculations (e.g., close, high, low, hl2, hlcc4).
기울기 감지 / Slope Detection
ΔN (기울기 비교 바 수) / ΔBars (default: 1, min 1)
현재 SMA와 N봉 전 SMA를 비교하여 기울기(%) 계산. N이 클수록 완만(덜 민감).
Compare current SMA to SMA N bars ago. Larger N = smoother, less noise.
민감도: 최소 기울기(%, 0=모든 전환) / Min slope (%) (default: 0.00, step 0.01)
전환으로 인정할 최소 기울기 절대값(%). 0이면 모든 부호 전환을 잡음까지 포함해 감지.
Minimum absolute slope (%) to qualify as a turn. 0 captures every sign flip (noisy).
화살표 오프셋(ATR 배수) / Arrow offset (×ATR) (default: 0.20, step 0.05)
화살표를 SMA선에서 떨어뜨리는 정도. 변동성 큰 종목은 값을 키워 겹침 방지.
Distance of arrows from SMA using ATR multiple; increase on high-volatility symbols.
시각화 / Visualization
화살표 크기 / Arrow size (Tiny/Small/Normal/Large/Huge; default: Normal)
라벨 사이즈 선택. 고해상도 모니터는 Large/Huge 권장.
Choose label size; Large/Huge suits high-DPI screens.
SMA에 점선(미니바) 표시 / Show mini dots on SMA (default: true)
SMA 위에 동그라미 스타일 점선(시각 강조).
Overlay circle-style mini dots on SMA.
미니 도트 두께 / Mini dot linewidth (1–3; default: 1)
미니 도트의 라인 두께.
Line width for mini-dot plots.
라벨 유지 최대 개수(≤500) / Keep at most N labels (50–500; default: 350)
과도한 라벨 누적 방지. 상한 초과 시 오래된 라벨부터 자동 삭제.
Caps total labels; oldest labels are deleted when exceeding the cap.
SMA #1 / #2 / #3
각 SMA 블록에 동일 항목 존재:
표시 / Show (bool; #1 default: on, #2: on, #3: off)
해당 SMA의 표시/비표시.
Toggle each SMA on/off.
길이 / Length (#1: 20, #2: 50, #3: 100; min 1)
SMA 기간.
SMA period.
색상 / Color (#1 teal, #2 orange, #3 purple)
SMA 및 화살표 색상.
Color for SMA and arrows.
두께 / Width (1–5; default: 2)
SMA 선 두께.
Line width of the SMA.
동작 원리 (KR/EN)
기울기(%) 계산 / Slope (%)
(𝑆𝑀𝐴0−𝑆𝑀𝐴𝑛)/∣𝑆𝑀𝐴𝑛∣×100(SMA0 −SMAn )/∣SMAn ∣×100 (n = ΔBars)
이 값의 부호가 음→양이면 상향 전환(▲), 양→음이면 **하향 전환(▼)**로 간주. 전환 시 |기울기| ≥ Min slope % 조건을 만족해야 화살표가 출력됩니다.
The slope sign flip negative→positive marks an UP turn (▲); positive→negative marks a DOWN turn (▼), provided |slope| ≥ Min slope %.
화살표 위치 / Arrow placement
각 SMA 위·아래 ATR(14) × 오프셋만큼 떨어진 위치에 ▲/▼ 라벨을 배치해 선과 겹침을 방지합니다.
Arrows are placed above/below SMA by ATR(14) × offset to avoid overlap.
라벨 관리 / Label housekeeping
표시 라벨 수가 Keep at most N labels를 넘어가면 오래된 것부터 자동 삭제합니다.
Old labels are deleted automatically when the cap is exceeded.
알림(Alerts) (KR/EN)
다음 6개 조건을 제공합니다(각 SMA의 상승/하락 전환):
Provides six alert conditions (UP/DOWN per SMA):
SMA1 slope turned UP / DOWN
SMA2 slope turned UP / DOWN
SMA3 slope turned UP / DOWN
트레이딩뷰에서 인디케이터 추가 후 Create Alert → Condition에서 원하는 항목을 선택하세요.
In TradingView, add the indicator → Create Alert → choose a condition.
추천 프리셋 & 활용 팁 (KR/EN)
KR — 추천값
ΔBars: 12(스캘핑/고변동), 23(일반 데이/스윙)
Min slope (%):
코인/지수 1–15분: 0.03~0.10
주식 5–30분: 0.05~0.20
SMA 조합: (20, 50, 100) 또는 (9, 21, 50)
Arrow offset (×ATR): 0.15~0.30 (종목 변동성에 맞춰 조절)
EN — Suggestions
ΔBars: 1–2 for fast markets; 2–3 for smoother signals
Min slope (%): 0.03–0.10 (crypto/indices 1–15m), 0.05–0.20 (equities)
SMA sets: (20, 50, 100) or (9, 21, 50)
Arrow offset: 0.15–0.30 × ATR
전략 결합 아이디어 / Strategy combos
추세 필터: 장기 SMA(100/200) 우상향일 때만 롱 전환 화살표 활용.
진입·청산 규칙: 전환 화살표 + 캔들 종가가 SMA 상/하 유지 확인 후 실행.
다중 확인: 전환 화살표 + BB 폭 축소/확대, RSI/DI 다이버전스 등과 결합.
문제 해결 (KR/EN)
화살표가 너무 많다(노이즈) → Min slope (%)↑ 또는 ΔBars↑
화살표가 SMA와 겹친다 → Arrow offset (×ATR)↑
라벨 제한 경고 → Keep at most N labels↓ 또는 필요 없는 SMA를 OFF
처음 몇 봉에서 표시 없음 → SMA가 충분히 형성될 때까지 대기(기간만큼 필요)
확장 제안 (선택) / Possible Enhancements
평활 옵션: 기울기(%)에 EMA/SMA 평활 길이 추가
다중 타임프레임: 상위 TF SMA 전환과 동시 조건
라벨 스타일 토글: 텍스트 ▲/▼ 대신 label.style_triangle_* 선택 토글
라벨 정리 루프 최적화: 필요 시 while 루프로 상한 초과분 즉시 정리
한눈에 요약 (KR) / Quick Recap (EN)
3개 SMA의 기울기 전환을 ▲/▼로 즉각 표기
민감도(최소 기울기 %)·ΔBars·ATR 오프셋으로 노이즈 제어
미니 도트로 SMA 흐름 강조
6개 알림(UP/DOWN × 3SMA) 제공
保護スクリプト
このスクリプトのソースコードは非公開で投稿されています。 無料かつ制限なしでご利用いただけます ― 詳細についてはこちらをご覧ください。
免責事項
これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。
保護スクリプト
このスクリプトのソースコードは非公開で投稿されています。 無料かつ制限なしでご利用いただけます ― 詳細についてはこちらをご覧ください。
免責事項
これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。