OPEN-SOURCE SCRIPT
TAKA Auto Retrace + SL v4.2

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
=「ゾーンで待ち、サインで撃つ」戦略
⸻
⚙️ 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提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。