Trailing Takeprofit at Breakeven for Buy &/or Sell

MQL4 Asesores Expertos

Trabajo finalizado

Plazo de ejecución 9 días
Comentario del Cliente
An intelligent and competent freelancer who is capable and trustworthy
Comentario del Ejecutor
very devoted and passionate client. Reliable and honest. It was a pleasure working with him.

Tarea técnica

I need to modify OP with the same takeprofit; set for breakeven no matter if buys, sell or both.

The takeprofit must follow a trend indicator as to which side it must be placed.

example: trend is sell so TP is set below price, and above price if trend is buy.

:Let me further explain:

When my strategy fails to exit within a few bars there can be adding of orders.

There can be same OP type, and there can even be mixed OP type, and the takeprofit should be set to a price that means it is breakeven(optional) following a trend for which side of price to put the take profit.

I have a working EA with all the steps needed for entering the TP trailing methods

Incase price surpasses the TP before setting it orders must be closed clientside.

This is where I need work on

void ManageTP()
 {
 //initial TP after two bars for cumulative profit
 if( OrderBarsOpen==1 && LastOpenBar==2 )
  {
  //if TP to be set is surpassed by open price then close all trades
  
  //set TP for all orders to breakeven & 1 point profit
  
  }
 //cumulative profit exits
 if( OrderBarsOpen>1 && LastOpenBar>2 )
  {
  //trail takeprofit by trend, sell=below price & buy=above price
  switch(iST(0))
   {
   case 2: //sell trend
    //if TP to be set is surpassed by open price then close all trades
    
    //set TP for all orders to breakeven & 1 point profit below price
    
    break;
   case 1: //buy trend
    //if TP to be set is surpassed by open price then close all trades
    
    //set TP for all orders to breakeven & 1 point profit above price
    
    break;
   default: break;
   }
  }
 TrailedThisBar=true;
 }


Han respondido

1
Desarrollador 1
Evaluación
(647)
Proyectos
1295
67%
Arbitraje
84
26% / 49%
Caducado
338
26%
Libre
2
Desarrollador 2
Evaluación
(203)
Proyectos
303
35%
Arbitraje
56
38% / 38%
Caducado
99
33%
Libre
3
Desarrollador 3
Evaluación
(196)
Proyectos
318
35%
Arbitraje
64
13% / 56%
Caducado
82
26%
Libre
4
Desarrollador 4
Evaluación
(104)
Proyectos
120
33%
Arbitraje
4
0% / 50%
Caducado
2
2%
Libre
5
Desarrollador 5
Evaluación
(5)
Proyectos
4
25%
Arbitraje
2
0% / 100%
Caducado
1
25%
Libre
6
Desarrollador 6
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
7
Desarrollador 7
Evaluación
(65)
Proyectos
87
39%
Arbitraje
3
0% / 33%
Caducado
29
33%
Libre
8
Desarrollador 8
Evaluación
(49)
Proyectos
134
27%
Arbitraje
62
13% / 53%
Caducado
58
43%
Libre
9
Desarrollador 9
Evaluación
(90)
Proyectos
118
17%
Arbitraje
44
23% / 39%
Caducado
20
17%
Libre
10
Desarrollador 10
Evaluación
(188)
Proyectos
212
58%
Arbitraje
9
11% / 89%
Caducado
8
4%
Libre
11
Desarrollador 11
Evaluación
(119)
Proyectos
127
41%
Arbitraje
3
33% / 67%
Caducado
0
Libre
12
Desarrollador 12
Evaluación
(563)
Proyectos
932
47%
Arbitraje
302
59% / 25%
Caducado
124
13%
Trabajando
Solicitudes similares
Hi guys I would like to k ow if someone has experience with machine learning models? I would like to train a model to identify if there is a range market or trendy market based on several parameters like EMA and ATR for example. If we use for example a 20 and 50 EMA and we measure the distance between both lines the algo should oearn if the trend is strong or weak. If it‘s steong it keeps trending and if it‘s weak
Hello The EA will work on particular zone choose by the user and can mark it on any TF and with some rules can open trades and mange the trade by some unique rules. the EA need to check the difference by RSI as well and with some extra rules . developer should have good attitude and good communication (englsih) with high performence and knowledge with coding EA
we want to build a dashboard ea that would display on another chart key metrics : i will foward screeshot of what i want to dashboard to look like : the function i would need to get display are the following: 1. classified past performance ea by magic number ( with classic : total trade , total profit , return/dd , max dd (base on history) , ) 2. equity chart of performance if we click on a magic number we should
the task will be actually quiet simple , i need an active develloper to devellope out of 3 updates an ea STEP 1 (this job): make a classical pair trading ea , that can calculate correlation between assets and trade when the correlation diverge above a specified % the develloper that will postulate for the job will need : 1- to be ok to do the full project this job and the update following 2- very low arbitration , i
Hello, I want to create an EA that can be able to take and optimise trade bids using the trend tracker concept I have developed. The tracker will monitor the 2 lines in the below pictures and then start to activate bids once they cross each other and then be able to manage all bids afterwards towards the direction of the market by opening and closing them intermittently and profitably until the position at the other
Hi man, How are u? I have an EA and I need to check few aspects of the code, if It works fine? I am looking for an expert coder, who can understand mt4 language and help us to solve this out. This job will hardly take about 3-4 hours max for an experienced coder, when explained detail. Also, I would like to give this to someone, who can understand and speak English well. Also, the coder should be able to come via
Hello The EA will work on particular zone choose by the user and can mark it on any TF and with some rules can open trades and mange the trade by some unique rules. the EA need to check the difference by RSI as well and with some extra rules . developer should have good attitude and good communication (englsih) with high performence and knowledge with coding EA. THREE TYPES OF ENTRIES 1: AGGRESSIVE 2: DIVERGENCE 3
Indicator in use: Bollinger Bands Mechanism (See diagrams provided for help) Sells: 1. Trigger candle: When candle low is above the top Bollinger band - accurate to the lowest point scale (e.g. On EURUSD if candle low is 1.07915 and the value of top bollinger is 1.07914 - this is a sell signal; or if on Futures if the increment is .25 or .10 then this is used) 2. Enter sell ONLY on the next candle if price breaks
Indicator in use: Bollinger Bands Mechanism: (See diagrams provided for help) Sells: 1. Trigger candle: When candle low is above the top Bollinger band - accurate to the point scale (e.g. On EURUSD if candle low is 1.07915 and the value of top bollinger is 1.07914 - this is a sell signal) 2. Enter sell ONLY on the next candle if price breaks below the trigger candle LOW (using the e.g. above- if next candle price
hey guys, im looking for an auto mt5 license system through a web app i have already, i simply want it so a unique license key is generated for memebers, they input this onto the EA input and then it checks if its valid. active license per user capped at 5. i already have an mt5 coder and dec team for the app so i dont know if youd prefer to intergrate onto the webapp yourself or simply provide the code and doc so my

Información sobre el proyecto

Presupuesto
60+ USD
Para el ejecutor
54 USD