A quick little job about OrderCloseTime() in my EA.

Job finished

Execution time 2 minutes
Feedback from customer
Lakshan is very helpful and patient programmer, I would recommend.

Specification

In my EA i have a block of code within the OnTick area and I need it to only run when a trade closes, instead of every tick. Currently I am using OrderCloseTime() and can get a new number when a trade closes, but as said the code block is running every tick, but it only needs to run once, when a trade closes. I think the bit of code I have is close to how to do it, but the logic of exactly how to do it escapes me so a little help is appreciated. Thanks for looking.


Responded

1
Developer 1
Rating
(188)
Projects
212
58%
Arbitration
9
11% / 89%
Overdue
8
4%
Free
2
Developer 2
Rating
(772)
Projects
1039
44%
Arbitration
50
8% / 50%
Overdue
116
11%
Free
3
Developer 3
Rating
(53)
Projects
74
26%
Arbitration
30
10% / 63%
Overdue
22
30%
Free
4
Developer 4
Rating
(647)
Projects
1295
67%
Arbitration
84
26% / 49%
Overdue
338
26%
Free
5
Developer 5
Rating
(50)
Projects
80
39%
Arbitration
4
50% / 25%
Overdue
0
Free
6
Developer 6
Rating
(117)
Projects
138
41%
Arbitration
30
7% / 77%
Overdue
17
12%
Free
7
Developer 7
Rating
(1156)
Projects
1462
63%
Arbitration
21
57% / 10%
Overdue
43
3%
Free
8
Developer 8
Rating
(574)
Projects
945
47%
Arbitration
309
58% / 27%
Overdue
125
13%
Free
9
Developer 9
Rating
(257)
Projects
263
30%
Arbitration
0
Overdue
3
1%
Free
Published: 2 codes
10
Developer 10
Rating
(130)
Projects
184
32%
Arbitration
18
28% / 67%
Overdue
27
15%
Free
Published: 1 code
11
Developer 11
Rating
(22)
Projects
114
98%
Arbitration
4
0% / 75%
Overdue
35
31%
Free
12
Developer 12
Rating
(213)
Projects
246
45%
Arbitration
42
10% / 57%
Overdue
5
2%
Free
13
Developer 13
Rating
(17)
Projects
24
33%
Arbitration
5
20% / 40%
Overdue
8
33%
Free
14
Developer 14
Rating
(4)
Projects
4
75%
Arbitration
1
0% / 0%
Overdue
0
Free
Published: 90 codes
15
Developer 15
Rating
(69)
Projects
146
34%
Arbitration
13
8% / 62%
Overdue
26
18%
Free
Published: 6 codes
16
Developer 16
Rating
(588)
Projects
1065
50%
Arbitration
39
28% / 41%
Overdue
49
5%
Free
Published: 1 article, 8 codes
Similar orders
I am looking for an experienced developer to create a custom Expert Advisor (EA) for trading. The developer should have strong knowledge of MT4/MT5, strategy logic, indicators, risk management, and backtesting. Experience in building reliable and professional trading robots is preferred. Please contact me if you have done similar projects before. 9817724000
5.20buy-20.5sell 50 - 1000 USD
⸻ 🧠 Professional AI Prompt (Clear English Version) Act as a professional algorithmic trading engineer with deep expertise in developing automated trading systems for TradingView and MetaTrader. You have strong knowledge of market behavior, trend analysis, and risk management. Your task is to design a fully automated trading strategy based on the following requirements: ⸻ 🎯 Entry Conditions: • Open a BUY trade
I need a skilled MQL5 developer to build a fully functional Expert Advisor (EA) for MetaTrader 5 based on a simple but strict trading strategy. The EA will use EMA 50/200 trend detection combined with breakout and retest logic for entries. It must operate only during London and New York sessions and include solid risk management (fixed % risk, SL/TP, trade limits, and basic protection rules). APPLY ONLY IF YOU HAVE
VWAP BB Sniper EA Quantum VWAP Scalper SmartFlow FX Bot Institutional Edge EA 🧠 PRODUCT OVERVIEW VWAP + Bollinger Bands Auto Trading System A high-precision forex scalping bot designed to capture institutional price movements using: VWAP (fair value tracking) Bollinger Bands (volatility & entry timing) 👉 Built for fast, consistent intraday profits
Hello traders, I have Quantum queen v3.52, which is the latest version, available for $500 only. The price on the platform is around $1800, but I am offering it for a much lower price for serious buyers. Details: Product: Quantum queen Version: v3.52 Price: $500 Condition: Serious buyers only
EA for prop firms 30 - 500 USD
Hi, I am looking to purchase a MT5 EA that can show consistent profitability 5% each month with drawdown less than 9%. I am not ready to build a new one from scratch as i do not have the strategy in mind yet so i do not want to take the risk of building one but not sure if it works. Only apply if you have an existing proven and tested EA that can sell to me together with the source code. The Ea is for prop firm even
Early Killer EA 30+ USD
It must have automated stop loss. Something that can end poverty and kill the market early.It must take the trades for me whenever I start it it must work on tradeport ea
I WANT TO CONVERT MY INDICATOR TO ROBOT, BUT I DONT HAVE THE SOURCE CODE , THE PROGRAMMER WILL DEVELOP THE SOURCE CODE FOR THE JOB. THE STRAGY IS SIMPLE , THE ROBOT WILL EXECUTE A TRADE WHEN THE SIGNAL FROM THE INDICATOR APPEARS. BUY SIGNAL IS WHEN THE ARROW APPEAS ON THE LOWER ZONE ( SUPPORT ZONE) SELL SIGNAL WHEN THE ARROW APPEARS ON THE UPPER ZONE ( RESISTANCE ZONE).THE ROBOT WILL HAVE THE FOLLWING FEATURES (1)
CONVERT MQL4 ROBOT TO MQL5 Solana I have robot SOLANA i want to change my robot for MQL4 ROBOT TO MQL5 AND also change the name of the robot..i need it with the source code
requirements 1. A expert which can make a bridge between trading view and MT4 /MT5 My strategy which i work upon in trading view, that autobot system should buy, sell and take profit in MT4/MT5

Project information

Budget
30+ USD
Deadline
from 1 to 3 day(s)