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 전문가 Forex

작업 종료됨

실행 시간 1 일
고객의 피드백
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.

명시

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.

파일:

PNG
ForexEntry.png
102.3 Kb

응답함

1
개발자 1
등급
(100)
프로젝트
125
23%
중재
12
0% / 75%
기한 초과
22
18%
무료
2
개발자 2
등급
(325)
프로젝트
505
19%
중재
33
42% / 30%
기한 초과
34
7%
로드됨
3
개발자 3
등급
(39)
프로젝트
57
18%
중재
6
33% / 17%
기한 초과
1
2%
무료
게재됨: 2 코드
4
개발자 4
등급
(39)
프로젝트
50
18%
중재
6
33% / 50%
기한 초과
0
무료
5
개발자 5
등급
(144)
프로젝트
186
41%
중재
24
58% / 21%
기한 초과
13
7%
무료
6
개발자 6
등급
(77)
프로젝트
243
74%
중재
7
100% / 0%
기한 초과
1
0%
무료
게재됨: 1 기고글
7
개발자 7
등급
(67)
프로젝트
97
35%
중재
11
27% / 45%
기한 초과
14
14%
무료
8
개발자 8
등급
(85)
프로젝트
167
44%
중재
3
67% / 0%
기한 초과
5
3%
작업중
게재됨: 1 코드
9
개발자 9
등급
(1)
프로젝트
1
0%
중재
1
0% / 100%
기한 초과
0
무료
10
개발자 10
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
11
개발자 11
등급
(4)
프로젝트
7
43%
중재
1
0% / 0%
기한 초과
1
14%
무료
12
개발자 12
등급
(194)
프로젝트
241
34%
중재
10
50% / 50%
기한 초과
8
3%
작업중
게재됨: 1 기고글, 8 코드
13
개발자 13
등급
(68)
프로젝트
111
69%
중재
1
100% / 0%
기한 초과
2
2%
무료
14
개발자 14
등급
(90)
프로젝트
118
17%
중재
44
23% / 39%
기한 초과
20
17%
무료
15
개발자 15
등급
(64)
프로젝트
83
28%
중재
9
33% / 56%
기한 초과
9
11%
무료
게재됨: 1 코드
16
개발자 16
등급
(209)
프로젝트
220
75%
중재
0
기한 초과
0
무료
17
개발자 17
등급
(32)
프로젝트
41
15%
중재
0
기한 초과
0
무료
18
개발자 18
등급
(72)
프로젝트
80
10%
중재
38
8% / 58%
기한 초과
6
8%
무료
19
개발자 19
등급
(270)
프로젝트
552
49%
중재
57
40% / 37%
기한 초과
228
41%
작업중
20
개발자 20
등급
(547)
프로젝트
630
33%
중재
38
39% / 50%
기한 초과
11
2%
로드됨
21
개발자 21
등급
(2637)
프로젝트
3352
67%
중재
77
48% / 14%
기한 초과
342
10%
작업중
게재됨: 1 코드
22
개발자 22
등급
(568)
프로젝트
641
41%
중재
25
48% / 36%
기한 초과
46
7%
작업중
23
개발자 23
등급
(2301)
프로젝트
2897
63%
중재
122
44% / 25%
기한 초과
429
15%
작업중
비슷한 주문
Articles 3 How to create Requirements Specification for ordering a trading robot 28 MetaQuotes 219 002 Table of Contents Prerequisites for ordering a trading robot Why is it important to have a well-prepared Requirements Specification? Requirements Specification examples What is contained in the Requirements Specification? Where do I get Requirements Specification if I can't create it? Terms to use How to write an
Breakout 2$ 30 - 50 USD
Place a **Buy Stop** $2 above the 1-minute candle close and a **Sell Stop** $2 below the 1-minute candle close. If neither order is triggered, cancel both pending orders and set new orders based on the next candle’s close. If one side’s order is triggered, immediately cancel the other pending order. Set Stop Loss at $3 and Take Profit at $5. Apply a trailing stop of $0.30. Also, set a daily profit limit to stop the
Requirements: - Convert my written trading rules into TradingView Pine strategy - Then convert into MT5 EA - Entry must be next candle open after signal candle close - Stop loss on signal candle high/low - Position sizing: fixed % risk per trade - Portfolio risk cap across symbols - One trade per symbol at a time - Must understand backtesting differences (spread, slippage, fill logic) Important: I want to be able to
1. Executive Summary Development of a fully automated trading system for MetaTrader 4 (MT4) and MetaTrader 5 (MT5). The core strategy focuses on a 5-Minute Candle Breakout logic, enhanced with a Martingale/Recovery mechanism to manage drawdowns and turn losing trades into profit. ________________ 2. Technical Requirements A. Core Entry Logic * Timeframe: 5-Minute (M5). * Signal: Breakout of the Previous 5-Minute
Hey guys, I’ve been trading for 6 years now and I need to automate a strategy that is really simple and ove developed by myself. Can you help me on that? Here is my e-mail angelocherubini24@gmail.com
SavannaFX Pro 100+ USD
//+------------------------------------------------------------------+ //| SavannaFX Pro | //| Created for Junior | //+------------------------------------------------------------------+ #property strict input int FastMA = 20; input int SlowMA = 50; input int RSIPeriod = 14; input double LotSize = 0.1; input int StopLoss = 300; input int TakeProfit = 600; int
Recent EA 30+ USD
PROP-FIRM FOREX EA (SAFE MODE) 1. EA OBJECTIVE Develop a low-drawdown, high-discipline Forex EA designed to: Pass prop-firm challenges Respect strict risk rules Trade consistently, not aggressively 2. TRADING STYLE Strategy type: Trend continuation + pullback No scalping noise No martingale No grid No hedge abuse 3. TIMEFRAME & SESSIONS Primary TF: M15 Confirmation TF: H1 Trading sessions: London Open → London Close
Specification Hi Free lancers, I need an EA which relates to Sure Fire Hedging EA base on Below parameters needed. Overview how it works: This EA will be able to open a trade with either Buy or Sell selection (manual- to be manually switch buy or sell selection ), another selection for automatic open trading can choose only buy. Once the EA already open trade (example -buy position) with starting lot size 0.01
Data Integrity 500 - 1000 USD
The trading bot is an automated software system designed to monitor financial markets, execute trades, and manage risk based on predefined strategies. The bot aims to maximize profits while minimizing human intervention and emotional decision-making. Scope: Supports automated trading on selected exchanges (e.g., Binance, Bitget, Coinbase). Executes trades based on technical indicators, signals, or AI models. Provides
Busco programador profesional con experiencia demostrable en MQL5 para crear un Expert Advisor en MetaTrader 5 basado en Price Action , con lógica jerárquica, reglas objetivas y gestión de zonas dinámicas. La estrategia esta explicada en un documento Word de 30 páginas (con imágenes) explicado en español. Características del EA: Operaciones Buy, Sell, Buy Limit y Sell Limit (máx. 2 operaciones pendientes simultáneas

프로젝트 정보

예산
50 - 80 USD
기한
에서 2  5 일