OPEN-SOURCE SCRIPT

TAKA Auto Retrace + SL v4.2

93
Automatically detects market trend and displays dynamic retracement zones for buy-the-dip and sell-the-rally setups, with an adaptive Stop-Loss line.



⚙️ Logic Overview
• Trend Detection: Based on the relationship between SMA 20 and SMA 60
• Uptrend → Blue zone (Buy the Dip)
• Downtrend → Red zone (Sell the Rally)
• Retracement Levels: Auto-draws Fibonacci 0.382 – 0.618 range
• Stop-Loss Mode: Select from
• Fib 0.786 (default)
• Structure (last swing high/low)
• ATR-based (volatility adaptive)



🎯 How to Use

1️⃣ Add the indicator to your chart
2️⃣ Adjust len to fit the latest swing move
3️⃣ When price enters the zone, wait for a confirmation signal (arrow, BOS, MACD cross)
4️⃣ Enter after the 0.5 breakout
5️⃣ SL = auto-generated line
 TP = 0.382 → 0.236 → 1.0 partial targets



🧩 Recommended Combo

N-Wave or Dow Theory × MACD × TAKA Retrace
= “Wait on the zone, strike on the signal.”



Short version (for compact description):

Auto trend detection via SMA 20/60.
Draws Fibonacci 0.382–0.618 zones with adaptive Stop-Loss (Fib / Structure / ATR).
Uptrend = Buy zone | Downtrend = Sell zone.



That fits TradingView’s description box and looks clean when published

市場トレンドを自動で判定し
「押し目買い」「戻り売り」ゾーンを自動表示
さらにボラティリティに対応した損切りラインも描画します



ロジック概要
• トレンド判定:SMA20とSMA60の関係で方向を判断
• 上昇トレンド → 青帯(押し目買い)
• 下落トレンド → 赤帯(戻り売り)
• リトレース描画:フィボナッチ0.382〜0.618を自動描画
• 損切り方式(選択可)
• Fib 0.786(基本形)
• Structure(直近高安)
• ATR(ボラティリティ対応)



使い方

1️⃣ チャートに追加
2️⃣ lenを調整し、直近のスイングに合わせる
3️⃣ 価格が帯に入ったらサイン(矢印・BOS・MACDクロス)を待つ
4️⃣ 0.5ライン突破でエントリー
5️⃣ SL=自動ライン / TP=0.382→0.236→1.0で分割利確



推奨組み合わせ

N波動 or ダウ理論 × MACD × TAKA Retrace
=「ゾーンで待ち、サインで撃つ」戦略

Отказ от ответственности

Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.