Need an EA to autotrade when specific requirements are met based on 200/50 EMA and Stochastic indicators and uses ATR for setting SL and TP

MQL5 Experts Forex

Job finished

Execution time 1 day
Feedback from customer
I received most of what I asked for. The code was commented well so from there I was able to tweak to get it perfect...and learn a little in the process. Very good communication as well.

Specification

Hello. I'm trying to learn MQL5 to do this but have been hitting a wall getting it completed. So I'd like someone to code the EA for me and include the source files so I can learn from it...(to see what I'm doing wrong basically).

Inputs:

  1. Trading pair will be whatever is selected on the chart it's applied to.
  2. Lot size can be fixed or percentage. If fixed is selected, the default is 0.1. If percentage is selected the default is 1%. But either can be changed to suit the current needs.
  3. Max spread: default will be 5 but will not trade if the default spread is lower than the current brokerage amount.
  4. Hours for trading: default will be all hours, but can set a start and stop time if required.
  5. Days that trades can be opened: default will be Mon-Fri (Forex) but will have option to turn off individual days.
  6. Max orders: default will be 1 (only one trade open at a time) but can be changed to allow more.
  7. Stop Loss (SL): default will be 1.5x the Average True Range (ATR) when the trade is opened but can be changed as required.
  8. Take Profit (TP): default will be 1.5x the SL.
  9. Stochastic Range high (for shorts): default is 80 but can be adjusted as required.
  10. Stochastic Range low (for longs): default is 20 but can be adjusted as required.

Indicators used: all using the timeframe of the selected chart.

  • 200 period Exponential Moving Average (EMA)
  • 50 period Exponential Moving Average (EMA)
  • Stochastic: K length 14, D length 14, smoothing, 3, 3
  • Average True Range (ATR): 14 RMA smoothing

Requirements to open a long position:

  • No other orders currently open
  • Currently trading above both the 200 EMA and 50 EMA and 200 EMA is below the 50 EMA.
  • If, at any point, the 50 EMA moves below the 200 EMA, the process resets.
  • Price closes below the 50 EMA.
  • Both stochastic D and K are below the selected low range (default 20).
  • This doesn't have to be on the same candle that closed below the 50 EMA. We can wait until stochastic D and K cross below the selected low range unless 2 candles close below the 200 EMA or 50 EMA crosses below 200 EMA. If either of those happen then the process resets.
  • Stochastic K moves above stochastic D, but both are still below the selected low range. (Now trigger long position).
  • If either stochastic K or D move above the selected low range, the process resets.

Requirements to open a short position:

  • No other orders currently open
  • Currently trading below both the 200 EMA and 50 EMA and 200 EMA is above the 50 EMA.
  • If, at any point, the 50 EMA moves above the 200 EMA, the process resets.
  • Price closes above the 50 EMA.
  • Both stochastic D and K are above the selected high range (default 80).
  • This doesn't have to be on the same candle that closed above the 50 EMA. We can wait until stochastic D and K cross above the selected high range unless 2 candles close above the 200 EMA or 50 EMA crosses above 200 EMA. If either of those happen then the process resets.
  • Stochastic K moves below stochastic D, but both are still above the selected high range. (Now trigger short position).
  • If either stochastic K or D move below the selected high range, the process resets.

Info on the chart:

When the EA is running, please display the following in a box on the chart:

  • Current spread
  • Open order information
  • SL settings
  • TP settings
  • Possibly other normally included info

Attached is a screenshot of what a successfully place order would look like. Let me know any additional questions you may have.

Files:

PNG
ForexEntry.png
102.3 Kb

Responded

1
Developer 1
Rating
(100)
Projects
125
23%
Arbitration
12
0% / 75%
Overdue
22
18%
Free
2
Developer 2
Rating
(328)
Projects
513
19%
Arbitration
34
44% / 32%
Overdue
34
7%
Loaded
3
Developer 3
Rating
(39)
Projects
58
19%
Arbitration
6
33% / 17%
Overdue
1
2%
Free
Published: 2 codes
4
Developer 4
Rating
(39)
Projects
50
18%
Arbitration
6
33% / 50%
Overdue
0
Free
5
Developer 5
Rating
(144)
Projects
186
41%
Arbitration
24
58% / 21%
Overdue
13
7%
Free
6
Developer 6
Rating
(77)
Projects
244
74%
Arbitration
7
100% / 0%
Overdue
1
0%
Free
Published: 1 article
7
Developer 7
Rating
(67)
Projects
97
35%
Arbitration
11
27% / 45%
Overdue
13
13%
Free
8
Developer 8
Rating
(85)
Projects
174
44%
Arbitration
3
100% / 0%
Overdue
5
3%
Free
Published: 1 code
9
Developer 9
Rating
(1)
Projects
1
0%
Arbitration
1
0% / 100%
Overdue
0
Free
10
Developer 10
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
11
Developer 11
Rating
(4)
Projects
7
43%
Arbitration
1
0% / 0%
Overdue
1
14%
Free
12
Developer 12
Rating
(195)
Projects
242
34%
Arbitration
11
45% / 45%
Overdue
8
3%
Free
Published: 1 article, 8 codes
13
Developer 13
Rating
(68)
Projects
111
69%
Arbitration
1
100% / 0%
Overdue
2
2%
Free
14
Developer 14
Rating
(90)
Projects
118
17%
Arbitration
44
23% / 39%
Overdue
20
17%
Free
15
Developer 15
Rating
(64)
Projects
83
28%
Arbitration
9
33% / 56%
Overdue
9
11%
Free
Published: 1 code
16
Developer 16
Rating
(209)
Projects
220
75%
Arbitration
0
Overdue
0
Free
17
Developer 17
Rating
(33)
Projects
43
16%
Arbitration
0
Overdue
0
Free
18
Developer 18
Rating
(72)
Projects
80
10%
Arbitration
38
8% / 58%
Overdue
6
8%
Free
19
Developer 19
Rating
(271)
Projects
553
50%
Arbitration
57
40% / 37%
Overdue
227
41%
Working
20
Developer 20
Rating
(600)
Projects
694
33%
Arbitration
43
47% / 44%
Overdue
12
2%
Busy
21
Developer 21
Rating
(2670)
Projects
3403
68%
Arbitration
77
48% / 14%
Overdue
342
10%
Working
Published: 1 code
22
Developer 22
Rating
(568)
Projects
641
41%
Arbitration
25
48% / 36%
Overdue
46
7%
Working
23
Developer 23
Rating
(2328)
Projects
2932
63%
Arbitration
124
44% / 26%
Overdue
429
15%
Working
Similar orders
I have a High-Frequency Trading (HFT) Expert Advisor for both MT4 and MT5 . The EA performs consistently and profitably on demo accounts , but when I run it on an IC Markets Raw and standard live account , it begins generating losses under what appear to be the same trading conditions. if needed i can provide Full EA source code (.mq4 and/or .mq5) and Set file. I need an experienced MQL4/MQL5 developer to thoroughly
I have a live MT5 account with Myfxbook verified track record (88% return, 17% DD, 100K+ trades). Trade copier is ready. I need a sales system to attract copy traders. You decide the approach — landing page, email, or any strategy you think works best
I am looking for an experienced developer to create a custom MT4 Expert Advisor (EA) / trading robot. Requirements: Fully automated trading system for MetaTrader 4 Clear entry and exit strategy (can be based on indicators, price action, or a custom logic) Risk management features (lot size control, stop loss, take profit, trailing stop) Ability to run on multiple currency pairs Option to adjust settings (risk %
I am a forex trader I want to help to all the other traders with translating and online cources so which is interested buy this package and join us thank you
Kenyan Editor 30+ USD
1.a specific robot to earn for a quick and reasonable trade all over. The Idear of being specific makes me perfect, I want this to be clear that make me a high luxurious person will describe me and I will promise to advertise the market both internally and externally
i need the EA same working on trading view Hikin Ashi chart with same specifications and rules on mt5 Rules as per in script is available when applied on chart need to check on Hikin Ashi chart 1. Buy trade when purple candle closed above last any black candle high on Hikin Ashi & avoid long abnormal candle & if market makes more than 20-30 candles without changing the color 2. Buy when purple candle close above its
I have my own strategy in 1min. I want it convert to a bot. Please reach me only coding experts. I dont want bit makers from Ai. Demo version should be provided for confirmation
Siraj Durrani 30 - 50 USD
Title: Need MT4 Expert Advisor for XAUUSD (SMC/ICT Strategy) Requirements: I need a professional MT4 Expert Advisor (EA) for XAUUSD based on Smart Money Concepts (SMC) / ICT strategy. Features: - Platform: MetaTrader 4 (MT4) - Symbol: XAUUSD - Automatic Buy and Sell trades. - Detect market trend automatically. - Use Break of Structure (BOS) and Change of Character (CHoCH) for trend confirmation. - Enter trades only
Xauusd to gold 35+ USD
The EA must be fully automated , backtest-friendly , prop-firm-safe , and built with a clean modular architecture . Core Strategy Requirements 1. Higher Timeframe Bias Use D1 and H4 . Use 200 EMA as trend filter: If price is above 200 EMA on both D1 and H4 -> allow BUY only If price is below 200 EMA on both D1 and H4 -> allow SELL only If D1 and H4 are not aligned -> no trade 2. Market Structure Module Detect and
Eagoldcent 30 - 200 USD
I need an MT4 & MT5 Expert Advisor for ALL pair support Cent Account. Features: Platform: MT4 & MT5 Pair: All Pair Account Type: Cent Account Buy and Sell Fixed Lot Start (user input) Lot Exponent / Multiplier (user input) PipStep / Grid Distance (user input) Take Profit (user input) Maximum Trades (user input) Magic Number (user input) Inputs: Start Lot = 0.01 Take Profit = 40 Lot Exponent = 1.50 PipStep = 40 Max

Project information

Budget
50 - 80 USD
Deadline
from 2 to 5 day(s)