Take profit and max trades of current EA

MQL5 Experts Integration

Job finished

Execution time 26 days
Feedback from customer
Aleksey was able to assist with the added feature of EA. Despite several modifications on my part. Recommend
Feedback from employee
Thanks for your order. Glad work with you!

Specification

Current EA has entry requirements. The following would be to include Exit and Risk management.


Take profit (2 input level for take profit). 

1st input : percentage based off latest trade

example : 

1st trade: 2000

2nd trade : 3000

take profit input level: 101%

TP level : 3000 x 102% = 3060

1st trade TP level : 3060

2nd trade TP level : 3060



2nd input: percentage based off highest entry trade

if 2nd input TP level is more than 1st input TP level = apply 2nd input TP level, else

apply input 1 TP level


example 2nd input TP level more than 1st input TP level:

example : 

1st trade: 3000

2nd trade : 2000

input 1 TP : 101%

input 1 TP level(based on latest trade): 2020

input 2 TP : 102%

input 2 TP level(based on highest entry price): 3000 x 102% = 3060


TP level should be nearest highest 0.5 multiple

eg: if TP: 3027.66

converted to 3028


-------------------------------------------------------------------------

Maximum lot size across all trade (sum of all lots) - (up to 2 decimal point) example: 0.08 lots


3 input level in control panel.


1st: initial max trade size (input in percentage - 20 = 20%) based off all time high  ,,,,  


     if all time high is lesser than 4500 = referenced number will be 3000

     if all time high is more than or equal to 4500 but lesser than 6000 = referenced number will be 4500

     if all time high is more than or equal to 6000 but lesser than 7500 = referenced number will be 6000

     if all time high is more than or equal to 7500 but lesser than 9000 = referenced number will be 7500

     if all time high is more than or equal to 9000 but lesser than 10500 = referenced number will be 9000

     if all time high is more than or equal to 10500 but lesser than 12000 = referenced number will be 10500

     if all time high is more than or equal to 12000 but lesser than 13500 = referenced number will be 12000

     if all time high is more than or equal to 13500 but lesser than 15000 = referenced number will be 13500

     if all time high is more than or equal to 15000 = referenced number will be 15000



2nd: initial deposit

3rd: Increment amount

4th: Increment lot


example:

1st: initial max trade size: 10 --------- equate to 10%

2nd: initial deposit: 1000 USD

3rd: Increment amount: 500 USD (mean more than or equal to 500)

4th: Increment lot: 1 lot


all time high: 3500

referenced number = 3000


Initial deposit of account is set as 1000 USD.

Maximum lot EA can open is = initial deposit divided by 10% (1st input) of 3000 (referenced number)

1000 / 10% of 3000

1000 / 300

= 3.333

= only 2 decimal points - round down 

                                                                          

When Account balance is 1500 USD, EA can open position up to 4.33 lots. 

(account balance minus (2nd) initial deposit is 500, which satisfy criteria (3).

So now (1) initial max trade + (4) Increment lot = 4.33 lots


**if open trade total is 4 lots and we have entry fulfilment to enter another 1 lot. 

Trade would not be able to open as 4+1 lot = 5 lot , which will be more than 4.33 lot (max trade)


if account balance falls, lot size will decrease as well but dont close existing trade if lot size exceeds.

eg: current balance 2000 USD

updated max lots = 3 lots 

withdraw 500 usd

updated balance: 2500 USD

updated max lots = 2 lots.


if current max lots requirement does not match with current balance: send mt5 app notification and mt5 terminal alert

"Deposit more amount to maintain existing position"



----------------------------------------------------------------


Responded

1
Developer 1
Rating
(12)
Projects
14
29%
Arbitration
2
0% / 0%
Overdue
0
Free
2
Developer 2
Rating
(39)
Projects
55
13%
Arbitration
5
20% / 20%
Overdue
6
11%
Free
3
Developer 3
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
4
Developer 4
Rating
(58)
Projects
76
33%
Arbitration
9
78% / 11%
Overdue
7
9%
Free
5
Developer 5
Rating
(65)
Projects
71
30%
Arbitration
8
0% / 88%
Overdue
5
7%
Free
6
Developer 6
Rating
(137)
Projects
167
35%
Arbitration
11
91% / 0%
Overdue
0
Free
7
Developer 7
Rating
(66)
Projects
143
34%
Arbitration
10
10% / 60%
Overdue
26
18%
Free
Similar orders
I have an EA and want to add few new logic to fetch profit taking factors and other values from an external master data and use it in existing EA
Hello Every one, Good day, I want from someone professional to create an EA is working on Mt5, This EA is working by depend on some indicators, and all those indicators must be working on MACD window, not on the chart, for more details please read my attached pdf file carefully. Many Thanks
I'm looking for an expert MQL5 developer that can create an EA that's based on my price action trading strategy with no indicators. The EA must analyze trades based on my price action rules, enter trades based on my price action rules, manage trades based on my price action rules and exit trades based on my price action rules
hi hi there i have an strategy on tradingview and i want to automate it like metatrader EA so i want the strategy to open and close trade automaticlly on tradingview
We are looking for an experienced Expert Advisor Developer who can build a customized MT5 Expert Advisor for us. The Expert Advisor would use two built-in indicators as entry/exit signals and our own risk management strategy with customizable inputs. The goal is to create a reliable and efficient trading tool that can automate our trading process on the MT5 platform. Skills required: - Strong understanding of
I need stochastic div (hidden &regular ea) that should perform task in all tf's ..divergence is a repaint stly so i want to use it with candlestick flips .. so bet for it
Hello, I have an indicator from a friend and I'd like to replicate it on my own TradingView or MT5 platform. Could you assist me with that?. Here is the link
so basically I have an EA(mql5), AI script(python), flask server and socket server both on python. Now this is an experimental script as I am trying to learn. However the EA is not entering any trades. How much would it cost for you to troubleshoot this for me? Thank you in advance
NEW FUNCTION 50+ USD
La idea es la siguiente, sería un EA semi automático. Yo como trader opero en zonas. En adelante las vamos a denominar ``zonas calientes´´. El EA debe que necesito debe operar conforme a 4 zonas calientes que yo configure en el mismo. ¿Qué hará el EA en cada una de esas zonas calientes que yo he configurado? En cada una de estas zonas el EA debe realizar hedging (crear un rango en el cual el EA entrara en sell o en
I have the bot just over half made, from another developer who let me down and decided they no longer wished to finish the project, so I have a basic example of the fundamentals of what it could look like, although multiple functions I require do not work, but I can show this to you on request. There are multiple features that I require, so please read the in depth requirement sheet on the attachment. Function: To

Project information

Budget
30 - 50 USD
For the developer
27 - 45 USD
Deadline
from 7 to 14 day(s)