PROTECTED SOURCE SCRIPT
Entry/Stop/Take — TP: R or Nearest Level + Offset + Prep Lines

Title:
Entry/Stop/Take — TP by R-multiple or Nearest Level
Description:
This indicator plots Entry, Stop-Loss and Take-Profit levels after a signal.
How it works:
• Signal example: breakout of a lookback range filtered by EMA200 (you can replace it).
• Stop-Loss = ATR × SL Multiplier.
• Take-Profit modes:
– R-multiple: TP = Entry ± (ATR × SL Mult × TP Mult).
– Nearest level: closest swing resistance (long) or support (short), with configurable offset to exit before the level.
• Lines start at the signal bar and extend until SL or TP is hit.
• Optional right-edge labels and a mini table with values.
Inputs: ATR Length, SL Mult, TP Mult, Lookback (breakout), TP Mode (R-multiple / Nearest level), pivot settings and search window, level offset (%), toggles for labels/table.
Notes:
• No advertisements or external links.
• This script is for educational purposes only and does not constitute financial advice. Backtest and adjust parameters before using in live markets.
Entry/Stop/Take — TP by R-multiple or Nearest Level
Description:
This indicator plots Entry, Stop-Loss and Take-Profit levels after a signal.
How it works:
• Signal example: breakout of a lookback range filtered by EMA200 (you can replace it).
• Stop-Loss = ATR × SL Multiplier.
• Take-Profit modes:
– R-multiple: TP = Entry ± (ATR × SL Mult × TP Mult).
– Nearest level: closest swing resistance (long) or support (short), with configurable offset to exit before the level.
• Lines start at the signal bar and extend until SL or TP is hit.
• Optional right-edge labels and a mini table with values.
Inputs: ATR Length, SL Mult, TP Mult, Lookback (breakout), TP Mode (R-multiple / Nearest level), pivot settings and search window, level offset (%), toggles for labels/table.
Notes:
• No advertisements or external links.
• This script is for educational purposes only and does not constitute financial advice. Backtest and adjust parameters before using in live markets.
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.