MA CROSSOVER FOREX WITH RISK MANAGEMENT

Specification

1. Purpose

The purpose of this Forex bot (Expert Advisor) is to automate trading based on a Moving Average crossover strategy. The bot will place trades, manage risk, and monitor positions without human intervention while allowing configuration of strategy parameters.


---

2. Scope

Automate trading on selected Forex pairs (EUR/USD, GBP/USD, etc.)

Support multiple timeframes (H1, H4, Daily)

Manage positions, including stop-loss, take-profit, trailing stops, and lot sizing

Provide logs, alerts, and notifications

Support backtesting in MetaTrader Strategy Tester



---

3. Functional Requirements

ID Feature Description Priority

FR1 MA Crossover Signal Generate BUY signal when Fast MA crosses above Slow MA; SELL when Fast MA crosses below Slow MA High
FR2 Trade Execution Automatically open/close trades based on signals High
FR3 Stop Loss Set configurable stop-loss in pips High
FR4 Take Profit Set configurable take-profit in pips High
FR5 Lot Sizing Lot can be fixed or calculated based on risk % of account High
FR6 Trailing Stop Optional trailing stop feature (configurable distance) Medium
FR7 Trade Logging Record trade details: entry/exit price, time, P&L High
FR8 Alerts & Notifications Notify user on trade execution via MT alerts or email Medium
FR9 Multi-Pair Support Ability to run on multiple currency pairs simultaneously Medium
FR10 Time Filter Optional session/time-based trading (e.g., London/New York hours) Medium
FR11 Backtesting Compatibility EA should run in MetaTrader Strategy Tester High



---

4. Non-Functional Requirements

ID Requirement Description

NFR1 Performance EA must process ticks without delays to avoid missed signals
NFR2 Reliability EA must handle errors gracefully (e.g., network failure, broker errors)
NFR3 Security EA will not access user data beyond trading account information
NFR4 Usability User should be able to configure parameters easily via MT input fields
NFR5 Maintainability Code should be modular, readable, and commented for future updates
NFR6 Compliance Must follow MetaTrader platform rules and broker constraints



---

5. Inputs / Parameters

Parameter Type Default Description

FastMA Integer 14 Period of fast moving average
SlowMA Integer 50 Period of slow moving average
LotSize Double 0.1 Fixed lot size for trades
RiskPercent Double 1.0 Percentage of account balance to risk per trade
StopLossPips Integer 30 Stop loss distance in pips
TakeProfitPips Integer 50 Take profit distance in pips
TrailingStopPips Integer 20 Optional trailing stop distance
TradingHours String "0-24" Time range for trading in server hours



---

6. Assumptions & Constraints

EA will run on MT4/MT5 with standard broker accounts

Broker allows trading of selected currency pairs

Execution may be affected by spreads and slippage

No guarantee of profit — performance depends on market conditions



---

7. Testing Requirements

Backtest on historical data (1 month, 6 months, 1 year)

Verify that trades are opened/closed according to signals

Validate stop-loss, take-profit, and trailing stop logic

Confirm lot sizing calculation based on account balance and risk

Ensure EA does not place duplicate trades on same signal



---

8. Deliverables

Fully functional MQL4 / MQL5 Expert Advisor (.mq4 / .mq5 file)

User manual with instructions for installation and parameter settings

Example backtest reports with screenshots

Source code with comments for maintainability



---

9. Future Enhancements

Incorporate additional indicators (RSI, MACD, Bollinger Bands)

Multi-timeframe analysis

News filter to avoid high-volatility events

Graphical interface for easier parameter contro

Responded

1
Developer 1
Rating
(4)
Projects
3
33%
Arbitration
2
0% / 100%
Overdue
0
Free
2
Developer 2
Rating
(17)
Projects
21
14%
Arbitration
8
38% / 38%
Overdue
3
14%
Loaded
3
Developer 3
Rating
(8)
Projects
8
0%
Arbitration
2
50% / 0%
Overdue
1
13%
Working
4
Developer 4
Rating
(274)
Projects
403
28%
Arbitration
40
40% / 50%
Overdue
1
0%
Free
5
Developer 5
Rating
(390)
Projects
416
30%
Arbitration
74
19% / 72%
Overdue
52
13%
Working
6
Developer 6
Rating
(62)
Projects
90
29%
Arbitration
24
13% / 58%
Overdue
7
8%
Working
7
Developer 7
Rating
(47)
Projects
67
37%
Arbitration
5
40% / 40%
Overdue
1
1%
Free
8
Developer 8
Rating
Projects
0
0%
Arbitration
1
0% / 100%
Overdue
0
Free
9
Developer 9
Rating
(318)
Projects
565
35%
Arbitration
81
31% / 44%
Overdue
204
36%
Free
10
Developer 10
Rating
Projects
2
0%
Arbitration
4
25% / 50%
Overdue
1
50%
Free
11
Developer 11
Rating
(144)
Projects
186
41%
Arbitration
24
58% / 21%
Overdue
13
7%
Free
12
Developer 12
Rating
(48)
Projects
58
34%
Arbitration
15
27% / 60%
Overdue
1
2%
Working
13
Developer 13
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
14
Developer 14
Rating
(1)
Projects
3
0%
Arbitration
0
Overdue
0
Free
15
Developer 15
Rating
(268)
Projects
602
34%
Arbitration
65
20% / 57%
Overdue
147
24%
Working
Published: 1 article, 22 codes
16
Developer 16
Rating
(510)
Projects
977
74%
Arbitration
27
19% / 67%
Overdue
100
10%
Free
Published: 1 article, 6 codes
17
Developer 17
Rating
(258)
Projects
267
30%
Arbitration
0
Overdue
3
1%
Working
Published: 2 codes
18
Developer 18
Rating
(20)
Projects
26
38%
Arbitration
6
33% / 50%
Overdue
0
Free
19
Developer 19
Rating
(10)
Projects
14
43%
Arbitration
0
Overdue
3
21%
Free
20
Developer 20
Rating
(1)
Projects
0
0%
Arbitration
1
0% / 100%
Overdue
0
Free
21
Developer 21
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
22
Developer 22
Rating
(162)
Projects
289
35%
Arbitration
18
22% / 61%
Overdue
43
15%
Free
23
Developer 23
Rating
(271)
Projects
553
50%
Arbitration
57
40% / 37%
Overdue
227
41%
Working
24
Developer 24
Rating
(7)
Projects
6
0%
Arbitration
4
25% / 75%
Overdue
2
33%
Free
Similar orders
Project Overview I am looking for an experienced MetaTrader 5 (MT5) Expert Advisor developer to build a professional, production-quality automated trading system from a detailed Software Requirements Specification (SRS). The strategy is based on a custom implementation of the MACD indicator combined with advanced trade management and a proprietary basket/grid recovery methodology. The complete strategy and
DESCRIPTION: I have a trading bot (Pips Sure EA v2.1) that operates on MT4, but I do not own the original .mq4 source code file. I need an experienced MQL4 developer to build a clean, optimized clone from scratch so that I can own the source code for long-term updates. WHAT I WILL PROVIDE: 1. The compiled .ex4 bot file. 2. The companion custom indicator file used by the bot (HiLo.ex4). 3. Detailed screenshots of all
I need a trading robot for MetaTrader 5 that works on mobile for XAUUSD. === TRADING RULES === Symbol: XAUUSD Timeframe: M15 Trading Hours: 10:00 to 18:00 server time only Buy: When 10 EMA crosses above 50 EMA Sell: When 10 EMA crosses below 50 EMA Close opposite position when new signal appears === RISK MANAGEMENT === Risk per trade: 1% of account balance Stop Loss: 300 points / $3.00 Take Profit: 600 points / $6.00
Jona copilot v12 30 - 40 USD
Hi, I'm interested in ordering an MT4 trading bot. Before we begin, could you please send me the technical specifications and requirements you'll need? Specifically, I'd like to know: - The trading strategy the bot will use. - The currency pairs or instruments it will trade. - The timeframes it supports. - Risk management features (lot sizing, stop loss, take profit, trailing stop, maximum drawdown). - Whether it
Hello, I want this project to be a complete redesign, not just an update. My goal is to build an institutional-grade TradingView indicator that is extremely accurate, stable, fast, and completely non-repainting. You are free to modify, delete, replace, or completely rewrite any part of the code if it improves the final result. I don't care about preserving the current code or appearance—I only care about building the
Hola, traders e inversores: Desarrollamos soluciones de trading algorítmico para MetaTrader 4 y MetaTrader 5. Creamos bots, indicadores y herramientas a medida que convierten estrategias manuales en sistemas automáticos, configurables y orientados a una gestión de riesgo sólida. Hemos trabajado en automatizaciones que integran entradas y salidas por reglas, cálculo de lotaje, control de drawdown, filtros de horario y
automatic robo sell at bollinger band upwards breach and rsi should above 80 and buy when bollinger breach downwards and rsi is below 30, rsi shoould works only on Gold trade and none ofhe trades
Hello, I need a custom Expert Advisor for MetaTrader 5. I am trading from mobile only. **Account & Style:** - Capital: $5,000 - $10,000 - Risk: Moderate/Balanced - Trading Style: Scalping **Pairs & Timeframe:** - Symbols: EURUSD and XAUUSD - Timeframe: M5 **Strategy:** - BUY: RSI(14) < 30 AND Price > 20 EMA - SELL: RSI(14) > 70 AND Price < 20 EMA - Only 1 trade per symbol at a time - No Martingale / No Grid **Risk
I am looking for an experienced MetaTrader 5 expert. I already have 3 MT5 trading accounts. I need someone to: 1. Help me choose a reliable Windows VPS. 2. Connect to my VPS remotely (AnyDesk or TeamViewer). 3. Install 3 MetaTrader 5 terminals. 4. Configure: - 1 Master Account - 2 Slave Accounts 5. Install and configure a professional Trade Copier. 6. Copy all trades from the Master account to both Slave
I have an MT4 custom indicator (.ex4) that I use regularly, and I would like an identical MT5 version. Important: I do not have the source code (.mq4). I only have the compiled MT4 indicator. I am looking for an experienced MQL developer who can recreate the indicator's functionality and appearance for MT5 by analyzing its behavior. The MT5 version should match the MT4 version as closely as possible, including

Project information

Budget
30+ USD