Replace Pending Orders for an EA after restore

MQL4 Experts Scripts

Job finished

Execution time 3 days

Specification

Hi

Is there any way to store any pending orders executed by an EA?  I'll explain further

If for example you have an EA that has placed several pending stop orders and the signal to delete/execute them has not been reached yet and you need to restore your computer for whatever reason,

or you need to delete pending orders manually for whatever reason to remove the EA and replace later. 


After the restore and installations I replace the EA on my chart but it will only execute the most recent signal and if it had 2  or more previous pending orders that are still valid, of course it won't replace them.


I'm thinking of some sort of script to run before deleting or restoring that will write any existing pending orders to a file and then maybe have a function in the init() of whatever EA I'm using that checks that file and replaces those orders for the EA to manage and trade. I can then go into that file and delete those orders that have already been placed. This is just a suggestion of an idea that might or might not be viable. I'm open to any suggestions that will make this work.


I hope I've made myself clear, if not please ask any questions for clarification. Code to be in English only.


As a caveat. Would also be good if I can actually manually place pending orders myself and then when I run this program you write,  it will also recognize the manually placed orders and stores them as well as the

EA pending orders.  When we restore the previous EA pending orders the EA will also restore recognize the manually entered trades. Hope this makes sense, as stated before ask any questions for clarification.


thx

Donskey

Responded

1
Developer 1
Rating
(500)
Projects
966
74%
Arbitration
27
19% / 67%
Overdue
100
10%
Loaded
Published: 1 article, 6 codes
2
Developer 2
Rating
(72)
Projects
254
53%
Arbitration
17
47% / 41%
Overdue
83
33%
Working
3
Developer 3
Rating
(82)
Projects
150
29%
Arbitration
9
44% / 11%
Overdue
46
31%
Free
4
Developer 4
Rating
(195)
Projects
395
28%
Arbitration
155
20% / 52%
Overdue
112
28%
Free
5
Developer 5
Rating
(15)
Projects
65
58%
Arbitration
6
17% / 33%
Overdue
39
60%
Free
Similar orders
I’m looking to acquire an existing, profitable Expert Advisor (EA) with full source code to add to our client investment portfolio. To be clear, this is not a request to develop or design a new strategy. If you already have an EA that is proven, consistent, and production-ready, I’m open to reviewing it immediately. Please apply only if you meet all the requirements below. Submissions without a proper introduction or
Sniper 30+ USD
Hello, I would like you to develop a trading robot (EA) with the following specifications: The robot should be able to target large moves, ideally 60–100 pips or more per trade. It should use high-precision “sniper” entries, focusing on high-probability setups rather than frequent trades. Once the initial trade reaches breakeven, the robot should be able to add additional positions (scale in) while maintaining strict
True 30+ USD
Hello, I would like to commission the development of a trading robot (EA) designed specifically to pass a prop firm challenge within one week, with a maximum allowable drawdown of 2%. Key requirements: Strict risk management with drawdown hard-limits Controlled lot sizing and position management Strategy focused on high-probability, low-risk entries Full compliance with prop firm rules (daily drawdown, max drawdown
I want you to help me and create a sniper entry robot and with proper risk management that follow trend and when is not going to the direction it exit
I need an MQL5 Expert Advisor fixed and compiled. Symbol: XAUUSD Timeframe: M1 Strategy: - Pending order breakout using last 3 candles - Buy Stop +4 points above range - Sell Stop -4 points below range - Lot size: 0.01 fixed - No martingale, no grid, no trailing stop Exits: - Take Profit: 8–10 points - Stop Loss: 10–12 points - Time-based exit: ~75 seconds Risk rules: - Trade only between 09:00 and 17:00 - Max spread
I have been trading manually for years by disciplining myself to follow a rigorous risk management system and using entry and exit strategies crafted from Implied Volatility(IV), Real Volume ,RSI and Moving Average ,but never had I automated the entire system until now . I have just completed the automation of the gold Expert Advisor and the results are astonishing .Below you'll see the graph and a statistics file
Hello budget 30$ I have range breakout expert advisor with pending orders, when the range is complete, the expert sends pending orders, I need to add an option so that when the range is complete, the expert advisor doesn't send pending orders, when the price exceeds the range, the position is opened, executive Orders. I need to make new option True/False True = Executive Orders. False = Pending orders I want the
Wealth Ascent 30 - 50 USD
MASTER PROMPT: Advanced Multi-Strategy Trading Robot Role: You are a senior quantitative trader, algorithmic trading engineer, and risk manager with 10+ years of experience in crypto, forex, and indices markets. Goal: Design a robust, automated trading robot that integrates multiple proven trading strategies and focuses on long-term, risk-adjusted profitability, capital preservation, and adaptive market behavior. ---
I got access to a trial mt5 EA(only ex5 and not mql5 file) which is an ultra fast scalper on gold that operates only using pending orders which is working absolutely insane when backtesting or live trading using demo account but when you try to back test it on a live/real account the results are horrible !...both demo and real accounts belong to the same broker both same leverage and same type spread wise but the EA
Hi , I need an MT4 EA with the following requirements (BUY only): BUY only: The EA must open BUY trades only . No sell orders at all. Pending orders on objects (Touch trigger, no candle close): I draw objects on the chart: Trendline / Rectangle (Box) / Horizontal Line . The EA places a BUY pending order exactly at the object price so it triggers when price touches the object. For a trendline, the EA must continuously

Project information

Budget
20 - 100 USD
Deadline
from 1 to 5 day(s)