EA to buy 0.5 lots of BTCUSD on MT5 for Exness Broker

Şartname

I need you to develop an MT5 Expert Advisor (EA) in MQL5 specifically for BTCUSD, primarily trading on the 1-minute timeframe (M1).

The goal is to build a professional, rule-based automated trading system that trades strong impulsive BTCUSD moves in the direction of the trend, while using strict risk and money management.

1. CORE STRATEGY

The EA should NOT randomly buy or sell.

The basic sequence should be:

Trend → Impulse → Momentum confirmation → Entry → Risk-based position sizing → Trade management

The EA should be capable of trading both:

  • BUY/Bullish moves

  • SELL/Bearish moves

It should work across different market conditions and avoid trading when the market is too choppy or the signal quality is poor.

2. TIMEFRAME

Primary execution timeframe:

M1 / 1-minute

The EA should also be capable of checking higher timeframes for trend confirmation:

  • M5

  • M15

  • Optional H1

All timeframe settings should be configurable.

For example:

UseM5TrendFilter = true/false
UseM15TrendFilter = true/false
UseH1TrendFilter = true/false

3. TREND DETECTION

Use EMA alignment as one of the main trend filters.

Default:

  • EMA 9

  • EMA 21

  • EMA 50

Bullish trend:

EMA 9 > EMA 21 > EMA 50

and price should preferably be above EMA 50.

Bearish trend:

EMA 9 < EMA 21 < EMA 50

and price should preferably be below EMA 50.

The EA should NOT enter solely because of EMA alignment. EMA alignment is a directional filter.

4. IMPULSE DETECTION

The main strategy is based on identifying strong impulsive movements.

Use ATR on M1.

Default:

ATR Period = 14

Calculate:

Candle Body = ABS(Close - Open)

Candle Range = High - Low

An impulse candle should satisfy conditions such as:

Body >= ATR × ImpulseATRMultiplier

Default:

ImpulseATRMultiplier = 1.20

Also require a strong body relative to the total candle range.

Default:

MinimumBodyRatio = 0.65

For bullish impulses:

  • Close > Open

  • Large candle body

  • Body >= ATR × multiplier

  • Close near the upper portion of the candle

  • Preferably increased volume/tick volume

For bearish impulses:

  • Close < Open

  • Large candle body

  • Body >= ATR × multiplier

  • Close near the lower portion of the candle

  • Preferably increased volume/tick volume

All these parameters need to be adjustable.

5. VOLUME CONFIRMATION

Use available BTCUSD tick volume from the broker.

Compare current volume with the average volume over a configurable period.

Default:

VolumePeriod = 20
VolumeMultiplier = 1.30

Example:

Current volume >= Average volume × 1.30

If volume confirmation is enabled and the requirement isn't met, the EA should reject the trade.

Make the volume filter optional.

6. RSI MOMENTUM FILTER

Use RSI as a momentum confirmation rather than a reversal signal.

Default:

RSI Period = 14

BUY:

RSI > 55

SELL:

RSI < 45

Do NOT use the logic:

RSI > 70 = automatically sell
RSI < 30 = automatically buy

The strategy is trying to participate in momentum, not automatically fade it.

All RSI levels should be adjustable.

7. ADX FILTER

Add an optional ADX filter to help avoid extremely weak/choppy markets.

Default:

ADX Period = 14
Minimum ADX = 20

Only allow trades when:

ADX >= MinimumADX

Make this filter optional.

8. ENTRY MODES

I want two configurable entry modes.

MODE 1 — IMPULSE CLOSE

Wait for the impulse candle to close.

If all conditions are satisfied, enter in the direction of the impulse.

MODE 2 — BREAKOUT

For bullish setups:

Wait for price to break above the impulse candle high.

For bearish setups:

Wait for price to break below the impulse candle low.

Make this an input:

EntryMode:

0 = Candle Close
1 = Breakout

9. DON'T CHASE EXTREME MOVES

The EA should avoid entering after BTC has already moved too far away from the original signal.

Create an adjustable:

MaxEntryExtensionATR

Default:

0.50 ATR

If price has already extended beyond the allowed distance before entry, cancel the setup.

This is intended to prevent chasing extremely extended M1 candles.

10. SIGNAL SCORING

I want a configurable scoring system.

Example:

Bullish EMA alignment = +2
Strong bullish impulse = +3
RSI confirmation = +1
Volume confirmation = +1
M5 bullish trend = +2
M15 bullish trend = +1
ADX confirmation = +1

Maximum score = 11.

Default minimum score:

7

The same logic should be reversed for SELL signals.

The minimum score must be adjustable.

This allows me to make the EA more selective or more aggressive during testing.

11. RISK MANAGEMENT

This is extremely important.

The EA must use percentage-based risk, NOT fixed lot sizes.

Default:

RiskPerTrade = 0.50%

The lot size should automatically be calculated using:

  • Account equity

  • Risk percentage

  • Stop-loss distance

  • Tick size

  • Tick value

  • Minimum lot

  • Maximum lot

  • Lot step

  • Broker symbol specifications

Do NOT hard-code BTCUSD contract specifications because different brokers can use different specifications.

12. MAXIMUM LOSS PROTECTION

Add:

MaximumDailyLoss = 2%

MaximumWeeklyLoss = 5%

MaximumDrawdown = 10%

If the daily loss limit is reached:

STOP OPENING NEW TRADES FOR THE REST OF THE DAY.

If weekly loss is reached:

STOP OPENING NEW TRADES UNTIL THE NEXT WEEK.

If maximum account drawdown is reached:

STOP THE EA FROM OPENING NEW TRADES.

These must be configurable.

13. CONSECUTIVE LOSS PROTECTION

Default:

MaxConsecutiveLosses = 3

After 3 consecutive losing trades:

Stop opening new trades.

Optionally use:

CooldownAfterLosses = 60 minutes

Do NOT increase the lot size after a loss.

14. ABSOLUTELY NO MARTINGALE

The EA must NEVER:

  • Double the lot after a loss

  • Increase lot size to recover losses

  • Open progressively larger trades after losing

  • Use a recovery grid

  • Use unlimited averaging down

Every trade should calculate its risk independently.

15. STOP LOSS

Use dynamic ATR-based stop loss.

Default:

ATR Period = 14
SL ATR Multiplier = 1.50

The stop should also consider the structure of the impulse candle.

For BUY:

Stop should be below a logical bullish invalidation point, such as the impulse candle low, with an appropriate ATR-based buffer.

For SELL:

Stop should be above a logical bearish invalidation point, such as the impulse candle high, with an appropriate ATR-based buffer.

The final SL calculation should avoid stops that are unrealistically tight.

16. TAKE PROFIT

Use risk/reward based TP.

Default:

RiskReward = 2.0

Example:

If the trade risks $5:

TP should initially target approximately $10.

The risk/reward ratio must be adjustable.

17. BREAK-EVEN

Add optional break-even management.

Default:

UseBreakEven = true

BreakEvenAtR = 1.0

Once the trade reaches +1R, move the stop toward breakeven.

Allow an adjustable small offset so the trade can potentially cover costs.

Do not move to breakeven too early.

18. TRAILING STOP

Add optional ATR-based trailing stop.

Default:

UseTrailingStop = true

TrailingATRMultiplier = 1.0

The trailing stop should follow the market while allowing reasonable M1 pullbacks.

19. PARTIAL PROFIT

Add optional partial closing.

Example:

UsePartialClose = false by default.

If enabled:

PartialCloseAtR = 1.5
PartialClosePercent = 50%

At +1.5R:

Close 50% of the position.

Allow the remaining position to continue using TP/trailing management.

20. MAXIMUM OPEN POSITIONS

Default:

MaxPositions = 1

I do NOT want the EA opening many positions from the same signal.

Also add:

OneTradePerImpulse = true

Once an impulse has been traded, don't repeatedly enter the same impulse.

21. COOLDOWN

After a position closes:

Default:

CooldownMinutes = 5

Do not immediately open another trade unless the cooldown has expired and a completely new valid setup exists.

Make it adjustable from 0–60 minutes.

22. SPREAD FILTER

Before entering a trade, check the current BTCUSD spread.

If spread is above the configured maximum:

DO NOT ENTER.

The maximum spread should be adjustable.

23. SLIPPAGE / DEVIATION

Add maximum allowed execution deviation.

If the requested execution price is significantly different from the acceptable price:

Reject the trade rather than chasing the market.

24. TRADING SESSION

BTCUSD operates 24/7, so the EA should support 24-hour operation.

However, allow an optional trading-session filter.

Inputs:

UseTradingSession = true/false
StartTime
EndTime

If disabled, the EA can operate continuously.

25. MARKET REGIME FILTER

The EA should distinguish between:

  1. Bullish trend

  2. Bearish trend

  3. Choppy/sideways market

Bullish:

EMA alignment + bullish momentum.

Bearish:

EMA alignment + bearish momentum.

Choppy:

Weak trend, conflicting indicators, low directional movement.

In a choppy environment, preferably NO TRADE.

26. DAILY PROFIT LOCK

Add an optional daily profit target.

Example:

UseDailyProfitLock = false by default.

DailyProfitTarget = 3%

If enabled and the account reaches the daily profit target:

Stop opening new trades for the rest of the day.

This is a capital-protection feature, not a guaranteed profit target.

27. EMERGENCY PROTECTION

Add an emergency equity protection system.

If account drawdown reaches the configured maximum:

  • Stop opening trades

  • Optionally close EA-managed positions

  • Display a clear warning

  • Require a reset/new trading period before trading resumes

28. TRADE IDENTIFICATION

Use a unique Magic Number.

Example:

MagicNumber = 25092501

The EA should only manage positions that belong to its own Magic Number.

It must NOT accidentally modify manual trades or trades belonging to another EA.

29. LOGGING

For every trade, log:

  • Date/time

  • BUY/SELL

  • Entry price

  • Stop loss

  • Take profit

  • Lot size

  • Account equity

  • Risk percentage

  • ATR

  • RSI

  • ADX

  • Volume ratio

  • Signal score

  • Spread

  • Reason for entry

  • Reason for exit

  • Profit/loss

  • R multiple

  • Maximum favorable excursion if possible

  • Maximum adverse excursion if possible

Also log rejected signals and the reason.

Example:

"BUY rejected — score 6/7"

"SELL rejected — spread too high"

"BUY rejected — daily loss limit reached"

This will make debugging and optimization much easier.

30. ON-CHART DASHBOARD

If possible, create an MT5 dashboard showing:

BTCUSD
Current timeframe
Current trend
Current ATR
RSI
ADX
Volume ratio
Signal score
Current spread
Account balance
Account equity
Risk per trade
Today's P/L
Today's number of trades
Consecutive losses
Current position
EA status

Example:

TREND: BULLISH
SIGNAL SCORE: 8/11
ATR: ...
RSI: 61
ADX: 27
VOLUME: 1.45x
SPREAD: ...
RISK: 0.50%
DAILY P/L: +1.2%
STATUS: WAITING FOR ENTRY

31. EA INPUTS

Please make these configurable:

GENERAL

  • Symbol

  • Timeframe

  • Magic Number

  • Enable/Disable EA

TREND

  • Fast EMA

  • Medium EMA

  • Slow EMA

  • M5 filter

  • M15 filter

  • H1 filter

IMPULSE

  • ATR period

  • Impulse ATR multiplier

  • Minimum body ratio

  • Minimum close location

  • Volume period

  • Volume multiplier

MOMENTUM

  • RSI period

  • Bullish RSI level

  • Bearish RSI level

  • ADX period

  • Minimum ADX

ENTRY

  • Entry mode

  • Minimum signal score

  • Maximum entry extension

RISK

  • Risk per trade

  • Maximum daily loss

  • Maximum weekly loss

  • Maximum drawdown

  • Maximum consecutive losses

TRADE MANAGEMENT

  • SL ATR multiplier

  • Risk/reward

  • Break-even

  • Break-even R

  • Trailing stop

  • Trailing ATR multiplier

  • Partial close

  • Partial close percentage

SAFETY

  • Maximum positions

  • One trade per impulse

  • Cooldown

  • Maximum spread

  • Maximum deviation

SESSION

  • Trading session enabled/disabled

  • Start time

  • End time

32. CODE QUALITY

Please write the EA using clean, modular MQL5 code.

Separate functions for:

  • Trend detection

  • Impulse detection

  • Volume analysis

  • RSI analysis

  • ADX analysis

  • Signal scoring

  • Risk calculation

  • Lot calculation

  • Entry

  • SL calculation

  • TP calculation

  • Break-even

  • Trailing stop

  • Partial close

  • Daily loss protection

  • Drawdown protection

  • Trade logging

Use proper error handling.

After every trade operation, verify the trade-server response/retcode rather than assuming the operation succeeded.

33. BACKTESTING

I want the EA designed specifically so it can be tested and optimized in MT5 Strategy Tester.

Test:

  • Bull markets

  • Bear markets

  • Sideways markets

  • High volatility

  • Low volatility

  • Different BTCUSD conditions

  • Different spreads

  • Slippage

  • Different periods

Do NOT optimize only for maximum historical profit.

The goal is:

Robustness + controlled drawdown + realistic execution + consistent behavior.

Use out-of-sample/forward testing after optimization to reduce overfitting.

34. IMPORTANT — NO GUARANTEED PROFIT

I understand that no EA can guarantee a specific weekly/monthly return.

I do NOT want the code artificially optimized to produce a certain percentage such as 30% every week.

I want the strategy to have:

  • Controlled risk

  • Strict money management

  • Clear entry rules

  • Clear exit rules

  • Limited drawdown

  • No martingale

  • No revenge trading

  • No unlimited positions

  • Robust testing

  • Adjustable parameters

35. FINAL STRATEGY LOGIC

The EA should essentially operate like this:

NEW M1 CANDLE

↓

Check EA enabled

↓

Check daily/weekly loss limits

↓

Check maximum drawdown

↓

Check consecutive losses

↓

Check cooldown

↓

Check existing positions

↓

Check spread

↓

Determine M5/M15/H1 trend

↓

Determine M1 trend

↓

Calculate ATR

↓

Detect bullish/bearish impulse

↓

Check RSI

↓

Check volume

↓

Check ADX

↓

Calculate signal score

↓

If score is below minimum → NO TRADE

↓

Check price isn't overextended

↓

Determine entry

↓

Calculate structural/ATR stop

↓

Calculate TP

↓

Calculate position size based on account risk

↓

Check maximum exposure

↓

Execute trade

↓

Monitor trade

↓

Break-even / trailing / partial close

↓

Close at SL/TP/management rule

↓

Record result

↓

Cooldown

↓

Wait for NEW setup

The most important requirement is that the EA should trade high-quality impulsive BTCUSD moves rather than continuously trading every M1 candle.


Yanıtlandı

1
Geliştirici 1
Derecelendirme
(2676)
Projeler
3415
68%
Arabuluculuk
77
48% / 14%
Süresi dolmuş
343
10%
Çalışıyor
Yayınlandı: 1 kod
2
Geliştirici 2
Derecelendirme
(1)
Projeler
1
0%
Arabuluculuk
0
Süresi dolmuş
1
100%
Serbest
3
Geliştirici 3
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
4
Geliştirici 4
Derecelendirme
(73)
Projeler
94
56%
Arabuluculuk
5
80% / 20%
Süresi dolmuş
2
2%
Yüklendi
5
Geliştirici 5
Derecelendirme
(20)
Projeler
28
39%
Arabuluculuk
8
25% / 38%
Süresi dolmuş
2
7%
Meşgul
Yayınlandı: 8 makale, 35 kod
6
Geliştirici 6
Derecelendirme
(55)
Projeler
92
24%
Arabuluculuk
8
75% / 13%
Süresi dolmuş
44
48%
Serbest
7
Geliştirici 7
Derecelendirme
(64)
Projeler
144
46%
Arabuluculuk
21
38% / 24%
Süresi dolmuş
32
22%
Serbest
8
Geliştirici 8
Derecelendirme
(852)
Projeler
1466
72%
Arabuluculuk
122
29% / 48%
Süresi dolmuş
359
24%
Çalışıyor
Yayınlandı: 3 makale
9
Geliştirici 9
Derecelendirme
(556)
Projeler
848
61%
Arabuluculuk
33
27% / 45%
Süresi dolmuş
24
3%
Serbest
Yayınlandı: 1 kod
10
Geliştirici 10
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
11
Geliştirici 11
Derecelendirme
(19)
Projeler
22
18%
Arabuluculuk
9
33% / 44%
Süresi dolmuş
3
14%
Çalışıyor
Yayınlandı: 1 kod
12
Geliştirici 12
Derecelendirme
(1)
Projeler
2
50%
Arabuluculuk
0
Süresi dolmuş
1
50%
Çalışıyor
13
Geliştirici 13
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
14
Geliştirici 14
Derecelendirme
(9)
Projeler
11
27%
Arabuluculuk
0
Süresi dolmuş
2
18%
Çalışıyor
Yayınlandı: 1 kod
15
Geliştirici 15
Derecelendirme
(4)
Projeler
5
0%
Arabuluculuk
3
0% / 33%
Süresi dolmuş
1
20%
Serbest
16
Geliştirici 16
Derecelendirme
(16)
Projeler
30
40%
Arabuluculuk
3
33% / 67%
Süresi dolmuş
7
23%
Çalışıyor
17
Geliştirici 17
Derecelendirme
(78)
Projeler
246
74%
Arabuluculuk
7
100% / 0%
Süresi dolmuş
1
0%
Serbest
Yayınlandı: 1 makale
18
Geliştirici 18
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
19
Geliştirici 19
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
20
Geliştirici 20
Derecelendirme
(400)
Projeler
518
24%
Arabuluculuk
61
57% / 25%
Süresi dolmuş
60
12%
Çalışıyor
21
Geliştirici 21
Derecelendirme
(90)
Projeler
118
17%
Arabuluculuk
44
23% / 39%
Süresi dolmuş
20
17%
Serbest
22
Geliştirici 22
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
23
Geliştirici 23
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
24
Geliştirici 24
Derecelendirme
(11)
Projeler
16
38%
Arabuluculuk
0
Süresi dolmuş
1
6%
Çalışıyor
25
Geliştirici 25
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
26
Geliştirici 26
Derecelendirme
(262)
Projeler
308
76%
Arabuluculuk
13
77% / 0%
Süresi dolmuş
6
2%
Yüklendi
27
Geliştirici 27
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
28
Geliştirici 28
Derecelendirme
(13)
Projeler
18
44%
Arabuluculuk
2
50% / 50%
Süresi dolmuş
0
Serbest
29
Geliştirici 29
Derecelendirme
(2348)
Projeler
2954
63%
Arabuluculuk
125
44% / 26%
Süresi dolmuş
429
15%
Çalışıyor
30
Geliştirici 30
Derecelendirme
(319)
Projeler
571
35%
Arabuluculuk
83
31% / 45%
Süresi dolmuş
206
36%
Çalışıyor
31
Geliştirici 31
Derecelendirme
(7)
Projeler
6
0%
Arabuluculuk
4
25% / 75%
Süresi dolmuş
2
33%
Serbest
32
Geliştirici 32
Derecelendirme
(13)
Projeler
14
64%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
33
Geliştirici 33
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
34
Geliştirici 34
Derecelendirme
(1)
Projeler
1
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
35
Geliştirici 35
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
36
Geliştirici 36
Derecelendirme
(183)
Projeler
197
46%
Arabuluculuk
4
50% / 25%
Süresi dolmuş
1
1%
Çalışıyor
37
Geliştirici 37
Derecelendirme
(1)
Projeler
1
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
38
Geliştirici 38
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
39
Geliştirici 39
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
Yayınlandı: 2 kod
40
Geliştirici 40
Derecelendirme
(258)
Projeler
269
29%
Arabuluculuk
2
50% / 0%
Süresi dolmuş
3
1%
Çalışıyor
Yayınlandı: 2 kod
41
Geliştirici 41
Derecelendirme
(25)
Projeler
31
13%
Arabuluculuk
14
0% / 79%
Süresi dolmuş
9
29%
Serbest
42
Geliştirici 42
Derecelendirme
(54)
Projeler
67
42%
Arabuluculuk
15
27% / 60%
Süresi dolmuş
1
1%
Çalışıyor
43
Geliştirici 43
Derecelendirme
(60)
Projeler
94
43%
Arabuluculuk
4
0% / 100%
Süresi dolmuş
4
4%
Serbest
44
Geliştirici 44
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
45
Geliştirici 45
Derecelendirme
(369)
Projeler
457
55%
Arabuluculuk
24
54% / 17%
Süresi dolmuş
31
7%
Çalışıyor
Benzer siparişler
PHANTOM PROTOCOL V1 35 - 150 USD
PHANTOM PROTOCOL V1 – MT5 EXPERT ADVISOR SPECIFICATION Develop a professional MetaTrader 5 (MT5) Expert Advisor named “PHANTOM PROTOCOL V1”. PRIMARY MARKET: - XAUUSD (Gold) - Designed primarily for M15 and H1 timeframes. - The EA must work with both 3-digit and 2-digit gold pricing where applicable. TRADING LOGIC: Use pure price-action and market-structure analysis rather than relying on a single indicator. The EA
I am looking for an experienced MQL5 developer who can BOTH research trading strategies and develop a commercial-quality MetaTrader 5 Expert Advisor. This is NOT simply a coding job. The developer is free to choose the trading logic, indicators, entry method, exit method, timeframe architecture and strategy type. I do not require the EA to copy or resemble any existing commercial EA. My priority is: ROBUST LONG-TERM
MT4/MT5 HFT EA us30 30 - 3000 USD
Hello everybody, I'm looking for an experienced MQL4/MQL5 developer to optimize a High-Frequency Trading (HFT) Expert Advisor for both MT4 and MT5. The EA performs consistently and profitably on demo accounts, but when it is run on Raw and Standard live accounts under what appear to be the same trading conditions, it begins generating losses. I do not have the original source code (.mq4/.mq5); I only have the

Proje bilgisi

Bütçe
100 - 150 USD
Son teslim tarihi
from 1 to 3 gün

Müşteri

(1)
Verilmiş siparişler2
Arabuluculuk sayısı0