Equity Protector EA for Prop Firms such as MyForexFunds (Need a MT5 and MT4 version)

MQL4 Experts

Specification

Hi,


I'm looking to create an equity protector to use with prop firms such as MyForexFunds and FTMO



The settings of the EA will be as follows.


Settings: 

Max daily loss of equity in % (if set to 0 then setting not used)  = x%
Max daily loss of balance in % (if set to 0 then setting not used)  = x%

Minimum equity  = x

Target profit in equity = x

Reset time = xx:xx


The display on the chart will be as follows.


Settings used: 

max daily of equity = x%

max daily loss of balance = x%

Minimum equity = x

Target profit in equity = x

Reset time = x 


Today's P/L = xx

Today's max daily loss of equity remaining = xx

Today's max daily loss of balance remaining = xx
Amount remaining until minimum equity is hit = xxx


Here is an example of how the EA will function.
Initial balance of account at 00:00 is $100,000.
Initial equity of account at 00:00 is $100,000.
I have started the trading day with $100,000 balance and $0 floating loss. 
Let's assume the time is now 06:00. I have taken a number of trades which ended in a close loss of $5,000. Currently my total closed loss is $5,000. I also have an open position in a $1,000 loss. Therefore my current balance at 06:00 is $95,000 and my current equity at 06:00 is $94,000. 

In this example, my settings are set to:       

Max daily loss of equity in % (if set to 0 then setting not used)  = 10%

When my equity hits or falls below $90,000 then the equity protector will close all trades and close all charts (preventing my EA from taking further trades).  Any pending orders will also be removed. 

Max daily loss of balance in % (if set to 0 then setting not used)  = 15%

When my balance hits or falls below $85,000 then the equity protector will close all trades and close all charts (preventing my EA from taking further trades).  Any pending orders will also be removed. 

Minimum equity  = $80,000

If my equity hits or falls below $80,000 then  the equity protector will close all trades and close all charts (preventing my EA from taking further trades). Any pending orders will also be removed. 

Target profit in equity = $110,000

If my equity hits or goes above $110,000 then the equity protector will close all trades and close all charts (preventing my EA from taking further trades).  Any pending orders will also be removed. 

Reset time = 00:00 
At 00:00 server time (the time displayed in my MT5 terminal) the max daily loss of equity and max daily loss of balance will be recalculated based on the CURRENT equity and balance at 00:00. This will recalculate and reset once every 24 hours. 

For example at 00:00, lets say the account equity is $120,000 and the balance is $130,000. 

The max daily loss of equity will be calculated based on 10% x $120,000 = $12,000
The max daily loss of balance will be calculated based on 15% x $130,000 = $19,500 

There are 2 separate losses the EA will track one for equity and another for balance. 


Using the above example settings, there will be a display on chart which will show the below: 

Settings used: 

max daily loss of equity = 10% ($10,000)

max daily loss of balance = 15% ($15,000)

Minimum equity = $80,000

Target profit in equity = $110,000

Reset time = 00:00


Today's P/L = -$5,000 

This will record my P/L from the reset time i've set at 00:00 

Today's max daily loss of equity remaining = $4,000
This will show the remaining equity I can afford to lose before I hit my maximum equity loss for the day. In my example, the time is 0:600 and my current equity is $94,000, therefore this value will show $4,000 since $94,000 - $90,000 = $4,000. 

Today's max daily loss of balance remaining = $10,000

This will show the remaining balance I can afford to lose before I hit my maximum balance loss for the day. In my example, the time is 06:00 and my current balance is $95,000, therefore this value will show $10,000 since $95,000 - $80,000 = $15,000. 

Amount remaining until minimum equity is hit = $14,000 

This value is calculated by taking the current equity - the "minimum equity" allowed. $94,000 - $80,000 = $14,000


Please let me know if it is possible for the losses recorded in the EA to be inclusive of the brokers swaps and commissions? it would be great if it could include swaps and commissions but I don't think this functionality is currently possible?



Please feel free to ask me any questions you need. 

Thank you!
Sam


Responded

1
Developer 1
Rating
(7)
Projects
14
21%
Arbitration
1
0% / 100%
Overdue
3
21%
Free
2
Developer 2
Rating
(1)
Projects
2
0%
Arbitration
1
0% / 100%
Overdue
0
Free
3
Developer 3
Rating
(25)
Projects
29
34%
Arbitration
3
67% / 0%
Overdue
1
3%
Free
4
Developer 4
Rating
(36)
Projects
45
2%
Arbitration
6
33% / 17%
Overdue
1
2%
Free
5
Developer 5
Rating
(57)
Projects
72
22%
Arbitration
13
46% / 15%
Overdue
5
7%
Free
6
Developer 6
Rating
(374)
Projects
396
31%
Arbitration
61
20% / 67%
Overdue
49
12%
Loaded
7
Developer 7
Rating
(1)
Projects
1
0%
Arbitration
0
Overdue
0
Free
8
Developer 8
Rating
(54)
Projects
63
30%
Arbitration
4
0% / 50%
Overdue
1
2%
Working
Similar orders
Hi there, I need a trading algo for MT5 for my mean reversion strategy. It’s a cross between bollinger bands and RSI with ATR for stop loss. I trade forex so I need to be able to change the settings based on every pair i trade
Hi I want to convert a indicator to mql5 ea, i want to trade from the previus day red and green boxes. Targeting the gray areas from the prev day. More info in chat Please leave a quote
Hi i have 3 indicators that are mq4 file what i would like to do is to let these indicators become one and get arrow signals for them let me know if that can be done , the first indicator is super smoother line with period 14 with color line, the next indicator is a another smoother indicator that breaks out when a trend begins and the last is 2 moving average line that crosses each other to give arrow signals. I
I want a HFT Bot that Constantly make 1% Monthly returns. And it is able to pass a propfirm Challenge. I have a maximum budget of 60. And I want the EA Logic of this Expert advisor
Hi, Use MQL5 connect to only one binance websocket API: binance.com/stream?streams=btcusdt@aggTrade and get the returned data successfully(you no need process returned data). MUST use this MQL library to connect binnace: https://www.mql5.com/en/articles/8196 Source code need Related binance websocket document: https://binance-docs.github.io/apidocs/spot/en/#websocket-market-streams Thanks
Need a programmer who can Create EA from Indicator. With parameters for entry and exit trade under certain conditions. stop loss ,dashboard alert more details will be provided. only one indicator is uded
Building a bot that copies signals from the sender platform to the slave platform The expert must work on two remote computers, not the same computer Control settings for masters and slaves as well If necessary, it is preferable to use an interface from a server, for example
M Empire EA 30+ USD
Fundamental strategy,trade double bottom and double top enters after the break of structure,it must hold the trades for four to six ours and it must also trade London Session and New York Session
Hello dear developers! MT4 EA I want you to help me create a trading robot. I already had an unpleasant experience with a developer who said he would do it for me but didn't know how to do it. Thus he blocked some money from me. Now I want to see who knows how to program such a robot. For this reason, I will initially present only a fragment of this robot. Whoever knows how to correctly program this fragment
This job is for an MT5 EA to pass prop firm challenges (either 1 or 2 phases) and use in Funded Account (such as NOVA FUNDING, FTMO, MFF, MYFUNDEDFX etc.), and should also work on normal live accounts. Requirements for the EA: - trades well individually on: EURUSD, GBPUSD (preferably also on US30 and others) - must use Stoploss - max. daily Loss 4% - max. daily Drawdown 6% - max. account Drawdown 8% - Should not use

Project information

Budget
30 - 90 USD
For the developer
27 - 81 USD
Deadline
to 10 day(s)