Trailing Takeprofit at Breakeven for Buy &/or Sell

MQL4 专家

工作已完成

执行时间9 天
客户反馈
An intelligent and competent freelancer who is capable and trustworthy
员工反馈
very devoted and passionate client. Reliable and honest. It was a pleasure working with him.

指定

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;
 }


反馈

1
开发者 1
等级
(647)
项目
1295
67%
仲裁
84
26% / 49%
逾期
338
26%
空闲
2
开发者 2
等级
(203)
项目
303
35%
仲裁
56
38% / 38%
逾期
99
33%
空闲
3
开发者 3
等级
(196)
项目
318
35%
仲裁
64
13% / 56%
逾期
82
26%
空闲
4
开发者 4
等级
(104)
项目
120
33%
仲裁
4
0% / 50%
逾期
2
2%
空闲
5
开发者 5
等级
(5)
项目
4
25%
仲裁
2
0% / 100%
逾期
1
25%
空闲
6
开发者 6
等级
项目
0
0%
仲裁
0
逾期
0
空闲
7
开发者 7
等级
(65)
项目
87
39%
仲裁
3
0% / 33%
逾期
29
33%
空闲
8
开发者 8
等级
(49)
项目
134
27%
仲裁
62
13% / 53%
逾期
58
43%
空闲
9
开发者 9
等级
(90)
项目
118
17%
仲裁
44
23% / 39%
逾期
20
17%
空闲
10
开发者 10
等级
(188)
项目
212
58%
仲裁
9
11% / 89%
逾期
8
4%
空闲
11
开发者 11
等级
(119)
项目
127
41%
仲裁
3
33% / 67%
逾期
0
空闲
12
开发者 12
等级
(563)
项目
932
47%
仲裁
302
59% / 25%
逾期
124
13%
已载入
相似订单
Hello potential Freelancers I’m very new to trading so please bear with me as I try to explain what ‘m looking for. I'm currently getting signals ( XAUUSD )sent to me and I’m looking to find a person who can look at the data either watch account live, or I send the trade history. The bot my provider is using makes 100’s of trades a day and does very well on average. I’m also looking to have the following features
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

项目信息

预算
60+ USD
开发人员
54 USD