Goldline advanced
- Uzmanlar
-
Gabriel Henrique Souza Gaya
Desenvolvedor com 5 anos de experiência em desenvolvimento de Sistemas de Trading automatizados. Especialista em MQL5 para criação de Expert Advisors, com background sólido em C++ (performance, execução de ordens) e Python (backtests, pipelines de dados, análise e deploy). Experiência com execução - Sürüm: 2.32
- Etkinleştirmeler: 5
Fimathe Channel Breakout for Gold
This Expert Advisor trades gold (XAUUSD) using a channel breakout method based on the Fimathe approach. It was designed for the M5 timeframe. Every entry follows fixed rules, and every order is sent with a stop loss and a take profit.
How the strategy works
- Opening channel (CA). The EA reads four closed candles and draws the high and low of the group. Only closed candles are used, so the lines do not change while a candle is forming.
- Projection (C1). When a candle body closes outside the opening channel, the channel size is projected in the direction of the breakout. The opening channel plus this projection form the full channel.
- Entry (C2). When a candle body closes outside the full channel, the EA opens one trade in the direction of the breakout.
- Exit. The stop loss is placed beyond the opposite side of the channel plus a buffer set as a percent of the channel size. The take profit is placed near the C2 line, advanced by a percent you choose, so that small pullbacks near the line do not prevent the exit.
- Restart. After the trade closes, the EA waits for new candles and builds a new channel.
Very large candles are ignored when the opening channel is built. If the opening channel is already very large, it is treated as the full channel and the projection step is skipped.
Risk management
The lot size is calculated from the percent of the account balance you choose to risk and from the distance to the stop loss. The EA opens at most one trade per cycle and at most one buy and one sell at a time. Optional daily profit target and daily loss limit can be turned on or off. When they are off, the EA runs continuously.
With small balances the minimum lot of the broker can make the real risk higher than the percent set in the input. A balance of about USD 2,000 or more is recommended for the default risk of 0.5%.
On-chart information
A small panel shows the current state (searching for the channel, channel ready, waiting for entry), the channel size and the result of the day. Horizontal lines mark the opening channel, the C1 level and the C2 level.
Recommended setup
Symbol: XAUUSD. Timeframe: M5. Account: hedging or netting. Use a broker with low gold spreads. Default inputs are ready to use and do not need optimization. Server time is used for the daily reset.
Results
Test example (fill with your own real test before publishing): XAUUSD, M5, period [start - end], initial deposit [amount], leverage [1:x], model Every tick, default inputs. Total net profit [value], profit factor [value], maximum drawdown [value], total trades [value]. Strategy Tester results are simulated and do not guarantee future results.
Important
Trading leveraged products involves a high risk of loss. Test on a demo account first. The take profit is closer than the stop loss, so the strategy depends on a good win rate. Spread, slippage and broker conditions affect the results.
About the author
[One or two sentences about your trading and programming background. Keep your MQL5 profile complete and in English.]
