Prop Firm Daily Profit Lock

Prop Firm Daily Profit Lock
Download ALL MT5 experts (1835)
YouTube Video Thumbnail



Similar MetaTrader Tools

Prop Firm Daily Profit Lock

Info

The Prop Firm Daily Profit Lock is a Expert Advisor for MetaTrader 5 that daily profit lock: close trades at a daily profit capmost traders do not lose accounts on bad trading days. They give back profits from good days.

Usage

This tool is typically used for automated trading on major forex pairs and gold.

Platform

This Expert Advisor works exclusively on MetaTrader 5 (both build 600+ and newer versions).

Setup

Place the downloaded file in MQL5/Experts folder via File ? Open Data Folder in MetaTrader 5.


How to Install and Use Prop Firm Daily Profit Lock

1. Installation: Open the "File" menu, select "Open Data Folder," navigate to MQL/Experts, paste your file, and restart the terminal.

2. Activation: Drag the EA from the Navigator onto a chart, ensure "Allow live trading" is checked in the Common tab, and verify the AutoTrading button is green.

3. Optimization: Right-click your chart, choose "Expert List," click "Properties" to adjust inputs, and save your preferred setup as a set file for future use.

4. Maintenance: Regularly check the "Experts" tab in the terminal window to monitor trade logs and potential execution errors.

Frequently Asked Questions

Q: Why is my EA not opening trades? A: Check the "AutoTrading" button, ensure "Allow live trading" is enabled, and verify your broker allows automated trading on your account type.

Q: Can I run multiple EAs on one chart? A: No, each chart can only host one active EA; however, you can open multiple charts for different currency pairs to run several EAs.

Q: What does the "smiley face" icon mean? A: A smiley face in the top-right corner of the chart indicates the EA is successfully running; a frowny face means it is disabled.

What this tool does

Daily Profit Lock: Close Trades at a Daily Profit CapMost traders do not lose accounts on bad trading days.

Typical Use Case

This Expert Advisor excels in automated trading and technical analysis on MetaTrader 5.

Compatible Platform & Setup

This Expert Advisor works on MetaTrader 5. Place the file in the MQL5/Experts folder and restart the terminal.

Description & Settings

Related: Prop Firm Guard - Protect Your Funded Account - another powerful expert for MetaTrader 5 traders.

Daily Profit Lock: Close Trades at a Daily Profit Cap

Also recommended: Prop Firm Equity Guard: Protect Your Challenge - similar expert with strong performance on MetaTrader 5.


Most traders do not lose accounts on bad trading days. They give back profits from good days. Daily Profit Lock monitors the day's profit. Once your profit cap is reached, it closes all open trades, deletes pending orders, and keeps the account inactive until the next trading day. The tool does not initiate new trades on its own.

How Today's Profit is Measured

The tool calculates the sum of all closed trades for the day, including profit, swap, commission, and fees.

It also incorporates the floating profit or loss from currently open positions. This feature can be disabled.

The trading day begins at a server time specified by the user, defaulting to 00:00.

Three Methods for Setting Your Profit Cap

Fixed Amount:

Set a specific profit amount, for example, 500 per day.

Percentage of Starting Balance:

Set the cap as a percentage of the account's balance at the start of the day, for example, 1%.

Share of Total Profit:

The profit cap increases as the account grows. This method is suitable for prop-firm consistency rules that limit the maximum daily profit relative to the total profit.

Actions When the Profit Cap is Reached

All matching open positions are closed at market price.

All matching pending orders are deleted.

Any new position opened later on the same day will be automatically closed.

The profit lock remains active even if the terminal is restarted and resets at the beginning of the next trading day.

Control Which Trades are Monitored

The tool can monitor all positions or only those associated with specified magic numbers and symbols. Manual trades are assigned magic number 0.

Multiple instances of the tool can be run simultaneously using different instance names.

Safe to Test

The 'Dry Run' mode is enabled by default. In this mode, the tool provides alerts but does not execute any actions (closing trades or deleting orders) until 'Dry Run' is set to false.

Alerts can be sent via pop-up messages and push notifications.

A chart dashboard displays:

- Closed profit, open profit or loss, and the day's total profit.
- The profit cap, a progress bar, and the remaining room to the cap.
- Open positions and pending orders.
- The start time of the next trading day.
- A warning if Algo Trading is disabled.

Ideal For

Prop-firm traders aiming to meet daily profit targets and adhere to consistency rules.

Discretionary traders seeking to prevent overtrading after achieving a significant profit.

Expert Advisor (EA) users looking for a strict daily profit limit to complement their existing strategies.

Important Notes

Positions are closed at market price. Slippage or price gaps may cause the final profit to be slightly above or below the specified cap.

The tool cannot prevent other programs or manual actions from opening new orders. However, it will close any newly opened position immediately after it is created.

Algo Trading must be enabled in the terminal settings for the closing functions to operate correctly.

It is strongly recommended to test this tool on a demo account first. Trading involves inherent risks, and this tool does not guarantee specific trading outcomes.

Additional prop-firm tools are available on the author's profile.

You may also like: Prop Firm Equity Guard: Daily Loss and Max Drawdown Protector - excellent alternative for expert users on MetaTrader 5.

Source Code

#property copyright "RobotFX"
#property version     "1.02"
#property description "This code is educational. Feel free to use, modify and upgrade as you wish. Visit ROBOTFX.ORG for professional trading tools"
#include <Trade/Trade.mqh>
enum ENUM_CAP_MODE
  {
   CAP_FIXED_MONEY        = 0,
   CAP_PERCENT_OF_BALANCE = 1,
   CAP_FRACTION_OF_PROFIT = 2
  };

.......

Leave your opinion, ask a question, share some knowledge

⚠ Limitations & Risk Warning

  • This tool is provided for educational and testing purposes only.
  • Past performance does not guarantee future results.
  • Trading involves substantial risk of loss. Use on a demo account first.
  • Results may vary depending on market conditions, broker, and settings.
  • We recommend thorough backtesting and forward testing before using with real funds.
© ROBOTFX Free educational tools by RobotFX. Use entirely at your own risk; we are not liable for any financial losses incurred.