Alım-satım robotlarını ücretsiz olarak nasıl indirebileceğinizi izleyin
Bizi Twitter üzerinde bulun!
Fan sayfamıza katılın
Kodu ilginç mi buldunuz?
Öyleyse bir link gönderin -
başkalarının da faydalanmasını sağlayın
Kodu beğendiniz mi? MetaTrader 5 terminalinde deneyin
Uzmanlar

Prop Firm Daily Profit Lock - MetaTrader 5 için uzman

Keanu Robin Kyle Jetha Alexander
Keanu Robin Kyle Jetha Alexander
Data Science student and algorithmic trading developer. I build, test and run my own live MT5 Expert Advisor (GoldORB), focused on XAUUSD, with multi-timeframe logic, session-based execution and strict risk management.
Görüntülemeler:
95
Yayınlandı:
MQL5 Freelance Bu koda dayalı bir robota veya göstergeye mi ihtiyacınız var? Freelance üzerinden sipariş edin Freelance'e git

Daily Profit Lock: Close Trades at a Daily Profit Cap

Most traders don't blow accounts on bad days. They give back good days. Daily Profit Lock watches today's profit and, once it reaches your cap, closes your trades, deletes pending orders and keeps the account flat until the next trading day. It never opens a trade by itself.

How it measures today's profit

  • It adds up today's closed deals, including profit, swap, commission and fees.
  • It also counts the floating profit or loss of open positions. You can switch this off.
  • The day starts at a server hour you choose, 00:00 by default.

Three ways to set your cap

  1. Fixed amount: for example, 500 per day.
  2. Percent of the day's starting balance: for example, 1%.
  3. Share of total profit: the cap grows with the account. This suits prop-firm consistency rules that limit how big your best day can be compared with total profit.

When the cap is hit

  • Matching positions are closed at market.
  • Matching pending orders are deleted.
  • Any new position opened later that day is closed again.
  • The lock survives a terminal restart and resets at the next day's start.

Control what it guards

  • It can watch every position, or only the magic numbers and symbols you list. Manual trades use magic 0.
  • You can run several copies with different instance names.

Safe to try

  • Dry run is on by default, so it only alerts and closes nothing until you set Dry run = false.
  • It can send popup and push alerts.
  • A chart dashboard shows:
    • closed profit, open profit or loss, and today's total;
    • your cap, a progress bar, and how much room is left;
    • open positions and pending orders;
    • when the next day starts;
    • a warning if Algo Trading is switched off.

Who it's for

  • Prop-firm traders protecting daily targets and consistency rules.
  • Discretionary traders who want to stop overtrading after a strong day.
  • EA users who want a hard daily ceiling on top of any strategy.

Notes

  • Positions close at market, so slippage or gaps can make the final profit land slightly above or below the cap.
  • It can't stop another program from sending an order, but it closes the new position right after it opens.
  • Algo Trading must be enabled for closing to work.
  • Test it on a demo account first. Trading involves risk, and this tool doesn't guarantee results.

More prop-firm tools are available on my profile.


One-Click Buy Sell Close Panel with Pip Stops One-Click Buy Sell Close Panel with Pip Stops

Chart panel Expert Advisor with BUY, SELL and CLOSE buttons. Market orders use a fixed lot with stop loss and take profit in pips, and the panel shows the floating profit of its trades.

Equity Drawdown and Daily Loss Guard Equity Drawdown and Daily Loss Guard

Utility Expert Advisor that closes all open positions when equity falls a set percentage below its peak or when today's loss reaches a limit. It never opens trades.

EA Validation Guard - Pre-Trade Request Checker EA Validation Guard - Pre-Trade Request Checker

Reusable MQL5 pre-trade validation library that checks margin, volume, trading permissions, symbol restrictions, stop levels and broker OrderCheck results before an order is sent.

Round Number Levels Round Number Levels

Auto-scaled round-number (psychological) levels with major, half and quarter lines, plus a panel showing the nearest levels and their distance in price, points and % of daily ATR.