Description:
The Trix EA, designed for the H4 timeframe, leverages the Trix indicator by raff1410. To get started, simply place the Trix_EA.mq4 file in the "experts" folder and the other two mq4 files into the "indicators" folder.

Recommendations:
Before diving into live trading, make sure to test the EA on a demo account first. This way, you’ll get a feel for its performance without risking your capital.
Strategy Tester Report
Trix_EA
InterbankFX-Demo Accounts (Build 217)
| Symbol | USDCAD (US Dollar vs Canadian Dollar) | ||||
| Period | 4 Hours (H4) 2008.06.29 20:00 - 2008.07.18 16:00 (2008.06.29 - 2008.07.30) | ||||
| Model | Every tick (the most precise method, based on all available data) | ||||
| Parameters | Lots=2.8; StopLoss=50; TakeProfit=0; TradeAtCloseBar=true; TrailingStop=0; TrailingStep=1; BreakEven=0; MagicNumber=0; Repeat=3; Periods=5; UseAlert=false; SendEmail=true; TradeLog="Trix_EA"; Slippage=3; Indicator_Setting="---------- Indicator Setting"; TimeFrame=0; TRIX_Period=13; Signal_Period=8; Signals=true; CountBars=1500; | ||||
| Bars in Test | 1090 | Modeled Ticks | 64823 | Model Quality | 90.00% |
| Graphical Errors | 0 | ||||
| Initial Deposit | $10,000.00 | ||||
| Net Total Profit | $7,000.14 | Gross Profit | $7,000.14 | Gross Loss | $0.00 |
| Profit Factor | Expected Payoff | $2,333.38 | |||
| Absolute Drawdown | $1,029.72 | Max Drawdown (%) | $4,115.05 (29.83%) | Relative Drawdown | 29.83% ($4,115.05) |
| Total Trades | 3 | Winning SHORT (sell) % | 1 (100.00%) | Winning LONG (buy) % | 2 (100.00%) |
| Profits from Trades (% of total) | 3 (100.00%) | Losses from Trades (% of total) | 0 (0.00%) | ||
| Max | Profit per Trade | $4,280.68 | Loss per Trade | $0.00 | |
| Average | Profit per Trade | $2,333.38 | Loss per Trade | $0.00 | |
| Maximum | Consecutive Wins (profit in $) | 3 ($7,000.14) | Consecutive Losses (loss in $) | 0 ($0.00) | |
| Maximal | Consecutive Wins (winning streak) | $7,000.14 (3) | Consecutive Losses (losing streak) | $0.00 (0) | |
| Average | Consecutive Wins | 3 | Consecutive Losses | 0 | |

| # | Execution Date | Transaction | Order | Volume | Price | S/L (Stop Loss) | T/P (Take Profit) | Profit | Balance |
| 1 | 2008.06.30 04:00 | buy | 1 | 2.80 | 1.0098 | 1.0048 | 0.0000 | ||
| 2 | 2008.07.07 04:05 | close | 1 | 2.80 | 1.0197 | 1.0048 | 0.0000 | $2,663.77 | $12,663.77 |
| 3 | 2008.07.08 16:00 | sell | 2 | 2.80 | 1.0204 | 1.0254 | 0.0000 | ||
| 4 | 2008.07.18 00:04 | close | 2 | 2.80 | 1.0052 | 1.0254 | 0.0000 | $4,280.68 | $16,944.45 |
| 5 | 2008.07.18 00:04 | buy | 3 | 2.80 | 1.0053 | 1.0003 | 0.0000 | ||
| 6 | 2008.07.18 19:58 | close at stop | 3 | 2.80 | 1.0055 | 1.0003 | 0.0000 | $55.69 | $17,000.14 |
Related Posts
- Harnessing MQL5 Wizard for Trading Signals: 3 Black Crows & 3 White Soldiers with MFI
- Mastering the Moving Average EA for MetaTrader 5: A Trader's Guide
- Creating a Stochastic-Based EA for Hammer and Hanging Man Patterns in MetaTrader 5
- Mastering Trading Signals with MQL5 Wizard: Bullish and Bearish Engulfing Strategies
- Mastering Bullish and Bearish Harami Patterns with Stochastic in MT5