MT5 Expert Advisor: Buy/Sell Based on Previous Candle Color (MQL5)

MQL5 Uzmanlar

Şartname

Write an MQL5 Expert Advisor (EA) for MetaTrader 5.

Trading logic:
- On each new bar, check the last closed candle.
- If the candle is bearish (close below open), open a SELL.
- If the candle is bullish (close above open), open a BUY.
- If open equals close (doji), do nothing.

Inputs (adjustable by the user):
- Lot size
- Stop Loss in points
- Take Profit in points
- Maximum number of open positions allowed
- Magic number

Rules:
- Do not open a new trade if the maximum number of positions is already reached.
- Include only these features. No extra indicators, filters, or unnecessary options.
- Keep the code short, clean, and easy to read, with brief comments.
- Use the standard CTrade class.

Output:
- Provide the full .mq5 source code, ready to compile in MetaEditor and to publish on mql5.com.

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(642)
Projeler
750
35%
Arabuluculuk
50
52% / 38%
Süresi dolmuş
14
2%
Çalışıyor
2
Geliştirici 2
Derecelendirme
(295)
Projeler
368
30%
Arabuluculuk
37
27% / 65%
Süresi dolmuş
10
3%
Çalışıyor
Yayınlandı: 10 kod
3
Geliştirici 3
Derecelendirme
(64)
Projeler
145
46%
Arabuluculuk
21
38% / 24%
Süresi dolmuş
32
22%
Serbest
4
Geliştirici 4
Derecelendirme
(469)
Projeler
823
49%
Arabuluculuk
76
21% / 51%
Süresi dolmuş
143
17%
Çalışıyor
5
Geliştirici 5
Derecelendirme
(637)
Projeler
1009
47%
Arabuluculuk
33
36% / 36%
Süresi dolmuş
99
10%
Çalışıyor
Yayınlandı: 6 kod
6
Geliştirici 6
Derecelendirme
(62)
Projeler
90
29%
Arabuluculuk
24
13% / 58%
Süresi dolmuş
7
8%
Çalışıyor
7
Geliştirici 7
Derecelendirme
(111)
Projeler
184
25%
Arabuluculuk
25
16% / 76%
Süresi dolmuş
16
9%
Serbest
8
Geliştirici 8
Derecelendirme
(24)
Projeler
32
38%
Arabuluculuk
4
50% / 25%
Süresi dolmuş
5
16%
Çalışıyor
9
Geliştirici 9
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
10
Geliştirici 10
Derecelendirme
(5)
Projeler
7
86%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
Yayınlandı: 4 kod
11
Geliştirici 11
Derecelendirme
(1)
Projeler
1
100%
Arabuluculuk
0
Süresi dolmuş
0
Çalışıyor
Yayınlandı: 7 kod
12
Geliştirici 12
Derecelendirme
(11)
Projeler
19
21%
Arabuluculuk
3
0% / 67%
Süresi dolmuş
3
16%
Yüklendi
13
Geliştirici 13
Derecelendirme
(191)
Projeler
205
47%
Arabuluculuk
4
50% / 25%
Süresi dolmuş
1
0%
Yüklendi
14
Geliştirici 14
Derecelendirme
(61)
Projeler
61
51%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
1
2%
Serbest
15
Geliştirici 15
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
16
Geliştirici 16
Derecelendirme
(9)
Projeler
11
73%
Arabuluculuk
0
Süresi dolmuş
0
Çalışıyor
Yayınlandı: 1 makale, 2 kod
17
Geliştirici 17
Derecelendirme
(1)
Projeler
1
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
Yayınlandı: 4 kod
18
Geliştirici 18
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
19
Geliştirici 19
Derecelendirme
(1)
Projeler
1
100%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
20
Geliştirici 20
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
Yayınlandı: 2 kod
21
Geliştirici 21
Derecelendirme
(1)
Projeler
4
50%
Arabuluculuk
3
0% / 100%
Süresi dolmuş
2
50%
Serbest
Yayınlandı: 4 kod
22
Geliştirici 22
Derecelendirme
(4)
Projeler
5
60%
Arabuluculuk
0
Süresi dolmuş
1
20%
Serbest
23
Geliştirici 23
Derecelendirme
(568)
Projeler
866
61%
Arabuluculuk
33
27% / 45%
Süresi dolmuş
24
3%
Serbest
Yayınlandı: 1 kod
24
Geliştirici 24
Derecelendirme
(2)
Projeler
3
33%
Arabuluculuk
0
Süresi dolmuş
2
67%
Çalışıyor
25
Geliştirici 25
Derecelendirme
(25)
Projeler
35
40%
Arabuluculuk
9
22% / 33%
Süresi dolmuş
5
14%
Yüklendi
Yayınlandı: 9 makale, 35 kod
26
Geliştirici 26
Derecelendirme
(4)
Projeler
11
55%
Arabuluculuk
1
100% / 0%
Süresi dolmuş
0
Serbest
27
Geliştirici 27
Derecelendirme
(2)
Projeler
3
33%
Arabuluculuk
0
Süresi dolmuş
2
67%
Serbest
28
Geliştirici 28
Derecelendirme
(45)
Projeler
63
52%
Arabuluculuk
5
0% / 40%
Süresi dolmuş
1
2%
Serbest
29
Geliştirici 29
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
30
Geliştirici 30
Derecelendirme
(1)
Projeler
1
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
31
Geliştirici 31
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
Yayınlandı: 7 kod
32
Geliştirici 32
Derecelendirme
(268)
Projeler
319
74%
Arabuluculuk
16
75% / 0%
Süresi dolmuş
6
2%
Çalışıyor
33
Geliştirici 33
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
Yayınlandı: 1 kod
34
Geliştirici 34
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
Yayınlandı: 2 kod
35
Geliştirici 35
Derecelendirme
(3)
Projeler
4
0%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
0
Serbest
36
Geliştirici 36
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
37
Geliştirici 37
Derecelendirme
(60)
Projeler
96
43%
Arabuluculuk
4
0% / 100%
Süresi dolmuş
4
4%
Serbest
38
Geliştirici 38
Derecelendirme
(1)
Projeler
1
0%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
0
Serbest
39
Geliştirici 39
Derecelendirme
(2)
Projeler
2
50%
Arabuluculuk
0
Süresi dolmuş
1
50%
Serbest
40
Geliştirici 40
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
Yayınlandı: 5 kod
41
Geliştirici 41
Derecelendirme
(2354)
Projeler
2960
63%
Arabuluculuk
125
44% / 26%
Süresi dolmuş
429
14%
Çalışıyor
Benzer siparişler
--- I need an MT5 Expert Advisor (EA) for Forex trading. Strategy: - Trade when fast Moving Average (9) crosses above slow Moving Average (21) = BUY - Trade when fast Moving Average (9) crosses below slow Moving Average (21) = SELL - Only 1 trade at a time Settings I want to change: - Lot size - Stop Loss in pips - Take Profit in pips - Trailing Stop - Trading hours (Start and End time) Risk: - Close all trades at
ICC SMART STRUCTURE EA 50 - 100 USD
DEVELOPMENT REQUIREMENTS Project Title: ICC Smart Structure EA – MT5 Automated Trading System 1. Project Objective I want a fully automated Expert Advisor (EA) for MetaTrader 5 (MT5), based on my Indication–Correction–Continuation (ICC) trading strategy. The EA must identify market structure, Break of Structure (BOS), swing highs and lows, supply and demand zones, corrections and continuation entries across multiple
The EA is already developed and functional, but there are some issues with its current behaviour that need to be investigated and corrected. **Requirements:** - Review the existing EA source code and identify the root cause of the issues. - Fix the existing problems without affecting other working functionalities. - Ensure the EA operates correctly under different market conditions. - Maintain the existing trading
Project Description I am looking for an experienced MQL5 developer with strong knowledge of FIX Protocol (Financial Information Exchange) to integrate FIX API connectivity into an existing MetaTrader 5 Expert Advisor. The main objective is to improve order execution speed, reduce execution latency, and minimize slippage, especially for high-frequency scalping strategies. Required Features 1. Integrate FIX Protocol
I want reading tradingviwer signal and want open mt5 account trades. Want reading stop loss size and take a profit size and when signalClosing ! This ea want cancel open trades
a { text-decoration: none; color: #464feb; } tr th, tr td { border: 1px solid #e6e6e6; } tr th { background-color: #f5f5f5; } I’m looking for a developer to create a fully automated trading bot (Expert Advisor) for MT5. I am not an expert trader, so the bot should have its own trading strategy, scan the market automatically, identify trading opportunities, and place buy/sell trades without manual input. It should
برمجة روبوت تداول MQL5 بهدف 50 نقطة مع إدارة مخاطر.مطلوب برمجة خبير تداول آلي يعمل على منصة MQL5، يركز على تحقيق هدف 50 نقطة مع إدارة صارمة للمخاطر وتحديد وقف الخسارة
I want full experience devloper need , I want devlope 4 Type Bot , Grd strategy 2 , and other bias strategy 2 scaning on market condition choose one order buy or sell and take profit and target fully automatic management, I am explain full details on private chat only experience developer contact me
Hello everyone, I am a final-year AI & Data Science student interested in building a career in algorithmic trading and EA development. I have good technical knowledge of MQL5, MT5 Expert Advisors, risk management, technical indicators, and automated trading strategies. I have also worked on building trading systems using Machine Learning and Neural Networks. I know how to develop EAs and trading strategies, but I am
Hello! I don't have time, but I bought some challanges and honestly I don't feel 100% confident yet for trading, I am eager to share prop firm account with good, profitable trader. 50% of profits are your, but first I need to make selection, I need to trust you somehow that you will not blow up account within few days. Only serious persons please, please don't waste me time and yours

Proje bilgisi

Bütçe
70 - 100 USD
Son teslim tarihi
to 10 gün

Müşteri

Verilmiş siparişler1
Arabuluculuk sayısı0