Modification to existing EA to add position modification functions

MQL4 Indicateurs Experts Forex

Tâche terminée

Temps d'exécution 7 jours

Spécifications

The goal of this modification to this EA is to ultimately reduce the size of the losses while increasing the size of the wins. The stop loss is currently set as a function of the ATR, and all position modifications will also be based on the value of the ATR at the moment the initial order is placed. All modifications will go based off this initial ATR value and it will be fixed for the life of the trade. This modification will involve a good amount of position modification during a trade. 

-        When an order is placed the stop loss is automatically calculated and placed at the value of the ATR * 3

-        For losses, once the price has reached 20% of the ATR *3, or is 20% into the loss zone, I want it to take out 20% of the position size.

o    For Example, if the ATR is 10 then when the order is placed the stop loss will automatically be set at 30 pips below the entry price. Say that the initial lot size is 1.0. If after the order is placed it is not winning but is instead loosing, once it reaches a level of 6 pips (20%) below the entry price, I would like it to reduce the position size by 20% as well, so the lot size would now be 0.8. Similarly, once it reaches a level of 12 pips (40%) below the entry price, I would like it to again reduce the size of the position by 20% of the original position size, so now the lot size would be 0.6. I would like this to continue so that if I am stopped out on the trade, by the time it reaches the stop loss it will only be 20% of the original lot size. 

-        If the trade is initially making a loss and the position size is reduced, but then changes direction and reaches the open price of the trade, at break even I want it to add back in everything that it took out so that once it reached the initial entry price the position size is the original size it was when the order was first placed. 

-        I don’t want it to add back in every time a 20% level is reached going up towards the breakeven, that will complicate it, only add back in to make the original lot size one the current price is equal to the entry price. 

o    For Example, if the trade reaches a point where it is 40% of the way to the Stop Loss and has taken out 40% of the position size so the lot size is 0.6 and then returns to the initial entry price of the trade, only once it reaches that initial entry price will the full value of the initial lot size be restored. So once the price reaches the entry price it will then again have a lot size of 1.0. I don’t want it to average down into a loosing trade. 

-        When the trade is in profit I also want it to add into the lot size to increase it as the trade is winning. I want it to add in 20% of the initial lot size up to a maximum of three times. I want the EA to increase the lot size by 20% once a value of the initial ATR*3 is reached, and then another 20% once the value of the ATR*6 is reached, and a final 20% once the value of the ATR*9 is reached.       

o    For Example, when the order is initially placed the ATR is 10 and the lot size is calculated to be 1.0, once the position is 30 pips into the profit zone (ATR*3), then 20% will be added to the lot size, so the new lot size will be 1.2. Then if it keeps going up and reaches 60 pips above the initial entry level (ATR*6) it will again increase the lot size by 20% of the initial lot size, making the lot size now 1.4. Finally, if the trade reaches a point where it is 90 pips above the initial entry price (ATR*9), it would add another 20% of the initial lot size to the current lot size for a final lot side of 1.6. I only want it to add in a maximum of 3 times, not unlimited. 

-        The levels at which the EA will take out or add in money should be automatically set when the trade is first entered based on the ATR and then not change for the life of the trade. For example, if the ATR is 10 when the trade is entered, it should decrease the lot size by 20% at 6 (1/5 of the distance to the stop loss), 12 (2/5 of the distance to the stop loss), 18 (3/5 of the distance to the stop loss),  and 24 (4/5 of the distance to the stop loss), pips into the loss zone and finally be stopped out at 30 pips below the entry price. Also, the EA should increase the lot size by 20% every time it is 30, 60, and 90 pips into the profit, a maximum of 3 times. 

o    If the ATR is 15 when the trade is entered, it should decrease the lot size by 20% at 9, 18, 27, and 36 pips into the loss zone and be stopped out at 45 below the entry price. Also, it should increase the position size by 20% when the levels of the ATR*3 (45), ATR*6, (90), and ATR*9 (135) are reached. 

-        The 20% values should be calculated from the initial lot size when the trade is first entered and not change. If the initial lot size is 1.0 then the 20% will be 0.2 and not change for the life of the trade. If the initial lot size is 5.0 the 20% will be 1.0 and not change for the life of the trade. 

-        Also, in the original version of this EA there is a break even function so that once it reaches a certain level of pips into the profit zone it can no longer lose money. For this, whenever the position size is increased the entry price will also move up a small amount because it is averaging the old entry price with the new one. Please make it so that every time the position is increased the break even line is moved up to 0 with the averaged entry price. 

Répondu

1
Développeur 1
Évaluation
(390)
Projets
416
30%
Arbitrage
74
19% / 72%
En retard
52
13%
Travail
2
Développeur 2
Évaluation
(332)
Projets
485
40%
Arbitrage
82
11% / 63%
En retard
77
16%
Gratuit
Publié : 1 code
3
Développeur 3
Évaluation
(115)
Projets
129
18%
Arbitrage
11
27% / 55%
En retard
4
3%
Gratuit
4
Développeur 4
Évaluation
(21)
Projets
23
52%
Arbitrage
0
En retard
2
9%
Gratuit
5
Développeur 5
Évaluation
(16)
Projets
17
29%
Arbitrage
1
0% / 100%
En retard
2
12%
Gratuit
6
Développeur 6
Évaluation
(171)
Projets
195
42%
Arbitrage
13
8% / 54%
En retard
9
5%
Gratuit
Publié : 3 codes
7
Développeur 7
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
8
Développeur 8
Évaluation
(295)
Projets
472
40%
Arbitrage
102
40% / 24%
En retard
78
17%
Occupé
Publié : 2 codes
Commandes similaires
​ Description: I am looking for a professional MQL4 developer/quant trader with a proven track record in EA optimization. This project involves optimizing a third-party EA that currently has a 2-year live track record. ​ The Task: ​ In-Sample Optimization: Optimize the EA parameters using historical data prior to January 1, 2024. ​ Out-of-Sample (Walk-Forward): Validate the optimized settings against the period of
Trade settings: --------------------------------- fixed lot size ….. 0.0 Buy /Sell distance market order…. 0.0 - 700.0 points Buy / Sell distance pending order Entry---- 0.0 - 700.0 points Max Trade------ 10.0 Min spread...… 0.0 points Max spread..... 3000.0 points Daily profit percentage ….. 0.0 - 100 % Global Stoploss Percentage----- 0.0 - 100 % Max Daily loss Percentage ------0.0 - 100 % Stop level = 0.0 point
Hi , I have some indicators that I want set up on my TV chart and want to create one chart for some and another chart for some others. Plus I want to set up the brackets orders so I can trade from the chart. I have these set up somewhat but need it cleaned up and the way I want them. how much would something like this cost to do? I'm in California and would like you to show me so I can learn to do this when I want to
i need EA EMA 5 to EMA 7 Cross over and in case of loss for martingale add 1 to 20 numbers we put next lots of martaingle manually not auto martaing add account no in hidden only which account only works add date of expiry in inside code add EA runinging time there is other option add on off swithch that if buy order loss than martaingle works only for recovery buy order, if sell order loss martingale works for only
Apply with a keen sense of responsibility . Copy the code . Both of my expert has sufficient materials . Its a simple winning strategy , therefore please be ahead of time . Code BLUE . Changing The Strategy According to what i think is correct
I would love to see most of my trades going well being in profits! & keep consistent trading without having to blow any accounts be able to identify right trades and have good trading strategy
Gold robot Ga1 30 - 200 USD
mport pandas as pd import numpy as np def detecter_tendance(data): # Code pour détecter la tendance pass def identifier_niveaux(data): # Code pour identifier les niveaux de support et de résistance pass def calculer_stop_loss(tendance, support, resistance): # Code pour calculer les stop loss pass def calculer_profils(tendance, support, resistance): # Code pour calculer les profils mport pandas as pd
Martingale Strategy 50 - 70 USD
I need a gambling bot that implements the Martingale Strategy for betting on roulette. It will be used on platforms like Betcity and Unibet to manage bets effectively. Scope of work - Develop a bot that implements the Martingale Strategy for roulette. - Ensure compatibility with Betcity and Unibet platforms. - Include functionalities for adjusting bet size and managing losses. - Integrate platform-specific features
The EA should be designed to react to very fast price movements on the M1 timeframe on XAUUSD. Logic overview: • When price moves up quickly, the EA should place a sell order. • The initial stop loss must be set exactly at the entry price. • A very tight trailing stop must be activated immediately. Sell trade behavior: • If price moves a few pips in favor after entry, the trade should close with a small profit via
Hello there Hpe you are doing good I am in search of a pine script expert developer who can build strategy in apudFlow in pinescript. Kinldy bid on this project if you can do this

Informations sur le projet

Budget
30 - 80 USD
Délais
à 3 jour(s)