Modification of Moving Averages EA

Specification

Task: Modify "Moving Averages" EA – Add 3 professional features

Current EA: Classic Moving Averages crossover (EMA 21 based), longs/shorts on XAUUSD/stocks

Add these 3 features:

1. SELECTABLE TIMEFRAME (independent of chart)
   • input ENUM_TIMEFRAMES WorkTimeframe = PERIOD_H1, H2, H3, H4.....  // M1, M5, M10,....
   • All iMA(), Close[], Open[], High[], Low[] must use WorkTimeframe instead of current chart timeframe

2. DAILY LOSS LIMIT (in USD)
   • inputs:
        bool   UseDailyLossLimit   = true
        double DailyLossLimitUSD   = XXX
   • Track realized P&L from 00:00 server time
   • When daily loss ≥ limit:
        – Close ALL positions
        – Stop trading and pause EA until next day (00:05 server time)
   • Reset counter at 00:00 automatically

3. NEWS FILTER (avoid high-impact news)
   • inputs:
        bool   UseNewsFilter       = true
        int    MinutesBeforeNews   = 30
        int    MinutesAfterNews    = 30
        int    MinImpact           = 3   // 3 = high impact only
   • Use built-in Economic Calendar (CalendarValueHistory or WebRequest to FF calendar)
   • Do NOT open new trades from X minutes before to X minutes after high-impact news
   • Optional: close positions before news (add input bool CloseBeforeNews = false)

Requirements:
• Clean, well-commented code (English preferred)
• No external DLLs or paid libraries
• Works on XAUUSD, NAS100, SP500, stocks, forex
• Only long trades (keep current logic)
• Fully tested on Strategy Tester

Budget: $30–$40
Delivery: same day 

Responded

1
Developer 1
Rating
(28)
Projects
31
45%
Arbitration
1
100% / 0%
Overdue
3
10%
Free
2
Developer 2
Rating
(43)
Projects
51
61%
Arbitration
4
50% / 25%
Overdue
0
Loaded
3
Developer 3
Rating
(13)
Projects
18
11%
Arbitration
6
33% / 67%
Overdue
1
6%
Free
Published: 1 code
4
Developer 4
Rating
(10)
Projects
19
42%
Arbitration
7
0% / 57%
Overdue
3
16%
Working
5
Developer 5
Rating
(2)
Projects
2
0%
Arbitration
0
Overdue
0
Free
Published: 1 code
6
Developer 6
Rating
(4)
Projects
3
33%
Arbitration
2
0% / 100%
Overdue
0
Free
7
Developer 7
Rating
(274)
Projects
403
28%
Arbitration
40
40% / 50%
Overdue
1
0%
Free
8
Developer 8
Rating
(47)
Projects
67
37%
Arbitration
5
40% / 40%
Overdue
1
1%
Free
9
Developer 9
Rating
(314)
Projects
563
35%
Arbitration
81
31% / 44%
Overdue
205
36%
Working
10
Developer 10
Rating
(454)
Projects
718
34%
Arbitration
34
71% / 9%
Overdue
22
3%
Free
11
Developer 11
Rating
(2)
Projects
3
0%
Arbitration
0
Overdue
0
Free
12
Developer 12
Rating
(8)
Projects
8
0%
Arbitration
2
50% / 0%
Overdue
1
13%
Working
13
Developer 13
Rating
(390)
Projects
416
30%
Arbitration
74
19% / 72%
Overdue
52
13%
Working
14
Developer 14
Rating
(1)
Projects
1
100%
Arbitration
0
Overdue
0
Free
15
Developer 15
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
16
Developer 16
Rating
(6)
Projects
5
0%
Arbitration
4
25% / 75%
Overdue
2
40%
Free
17
Developer 17
Rating
(20)
Projects
26
38%
Arbitration
6
33% / 50%
Overdue
0
Free
18
Developer 18
Rating
(31)
Projects
38
53%
Arbitration
2
50% / 50%
Overdue
3
8%
Free
19
Developer 19
Rating
(17)
Projects
21
14%
Arbitration
8
38% / 38%
Overdue
3
14%
Loaded
20
Developer 20
Rating
(206)
Projects
333
35%
Arbitration
66
12% / 58%
Overdue
87
26%
Free
21
Developer 21
Rating
(574)
Projects
945
47%
Arbitration
309
58% / 27%
Overdue
125
13%
Free
22
Developer 22
Rating
(4)
Projects
5
40%
Arbitration
1
0% / 0%
Overdue
0
Free
23
Developer 23
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
24
Developer 24
Rating
Projects
2
0%
Arbitration
4
25% / 50%
Overdue
1
50%
Free
25
Developer 25
Rating
(4)
Projects
8
0%
Arbitration
3
33% / 67%
Overdue
4
50%
Free
26
Developer 26
Rating
(40)
Projects
44
59%
Arbitration
2
100% / 0%
Overdue
1
2%
Working
Published: 5 codes
27
Developer 27
Rating
(10)
Projects
14
43%
Arbitration
0
Overdue
3
21%
Free
28
Developer 28
Rating
(298)
Projects
477
40%
Arbitration
105
40% / 24%
Overdue
81
17%
Loaded
Published: 2 codes
29
Developer 29
Rating
(596)
Projects
687
33%
Arbitration
42
45% / 45%
Overdue
12
2%
Busy
30
Developer 30
Rating
Projects
0
0%
Arbitration
2
0% / 100%
Overdue
0
Free
31
Developer 31
Rating
(77)
Projects
244
74%
Arbitration
7
100% / 0%
Overdue
1
0%
Free
Published: 1 article
32
Developer 32
Rating
(49)
Projects
74
18%
Arbitration
30
17% / 53%
Overdue
31
42%
Free
33
Developer 33
Rating
(271)
Projects
553
50%
Arbitration
57
40% / 37%
Overdue
227
41%
Working
34
Developer 34
Rating
(200)
Projects
256
21%
Arbitration
23
48% / 17%
Overdue
0
Busy
35
Developer 35
Rating
(5)
Projects
6
0%
Arbitration
1
0% / 100%
Overdue
0
Free
36
Developer 36
Rating
Projects
1
100%
Arbitration
0
Overdue
0
Free
37
Developer 37
Rating
(7)
Projects
7
0%
Arbitration
0
Overdue
2
29%
Free
38
Developer 38
Rating
(10)
Projects
12
0%
Arbitration
3
33% / 33%
Overdue
1
8%
Free
Similar orders
I want an indicator that displays the risk reward ratio of each chart candle as a sub window histogram. If the candle closes above the open the histogram displays a green bar above zero the size of which is dependant on the size of the RRR. If the candle closes below the open the histogram displays a red bar below zero the size of which is dependant on the size of the RRR. My attempt that does not work is attached
Hi, I am looking for an experienced MQL5 developer to modify an existing, fully functional MetaTrader 5 Expert Advisor (Source code .mq5 Version 2.62 will be provided). Brief Overview of the EA: It executes trades based on 4 custom Supply/Demand levels (R1, R2, S1, S2) which are inputted manually . It uses two custom indicators for confirmation: SPA (Price Action filter) and AMG (Volume/Momentum filter). The code
I really like this platform. I am interested in trading and need funds for it. I enjoy both crypto and forex trading.I"really appreciate this platform. I am keen on trading and am looking for trading funds. I enjoy trading in both cryptocurrency and forex."
Titan Quantum Algo Engine V2 is an advanced MT5 Expert Advisor designed to identify high-probability market opportunities using trend analysis, breakout detection, and intelligent risk management. The EA automatically executes trades, manages stop-loss and take-profit levels, and helps traders maintain disciplined trading with optimized entry and exit strategies
The striker robot 30 - 2000 USD
I would like a trend and pullback strategy for the robot timeframe:15 minutes(m15) or 1 hour(h1) indicators:50 EMA (Exponential Moving Average)/200 EMA/RSI (14) BUY SET UP 1.Confirm The Trend .50 EMA must be above 200 EMA .Price must be above both EMAs 2.Wait for a pullback .Do not buy when the price shoots up. .Wait for the price to come back near the 50 EMA 3.Confirm entry .ENTER BUY WHEN: .A bullish candlestick
I do not have any startegy, and I want you to create one with your experience, you will provide me EA along with source code. you may use Grid or any logic, but the EA should keep generating profit during Newyourk and Asian session
I need an Ai trading bot for Binance and BTC on MT5 that also uses order flow data. It should also make use of TSI- Temporal indicator sampling and also it should make use of fundamental analysis in the process of signal generation
Hello, I need a MetaTrader 5 Expert Advisor (EA) for XAUUSD. Place Buy Stop orders above current price every 0.300 distance Place Sell Stop orders below current price every 0.300 distance 10 levels up and 10 levels down Lot size fixed 0.01 No TP/SL required, manual close only No duplicate orders on restart Please confirm if you can build this and your final price and delivery time
I have a EA for XAUUSD which works awesome in sideways and trending market as well, capital requirement is only 2000USd and weekly profit is around 1500-2000 USD. I am using this bot from 3 months and getting continuous good result
Dear All i am working on strategy in forex market specifically in xausud and i just want someone to make it automatic execution mode as per my requirements with propee risk management my broker is exness and i have an account in MT5

Project information

Budget
30 - 40 USD
Deadline
from 1 to 2 day(s)