PROTECTED SOURCE SCRIPT

Turtle MTF Donchian plus ATR

23
What you’re looking at

This indicator is a Turtle-style breakout system:

Donchian Channels = breakout levels (entry signals)

ATR = how far to place your Stop Loss and Take Profit (or Donchian exit if you turn that on)

And it can do it on a different timeframe than your chart (MTF).

Step-by-step: how it works
1) You choose your “Signal Timeframe”

In settings:

Signal Timeframe = 1 → signals are based on 1 minute

5 → based on 5 minute

60 → 1 hour

D → daily

✅ You can be on a 1m chart but set signals to D if you want only swing signals.

2) It builds the Donchian breakout levels

It calculates:

Donchian High = the highest high of the last entryLen candles (default 20), excluding the current candle

Donchian Low = the lowest low of the last entryLen candles, excluding current candle

Those two lines are your breakout “walls”.

3) It waits for a REAL breakout (fresh cross)

A long setup triggers only when:

price crosses ABOVE the Donchian High (not just stays above)

A short setup triggers only when:

price crosses BELOW the Donchian Low

✅ This reduces spam signals.

4) It calculates ATR on the same signal timeframe

ATR is volatility. Bigger ATR = bigger stop/target.

Defaults:

ATR length = 20

5) It creates your Entry / SL / TP levels automatically

When a LONG triggers:

Entry = Donchian High

Stop Loss = Entry − (SL mult × ATR)
(default SL mult is 2 → so 2×ATR stop)

Take Profit (if you’re using TP mode) = Entry + (TP mult × ATR)

When a SHORT triggers:

Entry = Donchian Low

Stop Loss = Entry + (SL mult × ATR)

Take Profit = Entry − (TP mult × ATR)

6) It prints it on the chart (easy mode)

When a signal happens it will:

Drop a label that says LONG or SHORT

Show the numbers:

Entry

SL

TP (or Donchian exit level)

Draw horizontal lines for Entry / SL / TP (latest signal only)

7) It can use “true Turtle exit” if you want

If you turn ON:
Use Turtle Exit Rule

Then it does NOT use a fixed TP.
Instead it says:

Long: exit when price breaks below the Donchian exit low (default exitLen = 10)

Short: exit when price breaks above the Donchian exit high

That’s the classic “let winners run” vibe.

8) Alerts (Option A)

You can set alerts for:

Turtle Long

Turtle Short

Those alerts are simple and reliable (no dynamic text).

How YOU would use it (quick examples)
If you trade 1m intraday

Chart: 1m

Signal Timeframe: 1

Try entryLen: 40–60 (less choppy than 20)

ATR: 14–20

SL: 2×ATR

If you want daily swings too

Chart: 1m (for execution)

Signal Timeframe: D (for direction/entries)

That gives you swing breakouts while you watch intraday.

면책사항

해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.