The Expert Advisor is designed for XAUUSD pair (Daily timeframe). It is a fully automatic EA with minimum settings. The EA opens orders in the same direction as the detected trend. Instead of using stop loss, the Expert Advisor closes the current order and opens a new one in the opposite direction.
Tested on the last 4 years' period (screenshots below). All settings are adjusted for XAUUSD D1.
- Lot - lot size;
- Magic - magic number.