Position Time Exit Manager

EVERY TRADE GETS AN EXPIRY DATE - AND THIS UTILITY ENFORCES IT

Position Time Exit Manager is a trade-management utility for MetaTrader 5. It never opens a trade of its own. It watches the positions you choose and closes them, completely or by a percentage, the moment they have been open longer than you allow, before the Friday weekend gap, or at a fixed server time each day.

See it working before you decide: load the utility in the MetaTrader 5 Strategy Tester with visual mode ticked. Inside the tester only, it places a few minimum-size demonstration positions so you can watch the age bars fill, the countdown run down to zero and each exit land in the journal. Nothing of this kind ever happens on a live or demo chart.

At a glance
  • Maximum hold time in minutes, with an optional profit-only or loss-only condition.
  • Full exit or partial exit by percent; after a partial cut the remainder starts a fresh hold window.
  • Friday cutoff and daily close time, both in broker server time.
  • Early warning a chosen number of minutes ahead, as a terminal alert and/or a push message to your phone.
  • Live panel: every tracked position with age, time left, P/L and a coloured age bar, plus a ticking NEXT EXIT countdown.
  • Filters for this symbol or the whole account, one magic number or all, with or without manual trades.

THE PROBLEM IT SOLVES

Most trading plans say something about time: a scalp that has not worked within an hour is no longer a scalp, an intraday idea should not sleep through the rollover, and a swing position should not be left exposed to a Monday opening gap. Writing that rule down is easy. Remembering it at 23:55, or while you are away from the screen, is the hard part. Positions that were meant to last minutes quietly turn into positions that last days, collecting swap and drifting away from the reason they were opened.

This utility takes that one job off your hands. It does not judge entries, does not move stops and does not try to forecast the market. It reads the clock, compares it with the rule you set, and acts when the time has come.

GETTING STARTED IN FIVE MINUTES

  • Attach: drop it on any chart. The chart symbol matters only when SymbolScope is set to this chart's symbol.
  • Allow algo trading: the utility needs permission to close positions. If it is missing, the panel turns red and says so.
  • Pick the scope: leave MagicFilter at 0 to look after every position, or enter the magic number of one Expert Advisor to manage only its trades.
  • Watch before you arm: set StartArmed to false, or press the ARMED button once, to run in scan-only mode. The panel shows every countdown, yet nothing gets closed.
  • Arm it: press the button again when the countdowns look right to you.

HOW AN EXIT IS DECIDED

1. Collecting. Every second the utility lists the open positions that pass your symbol and magic filters. Positions outside the scope are never touched and never shown.

2. Scheduling. For each position it calculates up to three deadlines: opening time plus MaxHoldMinutes, the first Friday cutoff after the position was opened, and the first daily close time after it was opened. The earliest active one wins and becomes the position's exit time, together with a reason label (MAX HOLD, FRIDAY or DAILY).

3. Warning. When a position enters the warning window it is announced once, with ticket, symbol, reason, remaining time and current P/L.

4. Checking the condition. For a hold-time exit you may require profit (optionally above a minimum amount of money) or loss. If the condition is not met when the time is up, the row reads WAIT and the position stays open until the condition becomes true or a calendar exit takes over. Calendar exits ignore the condition unless you ask otherwise.

5. Closing. The close is sent with the filling mode your broker supports for that symbol, within your slippage limit, and is retried on requotes. When it still fails, for example because the market is closed, the position is left alone for a cooldown period and then tried again, so the journal is never flooded.

PARTIAL EXITS DONE PROPERLY

With ClosePercent below 100, the hold-time rule takes only part of the position. The volume is rounded down to the symbol's lot step and is never smaller than the minimum lot. If what would remain is too small to exist on its own, the whole position is closed instead of leaving an orphan that cannot be traded. After each cut the remainder gets a brand-new hold window, so a 50 percent setting halves a long-running trade at every interval until it is gone. Friday and daily exits always close the full volume.

THE PANEL

The panel sits in the top-left corner, keeping the right side of the chart and the price scale free. It shows the account number, symbol and magic filter; the active scope; the hold rule with its condition and percent; the calendar exits beside the current server time; the warning settings; the tracked count with total lots and net P/L; and a running tally of exits, cuts and their combined result.

Below that, the gold NEXT EXIT row counts down second by second to the very next exit and turns amber inside the warning window and red when the exit is due. Each position row lists ticket, symbol, side, lots, age, time left and P/L, followed by an age bar that fills from green to amber to red as the deadline approaches. Four buttons switch ARMED / SCAN ONLY, PAUSE / RESUME, mute or unmute alerts, and CLOSE ALL, which needs a second click within six seconds as confirmation. The panel measures its own text, shrinks or drops rows on small screens, and is not drawn at all during non-visual optimisation.

INPUTS, ONE BY ONE

Scope

  • SymbolScope - watch only the chart's symbol, or every symbol on the account.
  • MagicFilter - magic number to look after; 0 accepts any magic number.
  • IncludeManual - also manage positions opened by hand (magic 0). Default on.
  • StartArmed - start ready to close (true) or in scan-only mode (false). Your later button choice is remembered.

Maximum hold time

  • MaxHoldMinutes - how long a position may stay open, in minutes (240). 0 disables the rule.
  • CloseCondition - always close, close only in profit, or close only in loss when the time is up.
  • MinProfitMoney - with the profit-only condition, the smallest profit in account currency that counts (0 = any profit).
  • ClosePercent - share of the volume closed when the time is up, from 1 to 100 (100 = full exit).

Calendar exits

  • FridayCloseEnabled - close positions before the weekend. Off by default.
  • FridayCutoffTime - Friday cutoff as HH:MM in server time (21:00).
  • DailyCloseEnabled - close positions at the same time every day. Off by default.
  • DailyCloseTime - daily close time as HH:MM in server time (23:30).
  • CalendarUsesCondition - also apply the profit/loss condition to Friday and daily exits.

Early warning

  • WarnMinutesBefore - minutes ahead of an exit when the warning fires (10); 0 turns warnings off.
  • WarnAlert - show the warning as a terminal alert window.
  • WarnPush - send warnings and exit messages to the MetaTrader app on your phone (MetaQuotes ID must be set in the terminal options).
  • NotifyOnClose - write a message whenever a position is closed or cut.

Execution

  • SlippagePoints - accepted price deviation in points (20).
  • MaxRetries - attempts per close before giving up for now (3).
  • RetryDelayMs - pause between those attempts in milliseconds (400).
  • FailCooldownSec - seconds to wait after a failed close before trying that position again (30).

Strategy Tester

  • TesterDemoTrades - only inside the Strategy Tester: opens minimum-lot demonstration positions so the exits can be observed. Ignored on every real chart.

Panel and chart

  • ShowPanel - show or hide the panel.
  • PanelX, PanelY - distance from the chart edges in pixels.
  • PanelFontSize - base font size (9); it shrinks automatically when the window is too small.
  • ShowArabic - add Arabic captions under the console rows and the status line.
  • ShowAgeBars - draw the coloured age bar beside each position.
  • MaxTableRows - most position rows listed (13); the rest are counted in a "more" line.
  • PanelCorner - move the panel to another corner if your chart is busy there.

QUESTIONS TRADERS ASK

Can it run next to my Expert Advisor? Yes. Put the utility on its own chart, enter that EA's magic number and switch IncludeManual off, and it will manage only that EA's positions. Several copies with different magic numbers can run side by side; panel objects and saved values are keyed to account, symbol and magic, so they never mix.

Which clock does it use? Broker server time, the same time shown in Market Watch. The panel prints it on the calendar row so you can check your HH:MM values.

What if the terminal was off when a deadline passed? On the next start the overdue position is seen at once and closed on the first opportunity, provided the market is open.

Hedging and netting accounts? Both are supported. No DLLs and no extra files are needed.

WHAT TO EXPECT

A time exit is a discipline tool, not a profit engine. It can close a position just before price would have turned in your favour, and it can lock in a loss that a little more patience might have repaired; that is the price of a rule that is actually followed. Spreads widen near rollover and on Friday evenings, so leave a margin before those moments. Test your chosen times and percentages in the Strategy Tester on your own broker's data before you rely on them live.

When the utility has been running on your charts for a while, an honest review telling other traders what worked for you and what did not is genuinely appreciated. It is the most useful feedback for shaping the next version.

Yazarın diğer ürünleri
Simple SMA Cross EA
AL MOOSAWI ABDULLAH JAFFER BAQER
• Please test the product in the Strategy Tester before purchasing to understand how it works. • If you face any issues, contact me via private message—I’m always available to help. • After purchase, send me a screenshot of your order to receive a   FREE EA   as a gift. Welcome to our collection of Expert Advisors! Each EA is available for just $80, a price set to help the entire trading community succeed. My mission is to provide affordable tools that make trading easier and more accessible t
Hope EA MT5
AL MOOSAWI ABDULLAH JAFFER BAQER
• Please test the product in the Strategy Tester before purchasing to understand how it works. • If you face any issues, contact me via private message—I’m always available to help. • After purchase, send me a screenshot of your order to receive a   FREE EA   as a gift.                                       Time frame: M1                                                 Leverage : Higher the better Spread: Lower the better Account type : All types (EA may enter hedge positions, if you want to
Happy and Steady
AL MOOSAWI ABDULLAH JAFFER BAQER
Happiness in Forex Means Winning! What if we made your winnings "Steady Winnings!" This will make you happier! (Forex is risky, you may loose all your capital) We implemented a safe and reliable strategy, that proved itself since 2010 until today! It passed COVID 19 fluctuations without any issues! The idea behind the expert to to be a super scalping expert, attacking few pips at a time. This happens while using big lot size, thus insuring handsome profit. Expert entries are very selective, w
Safe and Steady Profits Pro
AL MOOSAWI ABDULLAH JAFFER BAQER
Safety in Forex trading is the main concern of the traders! There is no use to trade today, and loose everything tomorrow! (Trading is risky, and there are no guarantees for winning)   Here comes the power of our expert! The idea behind it is safety to the investors fund, then comes the profit. Thus this expert wont be the expert that will double your account by xx fold. It will be the expert you can rely on for steady, hassle free profits. To do so, the targets pips are minimal to insure
Penny Collector EA
AL MOOSAWI ABDULLAH JAFFER BAQER
Some users are very comfortable keeping their trades for ages, while other users are happy to get the least and leave :) Please please do not take unnecessary risks. (Trading is risky, and there are no guarantees for winning)   We wish you successful trading. (Trading is risky, and there are no guarantees for winning)   Check our other products which will be added to the market soon.
Penny Collector Pro
AL MOOSAWI ABDULLAH JAFFER BAQER
5 (1)
Some users are very comfort 2 able keeping their trades for ages, while other users are happy to get the least and leave :) If you cannot wait on your trades, then this expert will be the best for you! The expert tries to enter trades on a high probability of success, and in most cases it do catch the right wave. If not , don't worry because the expert will deal with the situation by itself and will take the trades to profits! (Trading is risky, and there are no guarantees for winning) You
Drag Race Scalper
AL MOOSAWI ABDULLAH JAFFER BAQER
Scalping! What a thrill! Forex trading had been a source of income and thrill at the same time! (Forex is risky, you may loose all your capital) With our new Expert Advisor "Drag Race Scalper" , you will earn both. (Forex is risky, you may loose all your capital) We tried to use a safe, profitable, and fast formula and this is what we ended by! A drag racing scalper! (Forex is risky, you may loose all your capital) In this scalper you would expect few points per trade only. This expert is fo
Against The Surf EA
AL MOOSAWI ABDULLAH JAFFER BAQER
Trading Forex has a million way! One of the innovative ways is to go against the surf! Here we fight the market and work out to get our bread and butter from it :) (Trading is risky, and you may loose!) From here began the idea! Fighting the market. The Expert uses a combination of : Hedging, Grid and trend strategies to operate. This operation allows it to arrive safely even if it worked against the surf! (Trading is risky, and you may loose!) Please find the 99.9% tick data back test res
Cent Collector
AL MOOSAWI ABDULLAH JAFFER BAQER
Cent Collector is the second Expert advisor of the "Collector" Series :) The first was Penny collector :  https://www.mql5.com/en/market/product/61215?source=Site +Profile+Seller And here is the second EA : Cent Collector Those Experts are designed for Scalpers who cannot wait for ages.. As soon as the Expert realizes the profit it cash out and leave. If things went wrong, the Expert will work on managing itself by averaging and will cash out as soon as it could. This version is called Cent
Yen Collector
AL MOOSAWI ABDULLAH JAFFER BAQER
Yen Collector is the Third Expert advisor of the "Collector" Series :) The first was Penny collector :  https://www.mql5.com/en/market/product/61215?source=Site +Profile+Seller The second one was Cent collector:  https://www.mql5.com/en/market/product/65344?source=Site +Profile+Seller And here is the third EA : Yen Collector Those Experts are designed for Scalpers who cannot wait for ages.. As soon as the Expert realizes the profit it cash out and leave. If things went wrong, the Expert will w
Super Hedge Fighter EA
AL MOOSAWI ABDULLAH JAFFER BAQER
5 (1)
**Çok Önemli: "Siparişler Arası Mesafe" ayarını lütfen düzenleyin. İyi sonuçlar almak için bunu 2 ile 10 arasında bir değere düşürün.** Forex ve volatil piyasalarla işlem yapmak çok karmaşık ve riskli olabilir. Neredeyse tüm stratejiler %100 başarılı olmayabilir! Yeni uzman danışmanımız "Super Hedge Fighter EA" ile piyasayı yeni bir açıdan göreceksiniz! Volatiliteyi artık korkulacak bir şey olarak görmeyeceksiniz, çünkü bu sizin gelir kaynağınız olacak. "Super Hedge Fighter EA", özellikle d
Market Master EA
AL MOOSAWI ABDULLAH JAFFER BAQER
2.5 (2)
Çok önemli: "Siparişler arasındaki mesafeyi" ayarlayın... İyi sonuçlar almak için mesafeyi küçültün. Daha yüksek mesafeler, EA'yı çok daha güvenli hale getirecektir. Forex ticareti, milyonlarca yol sunar! Yenilikçi yollardan biri, akıntıya karşı gitmektir! Burada piyasaya karşı savaşıyoruz ve ondan ekmeğimizi ve tereyağımızı kazanıyoruz :) (Ticaret risklidir ve kaybedebilirsiniz!) İşte buradan çıktı fikir! Piyasaya karşı savaşmak. Expert Advisor, Hedging, Grid ve trend stratejilerinin bir kombin
Magnet Scalper Pro
AL MOOSAWI ABDULLAH JAFFER BAQER
In this EA you will have two sources of income: 1- Direct trades 2- Rebates from your broker. Thus insure to register under an IB that shares with you their revenues Scalping! What a thrill! Forex trading had been a source of income and thrill at the same time! (Forex is risky, you may loose all your capital) With our new Expert Advisor "Magnet Scalper Pro" , you will earn both. (Forex is risky, you may loose all your capital) We tried to use a safe, profitable, and fast formula and this i
Speedy EA
AL MOOSAWI ABDULLAH JAFFER BAQER
Trading using Experts are the best ways to win in Forex! Here are our second Expert Advisor, where you can Set and forget! Time frame: M1 All currency Pairs will work perfectly on the EA Account type: All (If hedging is not allowed, please disable either Sell or Buy) Please please do not take unnecessary risks. (Trading is risky, and there are no guarantees for winning)   We wish you successful trading. (Trading is risky, and there are no guarantees for winning)   Check our other pro
Diamond EA
AL MOOSAWI ABDULLAH JAFFER BAQER
Minimum deposit is 1000$ , or 1000 Cent = 10$. (Recommended 1500$) Every 1000$ = 0.01 Lot. Please stick to the rules, as we want you to win, win and win! (Trading is risky, and there are no guarantees for winning)                                         Time frame: M1                                                 Leverage : Higher the better Spread: Lower the better Account type : All types (EA may enter hedge positions, if you want to disable this feature deactivate either Buy, or Sell
Impala EA
AL MOOSAWI ABDULLAH JAFFER BAQER
Minimum deposit is 1000$ , or 1000 Cent = 10$. (Recommended 1500$) Every 1000$ = 0.01 Lot. Please stick to the rules, as we want you to win, win and win! (Trading is risky, and there are no guarantees for winning)                                         Time frame: M1                                                 Leverage : Higher the better Spread: Lower the better Account type : All types (EA may enter hedge positions, if you want to disable this feature deactivate either Buy, or Sell f
EX Pro EA
AL MOOSAWI ABDULLAH JAFFER BAQER
Time frame: M1                                                 Leverage : Higher the better Spread: Lower the better Account type : All types (EA may enter hedge positions, if you want to disable this feature deactivate either Buy, or Sell from the setting) Please please do not take unnecessary risks. (Trading is risky, and there are no guarantees for winning)   We wish you successful trading. (Trading is risky, and there are no guarantees for winning
Fox EA
AL MOOSAWI ABDULLAH JAFFER BAQER
Time frame: M1                                                 Leverage : Higher the better Spread: Lower the better Account type : All types (EA may enter hedge positions, if you want to disable this feature deactivate either Buy, or Sell from the setting) Please please do not take unnecessary risks. (Trading is risky, and there are no guarantees for winning)   We wish you successful trading. (Trading is risky, and there are no guarantees for winning)
Good Mood Trading EA
AL MOOSAWI ABDULLAH JAFFER BAQER
Time frame: M1                                                 Leverage : Higher the better Spread: Lower the better Account type : All types (EA may enter hedge positions, if you want to disable this feature deactivate either Buy, or Sell from the setting) Please please do not take unnecessary risks. (Trading is risky, and there are no guarantees for winning)   We wish you successful trading. (Trading is risky, and there are no guarantees for winning
Hope EA MT4
AL MOOSAWI ABDULLAH JAFFER BAQER
Time frame: M1                                                 Leverage : Higher the better Spread: Lower the better Account type : All types (EA may enter hedge positions, if you want to disable this feature deactivate either Buy, or Sell from the setting) Please please do not take unnecessary risks. (Trading is risky, and there are no guarantees for winning)   We wish you successful trading. (Trading is risky, and there are no guarantees for winning
Moderate EA
AL MOOSAWI ABDULLAH JAFFER BAQER
Time frame: M1                                                 Leverage : Higher the better Spread: Lower the better Account type : All types (EA may enter hedge positions, if you want to disable this feature deactivate either Buy, or Sell from the setting) Please please do not take unnecessary risks. (Trading is risky, and there are no guarantees for winning)   We wish you successful trading. (Trading is risky, and there are no guarantees for winning
More Pro EA
AL MOOSAWI ABDULLAH JAFFER BAQER
Time frame: M1                                                 Leverage : Higher the better Spread: Lower the better Account type : All types (EA may enter hedge positions, if you want to disable this feature deactivate either Buy, or Sell from the setting) Please please do not take unnecessary risks. (Trading is risky, and there are no guarantees for winning)   We wish you successful trading. (Trading is risky, and there are no guarantees for winning
Nu Pro EA
AL MOOSAWI ABDULLAH JAFFER BAQER
Time frame: M1                                                 Leverage : Higher the better Spread: Lower the better Account type : All types (EA may enter hedge positions, if you want to disable this feature deactivate either Buy, or Sell from the setting) Please please do not take unnecessary risks. (Trading is risky, and there are no guarantees for winning)   We wish you successful trading. (Trading is risky, and there are no guarantees for winning
Shooting Star EA
AL MOOSAWI ABDULLAH JAFFER BAQER
Time frame: M1                                                 Leverage : Higher the better Spread: Lower the better Account type : All types (EA may enter hedge positions, if you want to disable this feature deactivate either Buy, or Sell from the setting) Please please do not take unnecessary risks. (Trading is risky, and there are no guarantees for winning)   We wish you successful trading. (Trading is risky, and there are no guarantees for winning
Tiger EA MT4
AL MOOSAWI ABDULLAH JAFFER BAQER
Time frame: M1                                                 Leverage : Higher the better Spread: Lower the better Account type : All types (EA may enter hedge positions, if you want to disable this feature deactivate either Buy, or Sell from the setting) Please please do not take unnecessary risks. (Trading is risky, and there are no guarantees for winning)   We wish you successful trading. (Trading is risky, and there are no guarantees for winning
Treasure EA
AL MOOSAWI ABDULLAH JAFFER BAQER
Time frame: M1                                                 Leverage : Higher the better Spread: Lower the better Account type : All types (EA may enter hedge positions, if you want to disable this feature deactivate either Buy, or Sell from the setting) Please please do not take unnecessary risks. (Trading is risky, and there are no guarantees for winning)   We wish you successful trading. (Trading is risky, and there are no guarantees for winning
LevelGuard Smart SMA EA
AL MOOSAWI ABDULLAH JAFFER BAQER
LevelGuard SmartSMA Master Support & Resistance Trading with Precision LevelGuard SmartSMA leverages the power of moving averages to help you trade confidently across markets. Designed to identify dynamic support and resistance levels, this EA delivers precise trade entries and exits, empowering traders to capitalize on market movements with ease. How It Works Core Strategy: Uses a central SMA (e.g., 50 or 200-period) as a dynamic support or resistance line. Additional SMAs (optional) provide s
Basic SMA Price Cross EA
AL MOOSAWI ABDULLAH JAFFER BAQER
Explore Our Full EA Collection Visit our website for an extensive range of expertly crafted Expert Advisors designed to empower traders of all levels. Whether you're new to trading or a seasoned professional, our tools are tailored to meet your needs. Affordable Trading for Everyone We believe in making trading accessible to everyone. That’s why all our Expert Advisors are priced at just $65 each, helping our community achieve success without breaking the bank. Unlock the Power of Automation Th
Lion’s Roar - Trend Strength Indicator Are you ready to take control of your trading journey? The Lion’s Roar - Trend Strength Indicator is here to help you identify and harness powerful market trends with precision and confidence. Designed with traders in mind, this advanced tool is built on a robust strategy that combines trend direction with momentum validation using the Average True Range (ATR). This indicator is not pre-optimized, giving YOU the freedom to tailor it to your unique trading
Visual Titan Force Indicator MT4
AL MOOSAWI ABDULLAH JAFFER BAQER
Unleash Market Volatility with the Titan Force Indicator! Are you ready to dominate the market by capitalizing on volatility? The Titan Force Indicator is your ultimate trading tool, designed for traders who thrive during periods of heightened market activity. Not Optimized for You – Yet! This indicator is a canvas for your creativity. It's been crafted to let you optimize it according to your unique trading strategies and preferences. Your skills, your edge! How Does the Titan Force Indicator
Filtrele:
Değerlendirme yok
Değerlendirmeye yanıt