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
Оценка
(197)
Проекты
320
35%
Арбитраж
64
13% / 56%
Просрочено
83
26%
Свободен
4
Разработчик 4
Оценка
(105)
Проекты
121
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
Оценка
(564)
Проекты
933
47%
Арбитраж
302
59% / 25%
Просрочено
125
13%
Загружен
Похожие заказы
Im looking for an coder to code an EA: Trade management 1. opening trades according to the indicator 2. trades settings to choose from like: open all trades according to the signal open only trade 1,2,3 or 4 % per trade ( example 50/30/20 of the lot settings, with 4 trades it would be for example 50/30/10/10) 3. SL/Trailing settings: Move SL to entry after hitting TP1/TP2 or TP3 moving SL by % keep the original SL
Hi I'm looking to have 2 of my pinescript strategies converted to MQL5 and was wondering if you could first give me a quote for the more simple strategy and then for both the simple and complex strategy together. The simple strategy is a MACD crossover type thing that uses a special EMA script that filters out some ranging price action and also fractal candles for the stop loss. The second strategy is market
I want grate robot for making profits that know when to start a good trade and close a trade and must be active all time to avoid lost of money
I have developed a very strong TradingView strategy in Pine Script but unfortunately, a third-party connector is requiired and in my opinion, I want a more direct connection. I am not brilliant at coding, but I have coded the majority of the MT5 code and I would like you to make sure that the MT5 code matches my TradingView script and executes the same way as the TradingView script that I will provide if you are
Mbeje fx 50+ USD
I like to own my robot that why I want to build my own.i like to be a best to every robot ever in the life to be have more money
I need an MT5 EA that can do the following: I have to give the EA a price in advance, when the price is reached the EA has to automatically place a buy stop or sell stop order 0.5 pips below or above the price. Is this possible
Dr Pattern 30+ USD
good day i need the service of the seaso coder to help me fix my ea The Job required 1 knowledge of Mt4 and Mt5 indicator coding 2. Telegram code 3. ability to code indicator to work on multiple Time frame combine to trade 4 Ability to Join two or three indicator on same ir different time frame if you have these skill please let chart i will discuss the details of the Job inside to you The required day including
Good day, I want someone to help me create a universal news filter with on/off switch, with start and end settings, and drawdown control with magic number of EAs, etc. Thanks
Hello, I am looking for a professional programmer to optimize my existing EA integrating it with ChatGPT to analyze currencies using various methods to make the right trading decisions. i want it to be an EA that can be trusted to carry trade with the help of chat gpt and also have a very low drawdown
Hello, I am looking for a professional programmer to create a trading expert on the MT4 platform, integrating it with ChatGPT to analyze currencies using various methods to make the right trading decisions. Further details will be provided to the applicants later

Информация о проекте

Бюджет
60+ USD
Исполнителю
54 USD