OPEN-SOURCE SCRIPT
已更新 Wx Stop Loss Beta

Wx Stop Loss Beta is an adaptive stop-loss overlay intended for discretionary entry management in medium- to long-term trades. It integrates a volatility filter, support-based logic, and capital protection constraints.
• Manual Entry Price: User inputs their actual entry point
• Volatility Anchor: Stop-loss adjusts using ATR (customizable length and multiplier)
• Support Reference: Based on swing low over a configurable lookback period
• Loss Cap: Maximum allowable loss percentage from entry price (hard floor)
• Trailing Logic: Stop-loss only moves upward (never lowers), adapting to favorable price action
• Output: Displays a horizontal line at the stop-loss level and renders its value in the data window
Warning: This tool is experimental and has not been formally backtested. It is provided as-is for manual strategy enhancement. Use at your own discretion, and validate thoroughly in a paper or sandbox environment before relying on it in live trading. Feedback and critique are encouraged.
• Manual Entry Price: User inputs their actual entry point
• Volatility Anchor: Stop-loss adjusts using ATR (customizable length and multiplier)
• Support Reference: Based on swing low over a configurable lookback period
• Loss Cap: Maximum allowable loss percentage from entry price (hard floor)
• Trailing Logic: Stop-loss only moves upward (never lowers), adapting to favorable price action
• Output: Displays a horizontal line at the stop-loss level and renders its value in the data window
Warning: This tool is experimental and has not been formally backtested. It is provided as-is for manual strategy enhancement. Use at your own discretion, and validate thoroughly in a paper or sandbox environment before relying on it in live trading. Feedback and critique are encouraged.
版本注释
Wx Stop Loss Beta is an adaptive stop-loss overlay intended for discretionary entry management in medium- to long-term trades. It integrates a volatility filter, support-based logic, and capital protection constraints.• Manual Entry Price: User inputs their actual entry point
• Volatility Anchor: Stop-loss adjusts using ATR (customizable length and multiplier)
• Support Reference: Based on swing low over a configurable lookback period
• Loss Cap: Maximum allowable loss percentage from entry price (hard floor)
• Trailing Logic: Stop-loss only moves upward (never lowers), adapting to favorable price action
• Output: Displays a horizontal line at the stop-loss level and renders its value in the data window
Warning: This tool is experimental and has not been formally backtested. It is provided as-is for manual strategy enhancement. Use at your own discretion, and validate thoroughly in a paper or sandbox environment before relying on it in live trading. Feedback and critique are encouraged.
版本注释
Wx Stop Loss Beta is an adaptive stop-loss overlay intended for discretionary entry management in medium- to long-term trades. It integrates a volatility filter, support-based logic, and capital protection constraints.• Volatility Anchor: Stop-loss adjusts using ATR (customizable length and multiplier)
• Support Reference: Based on swing low over a configurable lookback period
• Loss Cap: Maximum allowable loss percentage from entry price (hard floor)
• Trailing Logic: Stop-loss only moves upward (never lowers), adapting to favorable price action
• Output: Displays a horizontal line at the stop-loss level and renders its value in the data window
Warning: This tool is experimental and has not been formally backtested. It is provided as-is for manual strategy enhancement. Use at your own discretion, and validate thoroughly in a paper or sandbox environment before relying on it in live trading. Feedback and critique are encouraged.
版本注释
Wx Stop Loss Beta is an adaptive stop-loss overlay intended for discretionary entry management in medium- to long-term trades. It integrates a volatility filter, support-based logic, and capital protection constraints.• Support Reference: Based on swing low over a configurable lookback period
• Loss Cap: Maximum allowable loss percentage from entry price (hard floor)
• Trailing Logic: Stop-loss only moves upward (never lowers), adapting to favorable price action
• Output: Displays a horizontal line at the stop-loss level and renders its value in the data window
Warning: This tool is experimental and has not been formally backtested. It is provided as-is for manual strategy enhancement. Use at your own discretion, and validate thoroughly in a paper or sandbox environment before relying on it in live trading. Feedback and critique are encouraged.
版本注释
Wx Stop Loss Beta is an adaptive stop-loss overlay intended for discretionary entry management in medium- to long-term trades. It integrates a volatility filter, support-based logic, and capital protection constraints.• Manual Entry Price: User inputs their actual entry point
• Volatility Anchor: Stop-loss adjusts using ATR (customizable length and multiplier)
• Support Reference: Based on swing low over a configurable lookback period
• Loss Cap: Maximum allowable loss percentage from entry price (hard floor)
• Trailing Logic: Stop-loss only moves upward (never lowers), adapting to favorable price action
• Output: Displays a horizontal line at the stop-loss level and renders its value in the data window
This update removed the blue line connecting every candle.
Warning: This tool is experimental and has not been formally backtested. It is provided as-is for manual strategy enhancement. Use at your own discretion, and validate thoroughly in a paper or sandbox environment before relying on it in live trading. Feedback and critique are encouraged.
版本注释
Wx Stop Loss Beta is an adaptive stop-loss overlay intended for discretionary entry management in medium- to long-term trades. It integrates a volatility filter, support-based logic, and capital protection constraints.• Manual Entry Price: User inputs their actual entry point
• Volatility Anchor: Stop-loss adjusts using ATR (customizable length and multiplier)
• Support Reference: Based on swing low over a configurable lookback period
• Loss Cap: Maximum allowable loss percentage from entry price (hard floor)
• Trailing Logic: Stop-loss only moves upward (never lowers), adapting to favorable price action
• Output: Displays a horizontal line at the stop-loss level and renders its value in the data window
Warning: This tool is experimental and has not been formally backtested. It is provided as-is for manual strategy enhancement. Use at your own discretion, and validate thoroughly in a paper or sandbox environment before relying on it in live trading. Feedback and critique are encouraged.
版本注释
This version now caps the stop-loss at a maximum of 15% below the current price.版本注释
Wx Stop Loss Beta (Live Price Capped)Adaptive, trail-up-only stop-loss overlay. The script computes a base stop each bar and then trails it upward using a persistent series so the stop never decreases.
Method
• Base stop = max( SwingLow(swingBack) − ATR(atrLength)*atrMult , close*(1 − maxLossPct/100) )
– Swing-low minus ATR buffer (volatility / structure)
– Capped so the stop is never deeper than maxLossPct below the current price
• Trail logic: trailStop = max(trailStop[1], baseStop) updated only on bar close (barstate.isconfirmed) to avoid intrabar oscillation. The trailed stop therefore moves up only and never down.
Inputs
• ATR Length (default 14)
• ATR Multiplier (default 1.0)
• Swing Low Lookback (default 12)
• Max Loss % from Current Price (default 15%)
Output
• Horizontal stop line (extends right) and a label showing SL: <value> at the current bar.
Notes / Limitations
• The stop does not auto-reset after a hypothetical stop-out; it keeps the last trailed value. (Add your own reset/exit logic if desired.)
• Works on any timeframe; updates on confirmed bars only.
• Visual tool only—does not place broker orders.
Disclaimer
Experimental beta. No formal backtest included. Use at your own discretion; validate in paper trading before live use. Not investment advice.
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。