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
5
(7)
Projects
14
21%
Arbitration
1
0% / 100%
Overdue
3
21%
Free
2
Developer 2
Rating
5
(1)
Projects
2
0%
Arbitration
1
0% / 100%
Overdue
0
Working
3
Developer 3
Rating
4.96
(24)
Projects
28
32%
Arbitration
3
67% / 0%
Overdue
1
4%
Working
4
Developer 4
Rating
5
(14)
Projects
15
0%
Arbitration
0
Overdue
1
7%
Free
5
Developer 5
Rating
4.87
(52)
Projects
67
21%
Arbitration
13
46% / 15%
Overdue
5
7%
Working
6
Developer 6
Rating
4.77
(350)
Projects
366
33%
Arbitration
52
21% / 67%
Overdue
47
13%
Busy
7
Developer 7
Rating
5
(1)
Projects
1
0%
Arbitration
0
Overdue
0
Free
8
Developer 8
Rating
4.91
(46)
Projects
53
28%
Arbitration
1
0% / 100%
Overdue
2
4%
Free
Similar orders
Requires the following variables: - ticketNo // Ticket number to track which trade to set BE - tradeOpenPrice // Candle close price ( leave at 0 for open trade price ) - Will explain this with screenshots - BEpoints // Points to hit start setting BE ( 40.00 points default ) - SLpoints // Points to SL ( 50.00 points default ) - TPpoints // Points to TP ( 150.00 points default ) - Spreadpoints // Spread
please don't message me again I would like to try something out. I am looking for a developer who has experience with this type of thing. I have a line and would like to set the pivot point on that line
We are looking for an EA for MT4 platform using Fibonacci Levels Fibonacci : A fib is a candle in one direction or a series of candles in the same direction. We draw the fib from the wick of the last candle to the body of the first candle. Examples: Bullish Fibonacci Bearish Fibonacci If we have a candle in the same direction as an existing fib, and it made a new high, we adjust the fib, as soon as the candle
I'm expecting a MQL4 EA doing the following: OnInit, connect as client to a websocket server OnTimer, at high frequency (each 0.1 seconds), get any new message from the server and print the result For testing and validating the EA, we will use the piescocket demo server ( https://www.piesocket.com/websocket-tester ). This page enables to connect to the server (the EA must do it) and send messages (the EA must
I need an expert to create an indicator for Ninja trader 8 platform. The candidate must have knowledge of scripting and programming but also the basic of trading analysis to read charts. It would be a plus to know the VSA and Wyckoff methodology
Hello.i need an Mt4 developer that can add email notifications to my expert advisor based on simple conditions on the from the EA .If you can add notification to my Mt4 expert advisor kindly bid for it
Contact me on my WhatsApp at +91-9824666688 for further discussion. 01) This is to be an MT5 EA and I shall require source code too. 02) This EA shall be based on an indicator named "Divergence for Many Indicators V4" available as open source in tradingview.com at community scripts by LonesomeTheBlue. 03) I want all the inputs of the above indicator in the EA along with the extra inputs I want. 04) There shall only
Hello, I have a script on MT4 and I need it converted to ctrader Asap.... Please let me know if you can get this done. I await your swift response great devs. Thank you
All the functions have to be editable and can be enabled/disabled. 1% of the balance with position size calculator (possibility to change this function) Buy Setup: Price above the 200EMA (close candle) Didi index (3/8/20) = green line crossing the red line from bottom to top MACD (3/23/30) green histogram and MACD + SIGNAL line above the 0 line Trix over above 0 Volume bullish above a 50MA Green bar of the Donchian
Looking for 1 hour coaching session on MQL5 coding, money management based on global variable, take profit in %, exit after certain no of bars and filter based on day of week

Project information

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