OPEN-SOURCE SCRIPT
AutoTrade Bot v12

Auto-Trade Bot v12 is a trend-following strategy designed for high-probability swing setups. This version introduces a significant upgrade: a multi-timeframe EMA-115 filter sourced from the 1-hour chart to ensure that all entries align with the institutional trend.
The strategy utilizes liquidity sweep logic combined with momentum oscillators to identify precise entry points with a disciplined 5.0 Risk-to-Reward (R:R) ratio.
Key Features
1H EMA-115 Trend Filter: Automatically pulls the 1-hour Exponential Moving Average to your current timeframe. It only permits Longs when the 1H trend is rising and price is above the EMA.
Liquidity Sweep Logic: Identifies "Stop Runs" by tracking price action that sweeps recent swing highs or lows before confirming a reversal.
HMA 20 Smoothing: Uses a Hull Moving Average for fast, lag-reduced trend confirmation.
Williams %R (Willy) Confirmation: Filters momentum using a smoothed Williams %R to ensure the market is recovering from oversold/overbought conditions before entering.
Dual Entry Modes (HP/LP): * HP (High Probability): Direct momentum recovery from extreme oversold levels.
LP (Low Probability/Higher Low): Trend continuation based on Higher Low (for Longs) or Lower High (for Shorts) structures.
Automated Trade Management: Pre-calculated Stop Loss and Take Profit levels based on a strict 5:1 reward ratio.
How to Use
Select Your Mode: The script defaults to "Longs Only Mode" to capitalize on bullish market structures, but can be toggled to include Shorts in the settings.
Timeframe: Designed for lower timeframes (1m, 5m, 15m) while referencing the 1H EMA for trend guidance.
Risk Management: The strategy risks the distance to the recent sweep low. Adjust your Risk to Reward Ratio input if your specific asset requires a tighter or wider target.
Alerts: Fully compatible with TradingView alerts. The script outputs a clean JSON format ready for webhook integration with automated execution platforms.
Technical Breakdown
EMA Filter: 115-period EMA from the 60-minute timeframe.
HMA Filter: 20-period Hull Moving Average on the chart timeframe.
Sweep Lookback: 14 bars (Customizable).
Default R:R: 5.0 (Targeting $5 profit for every $1 risked).
Disclaimer: This script is for educational and informational purposes only. Backtest thoroughly on your preferred pair and timeframe before considering live application.
The strategy utilizes liquidity sweep logic combined with momentum oscillators to identify precise entry points with a disciplined 5.0 Risk-to-Reward (R:R) ratio.
Key Features
1H EMA-115 Trend Filter: Automatically pulls the 1-hour Exponential Moving Average to your current timeframe. It only permits Longs when the 1H trend is rising and price is above the EMA.
Liquidity Sweep Logic: Identifies "Stop Runs" by tracking price action that sweeps recent swing highs or lows before confirming a reversal.
HMA 20 Smoothing: Uses a Hull Moving Average for fast, lag-reduced trend confirmation.
Williams %R (Willy) Confirmation: Filters momentum using a smoothed Williams %R to ensure the market is recovering from oversold/overbought conditions before entering.
Dual Entry Modes (HP/LP): * HP (High Probability): Direct momentum recovery from extreme oversold levels.
LP (Low Probability/Higher Low): Trend continuation based on Higher Low (for Longs) or Lower High (for Shorts) structures.
Automated Trade Management: Pre-calculated Stop Loss and Take Profit levels based on a strict 5:1 reward ratio.
How to Use
Select Your Mode: The script defaults to "Longs Only Mode" to capitalize on bullish market structures, but can be toggled to include Shorts in the settings.
Timeframe: Designed for lower timeframes (1m, 5m, 15m) while referencing the 1H EMA for trend guidance.
Risk Management: The strategy risks the distance to the recent sweep low. Adjust your Risk to Reward Ratio input if your specific asset requires a tighter or wider target.
Alerts: Fully compatible with TradingView alerts. The script outputs a clean JSON format ready for webhook integration with automated execution platforms.
Technical Breakdown
EMA Filter: 115-period EMA from the 60-minute timeframe.
HMA Filter: 20-period Hull Moving Average on the chart timeframe.
Sweep Lookback: 14 bars (Customizable).
Default R:R: 5.0 (Targeting $5 profit for every $1 risked).
Disclaimer: This script is for educational and informational purposes only. Backtest thoroughly on your preferred pair and timeframe before considering live application.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。