OPEN-SOURCE SCRIPT

AutoTrade Bot v12

2 170
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.

Thông báo miễn trừ trách nhiệm

Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.