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.
نص برمجي محمي
تم نشر هذا النص البرمجي كمصدر مغلق. ومع ذلك، يمكنك استخدامه بحرية ودون أي قيود - تعرف على المزيد هنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي محمي
تم نشر هذا النص البرمجي كمصدر مغلق. ومع ذلك، يمكنك استخدامه بحرية ودون أي قيود - تعرف على المزيد هنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.