TUT TRIX EA — How It Works
"Setting files are always updated and you will find them in the "Comments" Section ..
Core Signal Engine
The EA uses the Updated THV TRIX indicator built directly inside it — no external file needed. The indicator runs two T3 exponential moving average chains (fast period 20, slow period 35) and compares their rate of change. When the signal line crosses above the Trix line a green buy arrow fires. When it crosses below a red sell arrow fires. All signals are read from the last closed bar so there is no repainting.
Grid Trading Logic
The EA builds a mixed grid of buys and sells following every THV signal in sequence:
- Signal 1 → opens a trade in the signal direction at base lot
- Signal 2 → opens the next trade (opposite or same direction, whatever THV says) at base lot × multiplier¹
- Signal 3 → opens at base lot × multiplier²
- Every new signal adds one more trade to the grid, doubling (or multiplying) the lot each time
- All trades — buys and sells together — stay open simultaneously as one group
Group Exit
The EA monitors the combined floating profit of all open trades as a single number every tick. Once the group profit rises above zero it starts tracking the peak profit. When profit pulls back from that peak by the trailing stop amount, every trade closes at once. The grid counter resets and the next signal starts a fresh cycle from lot 1.
Cycle Reset
The grid resets to lot 1 whenever:
- The group trailing stop triggers (profit pulled back from peak)
- The group breakeven floor is breached (profit fell below the locked floor)
- Maximum number of trades is reached (closes all immediately)
Settings Reference
General
| Setting | Description |
| EA_Comment | Text label attached to every trade opened by the EA |
| MagicNumber | Unique ID number — lets the EA identify its own trades. Change this if running multiple EAs on the same account |
| Slippage | Maximum allowed slippage in points when opening or closing trades |
Timeframe
| Setting | Description |
| Signal_Timeframe | Which timeframe the THV signal is read from. 0 = current chart timeframe. Other values: 1=M1, 5=M5, 15=M15, 30=M30, 60=H1, 240=H4, 1440=D1, 10080=W1, 43200=MN1. The EA can run on any chart and read signals from a different timeframe |
Lot & Risk
| Setting | Description |
| FixedLot | The base lot size for the first trade in every grid cycle |
| UseRiskManagement | When ON, the base lot is calculated automatically from your account balance instead of using FixedLot |
| RiskPercent | Only active when UseRiskManagement is ON. Percentage of account balance to risk per trade (e.g. 1.0 = 1%) |
| UseMartingale | When ON, each new grid trade multiplies the previous lot by MartingaleMultiplier |
| MartingaleMultiplier | The multiplication factor per grid step (e.g. 2.0 doubles each trade) |
| MaxLot | Hard ceiling — no single trade will ever exceed this lot size regardless of grid depth |
Trade Management
| Setting | Description |
| UseMaxTrades | When ON, enforces a maximum number of open trades |
| MaxTrades | When this number of trades is reached, all trades close immediately |
| UseMaxSpread | When ON, blocks new trades if the current spread is too wide |
| MaxSpreadPips | Maximum allowed spread in pips to allow a new trade |
| CloseOnOppositeSignal | Kept for reference — in grid mode all signals add to the grid rather than closing existing trades |
TP / SL
| Setting | Description |
| TakeProfit_Points | Take profit in points set on each individual trade. In 5-digit brokers, 10 points = 1 pip. Set to 0 to disable |
| StopLoss_Points | Stop loss in points set on each individual trade. Set to 0 to disable |
Trailing Stop (Group-Level)
| Setting | Description |
| UseTrailingStop | When ON, the group trail is active |
| TrailingStop_Points | How far profit is allowed to pull back from its peak before all trades close. Measured in points, applied to the combined group profit in money |
| TrailingStep_Points | Minimum step size — kept for settings compatibility |
Breakeven (Group-Level)
| Setting | Description |
| UseBreakeven | When ON, a profit floor is locked in once the group reaches the trigger |
| Breakeven_TriggerPts | Minimum group profit in points that must be reached before the floor is activated |
| Breakeven_ExtraPts | The floor level — if group profit falls below this after the trigger is hit, all trades close |
Filters
All filters are OFF by default. When enabled, a trade only opens if all active filters agree with the signal direction.
| Filter | Key Settings | Logic |
| RSI | Period, BuyLevel, SellLevel, OverboughtLevel, OversoldLevel | Buy requires RSI above BuyLevel and below OverboughtLevel. Sell requires RSI below SellLevel and above OversoldLevel |
| MACD | FastEMA, SlowEMA, SignalSMA | Buy requires MACD main line above signal line. Sell requires main below signal |
| ATR | Period, MinPips | Blocks trades if volatility (ATR) is below the minimum pip threshold — avoids flat market entries |
| ADX | Period, MinLevel | Blocks trades if trend strength (ADX) is below the minimum — avoids ranging market entries |
| Ichimoku | Tenkan, Kijun, Senkou | Buy requires price above the Kumo cloud. Sell requires price below the cloud |
| Alligator | Jaw, Teeth, Lips periods | Buy requires Lips above Teeth above Jaw (uptrend alignment). Sell requires Lips below Teeth below Jaw |
| Parabolic SAR | Step, Maximum | Buy requires PSAR dot below price. Sell requires PSAR dot above price |
Dashboard (on-chart display)
The EA shows a live panel on the chart with: current signal arrows, Trix and Signal values, number of open trades, current grid number and next trade lot preview, combined group P&L, peak P&L reached, trail status (waiting / ACTIVE), spread, and the on/off state of every feature.