Account Protector

You can tell whether it's netting or hedging by looking at the terminal's window caption:
View attachment 34818

It looks like you are running another EA in your account (fxmon_7.5). And it looks like it is also closing some trades. Could it be that it closes them just before the AP starts closing them?
Thanks for the info, I can confirm all of my accounts are hedging accounts.

FXMON doesn't open/close trades (and in fact I have turned off allow live trading for that EA). It just monitors for things like daily profit, DD, etc.

That said, I do have an EA running on these accounts which open and can close trades if they hit the TP. So you could be right that AP may get triggered by one of the conditions, but when it goes to close the trade the EA has already done it. But I never noticed this being an issue for the last few months that I have been using AP, and I have not changed the EAs I use.

If that is the reason for this, is there any way for me to stop AP spamming the journal/expert/logs if a trade has been closed before AP then tries to close it?

Or is there a way to set the EA that if after 10 attempts for example it stops trying to close that trade so it doesn't spam or some other form of mitigation?
I can't stop using my EAs to trade and be able to close them for me, but I need an account protector like yours which has been amazing so any way to make them both work in tandem? Thanks again mate!
 
That said, I do have an EA running on these accounts which open and can close trades if they hit the TP. So you could be right that AP may get triggered by one of the conditions, but when it goes to close the trade the EA has already done it. But I never noticed this being an issue for the last few months that I have been using AP, and I have not changed the EAs I use.
I mean, it the AP has its condition triggering - there is floating profit and it reports 5 open positions. According to the logs, it doesn't close any position at all. But you said that it is spamming the line when there are no open positions. That means that the positions have been closed by some other EA.

I will see if I can add some check for excessive close attempts (especially when there are no open positions at all), but I don't know when this will get implemented.
 
I mean, it the AP has its condition triggering - there is floating profit and it reports 5 open positions. According to the logs, it doesn't close any position at all. But you said that it is spamming the line when there are no open positions. That means that the positions have been closed by some other EA.

I will see if I can add some check for excessive close attempts (especially when there are no open positions at all), but I don't know when this will get implemented.
Yeah I believe every time I see the logs spammed with that error code there are no positions open whatsoever. And the original EA still opens and closes positions whilst the AP continues to spam the logs. The only way it stops is if I remove the AP EA and then re-add it.

That would be awesome! I think that would be the perfect check, if there are no positions open at all. Okay understood, I guess for now I will remove the AP and try and use a different one until you get around to implementing it. Do you have a rough ETA when I should check back to your website for the updated version? Thanks again for all of the support, I really appreciate it!
 
Yeah I believe every time I see the logs spammed with that error code there are no positions open whatsoever. And the original EA still opens and closes positions whilst the AP continues to spam the logs. The only way it stops is if I remove the AP EA and then re-add it.

That would be awesome! I think that would be the perfect check, if there are no positions open at all. Okay understood, I guess for now I will remove the AP and try and use a different one until you get around to implementing it. Do you have a rough ETA when I should check back to your website for the updated version? Thanks again for all of the support, I really appreciate it!
Early 2026 is my current best estimate.
 
Hey, excellent EA,, thank you so much! Can i just ask one thing. Apologies if the answer is already here somewhere but iii couldn't find it.

1) if we have the daily profit >= set to 2% + close all trades + stop EA's

Will my other trading EA be enabled again the following day so it can continue trading and AP will repeat the process indefinitely each day?

Thank you
 
Hey, excellent EA,, thank you so much! Can i just ask one thing. Apologies if the answer is already here somewhere but iii couldn't find it.

1) if we have the daily profit >= set to 2% + close all trades + stop EA's

Will my other trading EA be enabled again the following day so it can continue trading and AP will repeat the process indefinitely each day?

Thank you
No, they won't be enabled. The Account Protector doesn't disable them, but it will disable Algo-Trading for the entire platform. You would need a separate tool to re-enable it automatically.
 
Discuss Account Protector expert advisor here. This EA lets you control your orders and positions with a chart panel. You can ask any questions about this MetaTrader tool here.

Installation and basic use tutorial:
Hello Enivid and everybody.

I am very glad I have joined this forum. I feel privileged here.

I just installed the Earnforex Account Protector (AP) on my mt4. The last three days saw me reading the settings of the AP. It is quite overwhelming but it must be a powerful EA to have such a long list of settings. I am still lost. I tried using it and I did not get the result I want ... my bad.

My I ask, what is the minimum settings I need to make, to close my position once my trailing floating profit has reached a certain percentage of my balance?

Under "Main", there are quite a few parameters that I think I should use but I am just not sure which is the right one.

Say if my balance was 1000 to begin with, and I would like the AP to start trailing and close all my positions once my floating profit rises above and falls back to 15% of my balance. Which parameter(s) should I use and what values should I input?

Thank you so much.
 

Attachments

  • Screenshot (1188).png
    Screenshot (1188).png
    45.5 KB · Views: 2
Hello Enivid and everybody.

I am very glad I have joined this forum. I feel privileged here.

I just installed the Earnforex Account Protector (AP) on my mt4. The last three days saw me reading the settings of the AP. It is quite overwhelming but it must be a powerful EA to have such a long list of settings. I am still lost. I tried using it and I did not get the result I want ... my bad.

My I ask, what is the minimum settings I need to make, to close my position once my trailing floating profit has reached a certain percentage of my balance?

Under "Main", there are quite a few parameters that I think I should use but I am just not sure which is the right one.

Say if my balance was 1000 to begin with, and I would like the AP to start trailing and close all my positions once my floating profit rises above and falls back to 15% of my balance. Which parameter(s) should I use and what values should I input?

Thank you so much.
If by 15% you mean 150 USD, then you can just set the Equity trailing stop on the Main tab to 150. However, if you mean 15% from the highest value it reached, then the Main tab won't be useful to you.

If by 15% of balance you really mean balance and not the equity, then you can use the 'Floating loss rises to % of balance' condition from the Conditions tab.
 
  • 👍
Reactions: victorlaw
Thank you Enivid for your reply. I really appreciate it.

Great. I get it. For my case I should not be using the Main tab.

I have studied the options I could use in the Condtions tab. For the scenario I am describing, shouldn't I be using options related to "Floating profits ... " rather than "Floating loss ..."?

I hope once I have a floating profit of 15% or above of balance, whenever it retraces back 7% of balance, I would take profit and have all positions closed and the trade ends. Could I set it up with Account Protector? I really hope I could achieve that.

Thank you once again Enivid.
 
Last edited:
Thank you Enivid for your reply. I really appreciate it.

Great. I get it. For my case I should not be using the Main tab.

I have studied the options I could use in the Condtions tab. For the scenario I am describing, shouldn't I be using options related to "Floating profits ... " rather than "Floating loss ..."?

I hope once I have a floating profit of 15% or above of balance, whenever it retraces back 7% of balalnce, I would take profit and have all positions closed and the trade ends. Could I set it up with Account Protector?

Thank you once again Enivid.
Sorry, I misunderstood your setup.
You'd need two instances of the Account Protector to do that:
The first one will have to use 'Floating profit rises % of balance' condition at 15. In the Actions, it should only use 'Emit signal for another AP' set to 1 (for example).
The second one will use the 'Floating loss rises % of balance' at 7 AND 'Signal from another AP' set to 1 with Actions that will close all your trades. This instance needs its WaitForAllConditions input parameter set to true for it to wait when both conditions are met.
 
  • 👍
Reactions: victorlaw
Great!

Thank you Enivid.

I am beginning to appreciate the tentative set up. So it looks like I will be using two Account Protectors.

I am picturing I have three charts on my mt4.

One chart will be connected to an EA that does trades, and each of the other two charts will be sitting with an Account Protector. Is that right?

I think I could follow your description, but I am not entirely sure where to find 'Signal from another AP' option/parameter. Where could it be?
 
Last edited:
One chart will be connected to an EA that does trades, and each of the other two charts will be sitting with an Account Protector. Is that right?
Yes, that's right.
I think I could follow your description, but I am not entirely sure where to find 'Signal from another AP' option/parameter. Where could it be?
In conditions, it is disabled via input parameters by default. Change Disable signal condition to false and it will appear at the bottom of your Conditions tab.

PS: Please test the setup on a demo account before trying to use it on a live account. Make sure it works like intended.
 
Let me digest your post. But big thanks Enivid. I will let you know how I go. Cheers!
Thanks also for advising me to try it out on a demo first.
 
Hello Enivid. I tried the setup.

As the floating profit goes up 15% of balance, the condition was triggered, I saw the its box becomes unchecked. But as the floating profit happens to come back down, the floating loss 7% of balance somehow seemingly got triggered below my initial capital, because its definition is a loss from the start. Hence my floating profit/profit has not been protected at all by this setup.

Do some of the parameters on the Main page help me? It is because what I want to achieve has an element of trailing stop in it. It is actually trailing stop I am after. But I have no idea on how to play around with the Main page. The parameters seem like they don't trigger something to happen, like closing my positions etc.
 
As the floating profit goes up 15% of balance, the condition was triggered, I saw the its box becomes unchecked. But as the floating profit happens to come back down, the floating loss 7% of balance somehow seemingly got triggered below my initial capital, because its definition is a loss from the start. Hence my floating profit/profit has not been protected at all by this setup.
Those conditions always use the current balance - they don't store starting balance. Are you sure that's what happened? Please check your logs.
Do some of the parameters on the Main page help me? It is because what I want to achieve has an element of trailing stop in it. It is actually trailing stop I am after. But I have no idea on how to play around with the Main page. The parameters seem like they don't trigger something to happen, like closing my positions etc.
There is no percentage based trailing stop on the Main tab. You can only set the money-based equity trailing stop there.
 
Hello Enivid. I did many tests simultaneously on demo, maybe this got me confused with some of the results and hence my weird results. I was using some mt4's going long and some going short on BTCUSD because I had no idea which way the market was trending. I just wanted a quick way to see profits and to test the setup.

But definitely the first AP did get triggered consistently when the balance got inflated by 6% (I used 6% instead of 15% so that I could see the results faster for confirmation), but then when the floating profits fell down past the pull back point (I set floating loss 3% of balance), it just went past without triggering once, I reexamined every setting and I did not find the reason. I really want to retry but it's pointless because doing it again and again without modification of the same setup just simply exhausts me.

I am considering using the Main page to achieve my goal. I am fine if I am not to use percentages. But I want to know if I have exhausted the original method of using two AP's before I try using the Main page. Enivid please help.
 
Hello Enivid. I did many tests simultaneously on demo, maybe this got me confused with some of the results and hence my weird results. I was using some mt4's going long and some going short on BTCUSD because I had no idea which way the market was trending. I just wanted a quick way to see profits and to test the setup.

But definitely the first AP did get triggered consistently when the balance got inflated by 6% (I used 6% instead of 15% so that I could see the results faster for confirmation), but then when the floating profits fell down past the pull back point (I set floating loss 3% of balance), it just went past without triggering once, I reexamined every setting and I did not find the reason. I really want to retry but it's pointless because doing it again and again without modification of the same setup just simply exhausts me.
You are absolutely right! (Sorry for sounding like an LLM!) Because your balance doesn't change throughout that entire process, the second instance will be waiting for the loss to get to $30 (if we take the example with $1,000 starting balance and 3% loss on the second instance). When your profit reaches 6%, the balance doesn't change to $1,060, it stays at $1,000. The solution to this would be a little more complex:

The first instance: Enable GlobalSnapshots in input parameters - this will allow your two APs share their equity snapshots. Add 'Recapture snapshots' action (it will update the equity snapshot when triggered at 6% floating profit. Leave signal action enabled as before.

The second instance: Enable GlobalSnapshots in the input parameters. Change condition from that floating loss one to 'Equity <= % of snapshot' and put 97 in the value. Leave signal condition enabled as before.

When the first instance detects 6% of floating profit, it will not only emit a signal, it will also update the equity snapshot to $1,060 (or whatever value it will be at that moment, but it will be quite close to that). The second instance will then wait for the equity to fall to 97% of that $1,060.

The only issue that I see with this setup is that it may get triggered in reverse on the second instance - if the equity first goes to $970 and then it goes to $1,060, it will get triggered immediately by the signal from the first instance because conditions can be met in any order...
 
Thank you so much Enivid. I will have to take time to digest your post because I did not expect that what I wanted to achieve could have involved so much logic in it. I actually pasted your suggestion into an AI for further explanation. I am not sure if I will ever use it because I am ...... not comfortable. It's ...... just more complicated than what I could handle. I will keep studying it. Let me know if you are curious how AI (Deep Seek)analyzes your suggestion for fun's sake. I still have a copy of it.

On a side note, I find out that many of the buttons and check boxes of AP, become unresponsive or probably inconsistently responsive, when pasted onto the charts for a little while. I wonder if there is a problem with my computer and if anybody else has ever reported this.