Voir comment télécharger gratuitement des robots de trading
Retrouvez-nous sur Telegram !
Rejoignez notre page de fans
Un script intéressant ?
Poster un lien vers celui-ci -
laisser les autres l'évaluer
Vous avez aimé le script ? Essayez-le dans le terminal MetaTrader 5
Experts

Prop Firm Daily Profit Lock - expert pour MetaTrader 5

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.
Vues:
26
Publié:
MQL5 Freelance Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance

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.

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

MACD Signals MACD Signals

Indicator edition for new platform.