hinde.usr

Trader
Dec 15, 2022
7
2
8
8000 Belgium
Hi, first of all thanks for this great piece of software.

I would like to ask if it would be possible to include the following in the ea:
When the timer gets triggered it automatically gets turned off after the trigger.
Would it be possible to add: "DoNotDisableTimer" so the timer doesn't get disabled after it gets triggered.
Or could you tell me where I can force the timer to always be on in the code of the EA. Thanks in advance!
 

Enivid

Administrator
Staff member
Nov 30, 2008
17,117
1,045
144
Odessa
www.earnforex.com
Hi, first of all thanks for this great piece of software.

I would like to ask if it would be possible to include the following in the ea:
When the timer gets triggered it automatically gets turned off after the trigger.
Would it be possible to add: "DoNotDisableTimer" so the timer doesn't get disabled after it gets triggered.
Yes, this has been already suggested before and will be implemented in the next version of the Account Protector.
 
  • 👍
Reactions: hinde.usr

ATXRanger

Trader
Dec 18, 2022
1
0
6
Texas
I'm taking a challenge with a prop firm, and I'd like to close all losing positions whenever the daily equity reaches -3.75%. There are quite a few options with the expert. Do any of you have any suggestions for the settings I should use? I basically want to close all losing positions whenever my equity falls by at least 3.75% every day with all currency pairs. Any help would be much appreciated
 

hinde.usr

Trader
Dec 15, 2022
7
2
8
8000 Belgium
I'm taking a challenge with a prop firm, and I'd like to close all losing positions whenever the daily equity reaches -3.75%. There are quite a few options with the expert. Do any of you have any suggestions for the settings I should use? I basically want to close all losing positions whenever my equity falls by at least 3.75% every day with all currency pairs. Any help would be much appreciated
Condition:
- [Equity <= snapshot] set to (96.25) => sets max 3,75% drawdown of equity
Actions:
- [Close (100%) of (Losing) positions volume] => closes all losing positions
- [Disable auto trading] => disables auto trading further
- [Recapture snapshots] => recaptures the snapshots of your equity
- [Send push notification] => sends you a notification
 

Enivid

Administrator
Staff member
Nov 30, 2008
17,117
1,045
144
Odessa
www.earnforex.com
I'm taking a challenge with a prop firm, and I'd like to close all losing positions whenever the daily equity reaches -3.75%. There are quite a few options with the expert. Do any of you have any suggestions for the settings I should use? I basically want to close all losing positions whenever my equity falls by at least 3.75% every day with all currency pairs. Any help would be much appreciated
I'd suggest setting the DisableDailyProfitLossPercLE input parameter to false and then setting the "Daily profit/loss <= %" condition to -3.75. In the Actions tab, tick "Close 100% of Losing Positions".
 

hinde.usr

Trader
Dec 15, 2022
7
2
8
8000 Belgium
Yes, this has been already suggested before and will be implemented in the next version of the Account Protector.
Hi Enivid, would you consider making the equity snapshot a global value. This so the different instances of the Account Protector I have open can share this value with each other. Meaning if one AP instances gets triggered to recapture the Equity snapshot, the other instances get the same updated snapshot.

Thanks in advance!
 
  • 👍
Reactions: Enivid

Enivid

Administrator
Staff member
Nov 30, 2008
17,117
1,045
144
Odessa
www.earnforex.com
Hi Enivid, would you consider making the equity snapshot a global value. This so the different instances of the Account Protector I have open can share this value with each other. Meaning if one AP instances gets triggered to recapture the Equity snapshot, the other instances get the same updated snapshot.
I will consider implementing it.
 

Enivid

Administrator
Staff member
Nov 30, 2008
17,117
1,045
144
Odessa
www.earnforex.com
Version 1.09 of the Account Protector is now available for download. It adds some features and fixes some bugs:
  • Breakeven distance can now be set in currency in addition to points. (@Marcoslav)
  • Equity and margin snapshots can now be made global. (@hinde.usr)
  • Timer can now be made persistent. (@jaypebe74)
  • 'Close all other charts' action.
  • Faster closing of open trades when no filters are selected. (Suggested via email)
  • Fixed a zero divide issue. (@Jame Romeo)
  • Fixed margin level triggering when no trades were open. (@Artattack and a GitHub issue)
  • Fixed a bug with the panel's failure to remember the current tab.
  • Fixed a non-critical error with ArraySort() calls.
  • Added a clarification that the daily % profit/loss conditions are based on the account balance.
Please download, test, and report any bugs you find. Thanks!
 

chrissezhi

Trader
Jan 19, 2023
3
0
6
52
Hi there - I am trying to figure out best settings. I wish to close all trades of balance raises 1% and close all positions if loss of $225.00 or any settings that you guys know best for prop firms.
 

chrissezhi

Trader
Jan 19, 2023
3
0
6
52
If by 'balance rises 1%' you mean 'floating profit rises to 1% of balance', then both of your settings are easy to set via the similarly titled conditions.

Thank you - so I am still trying to figure out - for example, if I wanted to close all trades at 25.00 profit or 100.00 loss, is this correct?
Post automatically merged:

If by 'balance rises 1%' you mean 'floating profit rises to 1% of balance', then both of your settings are easy to set via the similarly titled conditions.

Thank you - so I am still trying to figure out - for example, if I wanted to close all trades at 25.00 profit or 100.00 loss, is this correct?
 

Attachments

  • 2023-01-19 14_58_08-2023-01-19 14_56_01-110922013.png ‎- Photos.png
    2023-01-19 14_58_08-2023-01-19 14_56_01-110922013.png ‎- Photos.png
    14.2 KB · Views: 1

Enivid

Administrator
Staff member
Nov 30, 2008
17,117
1,045
144
Odessa
www.earnforex.com
Thank you - so I am still trying to figure out - for example, if I wanted to close all trades at 25.00 profit or 100.00 loss, is this correct?
Post automatically merged:



Thank you - so I am still trying to figure out - for example, if I wanted to close all trades at 25.00 profit or 100.00 loss, is this correct?
You set the 25.00 profit condition correctly, but the 100.00 loss one should be set via 'Floating loss rises to currency units'.
 

Ssantos

Trader
Feb 2, 2023
1
0
6
47
Hi Enivid.

I don't know if this is the intended behavior, but in my opinion this is a bug.
Let me try to explain the scenario.

1- I open the EA, no options are selected.
2- The I have chosen the first three option in the actions tab
a) Close 100%
b) Delete all pending orders
c) Disable autotrading

3- Then I have open four orders. Because of the spread they were all negative around -100 USD.
4- Then I have Condition tab I have chosen "Floating point rises to currency units:"
and I have not changed the value from 0 to any other value.

Then in the same moment the EA has closed all the four orders.
In the MT4 experts tab the following message appeared;
Account Protector AUDCAD M1: CONDITIONS IS MET: Floating loss rose to 0.00 USD

In my opinion
the following condition should be added (in the file Account Protector.mqh function CAccountProtector::CheckAllConditions()):

// Floating loss rose to <Actual number> <currency ISO code>.
if ((!DisableFloatLossRiseCurr) &&
(sets.doubleLossQuanUnits != 0) && // This additional validation should be done , exclude the case when it is zero
(floating_profit <= -sets.doubleLossQuanUnits))

Besides this situation all the others variables fields in the Conditions should be changed to include this new condition. To only consider it when the respective value is not zero.


BTW other questions:
1- The send email is not working, there is not place to add the destination email address. Why ?
2- I would be nice if there was an option to save the configurations the user prefers.
Because every time I want to use it all the options I have selected before disappeared, specially when I have selected the "Disable autotrading" option
and I press the Auto Trading button back to on.
3- I don't know if it makes sense, but it could be useful and option to trigger the EA only when the user wants, that is the user setups all the
EA options and only when he wants the EA will kickoff and execute the actions according to the configurations. Otherwise the EA triggers immediatly
just before you have finished all the setup steps, especially if you don't have left the conditions setup as the last step.

I hope you understand my points.
Best Regards
SSantos