Simple algorithm robot MQL5

Job finished

Execution time 23 hours
Feedback from customer
Agreed completion time of three days was done in less than a day. Not a single detail was missed. Saad left an impression of decent person and high class professional. First one to ask in future.
Feedback from employee
Clear specifications for the project and swift communication. Looking forward to future collaborations.

Specification

 Hello Mates! I need an open source file of a very simple algorithm written in MQL5 for use on Metatrader5.
 I have quite unusual requirements for it, which I unfortunately was not able to satisfy by independently studying the topic and searching for analogues.
 The algorithm consists of the following actions: opens a market position in a preset direction with a preset position size, as well as preset Take Profit and preset Stop Loss.
No any indicators are used as a trigger - only the bot start (or maybe time preset). When closing a position by Take Profit, it repeats the first action.
When closing by Stop loss - executes the second command with same list of customizable parameters. Thus, six consecutive commands with customizable parameters each: Take Profit, Stop Loss, position size and direction.
This trading commands should follow one-by-one and only one trade can occur at a time. When Take Profit is executed on any of the trades in the queue, the bot starts from the beginning.
When a trade is closed using Stop Loss, it moves on to the next task except the sixth. The latter task number six resets the cycle to the first, regardless of the outcome of the transaction.

Robot should stop working on reaching preset of total Profit or total Loss.

  I understand that probably the biggest complexity and part of the work is that each trade out of six has its own settings and I'm going to change them often, so I need open source code (minimal comments included to see where this parameters <3) so that I can change these parameters myself.

 Also please take a look on attached picture, it might help in explanation.

Files:

PNG
expl.png
50.8 Kb

Responded

1
Developer 1
Rating
(12)
Projects
9
33%
Arbitration
11
0% / 100%
Overdue
2
22%
Free
2
Developer 2
Rating
(64)
Projects
83
28%
Arbitration
9
33% / 56%
Overdue
9
11%
Free
Published: 1 code
3
Developer 3
Rating
Projects
0
0%
Arbitration
1
0% / 0%
Overdue
0
Working
Published: 27 articles
4
Developer 4
Rating
(11)
Projects
18
28%
Arbitration
4
50% / 50%
Overdue
1
6%
Free
5
Developer 5
Rating
(618)
Projects
1429
59%
Arbitration
31
81% / 0%
Overdue
10
1%
Free
6
Developer 6
Rating
(160)
Projects
206
61%
Arbitration
10
80% / 0%
Overdue
0
Free
Published: 1 code
Similar orders
{ "strategy_name": "M5 EMA Scalper", "timeframe": "M5", "indicators": { "ema_fast": 20, "ema_slow": 50, "rsi": 14, "atr": 14 }, "entry_rules": { "buy": [ "EMA20 > EMA50", "Price closes above EMA20", "RSI > 55" ], "sell": [ "EMA20 < EMA50", "Price closes below EMA20", "RSI < 45" ] }, "risk_management": { "risk_per_trade": 1.0, "stop_loss_atr": 1.5, "take_profit_rr": 2.0
Hola, traders e inversores: Desarrollamos soluciones de trading algorítmico para MetaTrader 4 y MetaTrader 5. Creamos bots, indicadores y herramientas a medida que convierten estrategias manuales en sistemas automáticos, configurables y orientados a una gestión de riesgo sólida. Hemos trabajado en automatizaciones que integran entradas y salidas por reglas, cálculo de lotaje, control de drawdown, filtros de horario y
I have developed a custom semi-automated MT5 trading workflow for personal use. I am available to discuss its technical implementation, automation features, and overall workflow with developers or traders interested in similar solutions. The project includes MT5 automation, Telegram communication, trade execution tools, and configurable risk management components. If you are working on a similar project or looking
Hello, I need a custom Expert Advisor for MetaTrader 5. I am trading from mobile only. **Account & Style:** - Capital: $5,000 - $10,000 - Risk: Moderate/Balanced - Trading Style: Scalping **Pairs & Timeframe:** - Symbols: EURUSD and XAUUSD - Timeframe: M5 **Strategy:** - BUY: RSI(14) < 30 AND Price > 20 EMA - SELL: RSI(14) > 70 AND Price < 20 EMA - Only 1 trade per symbol at a time - No Martingale / No Grid **Risk
> "I am looking for a reliable and profitable Expert Advisor (EA) or trading robot for MetaTrader. The EA should have a proven track record, good risk management, and stable performance in live market conditions. Please share the name of the EA, a brief explanation of how its strategy works, and any relevant performance statistics or backtest reports to help me evaluate it."
We are seeking an experienced MQL4/MQL5 programmer to develop a high-performance, fully automated Expert Advisor (EA). The bot must execute a sophisticated multi-currency hedging strategy across correlated forex pairs. Key Responsibilities Develop Multi-Currency Logic : Build an EA capable of scanning and trading multiple currency pairs simultaneously from a single chart or setup. Implement Hedging Strategy : Code
I am looking for an experienced MetaTrader 5 expert. I already have 3 MT5 trading accounts. I need someone to: 1. Help me choose a reliable Windows VPS. 2. Connect to my VPS remotely (AnyDesk or TeamViewer). 3. Install 3 MetaTrader 5 terminals. 4. Configure: - 1 Master Account - 2 Slave Accounts 5. Install and configure a professional Trade Copier. 6. Copy all trades from the Master account to both Slave
I have an MT4 custom indicator (.ex4) that I use regularly, and I would like an identical MT5 version. Important: I do not have the source code (.mq4). I only have the compiled MT4 indicator. I am looking for an experienced MQL developer who can recreate the indicator's functionality and appearance for MT5 by analyzing its behavior. The MT5 version should match the MT4 version as closely as possible, including
Mac200 50+ USD
I need a Trend following Bot. Here we took entries by looking at two indicator which are 200 period ema and 12 26 9 MacD. Rules for entry exit are: Buy trade: When market is above 200 ema and MacD Line cross over the signal line and this cross over happened below the zero line of MacD indicator. We simply put Buy trade. Sell trade: When market is below 200 ema and MacD line crosses below the signal line and this
I I would like to create a trading robot based on 2 ema crossing. The robot is pretty simple, it should open buy position when fast ema cross slow ema and vise versa. Also it should use martingale after the loss position. It should has expiration period inside the code and alerts l

Project information

Budget
30+ USD