Modify MT4 Expert Advisor: Add Feature to Track Multiple Take-Profit Hits Before Removal

MQL4 Indicadores Asesores Expertos

Trabajo finalizado

Plazo de ejecución 1 día
Comentario del Cliente
Great work, great demonstration Developer showed a good ethics and made the requirements
Comentario del Ejecutor
Great customer. Detailed specifications. I look forward to working with you again.

Tarea técnica

Current EA Description:

I have an MT4 Expert Advisor (EA) named "Pending Orders" that manages virtual pending orders based on specific trade conditions. The EA can place either a buy limit, buy stop, sell limit, or sell stop order based on the chosen trade type and market price. The EA features include:

 

Pending Order Placement:

It places pending orders (buy/sell limit or buy/sell stop) based on the input price and trade type.


  • Trade Management:


The EA can delete existing pending orders and modify stop-loss (SL) and take-profit (TP) levels.

It includes a breakeven feature to move stop-losses when trades become profitable.


  • Retry After Stop-loss Hit:


If a trade hits its stop-loss, the EA automatically re-places the pending order under the same conditions.


  • Automatic Removal:


The EA automatically removes itself from the chart if a trade hits the take-profit.

Feature Request:

I would like to add a new feature to the EA, specifically in the removeExpert function. Here’s the change I want:


  • New Feature: Instead of the EA removing itself after hitting a single take-profit (TP), I would like it to remove itself after hitting take-profit a certain number of times (e.g., 3 times).


Implementation Details:


  • Add a counter that tracks how many times the EA's trades hit the take-profit.
  • Once the EA reaches the user-defined number of take-profits (e.g., 3), it should automatically remove itself from the chart.
  • This counter should be reset when the EA is reinitialized.
A Video of test is required.


Han respondido

1
Desarrollador 1
Evaluación
(40)
Proyectos
55
62%
Arbitraje
2
50% / 50%
Caducado
0
Libre
2
Desarrollador 2
Evaluación
(295)
Proyectos
367
30%
Arbitraje
37
27% / 65%
Caducado
10
3%
Trabaja
Ha publicado: 10 ejemplos
3
Desarrollador 3
Evaluación
(3)
Proyectos
2
0%
Arbitraje
1
0% / 0%
Caducado
0
Libre
4
Desarrollador 4
Evaluación
(195)
Proyectos
242
34%
Arbitraje
11
45% / 45%
Caducado
8
3%
Libre
Ha publicado: 1 artículo, 8 ejemplos
5
Desarrollador 5
Evaluación
(93)
Proyectos
119
50%
Arbitraje
4
50% / 50%
Caducado
3
3%
Libre
6
Desarrollador 6
Evaluación
(8)
Proyectos
8
0%
Arbitraje
2
50% / 0%
Caducado
1
13%
Trabaja
Solicitudes similares
Forex Hunter MT5 30 - 250 USD
ثبت طلبك في مواصفات البوت الثاني كذا: الجودة والأمان أهم من السعر، وما يدخل إلا إذا الفرصة قوية، مع حماية عند الخسائر وانقطاع الاتصال وارتفاع السبريد، وتشغيل مستمر على سيرفر، مع اختبارات إلزامية قبل أي تشغيل حقيقي. بهذه الصيغة يصير يشتغل وأنت مرتاح بالِك، لكنه يوقف تلقائيًا وقت عطلة السوق أو أي خلل. بس أكون واضح معك: ما في بوت يضمن عدم الخسارة، خصوصًا بالمضاربات السريعة، هدفنا نقلل المخاطر ونمنع الخسائر غير المنضبطة
My MQL5 Expert Advisor wins most trades with small profits, then suddenly takes one large loss that wipes out weeks of gains. This is the "picking up pennies in front of a steamroller" pattern. Required fix: Find the exact cause of the large losses in the code. Cap the loss on every trade with a fixed stop loss (no martingale or averaging down). Stop trading in dangerous conditions (high volatility, strong trends
//+------------------------------------------------------------------+ //| Durban Gold Hunter.mq5 (v3.00) | //| Multi-pair EA for MetaTrader 5 (Razor Markets, XM). | //| Strategy modules (each can be switched on/off): | //| 1. EMA crossover | //| 2. 714 method (EMA 7 + RSI 14) | //| 3. CRT (Candle Range Theory: range sweep and close back inside)| //| 4. Trend line breakout (auto-drawn from swing highs/lows) | //| 5
I want NinjaTrader to behave like Tradovate. When I hover over a candlestick, the cursor should automatically snap to the center of that candle across all open charts. For example, when I hover over a 30-minute candle, the cursor should align with the center of the corresponding candles on the 15-minute and other chart timeframes. I also want vertical lines drawn on one chart to automatically align with the center of
Hello, I already have an MT5 Expert Advisor for XAUUSD based on Fibonacci, market structure, BOS/CHoCH and swing trading. I need an experienced MQL5 developer to modify my existing EA, not develop a completely new one. Required modifications: Partial take-profit system with multiple TP levels. Keep profit targets conservative, using Fibonacci extension levels. Stop-loss placement beyond liquidity areas, not exactly
Hello, I am an independent developer selling an Expert Advisor (EA) on the MQL5 Market. I am looking for an experienced Forex affiliate marketing company or professional marketer to promote my existing MT5 trading robot to customers worldwide. My proposed partnership offers a 35% commission per verified sale, with the possibility of a long-term collaboration. I would like to know: Do you promote third-party MT5
The objective is to develop a custom technical indicator for MetaTrader 5 (MQL5) that replicates the exact visual structure, inputs, and features of the "AYN-Indicator by Snurk" as shown in the provided screenshot. The indicator must analyze price actions based on a flexible lookback period, plot dynamic trend filters, and render precise Buy/Sell breakout labels without any lagging or repainting
Requirements Specification: Debug & Error Fixing: Review the entire source code of the MQL expert advisor. Identify and fix all logical errors, bugs, and performance issues that cause trades to close prematurely or yield extremely low profits. Strategy Restructuring & Optimization: Fully analyze and optimize the current entry and exit strategy for USDJPY and GBPUSD. Modify, upgrade, or completely rewrite the entry
Winter 500+ USD
I am looking for an MQL5 developer to independently review an existing EA’s execution and position management logic. The review should focus on duplicate orders, trade isolation by symbol and magic number, broker price and volume constraints, error handling, and recovery after a terminal restart. This order is for an audit report. Please do not modify the source or change the trading strategy. For each finding
Title: Fully Automatic MT5 Trading Bot (Expert Advisor) with Risk Management I want a fully automated trading robot (Expert Advisor) for MetaTrader 5, written in MQL5. The bot must automatically analyse market data, identify trading opportunities, execute BUY and SELL orders, manage open positions, and close trades according to predefined rules without requiring manual confirmation for each trade. Requirements

Información sobre el proyecto

Presupuesto
30+ USD
Plazo límite de ejecución
a 1 día(s)