PROTECTED SOURCE SCRIPT

Joseph's %ATR TRAIL STOP band CALC (LONGSHORT-Multitimeframe)

16

MTF ATR Trailing Stop (H1–H4–D): Levels & %Trail Guide

Overview
This indicator computes and plots ATR-based trailing stop levels from Hourly (H1), 4-Hour (H4), and Daily (D) timeframes simultaneously. It is multi-timeframe (MTF), so you get consistent levels regardless of the chart timeframe you use. For higher timeframes, calculations reference the most recent bar to account for different candle ranges.

What you get

Trailing stop lines for H1, H4, and D (ATR-based)

A summary table showing:

H1/H4/D ATR values

Suggested % trailing stop for brokers that support percentage trails

Initial stop-loss level based on the latest bar

Trailing distance (k × ATR) — in a format you can enter directly into your broker’s trailing stop panel

User-selectable ATR length and k multiplier for each timeframe

Recommended defaults

H1: ATR 14, k 2.0

H4: ATR 22, k 2.2

Daily: ATR 22, k 2.5

How to use

Add the indicator to your chart.

At entry, use the table to take the stop-loss and %Trail values and input them in your broker’s order ticket.

Adjust ATR length and k per timeframe to match your risk tolerance and asset characteristics.

Display tips

If lines do not align visually with candles, click the indicator’s three-dot menu → “Scale to Right.”

For the clearest levels, enable “Stepped Lines” in the style settings.

Disclaimer
This tool does not generate signals. It is intended for risk management and level reference. Not financial advice.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.