Idea by: Sergey.
MQL5 code by: Vladimir Karputov.
Meet Brandy, the Expert Advisor (EA) designed to enhance your trading on MetaTrader 5! This handy tool leverages two Moving Average indicators to generate trading signals. Essentially, the slower indicator (MA "Open") is your go-to for opening trades, while the faster one (MA "Close") closes them. Brandy springs into action whenever a new bar appears on your chart, and you won’t have to worry about a cap on the number of positions it can handle. Plus, it supports position trailing to help you lock in those profits!
Key Inputs for Brandy
- Lots - This determines the volume of the position you’re looking to open.
- Stop Loss (in pips) - Set your Stop Loss to manage risk.
- Take Profit (in pips) - Define your Take Profit target here.
- Trailing Stop (in pips) - Activate trailing to maximize potential gains.
- Trailing Step (in pips) - Adjust the step for your trailing stop.
- MA "Close": averaging period - Specify the averaging period for the MA "Close".
- MA "Close": horizontal shift - Set the horizontal shift for MA "Close".
- MA "Close": smoothing type - Choose the smoothing method for MA "Close".
- MA "Close": type of price - Decide the price type for MA "Close".
- MA "Close": bar closing position - Indicate which bar’s number will trigger the closing signal.
- MA "Open": averaging period - Define the averaging period for the MA "Open".
- MA "Open": horizontal shift - Set the horizontal shift for MA "Open".
- MA "Open": smoothing type - Select the smoothing method for MA "Open".
- MA "Open": type of price - Choose the price type for MA "Open".
- MA "Open": bar opening position - Indicate which bar’s number will trigger the opening signal.
- Magic Number - This is a unique identifier for your EA.
In testing across multiple symbols on the H1 timeframe from January 1, 2018, to April 22, 2018, with default EA parameters, Brandy has shown promising results:

Related Posts
- Creating an Expert Advisor for Dark Cloud Cover and Piercing Line Patterns with CCI Confirmation
- Harnessing MQL5 Wizard for Trading Signals: 3 Black Crows & 3 White Soldiers with MFI
- Harnessing MQL5 Wizard for Bullish and Bearish Harami Signals with CCI Confirmation
- RRS Impulse: Your Go-To Scalping EA for MetaTrader 4
- Ilan 1.6 Dynamic HT: Your Go-To EA for MetaTrader 5 Trading