Moving Avarage Cross Over

MQL4 Эксперты Forex

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

Время выполнения 8 минут
Отзыв от исполнителя
Very clear specifications. Good to work! Excellent customer... Thank you :)
Отзыв от заказчика
Great Developer, he was fast and did precisely what I wanted. Also Flexible in my demands. 5 Stars

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

I am looking to further develop a simple EA I already made that is based on MA crossover.

The problem with the one I have, it uses TP and SL to close a trade.

I would for the order to close when the next cross over happens, the old order will close and the new one will open.


Below is what I have so far:


//+------------------------------------------------------------------+
//|                                       MovingAverageCrossover.mq4 |
//|                                                           737ngx |
//|                                        https://www.737ngxsim.com |
//+------------------------------------------------------------------+
#property copyright "737ngx"
#property link      "https://www.737ngxsim.com"
#property version   "1.00"
#property strict

extern int TakeProfit=50;
extern int StopLoss=25;
extern int FastMA=15;
extern int FastMaShift=0;
extern int FastMaMethod=1;
extern int FastMaAppliedTo=0;
extern int SlowMA=50;
extern int SlowMaShift=0;
extern int SlowMaMethod=1;
extern int SlowMaAppliedTo=0;
extern double LotSize = 0.01;
extern int MagicNumber = 1234;
double pips; 
 

//+------------------------------------------------------------------+ 
//| Expert initialization function                                   |
//+------------------------------------------------------------------+
int OnInit()
  {
  
double ticksize = MarketInfo(Symbol(), MODE_TICKSIZE);
   if (ticksize == 0.00001 || ticksize == 0.001)
   pips = ticksize*10;
   else pips = ticksize;
return(INIT_SUCCEEDED);
  }
  
//+------------------------------------------------------------------+
//| Expert deinitialization function                                 |
//+------------------------------------------------------------------+
int deinit()
  {
//---
   return (0);
   
  }
  
 //+------------------------------------------------------------------+
//| Expert start function                                 |
//+------------------------------------------------------------------+
 
 
  
  int start()
  {

               
   return(0); 
  
  }
  
  
  
  
//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+
void OnTick()
  {
//---
double PreviousFast = iMA(NULL,0,FastMA,FastMaShift,FastMaMethod,FastMaAppliedTo,2);
    double CurrentFast =  iMA(NULL,0,FastMA,FastMaShift,FastMaMethod,FastMaAppliedTo,1);
      
    double PreviousSlow = iMA(NULL,0,SlowMA,SlowMaShift,SlowMaMethod,SlowMaAppliedTo,2);
    double CurrrentSlow = iMA(NULL,0,SlowMA,SlowMaShift,SlowMaMethod,SlowMaAppliedTo,1);
    
    if(PreviousFast<PreviousSlow && CurrentFast>CurrrentSlow)
         if(OrdersTotal()==0)
            OrderSend(Symbol(),OP_BUY,LotSize,Bid,3,Bid-(StopLoss*pips),Bid+(TakeProfit*pips),NULL,MagicNumber,0,Green);
         
    if(PreviousFast>PreviousSlow && CurrentFast<CurrrentSlow)
         if(OrdersTotal()==0) 
            OrderSend(Symbol(),OP_SELL,LotSize,Bid,3,Bid+(StopLoss*pips),Bid-(TakeProfit*pips),NULL,MagicNumber,0,Red);
   
  }
//+------------------------------------------------------------------+



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

1
Разработчик 1
Оценка
(229)
Проекты
339
49%
Арбитраж
21
5% / 33%
Просрочено
24
7%
Свободен
2
Разработчик 2
Оценка
(4)
Проекты
5
20%
Арбитраж
3
33% / 33%
Просрочено
0
Свободен
3
Разработчик 3
Оценка
(365)
Проекты
412
36%
Арбитраж
35
26% / 57%
Просрочено
63
15%
Свободен
4
Разработчик 4
Оценка
(114)
Проекты
154
47%
Арбитраж
2
0% / 50%
Просрочено
4
3%
Свободен
5
Разработчик 5
Оценка
(15)
Проекты
24
21%
Арбитраж
1
0% / 100%
Просрочено
7
29%
Свободен
6
Разработчик 6
Оценка
(554)
Проекты
765
46%
Арбитраж
23
39% / 13%
Просрочено
63
8%
Работает
7
Разработчик 7
Оценка
(1130)
Проекты
1432
62%
Арбитраж
21
57% / 10%
Просрочено
43
3%
Свободен
8
Разработчик 8
Оценка
(65)
Проекты
87
39%
Арбитраж
3
0% / 33%
Просрочено
29
33%
Свободен
9
Разработчик 9
Оценка
(2)
Проекты
2
0%
Арбитраж
0
Просрочено
0
Свободен
10
Разработчик 10
Оценка
(769)
Проекты
1033
44%
Арбитраж
50
8% / 50%
Просрочено
117
11%
Свободен
11
Разработчик 11
Оценка
(221)
Проекты
369
66%
Арбитраж
10
50% / 0%
Просрочено
46
12%
Свободен
12
Разработчик 12
Оценка
(2086)
Проекты
2646
61%
Арбитраж
113
45% / 26%
Просрочено
418
16%
Работает
13
Разработчик 13
Оценка
(1093)
Проекты
1449
45%
Арбитраж
49
73% / 12%
Просрочено
36
2%
Работает
14
Разработчик 14
Оценка
(7)
Проекты
8
38%
Арбитраж
3
33% / 33%
Просрочено
2
25%
Свободен
15
Разработчик 15
Оценка
(4)
Проекты
6
0%
Арбитраж
2
0% / 50%
Просрочено
4
67%
Свободен
16
Разработчик 16
Оценка
(117)
Проекты
138
41%
Арбитраж
30
7% / 77%
Просрочено
17
12%
Свободен
17
Разработчик 17
Оценка
(2)
Проекты
2
0%
Арбитраж
0
Просрочено
1
50%
Свободен
18
Разработчик 18
Оценка
(549)
Проекты
826
73%
Арбитраж
15
53% / 13%
Просрочено
193
23%
Работает
19
Разработчик 19
Оценка
(461)
Проекты
902
77%
Арбитраж
25
16% / 68%
Просрочено
100
11%
Свободен
20
Разработчик 20
Оценка
(563)
Проекты
932
47%
Арбитраж
302
59% / 25%
Просрочено
124
13%
Занят
Похожие заказы
I want to decompile an ea file and get the source code, i need it really quick as fast as possible. the file must be delivered alongside the source code
Dear Developers, I would have a very simple request. I have a ML model developed in Python for EURUSD daily trading. I would like to backtest it in Meta Trader 5 using the Strategy Tester tool. For that I would need an Expert Advisor program. The input would be a csv file that contains two columns: - dates (going back for a few years on a daily basis) - trading signal (it can have only 2 values, either 1: Buy, or -1
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
Hi I have the code in pinescript for an indicator that I need done in Ninja Trader 1. The Trading View indicator code needs to be converted into and adapted for Ninja Trader 8 2. An indicator and Automated Trading Strategy needs to be developed. 3. Any parts of the Trading View Indicator that can't be replicated needs to be discussed with me and agreed before excluding. (there should not be any) 4. Trailing stop and
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
1. The Trading View indicator code needs to be converted into and adapted for Ninja Trader 8 2. An indicator and Automated Trading Strategy needs to be developed. 3. Any parts of the Trading View Indicator that can't be replicated needs to be discussed with me and agreed before excluding. (there should not be any) 4. Trailing stop and Trailing Draw Down options need to be implemented 5. Risk needs to be in % of
Create mt4 ea 50+ USD
To convert the provided MT4 indicator script into an Expert Advisor (EA) and implement prompt functionality for user input, we need to modify the code to handle external parameters and provide a user-friendly interface. Below is the EA code that incorporates prompts for user inputs
I WRITE a code i want to conect this for automatic trading through vps .and als advanced features for this code .i attached afile please watch .and give me perfect ea
This is not an EA that actually opens/closes trades. Instead this project involves creating a dashboard where the user can create a grid trade scenario with initial entry and scale trade pip distances, lot sizes for each trade, and draw down amount. It then calculates the break-even + profit level where all trades would close. For each new scale trade the BE+ point is recalculated which is then displayed on the
Hi I have the code in pinescript for an indicator that I need done in Ninja Trader, I wanted this indicator in NT bcs I chart in NT, and if the indicator could also have been an automated strategy even better. Please confirm that it will be an indicator and Automated Trading Strategy

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

Бюджет
30 - 40 USD
VAT (21%): 6.3 - 8.4 USD
Итого: 36.3 - 48.4 USD
Исполнителю
27 - 36 USD