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

MQL4 Experts

Termos de Referência

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


Respondido

1
Desenvolvedor 1
Classificação
(7)
Projetos
14
21%
Arbitragem
1
0% / 100%
Expirado
3
21%
Livre
2
Desenvolvedor 2
Classificação
(1)
Projetos
2
0%
Arbitragem
1
0% / 100%
Expirado
0
Livre
3
Desenvolvedor 3
Classificação
(25)
Projetos
29
34%
Arbitragem
3
67% / 0%
Expirado
1
3%
Livre
4
Desenvolvedor 4
Classificação
(36)
Projetos
45
2%
Arbitragem
6
33% / 17%
Expirado
1
2%
Livre
5
Desenvolvedor 5
Classificação
(57)
Projetos
72
22%
Arbitragem
13
46% / 15%
Expirado
5
7%
Livre
6
Desenvolvedor 6
Classificação
(374)
Projetos
396
31%
Arbitragem
61
20% / 67%
Expirado
49
12%
Carregado
7
Desenvolvedor 7
Classificação
(1)
Projetos
1
0%
Arbitragem
0
Expirado
0
Livre
8
Desenvolvedor 8
Classificação
(54)
Projetos
62
31%
Arbitragem
4
0% / 50%
Expirado
1
2%
Trabalhando
Pedidos semelhantes
Hello programmer, I need someone that can help me with my ea project. I want to do ea Only reverse engineering (writing from scratch by analyzing the algorithm), without decompilation
Hello programmer, I need someone that can help me with my ea project. I want to do ea Only reverse engineering (writing from scratch by analyzing the algorithm), without decompilation
I have a documented strategy that I will like to have as mt5 or ctrader trading bot, kindly bid for this job to discuss about the job requirements i want a professional for this work
Indicators: Zigzag, Support and Resistance with SMA 30 BUY TRADE 1. Wait for the candle to close at 6.30 am PST 2. Draw trend line from the top and bottom of the wick for the candles closed 6:25am PST and 6:30am PST. extending them forward 3. Look for a break in either direction to determine whether to buy or sell. 4. If there's an upward break, initiate a buy. 5. Open three buys positions. With given lot sizes
Moath jamal 30+ USD
//+------------------------------------------------------------------+ //| Script program start function | //+------------------------------------------------------------------+ int OnInit() { return(INIT_SUCCEEDED); } //+------------------------------------------------------------------+ //| Script deinit function |
I need an alert of new zone created/show to be added to this supply demand indicator. Sound and pop-up alert option, no need for email alert. Max 3 days to deliver please. Thanks
Must be an overlay ea so I can attach indicator and ea too the chart separately so I can change the settings( I use different setting too default ) dark is free on the mql4 market. I want auto lots Time filter. Tp and sl should be the same as the indicator I GET PAID NEXT FRIDAY SO I CAN PAY THEN
Looking for an experienced coder to convert an existing MT4 Expert Advisor for trading in CTrader (Cbot). Will provide the MQL file to shortlisted coder and the conversion shall be completed for testing within 2 days
Ea-Reynerie 30 - 200 USD
The ocean gets dry and you can be fate and you are my type and the one who texting first is to be hundred I would live in the world to get your matric results
LEO INDICATOR 10000+ USD
//@version=5 indicator("Infinity and Sniper by Leo", overlay=true, precision=0, explicit_plot_zorder=true, max_labels_count=500) // Get user input emaEnergy = false sensitivity = input.float(6, " Sensitivity (0.5 - 10)", 0.5, 10, step=0.1) keltner_length = 10 atrPeriod = 10 factor = 3.5 // Keltner Channel function keltner_channel(src, length) => ma = ta.sma(src, length) rangec = high - low upper = ma + rangec

Informações sobre o projeto

Orçamento
30 - 90 USD
Desenvolvedor
27 - 81 USD
Prazo
para 10 dias