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

MQL5 Experten

Spezifikation

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.

Bewerbungen

1
Entwickler 1
Bewertung
(642)
Projekte
750
35%
Schlichtung
50
52% / 38%
Frist nicht eingehalten
14
2%
Arbeitet
2
Entwickler 2
Bewertung
(295)
Projekte
368
30%
Schlichtung
37
27% / 65%
Frist nicht eingehalten
10
3%
Arbeitet
Veröffentlicht: 10 Beispiele
3
Entwickler 3
Bewertung
(64)
Projekte
145
46%
Schlichtung
21
38% / 24%
Frist nicht eingehalten
32
22%
Frei
4
Entwickler 4
Bewertung
(469)
Projekte
823
49%
Schlichtung
76
21% / 51%
Frist nicht eingehalten
143
17%
Arbeitet
5
Entwickler 5
Bewertung
(637)
Projekte
1009
47%
Schlichtung
33
36% / 36%
Frist nicht eingehalten
99
10%
Arbeitet
Veröffentlicht: 6 Beispiele
6
Entwickler 6
Bewertung
(62)
Projekte
90
29%
Schlichtung
24
13% / 58%
Frist nicht eingehalten
7
8%
Arbeitet
7
Entwickler 7
Bewertung
(111)
Projekte
184
25%
Schlichtung
25
16% / 76%
Frist nicht eingehalten
16
9%
Frei
8
Entwickler 8
Bewertung
(24)
Projekte
32
38%
Schlichtung
4
50% / 25%
Frist nicht eingehalten
5
16%
Arbeitet
9
Entwickler 9
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
10
Entwickler 10
Bewertung
(5)
Projekte
7
86%
Schlichtung
0
Frist nicht eingehalten
0
Frei
Veröffentlicht: 4 Beispiele
11
Entwickler 11
Bewertung
(1)
Projekte
1
100%
Schlichtung
0
Frist nicht eingehalten
0
Arbeitet
Veröffentlicht: 7 Beispiele
12
Entwickler 12
Bewertung
(11)
Projekte
19
21%
Schlichtung
3
0% / 67%
Frist nicht eingehalten
3
16%
Beschäftigt
13
Entwickler 13
Bewertung
(191)
Projekte
205
47%
Schlichtung
4
50% / 25%
Frist nicht eingehalten
1
0%
Beschäftigt
14
Entwickler 14
Bewertung
(61)
Projekte
61
51%
Schlichtung
1
0% / 100%
Frist nicht eingehalten
1
2%
Frei
15
Entwickler 15
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
16
Entwickler 16
Bewertung
(9)
Projekte
11
73%
Schlichtung
0
Frist nicht eingehalten
0
Arbeitet
Veröffentlicht: 1 Artikel, 2 Beispiele
17
Entwickler 17
Bewertung
(1)
Projekte
1
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
Veröffentlicht: 4 Beispiele
18
Entwickler 18
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
19
Entwickler 19
Bewertung
(1)
Projekte
1
100%
Schlichtung
0
Frist nicht eingehalten
0
Frei
20
Entwickler 20
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
Veröffentlicht: 2 Beispiele
21
Entwickler 21
Bewertung
(1)
Projekte
4
50%
Schlichtung
3
0% / 100%
Frist nicht eingehalten
2
50%
Frei
Veröffentlicht: 4 Beispiele
22
Entwickler 22
Bewertung
(4)
Projekte
5
60%
Schlichtung
0
Frist nicht eingehalten
1
20%
Frei
23
Entwickler 23
Bewertung
(568)
Projekte
866
61%
Schlichtung
33
27% / 45%
Frist nicht eingehalten
24
3%
Frei
Veröffentlicht: 1 Beispiel
24
Entwickler 24
Bewertung
(2)
Projekte
3
33%
Schlichtung
0
Frist nicht eingehalten
2
67%
Arbeitet
25
Entwickler 25
Bewertung
(25)
Projekte
35
40%
Schlichtung
9
22% / 33%
Frist nicht eingehalten
5
14%
Beschäftigt
Veröffentlicht: 9 Artikel, 35 Beispiele
26
Entwickler 26
Bewertung
(4)
Projekte
11
55%
Schlichtung
1
100% / 0%
Frist nicht eingehalten
0
Frei
27
Entwickler 27
Bewertung
(2)
Projekte
3
33%
Schlichtung
0
Frist nicht eingehalten
2
67%
Frei
28
Entwickler 28
Bewertung
(45)
Projekte
63
52%
Schlichtung
5
0% / 40%
Frist nicht eingehalten
1
2%
Frei
29
Entwickler 29
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
30
Entwickler 30
Bewertung
(1)
Projekte
1
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
31
Entwickler 31
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
Veröffentlicht: 7 Beispiele
32
Entwickler 32
Bewertung
(268)
Projekte
319
74%
Schlichtung
16
75% / 0%
Frist nicht eingehalten
6
2%
Arbeitet
33
Entwickler 33
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
Veröffentlicht: 1 Beispiel
34
Entwickler 34
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
Veröffentlicht: 2 Beispiele
35
Entwickler 35
Bewertung
(3)
Projekte
4
0%
Schlichtung
1
0% / 100%
Frist nicht eingehalten
0
Frei
36
Entwickler 36
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
37
Entwickler 37
Bewertung
(60)
Projekte
96
43%
Schlichtung
4
0% / 100%
Frist nicht eingehalten
4
4%
Frei
38
Entwickler 38
Bewertung
(1)
Projekte
1
0%
Schlichtung
1
0% / 100%
Frist nicht eingehalten
0
Frei
39
Entwickler 39
Bewertung
(2)
Projekte
2
50%
Schlichtung
0
Frist nicht eingehalten
1
50%
Frei
40
Entwickler 40
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
Veröffentlicht: 5 Beispiele
41
Entwickler 41
Bewertung
(2354)
Projekte
2960
63%
Schlichtung
125
44% / 26%
Frist nicht eingehalten
429
14%
Arbeitet
Ähnliche Aufträge
--- 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

Projektdetails

Budget
70 - 100 USD
Ausführungsfristen
bis 10 Tag(e)

Kunde

Veröffentlichte Aufträge1
Anzahl der Schlichtungen0