Moving Average Crossover EA

Job finished

Execution time 18 days
Feedback from customer
Yerim is one of the most amazing developers I have found here. Excellent communication skills, adds great value and goes for the extra mile. Besides, his code is really well structured and commented.
Feedback from employee
One of the best client ever! Knows exactly what he want. He is able to communicate his need perfectly without ambiguity, really nice to talk to! The Dream of every developer!! Highly recommend!!

Specification

I need an EA that opens trades according to the crossover of Moving Averages. The EA is based on two Moving Averages MA1 and MA2: 
  • For every new candle the EA attempts to open a new position, according to the MA crossover direction:
    • If MA1>MA2, open a BUY position
    • If MA1<MA2, open a SELL position
  • There is a limit for current open trades which is also set in the settings. If the number of open trades reaches that limit, the EA can’t open any new positions until another open trade closes.
    • If the new position was not opened due to this limit, the EA simply moves on and attempts to open another new position on the next candle.
  • Each created position has a Take Profit and Stop Loss value. Both values are set in the EA settings.
  • The candle timeframe is set in the EA settings, NOT the current chart timeframe.
  • The trading instrument used (e.g. EURUUSD) is also set in the EA settings, NOT the current chart instrument.
  • Lot Size is specified in the EA settings.
So, the EA main settings are:
  • Instrument (free text)
  • Timeframe: M1, M5, M15, M30, 1H, H4, D1 (text options list)
  • Lot Size (float)
  • Stop Loss (points, as an integer)
  • Take Profit (points, as an integer)
  • Open Positions Limit (integer)

Also, Both Moving Averages are configured in the EA settings as follows:

  • MA1 Period (integer)
  • MA1 Method (text options list):
    • Simple
    • Exponential
    • Smoothed
    • Linear Weighted
  • MA2 Period (integer)
  • MA2 Method (text options list):
    • Simple
    • Exponential
    • Smoothed
    • Linear Weighted

For simplicity, both Moving Averages have the following fixed setups (no need to be as settings but considered for the code):
  • Apply to: Close Candle
  • Shift: Always 0 (zero). No shift.

Additional Requirements:

  • If “Open Position Limit (integer)” is set to 0 (zero), this setting will be disabled, which means there will be no limit for current open positions. SETTING;
    • Open Positions Limit (0=unlimited) (integer)
  • Add a feature that turns off EA Auto Trading function when Open Position Limit is full, and that enables this function back again when Open Position Limit is below the limit after the closing one or more positions in the account. SETTING:
    • Turn On/Off EA Auto Trading if Open Positions unavailable/available (Boolean)

While running, the Expert Tab should keep a registry of the following events:

  • Every Attempt to open a new position specifying position type (BUY, SELL)
  • If the position WAS NOT opened due to max limit of open positions reached, add a note in the Expert Tab with the current number of open positions
  • If the position WAS opened, add a note in the Expert Tab with the position type, id and the updated number of open positions after the opening
  • If a position was closed, add a note in the Expert Tab with the position type, id and the updated number of open positions after the closing
  • If there is an MA1/MA2 crossover, add note in the EA Tab specifying the crossover direction and the current value of each MA.
  • Any other relevant event or information the developer may consider.

Final Remarks:
  • The code must be clean, efficient, commented AND, most importantly, organized in several separate subroutines. I plan to reuse this code as a filter in another EA in the future.


Responded

1
Developer 1
Rating
(382)
Projects
493
23%
Arbitration
59
56% / 25%
Overdue
57
12%
Loaded
2
Developer 2
Rating
(50)
Projects
64
20%
Arbitration
11
27% / 55%
Overdue
5
8%
Free
3
Developer 3
Rating
(64)
Projects
83
28%
Arbitration
9
33% / 56%
Overdue
9
11%
Free
Published: 1 code
4
Developer 4
Rating
(9)
Projects
19
16%
Arbitration
3
67% / 0%
Overdue
0
Free
5
Developer 5
Rating
(85)
Projects
174
44%
Arbitration
3
100% / 0%
Overdue
5
3%
Free
Published: 1 code
6
Developer 6
Rating
(75)
Projects
80
6%
Arbitration
46
11% / 54%
Overdue
7
9%
Working
7
Developer 7
Rating
(1304)
Projects
1732
49%
Arbitration
53
70% / 13%
Overdue
38
2%
Free
8
Developer 8
Rating
(279)
Projects
341
37%
Arbitration
6
50% / 17%
Overdue
7
2%
Free
Published: 5 codes
9
Developer 9
Rating
(5)
Projects
8
13%
Arbitration
3
0% / 33%
Overdue
2
25%
Free
Published: 1 code
10
Developer 10
Rating
(274)
Projects
403
28%
Arbitration
40
40% / 50%
Overdue
1
0%
Free
11
Developer 11
Rating
(20)
Projects
32
9%
Arbitration
0
Overdue
0
Free
12
Developer 12
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Working
13
Developer 13
Rating
(39)
Projects
54
61%
Arbitration
2
50% / 50%
Overdue
0
Free
14
Developer 14
Rating
(2)
Projects
5
0%
Arbitration
3
0% / 100%
Overdue
1
20%
Working
15
Developer 15
Rating
(43)
Projects
62
23%
Arbitration
8
25% / 38%
Overdue
10
16%
Working
16
Developer 16
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
17
Developer 17
Rating
(363)
Projects
436
54%
Arbitration
22
50% / 14%
Overdue
30
7%
Loaded
18
Developer 18
Rating
(69)
Projects
146
34%
Arbitration
13
8% / 62%
Overdue
26
18%
Free
Published: 6 codes
19
Developer 19
Rating
(454)
Projects
717
34%
Arbitration
34
71% / 9%
Overdue
22
3%
Working
20
Developer 20
Rating
(16)
Projects
22
14%
Arbitration
8
38% / 63%
Overdue
6
27%
Free
21
Developer 21
Rating
(5)
Projects
7
0%
Arbitration
8
13% / 75%
Overdue
3
43%
Free
22
Developer 22
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
23
Developer 23
Rating
(77)
Projects
244
74%
Arbitration
7
100% / 0%
Overdue
1
0%
Free
Published: 1 article
24
Developer 24
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
25
Developer 25
Rating
(10)
Projects
10
20%
Arbitration
3
33% / 33%
Overdue
3
30%
Free
26
Developer 26
Rating
(313)
Projects
318
70%
Arbitration
2
100% / 0%
Overdue
0
Free
Published: 1 code
27
Developer 27
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
28
Developer 28
Rating
(544)
Projects
826
62%
Arbitration
33
27% / 45%
Overdue
23
3%
Free
Published: 1 code
29
Developer 29
Rating
(17)
Projects
22
36%
Arbitration
5
0% / 100%
Overdue
4
18%
Free
30
Developer 30
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Similar orders
Gold robot 3000+ USD
I really liked this training platform. I want to start a good business with this funding amount."I like crypto trading. Does it provide a demo account that is good for learning?"
Gold robot 3000+ USD
Hello, I am looking for someone who can help me to build a MT4/MT5 forex EA, by analyzing the trading history. You are responsible to find out trading logic behind the EA and Build a new EA that accurately replicates the existing strategy. I need someone who has proven previous experience to build a new EA by reverse engineering. Thanks
I am looking for an experienced MT4/MT5 developer to analyze my trading history and replicate the strategy in a new Expert Advisor (EA). The developer must have proven experience in reverse engineering strategies, analyzing trading data, and developing EAs across various trading methodologies. A deep understanding of XAUUDS and BTCUSD behavior, as well as chart analysis, is essential. Please note that we do not have
Title: MT5 Forex Trading Robot Development I need a MetaTrader 5 (MT5) Expert Advisor (EA) for automated Forex trading. Requirements: 1. The robot must be fully automated and capable of opening and closing trades without manual intervention. 2. Compatible with MetaTrader 5 (MT5). 3. Adjustable lot size, Stop Loss, and Take Profit settings. 4. Built-in risk management based on account balance. 5. Ability to trade
Risk management EA 30 - 200 USD
Looking to develop risk management EA for personal use probably commercially in the future. I want the EA to have a display panel with 0.1, 0.2, 0.5,1,2,3 percent risk management button. I also want BE, partial closure of 0.25,0.5,0.75 and full closure panel on both profit and loss. I’ll also like to include trailing stop, 2 trades max per day and BE+spread option. I’ll be attaching the image for a guidance on what
Sierra Chart Alerts to MT5 via Webhook (Alert Manager File Version) Objective: Create a Custom Study (ACSIL / C++) that monitors alerts from the Alert Manager file and forwards any valid alert directly to MT5 via an HTTP POST (Webhook) in JSON format. Additional Note: The study should allow adding any modifications in the future and provide clear insights into the alert points in Sierra Chart. 1. Data Flow Diagram
Ea.Mix 30+ USD
I am in need of a good scalping bot for gold or any currency pair. If you have one that is working, reach out. You must be able to provide a trial version so I can test the bot myself
A bot takes trades every few seconds until hit the profit with the same lots , i am attaching a picture as well. If anyone can do that please contact me i will give the account details
MT5 Expert Advisor Development Project Overview I am looking for an experienced MQL5 developer to build a custom MetaTrader 5 Expert Advisor based on a grid-cycle trading framework. This is not a standard grid EA . The system combines: Session-based trade initiation Multi-filter signal generation Dynamic grid management Advanced basket management State-machine-driven trade lifecycle management Dynamic take-profit

Project information

Budget
30 - 40 USD