Gold Tristronge XXX
- Experts
- Jeison Martinez Quintero
- Versione: 2.5
- Attivazioni: 5
Version 2.05 – Impulsive Strategy on M1 Timeframe
General Description
Gold Tristronge XXX is an Expert Advisor (EA) designed exclusively for trading the XAUUSD (Gold) pair on the 1-minute (M1) chart. Its operation is based on an impulsive strategy that identifies candles with an exceptionally wide range (greater than a multiple of the ATR) and, optionally, filters them by trend alignment on the M15 timeframe.
The EA constantly evaluates the market and only opens a trade when a clear signal appears, dynamically managing risk based on account balance, consecutive losses, and daily or monthly limits. Additionally, it incorporates an informational panel on the chart that displays in real-time: balance, equity, drawdown, win rate, signal score, market regime, and the status of risk pauses.
Advantages and Key Features
-
Adaptive Impulsive Strategy
Detects 1-minute candles with a range greater than 2 times the ATR (adjustable). If trend alignment is enabled ( InpRequireTrendAlignment = true ), it only trades in the direction of the trend defined by the M15 EMAs (25, 50, 200). This avoids entries against the main trend. -
Intelligent Risk Management
-
Consecutive Losses: after 4 consecutive losses, the risk is reduced by half; if the account also drops more than 1% from the day's starting balance, trading is paused until the next day.
-
Daily Loss/Profit Limits (1.9% and 5.7% by default).
-
Monthly Drawdown Limit (10% from the monthly peak) and Monthly Profit Cap (20% from the month's starting balance). When reached, all positions are closed and trading stops until the next month.
-
Maximum Trades Per Day (3 by default).
-
-
Automatic Close at the End of the American Session
The parameter InpCloseProfitableBeforeEnd (now set to true by default) makes the EA close ALL open positions during the last 5 minutes before the scheduled closing time of the American session ( InpAmericanEnd = 21:53 in the current configuration). This protects profits and avoids holding risks overnight. -
Trading Session Selection
You can trade only during the Asian, European, American session, or a custom timeframe.-
American Session: stops opening new trades 15 minutes before the close (at 21:38 if the close is at 21:53).
-
European Session: default schedule 08:00 – 15:30.
-
Asian Session: 00:00 – 08:00.
-
Custom: define your own start and end times.
-
-
On-Chart Control Panel
Displays at all times:-
Balance and Equity
-
Current Drawdown
-
Win Rate and Expectancy
-
Latest Signal Score (0-100)
-
Market Regime (Uptrend / Downtrend / Range)
-
Active Risk Multiplier
-
Number of Open Trades and Trades Today
-
Status of Daily Loss Pause, Monthly Drawdown Pause, or Monthly Profit Cap
-
Pause / Resume button to manually stop or restart trading.
-
-
Trade Spacing
Waits at least 10 one-minute candles (10 minutes) between one trade and the next, preventing excessively frequent entries. -
Dynamic Lot Calculation
Lot size is calculated based on the base risk percentage ( InpRiskBase ), the multiplier for consecutive losses, and the Stop Loss distance in points, respecting the broker's volume limits. -
Hedging Compatibility
Option to open an intelligent hedge (half the lot in the opposite direction) when InpUseHedge is enabled (disabled by default).
Input Parameters (Recommended Values)
Below is a list of all configurable parameters, with a brief explanation and the recommended value (as set in the final version of the code). You can adjust them according to your risk tolerance and preferences.
Core Settings
| Parameter | Description | Recommended Value |
|---|---|---|
| InpSymbol | Trading symbol | "XAUUSD" |
| InpRiskBase | % of balance to risk per trade (base) | 1.01 |
| InpMaxSimTrades | Maximum simultaneous trades | 1 |
| InpMaxDailyLossPct | Maximum daily loss % from day's starting balance | 1.9 |
| InpMaxDailyProfitPct | Maximum daily profit % (pauses for the rest of the day) | 5.7 |
| InpWinrateWindow | Number of trades for win rate calculation | 50 |
| InpMinScore | Minimum score to open a trade (0-100) | 60 |
| InpUseHedge | Enable intelligent hedge (not recommended) | false |
| InpATRPeriod | ATR period | 22 |
| InpSL_ATR_Mult | ATR multiplier for Stop Loss | 6.89292035 |
| InpTP_ATR_MinMult | Minimum SL multiplier for Take Profit | 2.0 |
| InpTP_ATR_MaxMult | Maximum SL multiplier for Take Profit | 3.0 |
| InpEMAPeriod1 | Fast EMA (1 minute) | 25 |
| InpEMAPeriod2 | Medium EMA (1 minute) | 50 |
| InpEMAPeriod3 | Slow EMA (1 minute) | 200 |
| InpADXPeriod | ADX period | 14 |
| InpADXThreshold | Threshold for considering a trend | 25 |
| InpMagicNumber | Magic number to identify trades | 910717 |
| InpMaxTradesPerDay | Maximum trades per day | 3 |
Impulsive Strategy
| Parameter | Description | Recommended Value |
|---|---|---|
| InpUseImpulsiveStrategy | Enable impulsive strategy (if disabled, uses old scoring) | true |
| InpWideRangeATRMult | ATR multiple to consider a candle "wide" | 2.0 |
| InpWideRangeLookback | (Reserved) | 5 |
| InpRequireTrendAlignment | Require alignment with M15 trend | true |
| InpMaxBarsBackForSignal | Maximum bars to look back for a wide candle | 7 |
Session Selection
| Parameter | Description | Recommended Value |
|---|---|---|
| InpTradeSession | Trading session | SESSION_CUSTOM |
| InpCustomStartTime | Custom session start time | "08:00" |
| InpCustomEndTime | Custom session end time | "15:30" |
| InpAsianStart | Asian session start | "00:00" |
| InpAsianEnd | Asian session end | "08:00" |
| InpEuropeanStart | European session start | "08:00" |
| InpEuropeanEnd | European session end | "15:30" |
| InpAmericanStart | American session start | "15:00" |
| InpAmericanEnd | American session end (EA stops trading 15 min before and closes all positions in the last 5 min if the option is active) | "21:53" |
Monthly Protections & Close
| Parameter | Description | Recommended Value |
|---|---|---|
| InpCloseProfitableBeforeEnd | Closes ALL trades in the last 5 minutes before the American session end | true |
| InpUseMonthlyProtection | Enable monthly drawdown protection | true |
| InpMonthlyMaxDrawdownPct | Maximum monthly drawdown % from peak | 10.0 |
| InpUseMonthlyProfitLimit | Enable monthly profit limit | true |
| InpMonthlyMaxProfitPct | Monthly profit % from month-start balance to pause trading | 20.0 |
Legacy Parameters (Not Used in Impulsive Mode)
| Parameter | Description | Recommended Value |
|---|---|---|
| InpRSIPeriod | RSI period | 14 |
| InpStochK | Stochastic %K period | 5 |
| InpStochD | Stochastic %D period | 3 |
| InpStochSlow | Stochastic slowing | 3 |
| InpBBPeriod | Bollinger Bands period | 20 |
| InpBBDeviation | Bollinger Bands deviation | 2.0 |
Usage Recommendations
-
Symbol: Exclusively XAUUSD (Gold), due to parameter calibration.
-
Timeframe: The chart must be set to M1 (the EA works with 1-minute candles).
-
Minimum Recommended Deposit: At least $1000 to support the 1% risk management and minimum lot sizes.
-
Hedging Account: Not required, but if you enable InpUseHedge , ensure your broker allows hedging.
-
Execution: An ECN or low-latency account is recommended to take advantage of M1 signals.
Note on the Modification Made
In this final version, the behavior of the InpCloseProfitableBeforeEnd parameter has been modified:
It now closes ALL open positions (both winners and losers) during the last 5 minutes prior to the time set in InpAmericanEnd .
In the default configuration, with the close set to 21:53, trades will be closed between 21:48 and 21:53.
This allows you to end the trading day with no open positions, protecting the account from adverse movements outside trading hours.
Gold Tristronge XXX combines a simple yet effective opportunity detection mechanism with professional risk management, all in an easy-to-use and fully customizable package. Make the most of it by adjusting the parameters to your style!
