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
등급
(131)
프로젝트
152
22%
중재
5
0% / 60%
기한 초과
4
3%
작업중
3
개발자 3
등급
(37)
프로젝트
59
27%
중재
24
21% / 54%
기한 초과
10
17%
작업중
4
개발자 4
등급
(537)
프로젝트
746
45%
중재
24
38% / 13%
기한 초과
63
8%
로드됨
5
개발자 5
등급
(1)
프로젝트
0
0%
중재
1
0% / 100%
기한 초과
0
무료
6
개발자 6
등급
(13)
프로젝트
21
0%
중재
1
0% / 0%
기한 초과
0
작업중
7
개발자 7
등급
(4)
프로젝트
4
50%
중재
0
기한 초과
0
무료
8
개발자 8
등급
프로젝트
0
0%
중재
1
0% / 100%
기한 초과
0
무료
비슷한 주문
I am looking for a tool that will calculate the max adverse excursion before a trade closes in profit or loss. The toll needs to analyse historical trades and record this value for each trade. The purpose is to assist me calculate the best stop loss for using a martingale system
I need a trading robot that is automated and trades US30, NAS100 and GER30. It should work on M1, M5 and M15. It should also be able to trade the news(fundamentals). The accuracy of the robot should should be atleast 80% and risk 75% of the available balance
We have an EA in both mql4 and mql5 that needs a bit remodelling in its appearances and ad some input functions into it. And need to get the work done ASAP. Please DM if you are well versed in mql4 and mql5 programming. This is a part of a bigger project Thank You
This EA Should Be Able To Trade On All Financial Market But More Especially On Volatile Market. This EA Should Trade As Low As 1$ For Brokers That Has Low Spread GUI 1. Automatic button that can flip from buying at demand And selling at supply 2. close all button 3. minimizable panel statistic showing current information on trades EA Trade Plan. 1. Move to M15 TF a. Identify Directional Bias b. Locate Stop Hunt and
Scalper for Meta 5 Settings 1- Time of the day schedule in gmt 2 Lot size ( verible) 3- Over all profit ( In dollars) 4- Number of trades limit ( Varible) The EA should be able to open a new trade on next candle opening price. Direction of new trade: The next new trade direction should be dependent on the last candle closing high or low. If the last candle is a low candle ,the new trade should be a short trade, if
I want to convert TV pine script into mt4 EA. TV screen shots attached for reference. Based on TV indicators convert into mt4 indicators and then develop EA. Further details will be discuss once project starts
2USD AT 0.01 30+ USD
Rule Lot size 0.01 start immediate Buy at every 2 USD PRICE change for Example 2300 2298 2296 2294.................& take profit at every 2 usd & no stop loss Sell at every 2 USD PRICE change for Example 2300 2302 2304 2306................. .& take profit at every 2 usd & no stop loss Maximum orders 60
I need a AI signal generating bot for forex trading. The bot should operate such that when i put it in a chart it will analyse the market, after several minutes it will display whether the trade is buying or selling. It should display the one minute, five minute,15minute, 30 minute, one hour, 4 hours and daily time frame whether they are buying or selling. If it is buying the arrow should be green and if it is
Trading EA 500 - 4000 USD
I want an EA with these Features that will work on mt4 , mt5 : 1. Trading 24/7 2. Connected to the news 3. Pauses during high effective news 4. Has a footprint tool for accurate signals 5. Always aims foe a higher profit 6. High frequency trading 7. Auto lot size 8. Capable to work on 1000$ capital and less 9. It works on any chart 10. Works on any chart 11. When it is installed in any chart or broker it will read
I am looking for a developer to code a custom DERIV BOT and intergrate it with their analysis tool. For now I I just want it to trade even and odd. If you can do it send your offer

프로젝트 정보

예산
30+ USD
개발자에게
27 USD