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

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.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.