Direction Control EA - Allow Buy Only/ Sell Only

MQL4 Experten

Auftrag beendet

Ausführungszeit 6 Tage
Bewertung des Kunden
really good developer
Bewertung des Entwicklers
Great customer. Perfect description of requirements specifications. I look forward to working with you again

Spezifikation

MT4 Direction Control EA — Developer Specification

1. Purpose

Create an MT4 Expert Advisor that allows the trader to control the permitted trade direction on the chart using three on-chart buttons:

  1. BUY ONLY
  2. SELL ONLY
  3. ALLOW ALL

The EA does not generate trades itself. Its primary function is to control and enforce the allowed trade direction.


2. Chart / Symbol Behaviour

When the EA is attached to a chart:

  • It applies to the currency pair/symbol of that chart.
  • Example:

    • EA attached to EURUSD → controls EURUSD.
    • EA attached to GBPUSD → controls GBPUSD.
  • The trader can change the permitted direction by clicking the buttons.


3. Buttons

Display three buttons on the chart:

BUY ONLY

When selected:

  • BUY trades are permitted.
  • SELL trades are NOT permitted.
  • Any existing SELL trade for that symbol should be closed immediately.
  • If a new SELL trade is opened manually or by another EA, the Direction Control EA must detect it and close it immediately.

SELL ONLY

When selected:

  • SELL trades are permitted.
  • BUY trades are NOT permitted.
  • Any existing BUY trade for that symbol should be closed immediately.
  • If a new BUY trade is opened manually or by another EA, the Direction Control EA must detect it and close it immediately.

ALLOW ALL

When selected:

  • Both BUY and SELL trades are permitted.
  • The EA does not close either direction.


4. Immediate Opposite-Trade Protection

The EA must continuously monitor open trades for the chart symbol.

If the current mode is:

BUY ONLY
→ Any SELL position detected must be closed immediately.

SELL ONLY
→ Any BUY position detected must be closed immediately.

The monitoring must be as fast as practically possible within MT4 limitations.

The EA should check on:

  • Every incoming tick
  • Trade/order-state changes where possible
  • EA initialisation
  • Button mode changes

The developer should optimise the code to minimise the delay between detecting an unauthorised trade and sending the close request.


5. Existing Trades When Button Is Changed

If the trader changes from:

ALLOW ALL → BUY ONLY

→ Immediately close all existing SELL trades for that symbol.

If changing:

ALLOW ALL → SELL ONLY

→ Immediately close all existing BUY trades for that symbol.

If changing:

BUY ONLY → SELL ONLY

→ Immediately close all BUY trades.

If changing:

SELL ONLY → BUY ONLY

→ Immediately close all SELL trades.


6. New Trade Protection

The EA must also protect against trades opened after the direction has been selected.

Example:

BUY ONLY is selected.

Another EA opens a SELL trade on EURUSD.

The Direction Control EA detects the SELL trade and immediately attempts to close it.

This must work for:

  • Manually opened trades
  • Trades opened by another EA
  • Market orders


7. Symbol Scope

Default behaviour:

Only control trades belonging to the chart symbol.

Example:

EA attached to EURUSD:

  • Controls EURUSD trades.
  • Does NOT control GBPUSD trades.
  • Does NOT control XAUUSD trades.


8. Magic Number Behaviour

The EA should have an input option:

Control Manual Trades = true/false

Control Other EA Trades = true/false

Recommended default:

  • Manual trades: TRUE
  • Other EA trades: TRUE

The developer should provide filtering options if required by the MT4 implementation.


9. Initial Mode

Input parameter:

InitialMode

Options:

  • BUY_ONLY
  • SELL_ONLY
  • ALLOW_ALL

Recommended default:

ALLOW_ALL

The EA should remember the currently selected mode while it remains attached to the chart.


10. Button Appearance

The currently active mode should be visually obvious.

Example:

BUY ONLY → highlighted/active

SELL ONLY → highlighted/active

ALLOW ALL → highlighted/active

The inactive buttons should remain visible but clearly indicate they are not selected.

Button position should be configurable.


11. EA Inputs

Suggested developer inputs:

  • InitialMode
  • ControlManualTrades
  • ControlOtherEAs
  • ControlCurrentSymbolOnly = true
  • CheckOnEveryTick = true
  • CloseRetryAttempts
  • RetryDelayMilliseconds
  • ButtonCorner
  • ButtonX
  • ButtonY
  • ButtonWidth
  • ButtonHeight
  • ButtonFontSize


12. Important Requirement

The EA must NOT open trades.

It only:

  1. Allows the selected direction.
  2. Blocks/cleans up the opposite direction.
  3. Continuously monitors the symbol.
  4. Immediately closes unauthorised opposite trades.

The EA should be lightweight and designed for extremely fast execution.


Bewerbungen

1
Entwickler 1
Bewertung
(291)
Projekte
363
30%
Schlichtung
37
27% / 65%
Frist nicht eingehalten
10
3%
Überlastet
Veröffentlicht: 10 Beispiele
2
Entwickler 2
Bewertung
(17)
Projekte
21
19%
Schlichtung
5
40% / 40%
Frist nicht eingehalten
0
Frei
3
Entwickler 3
Bewertung
(213)
Projekte
286
47%
Schlichtung
27
59% / 37%
Frist nicht eingehalten
36
13%
Frei
4
Entwickler 4
Bewertung
(438)
Projekte
649
53%
Schlichtung
35
63% / 20%
Frist nicht eingehalten
7
1%
Arbeitet
5
Entwickler 5
Bewertung
(13)
Projekte
20
40%
Schlichtung
1
0% / 100%
Frist nicht eingehalten
1
5%
Frei
6
Entwickler 6
Bewertung
(402)
Projekte
520
24%
Schlichtung
61
57% / 25%
Frist nicht eingehalten
60
12%
Beschäftigt
7
Entwickler 7
Bewertung
(195)
Projekte
242
34%
Schlichtung
11
45% / 45%
Frist nicht eingehalten
8
3%
Frei
Veröffentlicht: 1 Artikel, 8 Beispiele
8
Entwickler 8
Bewertung
(62)
Projekte
90
29%
Schlichtung
24
13% / 58%
Frist nicht eingehalten
7
8%
Arbeitet
9
Entwickler 9
Bewertung
Projekte
1
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
10
Entwickler 10
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
Veröffentlicht: 2 Beispiele
11
Entwickler 11
Bewertung
(19)
Projekte
22
18%
Schlichtung
9
33% / 44%
Frist nicht eingehalten
3
14%
Arbeitet
Veröffentlicht: 1 Beispiel
12
Entwickler 12
Bewertung
(185)
Projekte
199
47%
Schlichtung
4
50% / 25%
Frist nicht eingehalten
1
1%
Arbeitet
13
Entwickler 13
Bewertung
(45)
Projekte
53
57%
Schlichtung
2
100% / 0%
Frist nicht eingehalten
1
2%
Frei
Veröffentlicht: 5 Beispiele
14
Entwickler 14
Bewertung
(111)
Projekte
184
25%
Schlichtung
25
16% / 76%
Frist nicht eingehalten
16
9%
Frei
15
Entwickler 15
Bewertung
(25)
Projekte
31
13%
Schlichtung
14
0% / 79%
Frist nicht eingehalten
9
29%
Frei
16
Entwickler 16
Bewertung
(87)
Projekte
121
68%
Schlichtung
5
80% / 0%
Frist nicht eingehalten
12
10%
Arbeitet
17
Entwickler 17
Bewertung
(6)
Projekte
8
38%
Schlichtung
2
50% / 50%
Frist nicht eingehalten
2
25%
Frei
Ähnliche Aufträge
أود تحسين استراتيجية المستشار الخبير الهجين، مع التركيز على جودة الدخول والأداء الصافي بعد تكاليف التداول. يرجى الإشارة إلى ما يلي: تدقيق النظام الحالي: تحديد أخطاء الترميز، والظروف المتضاربة بين الوحدات، وأسباب الإدخالات الفائتة أو المتأخرة. حدد قواعد واضحة للشراء والبيع: استخدم هيكل السوق، الاتجاه، الزخم، ومستويات الدعم/المقاومة. تجنب الشراء بعد ارتفاع مطول أو البيع بعد انخفاض مطول. راجع الفرص الضائعة: قارن بين
I need a robot that will grow small accounts to bigger amounts like this one in this link, https://youtu.be/d38pMbJihew?si=3NeIOVyrlwDr4X_o. Please click the link and watch how this EA grow small accounts. Then create a robot like that. I will test it on demo first then if it does what i want, i will take it. Please it must be simply to use. It must set targets, for example, once it reaches $500 profit, it must
Looking for a Pre-Built Gold Trading Bot (MQL5 / MT5) I am looking for an existing, ready-made Gold (XAUUSD) trading bot for MT5 with Stop Loss (SL) and Take Profit (TP). If you have a pre-built EA, please share: Trading strategy and entry/exit logic. SL, TP, and risk management features. Backtesting results and verified trading history, if available. Price and source code availability. Existing bots are welcome
I am looking for an experienced MQL5 Expert Advisor (EA) developer to analyze an existing trading setup and develop a similar automated trading robot. Project Overview I have access to a demo trading account where trades are being executed automatically. The trading results look very promising, but I do not know exactly what strategy, logic, indicators, or trade-management rules are being used. I will provide access
Espert 30+ USD
I want to create a robot with 10 indicators.All to take a trade and all in stop folowing. Thanks to put in THE PARAMETERS Yes/No for the indicators to entry in position AND to the stop A trade with 2 takes profit and a breakeaven at the first TP. The goal is to be able to try the multiple combinations with these indicators
Staddle 30+ USD
10 * 0.01, 10 * 0.03, 10 * 0.05. Place a limit order one dollar above the market price, a sell-side limit order below the market price, and a trailing stop loss. The goal is to safely book profits incrementally as the market moves." ulti-tiered lot sizing (0.01, 0.03, 0.05 scaled across 10 levels). Place a buy/sell limit order at a $1 offset from the current market price along with a trailing stop loss to secure and
Hello International Developer, I need LIFETIME MT5 EA for XAUUSD Gold. REQUIREMENTS: 1. Lifetime bot - No expiry date, unlimited accounts, unlimited installations 2. Must include source code .mq5 file - This makes it lifetime 3. Every trade MUST have Stop Loss 300 points and Take Profit 600 points 4. No martingale, No grid, No averaging - Clean safe strategy 5. Auto lot size = 1% risk per trade for good margin growth
Expert advisor 150+ USD
Hiring: Forex Strategist & MQL5 Developer for Long-Term EA Development I am looking for an experienced Forex Strategist and MT5 (MQL5) Developer to work with me on an ongoing project to develop, test, improve, and optimize a profitable Forex Expert Advisor (EA). My Message to the Developer My budget is $150 . However, this is not intended to be a one-time payment for a finished product. I want an ongoing working
I am looking for an experienced MQL5 developer who is also a knowledgeable trader to analyze, test, and improve my existing Expert Advisor (EA) on MetaTrader 5. My EA is already well developed and has its core trading logic in place. I am not looking to build a new bot from scratch. The main objective is to identify what is preventing the EA from being consistently profitable and make carefully considered
فيما يخص المتداولين من سلطان التداول وحتى المبتدى والضائع في أكبر سوق عالمي في التداول ااوكد لكم ان الاستشاره البسيطه من من يملك الاستراتيجيه المثلى في التداول والخبره الطويله في مجال التداول قد تغير مستقبلك

Projektdetails

Budget
30+ USD
Ausführungsfristen
von 1 bis 2 Tag(e)