Buy stop and Trailing stop

MQL4 Uzman Danışmanlar

İş tamamlandı

Tamamlanma süresi: 3 gün
Geliştirici tarafından geri bildirim
Great customer... clear description of requirements specifications. A++
Müşteri tarafından geri bildirim
very efficient programmer with great coding skill

İş Gereklilikleri

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.



Yanıtlandı

1
Geliştirici 1
Derecelendirme
Projeler
0
0%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
0
Serbest
2
Geliştirici 2
Derecelendirme
(137)
Projeler
162
22%
Arabuluculuk
7
29% / 43%
Süresi dolmuş
4
2%
Meşgul
3
Geliştirici 3
Derecelendirme
(37)
Projeler
59
27%
Arabuluculuk
25
20% / 52%
Süresi dolmuş
10
17%
Çalışıyor
4
Geliştirici 4
Derecelendirme
(549)
Projeler
759
46%
Arabuluculuk
23
39% / 13%
Süresi dolmuş
63
8%
Çalışıyor
5
Geliştirici 5
Derecelendirme
(1)
Projeler
0
0%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
0
Serbest
6
Geliştirici 6
Derecelendirme
(13)
Projeler
21
0%
Arabuluculuk
1
0% / 0%
Süresi dolmuş
0
Çalışıyor
7
Geliştirici 7
Derecelendirme
(5)
Projeler
5
60%
Arabuluculuk
0
Süresi dolmuş
0
Çalışıyor
8
Geliştirici 8
Derecelendirme
Projeler
0
0%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
0
Serbest
Benzer siparişler
So, I have the attached include and ex files (which I got from online. I cannot remember the time and where though). I would like you to edit it to fit something I have and use in excel. What I want is that I want to specify these main parameters: 1. Number of trades (I do not think it should be difficult but If it will be too complex and challenging, then you can set number of trades to just 3). That is fine 2
Hello. I would features added to an EA I have made for an indicator I purchased; "PZ Day Trading Indicator", for indicator buffers and other information you can find it here in the "developer" tab https://www.pointzero-trading.com/en/Products/view/PZDayTrading. I cannot provide you with the indicator due to licensing, you can download the demo version on the market, and we will have to work in a produce -> test ->
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

Proje bilgisi

Bütçe
30+ USD
Geliştirici için
27 USD