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 Uzman Danışmanlar Forex

İş tamamlandı

Tamamlanma süresi: 1 gün
Müşteri tarafından geri bildirim
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.

İş Gereklilikleri

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.

Dosyalar:

PNG
ForexEntry.png
102.3 Kb

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(100)
Projeler
125
23%
Arabuluculuk
12
0% / 75%
Süresi dolmuş
22
18%
Serbest
2
Geliştirici 2
Derecelendirme
(215)
Projeler
348
16%
Arabuluculuk
22
41% / 32%
Süresi dolmuş
18
5%
Meşgul
3
Geliştirici 3
Derecelendirme
(19)
Projeler
27
11%
Arabuluculuk
2
0% / 0%
Süresi dolmuş
0
Serbest
4
Geliştirici 4
Derecelendirme
(39)
Projeler
50
18%
Arabuluculuk
5
40% / 40%
Süresi dolmuş
0
Serbest
5
Geliştirici 5
Derecelendirme
(129)
Projeler
163
42%
Arabuluculuk
20
60% / 20%
Süresi dolmuş
9
6%
Çalışıyor
6
Geliştirici 6
Derecelendirme
(63)
Projeler
194
73%
Arabuluculuk
4
100% / 0%
Süresi dolmuş
1
1%
Çalışıyor
7
Geliştirici 7
Derecelendirme
(65)
Projeler
95
36%
Arabuluculuk
11
27% / 45%
Süresi dolmuş
14
15%
Serbest
8
Geliştirici 8
Derecelendirme
(67)
Projeler
110
32%
Arabuluculuk
1
100% / 0%
Süresi dolmuş
3
3%
Çalışıyor
9
Geliştirici 9
Derecelendirme
(1)
Projeler
1
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
10
Geliştirici 10
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
11
Geliştirici 11
Derecelendirme
(4)
Projeler
7
43%
Arabuluculuk
1
0% / 0%
Süresi dolmuş
1
14%
Serbest
12
Geliştirici 12
Derecelendirme
(167)
Projeler
188
32%
Arabuluculuk
6
50% / 50%
Süresi dolmuş
2
1%
Çalışıyor
13
Geliştirici 13
Derecelendirme
(64)
Projeler
107
68%
Arabuluculuk
1
100% / 0%
Süresi dolmuş
2
2%
Serbest
14
Geliştirici 14
Derecelendirme
(90)
Projeler
118
17%
Arabuluculuk
44
23% / 39%
Süresi dolmuş
20
17%
Serbest
15
Geliştirici 15
Derecelendirme
(59)
Projeler
78
26%
Arabuluculuk
9
33% / 56%
Süresi dolmuş
8
10%
Serbest
16
Geliştirici 16
Derecelendirme
(98)
Projeler
109
57%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
17
Geliştirici 17
Derecelendirme
(16)
Projeler
22
18%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
18
Geliştirici 18
Derecelendirme
(72)
Projeler
80
10%
Arabuluculuk
36
8% / 53%
Süresi dolmuş
6
8%
Çalışıyor
19
Geliştirici 19
Derecelendirme
(267)
Projeler
542
50%
Arabuluculuk
55
40% / 36%
Süresi dolmuş
225
42%
Çalışıyor
20
Geliştirici 20
Derecelendirme
(489)
Projeler
558
33%
Arabuluculuk
27
44% / 44%
Süresi dolmuş
8
1%
Yüklendi
21
Geliştirici 21
Derecelendirme
(2442)
Projeler
3079
66%
Arabuluculuk
77
48% / 14%
Süresi dolmuş
340
11%
Serbest
22
Geliştirici 22
Derecelendirme
(568)
Projeler
641
41%
Arabuluculuk
22
55% / 32%
Süresi dolmuş
47
7%
Çalışıyor
23
Geliştirici 23
Derecelendirme
(2104)
Projeler
2675
62%
Arabuluculuk
114
46% / 25%
Süresi dolmuş
420
16%
Yüklendi
Benzer siparişler
I am looking for help to code an Expert Advisor (EA) for MetaTrader 4 (MT4). The EA should automate trading based on specific strategies and market conditions. I'm familiar with the basics of MQL4 but need assistance with more advanced features, like managing multiple indicators, optimizing risk management, and implementing trailing stops. I aim to create a reliable, efficient EA that can monitor the market and
I’m looking to turn into code. Trading Instrument - Crude Oil Futures (CL) Chart and Timeframe - 30-second chart Entry Setup 1. Time Focus on the first 30-second candle after 11:00:00 AM New York time. (11:00:00 candle) 2. Candle Size Limit : Skip the trade if the first candle is greater than 10 points. 3. Entry Orders - Place stop orders at the high and low of the first 30-second candle after 11:00:00. - Long Entry
EA gold HB king5 100+ USD
// เริ่มต้นโปรแกรม EA input double LotSize = 0.1; // ขนาดของล็อต input double TakeProfit = 50; // จุดกำไร input double StopLoss = 50; // จุดขาดทุน // ฟังก์ชันที่เรียกเมื่อมีการสั่งซื้อ void OnTick() { double MA = iMA(NULL, 0, 14, 0, MODE_SMA, PRICE_CLOSE, 0); // Simple Moving Average (SMA) 14 double Price = Bid; if(Price > MA) // เงื่อนไขสำหรับการซื้อ { if(OrderSelect(0, SELECT_BY_POS) == false) //
I’m looking to turn into code. Trading Instrument - Crude Oil Futures (CL) Chart and Timeframe - 30-second chart Entry Setup 1. Time Focus on the first 30-second candle after 11:00:00 AM New York time. (11:00:00 candle) 2. Candle Size Limit : Skip the trade if the first candle is greater than 10 points. 3. Entry Orders - Place stop orders at the high and low of the first 30-second candle after 11:00:00. - Long Entry
I want a bot that take trade from any arrow indicator with buffer value. Pls the bot even have 5 indicator filter to filter trade independent of the time frame of the bot
hello there I need a copy trade for mt4 can ANYONE help me with and let discuss on how to go about it kindly send me message to signify and let discuss mind you i need this urgently let connect to discuss and conclude
I would like the better volume indicator 1.6 in a scanner format. Scanning multiple timeframe and pairs of which can be picked. Would like it to provide all standard notifications and also if pressed to go to the a template timeframe and pair. *To be placed in a table format as the one added. To be able to add which time frame you want to see. *To advise me of the following Climax High - turn the text green High
i have a JavaScript of a code which is a indicator of trading view, i want to convert into python script and make a mql5 automated trading bot which can take automatic trade and also exit when the signals come by the indicator
I need to build EA MT4 that able to connect as copy trading between demo account to real account with partial of positions not all Example: If the demo account open position so the real account will be opened same position with ability to place different volume size based on real account equity and demo equity, and ability to choose which position should be copied, position one, two, three, four, five, six, seven
I would like an existing, older MT4 EA I had developed converted into an MT5 EA and debugged where necessary. The EA is attached and should be fairly self-explanatory. It is a breakout order entry EA with customisable parameters

Proje bilgisi

Bütçe
50 - 80 USD
Geliştirici için
45 - 72 USD
Son teslim tarihi
from 2 to 5 gün