Buy stop and Trailing stop

MQL4 Эксперты

Работа завершена

Время выполнения 3 дня
Отзыв от исполнителя
Great customer... clear description of requirements specifications. A++
Отзыв от заказчика
very efficient programmer with great coding skill

Техническое задание

i want to develop a MQL4 EA, pls see the strategy below

Some other requirements

1. I want to just hold 1 buy and 1 sell position at the same time (for some circumstances, it is possible that buy and sell postion holding at the sanme time). but since this EA will be use in the account that will use other EAs too, so just use “OrdersTotal() == 0” is not work, we may need to use Magic number to  differentiate with other trades that made by other EAs

2. The chart only show the buy trade, but i need the sell trade too, just all criteria reverse

3. Pls note that Buy Stop and Sell Stop may not be executed, because, for example, we may not get a higher price after EMA 24 crossing up EMA 60, I don’t know how would effect the coding, just raise it

4. I want to keep the code in void OnTick() as simple as possible, something like this (it is just a template i copy from other, you no need, or i don' think you can straightly apply) i want the other parts are coded as functions, then i can apply them to other EA easily (for example, i may use the Trailing Stop code for other trading strategy EA):

void OnTick()
  {
//---
   // Get the profit target price and the stop loss price
   double Long_TakeProfitLevel = Bid + Profit_target*Point; //0.0001
   double Long_StopLossLevel = Bid - Stop_loss*Point;
   double Short_TakeProfitLevel = Ask - Profit_target*Point; //0.0001
   double Short_StopLossLevel = Ask + Stop_loss*Point;   
   
   // Check if the long condition happen and place order accordingly
   if (Enter_long() ) //if more the one signal, could be Enter_long1, Enter long2 or Signal1, Signal2... //OrdersTotal depend on strategy
   {   
  
   Open_Enter_long(Lot_size,Long_TakeProfitLevel,Long_StopLossLevel,"First_Enter");  

   }
   else if (Exit_long())
   {
      Close_Exit_long("Close_Exit_long");
   }
   
   // Check if the short condition happen and place order accordingly
   if (Enter_short() ) //if more the one signal, could be Enter_long1, Enter long2 or Signal1, Signal2... //OrdersTotal depend on strategy
   {   
  
   Open_Enter_short(Lot_size,Short_TakeProfitLevel,Short_StopLossLevel,"First_Enter");  

   }
   else if (Exit_short())
   {
      Close_Exit_short("Close_Exit_short");
   }   
   
  }
Finally , i am not good at coding, i hope you can give me simple description on importantline of code , and the code must be testable by backtest , then i can check it faster and pay you faster, and both of us win-wn.



Файлы:

Откликнулись

1
Разработчик 1
Оценка
Проекты
0
0%
Арбитраж
1
0% / 100%
Просрочено
0
Свободен
2
Разработчик 2
Оценка
(137)
Проекты
162
22%
Арбитраж
7
29% / 43%
Просрочено
4
2%
Занят
3
Разработчик 3
Оценка
(37)
Проекты
59
27%
Арбитраж
25
20% / 52%
Просрочено
10
17%
Работает
4
Разработчик 4
Оценка
(549)
Проекты
759
46%
Арбитраж
23
39% / 13%
Просрочено
63
8%
Работает
5
Разработчик 5
Оценка
(1)
Проекты
0
0%
Арбитраж
1
0% / 100%
Просрочено
0
Свободен
6
Разработчик 6
Оценка
(13)
Проекты
21
0%
Арбитраж
1
0% / 0%
Просрочено
0
Работает
7
Разработчик 7
Оценка
(5)
Проекты
5
60%
Арбитраж
0
Просрочено
0
Работает
8
Разработчик 8
Оценка
Проекты
0
0%
Арбитраж
1
0% / 100%
Просрочено
0
Свободен
Похожие заказы
1. Combination of Market Profiles on daily basis a) this should be combined if the bell curve is similar to the previous day. Rotational day (volume - standard deviation). b) If breakout, new range should be drawn Conclusion: Market profile should be combined on daily after the market is closed 2. Use Vwap indicator, with 0.5 - slow trend, 1.0 - normal trend, 1.5 fast trend. The stop loss should be under the trend
Mt4 EA Copy trades from octafx copytrading master trader trades 1-i need a bot which will copy trades from Octafx Copytrading Master Trader trades to Metatrader 4 account. 2-bot will copy exactly same trade with same lotsize 3-Bot should open exactly same time when master open and close exactly same time when master close 4-provide complete source code Guide Completely how to Run*
I want an Expert advisor that takes trade on price crossing the upper limit or lower limit of the marked range. It needs to mark the range on daily basis and place a buy and sell order simultaneously Buy Condition Price crosses the upper level of marked range Sell condition Price crosses the lower level of marked range Re-Entry Condition i will tell the programmer In that Expert Advisor I want to add some below
Hey I am looking for someone to help with the testing of my 1000+ robots, you will be asked to always run testing for 30 expert advisors within 24/7 and you will have to provide results from the testing of each EA, let me know if you can help thanks
Check it 30 - 100 USD
please check the file before the bid, i need a developer who is sure to be work with this type of job, check the file attached before apply to this job, then we can discuss more about requirements. please apply only if you can do it, i don't want leave bad feedbacks
Hello, I need an EA or indicator for MT4 that can calculate the difference in pips between the closing price of the first 5 second candle and my actual trade entry price on the opened MT4 trade . EXAMPLE: BUY TRADE: When I open a EURUSD buy trade at 14:30:07 with a fill at 1.0860 and the price at 14:30:05 was at 1.0855 then the script should show me -5.0 pips on the MT4 chart. SELL TRADE: When I open a EURUSD sell
Hi, I'm looking for a coder to develop an automated trading robot for the MetaTrader 5 platform, capable of executing orders according to a defined strategy. The robot must allow for the configuration of: Distances between orders Lot sizes Levels of profits and losses (in pips and in currency) Recording performances in 2 dashboards Manual closure of all positions The Expert Advisor must successfully pass the MQL5
Telegram To MT5 EA 40 - 50 USD
I'm in need of Telegram to MT5 EA copier. The copier should be able to open telesignals directly on MT5 terminal. Message me if you can create the EA as described. Regards
Hey I am looking for someone to help with the testing of my 1000+ robots, you will be asked to always run testing for 30 expert advisors within 24/7 and you will have to provide results from the testing of each EA, let me know if you can help thanks
I need an expert to test robots 24/7 and the best ones come to real servers to work with real money. If we have good success, I increase the risk to 10-20% and the capital. a) 30x Forex robot installation. b) 30x Forex robot settings adjustment. c) 30x Forex robot is tested 24/7 for success. d) 30x Forex robot is provided by the client. e) 30x Forex robot is tested for functions to see if it works on MT4 or MT5. f)

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

Бюджет
30+ USD
Исполнителю
27 USD