Account Protector

Hello admin, I want to ask how to activate this EA so that it doesn't trigger once, I want this EA to work continuously without having to stop.
Yeah, you can just set DoNotDisableActions and DoNotDisableConditions parameters to true. Just make sure it won't be stuck in an infinite loop of triggering conditions.
 
Version 1.14 of Account Protector is now out, adding multiple features and fixing some bugs:
  • Added an optional setting to set up a schedule for automated switching the AP on and off. See the Enable auto switch ON period input parameter. (@woohoo123)
  • Added a dark mode option (with the possibility of automatic color theme detection in MT5).
  • Added an input parameter (IncludeAccountCredit) for the Account Protector to include the account credit in the account balance in its calculations. (@FraTheKing)
  • Added FIFO and LIFO sorting for the closing order (see the CloseFirst input parameter). (@OrlandoNE)
  • Fixed an issue that could prevent positions from closing reliably in some cases in MT4.
  • Fixed an issue when the MT5 version of Account Protector could enter an infinite loop of trying to close positions that were closed by some other EA. (@mr_ru)
 
Hello admin, how do I achieve the following:

For layer trading, how do i get all trades to set breakeven once all trades are in profit? Meaning the breakeven settings is not based on per trade but rather the overall profit.
For example, I open 5 0.01 buy trades in intervals while the market is dipping. How do i get the breakeven to trigger only when all 5 trades are in profit, with the breakeven at the very top of the first entry.
 
Hello admin, how do I achieve the following:

For layer trading, how do i get all trades to set breakeven once all trades are in profit? Meaning the breakeven settings is not based on per trade but rather the overall profit.
For example, I open 5 0.01 buy trades in intervals while the market is dipping. How do i get the breakeven to trigger only when all 5 trades are in profit, with the breakeven at the very top of the first entry.
This EA is more suited for that purpose:
https://www.earnforex.com/metatrader-expert-advisors/single-breakeven/
 
Coming from "Single Breakeven" forum as advised by admin.

Basically i want to achieve 2 things with the 2 EAs "Account Protector" and "Single Breakeven":

1. I mainly open multiple layers in a trade. For example, for a buy trade, I would open layers as the price moves down (5000, 4999, 4998, 4997 etc). I would like "Single breakeven" to trigger once the price clears all trades/reaches a certain profit amount. For example, floating profit reaches 20 USD, breakeven should be set at 10 USD floating profit to provide some buffer.

2. After which, I would like for "Account Protector" to continuously trail the breakeven stop loss level as the profit grows. This is very much possible for per position basis on "Account Protector" but not sure if it could apply to my scenario.

Thanks for your help!
 
2. After which, I would like for "Account Protector" to continuously trail the breakeven stop loss level as the profit grows. This is very much possible for per position basis on "Account Protector" but not sure if it could apply to my scenario.
You use equity trailing stop for this. For example, if you set it to $20 and your starting equity is $500, it will start with $480 as the stop-loss for all your trades. As equity grows, so will this entire account stop-loss. When it reaches $520, your equity TSL will be at $500. By this time, your Single Breakeven from that EA will be kick in and you'll also have a BE at $510. As your equity grows to e.g. $535, your equity TSL will be moved to $515. Three things to remember:
  1. Your equity TSL is gradual, it has potential to move with every cent of equity grows. In reality, the equity moves in chunks, especially if you have multiple positions open.
  2. If you set your TSL distance to lower than your desired Single BE (e.g. $10 in your example), your equity TSL will always override your SBE - it will be redundant.
  3. There is no starting point of profit for this equity TSL to kick in, so you will have it active as soon as you activate it - it's up to you to consider whether you need an equity SL at $480 in that example or not. If not, you need to activate it manually at the point you need it.
 
You use equity trailing stop for this. For example, if you set it to $20 and your starting equity is $500, it will start with $480 as the stop-loss for all your trades. As equity grows, so will this entire account stop-loss. When it reaches $520, your equity TSL will be at $500. By this time, your Single Breakeven from that EA will be kick in and you'll also have a BE at $510. As your equity grows to e.g. $535, your equity TSL will be moved to $515. Three things to remember:
  1. Your equity TSL is gradual, it has potential to move with every cent of equity grows. In reality, the equity moves in chunks, especially if you have multiple positions open.
  2. If you set your TSL distance to lower than your desired Single BE (e.g. $10 in your example), your equity TSL will always override your SBE - it will be redundant.
  3. There is no starting point of profit for this equity TSL to kick in, so you will have it active as soon as you activate it - it's up to you to consider whether you need an equity SL at $480 in that example or not. If not, you need to activate it manually at the point you need it.
Hi. In my case, I do not want a stop loss from the get-go. What I am looking for is for the equity trailing to trigger once my account equity reaches, in the above example, $520 with a profit of $20. Then it would start to trail from the desired single BE of $10 in the above example. What do I set to achieve this? Thanks!
 
Hi. In my case, I do not want a stop loss from the get-go. What I am looking for is for the equity trailing to trigger once my account equity reaches, in the above example, $520 with a profit of $20. Then it would start to trail from the desired single BE of $10 in the above example. What do I set to achieve this? Thanks!
You can only achieve that by manually enabling the equity trailing stop only when your profit reaches the desired level.
 
What an amazing piece of work this is! Respect to everyone who contributed. The downside of having so many options is that it also becomes more difficult to configure.

I want AC to disable Autotrade daily when my equity has increased by 25. Pending orders should be closed. The next trading session should start fresh again, meaning Autotrade is active, and once there is a €25 equity growth, Autotrade becomes inactive again. How can I achieve this in the settings?
 
What an amazing piece of work this is! Respect to everyone who contributed. The downside of having so many options is that it also becomes more difficult to configure.

I want AC to disable Autotrade daily when my equity has increased by 25. Pending orders should be closed. The next trading session should start fresh again, meaning Autotrade is active, and once there is a €25 equity growth, Autotrade becomes inactive again. How can I achieve this in the settings?
Equity change is easy to program - it's "Equity - snapshot >= 25" condition.
You'll also need a second instance of the AP that uses timer to enable autotrading and re-capture snapshots at 00:00.
 
  • 👍
Reactions: NonotYet
Equity change is easy to program - it's "Equity - snapshot >= 25" condition.
You'll also need a second instance of the AP that uses timer to enable autotrading and re-capture snapshots at 00:00.
Thnx for your quick respons!
And how do I set the time for enable autotrading and recapture snapshots?
Like this?

How do I make sure these actions will be done each day?
 

Attachments

  • Schermafbeelding 2026-04-03 140817.jpg
    Schermafbeelding 2026-04-03 140817.jpg
    25.3 KB · Views: 0
  • Schermafbeelding 2026-04-03 140836.jpg
    Schermafbeelding 2026-04-03 140836.jpg
    41.9 KB · Views: 0
Last edited:
Thnx for your quick respons!
And how do I set the time for enable autotrading and recapture snapshots?
Like this?

How do I make sure these actions will be done each day?
Sorry, it looks like your screenshots didn't load correctly. Could you please upload them again?
To answer your questions:
You enable Timer on the Main tab ("Use timer") and you set the time (be careful to choose either Local or Server time according to your needs).
I would also like to correct myself, because if you want the conditions and actions to renew each day, you'll need to set the "Recapture snapshots" actions on the first AP. Use the second AP (Timer) only to enable autotrading (I assume you have some other EA that is trading, right?).
To make sure, your setup keeps renewing automatically, you need to set the following input parameters (on both instances) to true:
  • DoNotDisableConditions
  • DoNotDisableActions
  • DoNotDisableTimer
This will make sure that when your AP triggers (either via condition or via timer, it will not untick the conditions/timer/actions).
 
Sorry, it looks like your screenshots didn't load correctly. Could you please upload them again?
To answer your questions:
You enable Timer on the Main tab ("Use timer") and you set the time (be careful to choose either Local or Server time according to your needs).
I would also like to correct myself, because if you want the conditions and actions to renew each day, you'll need to set the "Recapture snapshots" actions on the first AP. Use the second AP (Timer) only to enable autotrading (I assume you have some other EA that is trading, right?).
To make sure, your setup keeps renewing automatically, you need to set the following input parameters (on both instances) to true:
  • DoNotDisableConditions
  • DoNotDisableActions
  • DoNotDisableTimer
This will make sure that when your AP triggers (either via condition or via timer, it will not untick the conditions/timer/actions).
Wow great! Im looking forward to market opening to see if it works.
I use a single shot ea which is quite good, but often loses its profit during the day. So if I can stop auto trade after a certain level, this would
be great. Of course it needs to reset every day.

Can you see these images for the timer? Do I need to set a diff magic number for each instance? I dont want it to loop


Schermafbeelding 2026-04-03 140817.jpg

Schermafbeelding 2026-04-03 140836.jpg
 
Wow great! Im looking forward to market opening to see if it works.
I use a single shot ea which is quite good, but often loses its profit during the day. So if I can stop auto trade after a certain level, this would
be great. Of course it needs to reset every day.

Can you see these images for the timer? Do I need to set a diff magic number for each instance? I dont want it to loop


View attachment 36965

View attachment 36966
It looks OK for the timer. You don't need to enter anything in the Magic number.