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
(387)
Projects
499
23%
Arbitration
60
55% / 25%
Overdue
59
12%
Working
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
55
67% / 16%
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
(40)
Projects
55
62%
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
9
22% / 56%
Overdue
10
16%
Working
16
Developer 16
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
17
Developer 17
Rating
(365)
Projects
441
55%
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
720
34%
Arbitration
35
71% / 9%
Overdue
22
3%
Free
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
(78)
Projects
246
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
(317)
Projects
322
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
(549)
Projects
835
61%
Arbitration
33
27% / 45%
Overdue
24
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
Bonjour, je recherche un développeur MQL5 expérimenté pour créer un Expert Advisor pour MetaTrader 5 basé sur une stratégie de trading intégrant des principes de gestion des risques rigoureux et d'intelligence financière. Le robot doit être capable de gérer plusieurs paires de devises et d'optimiser automatiquement les entrées et sorties en fonction de conditions de marché prédéfinies."
MT4/MT5 HFT EA us30 30 - 3000 USD
Hello everybody, I'm looking for an experienced MQL4/MQL5 developer to optimize a High-Frequency Trading (HFT) Expert Advisor for both MT4 and MT5. The EA performs consistently and profitably on demo accounts, but when it is run on Raw and Standard live accounts under what appear to be the same trading conditions, it begins generating losses. I do not have the original source code (.mq4/.mq5); I only have the
I'm looking for an experienced NinjaTrader 8 (C#) developer to build a fully automated futures trading strategy. Please apply only if you have proven experience developing and testing NinjaTrader strategies. Project Overview Develop a fully automated NinjaTrader 8 strategy. Designed for Apex funded and evaluation accounts. Primary instruments: NQ/MNQ Futures (with flexibility to support other futures later). Trading
Hello I need to purchase the source code of an already built profitable mt5 EA with proven track recordIf you have something similar and you are open to selling the source code please apply to this post Please note I am not looking for a dev to build the product from scratch , but need something that is already built and have at least one year worth of track record
I need an Expert Advisor for MT5 on XAUUSD 1min timeframe using SMC concepts. STRATEGY RULES: SELL: 1. Identify previous day High/Low as liquidity 2. Entry only during London-NY session: 15:00-19:00 GMT+3 or broker clock. 3. If price sweeps previous day High and closes back below it 4. Check for bearish 1min FVG below sweep candle 5. Wait for BOS - lower low 6. Entry: Sell/buy at 50% of the FVG 7. SL: 10 pips above
Code An Loss Rate 90-100% MT5 EA , that can blow a 100 USD account a day ,with fixed TP of 3000 points and SL of 3000 For better Rate Calculations get an strategy that can lead to so
8 cap prop firm passing 30 - 3000 USD
I am looking for an experienced MQL4/MQL5 HFT developer to build or optimize a High-Frequency Trading (HFT) Expert Advisor that can successfully pass proprietary trading firm challenges and perform consistently under live trading conditions with brokers such as 8cap or BlackBull Markets . The developer should have proven experience with HFT execution, ultra-low-latency trading, broker execution, slippage, spreads
I need a professional MT5 Expert Advisor (MQL5) for XAU/USD (Gold) only. Requirements: - Symbol: XAU/USD only - Timeframe: H1 trend, M5 entry - Smart Money Concept (SMC) - Liquidity Sweep - Break of Structure (BOS) - Order Block Retest - Confirmation Candle (Engulfing or Pin Bar) - ATR-based Stop Loss - Risk:Reward = 1:3 (adjustable) - Auto Lot (1% risk) - Break Even - Trailing Stop - Maximum 2 trades per day - One
Hello, I am looking for an existing, fully backtestable MT5 Expert Advisor or EA portfolio designed specifically for passing an FTMO-style prop-firm evaluation. I am not looking for unrealistic profit claims or a visually perfect backtest. My priority is a statistically defensible probability of passing the challenge while respecting all risk limits. Primary objective The system should be designed for the current
I have a High-Frequency Trading (HFT) Expert Advisor for both MT4 and MT5 designed primarily for US30 (Dow Jones Index) . The EA performs consistently and profitably on demo accounts, but when I run it on an IC Markets Raw or Standard live account, it starts generating losses under what appear to be the same trading conditions. At this time, I cannot provide the source code (.mq4/.mq5). I can only provide the

Project information

Budget
30 - 40 USD