Moving Avarage Cross Over

MQL4 Experts Forex

Tâche terminée

Temps d'exécution 8 minutes
Commentaires de l'employé
Very clear specifications. Good to work! Excellent customer... Thank you :)
Commentaires du client
Great Developer, he was fast and did precisely what I wanted. Also Flexible in my demands. 5 Stars

Spécifications

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);
   
  }
//+------------------------------------------------------------------+



Répondu

1
Développeur 1
Évaluation
(229)
Projets
339
49%
Arbitrage
21
5% / 33%
En retard
24
7%
Gratuit
2
Développeur 2
Évaluation
(4)
Projets
5
20%
Arbitrage
3
33% / 33%
En retard
0
Gratuit
3
Développeur 3
Évaluation
(365)
Projets
412
36%
Arbitrage
35
26% / 57%
En retard
63
15%
Gratuit
4
Développeur 4
Évaluation
(114)
Projets
154
47%
Arbitrage
2
0% / 50%
En retard
4
3%
Gratuit
5
Développeur 5
Évaluation
(15)
Projets
24
21%
Arbitrage
1
0% / 100%
En retard
7
29%
Gratuit
6
Développeur 6
Évaluation
(645)
Projets
873
48%
Arbitrage
29
38% / 17%
En retard
63
7%
Travail
7
Développeur 7
Évaluation
(1156)
Projets
1462
63%
Arbitrage
21
57% / 10%
En retard
43
3%
Gratuit
8
Développeur 8
Évaluation
(65)
Projets
87
39%
Arbitrage
3
0% / 33%
En retard
29
33%
Gratuit
9
Développeur 9
Évaluation
(2)
Projets
2
0%
Arbitrage
0
En retard
0
Gratuit
10
Développeur 10
Évaluation
(772)
Projets
1039
44%
Arbitrage
50
8% / 50%
En retard
116
11%
Gratuit
11
Développeur 11
Évaluation
(221)
Projets
369
66%
Arbitrage
10
50% / 0%
En retard
46
12%
Gratuit
12
Développeur 12
Évaluation
(2349)
Projets
2955
63%
Arbitrage
125
44% / 26%
En retard
429
15%
Gratuit
13
Développeur 13
Évaluation
(1305)
Projets
1735
49%
Arbitrage
55
67% / 16%
En retard
38
2%
Gratuit
14
Développeur 14
Évaluation
(7)
Projets
8
38%
Arbitrage
3
33% / 33%
En retard
2
25%
Gratuit
15
Développeur 15
Évaluation
(4)
Projets
6
0%
Arbitrage
2
0% / 50%
En retard
4
67%
Gratuit
16
Développeur 16
Évaluation
(117)
Projets
138
41%
Arbitrage
30
7% / 77%
En retard
17
12%
Gratuit
17
Développeur 17
Évaluation
(2)
Projets
2
0%
Arbitrage
0
En retard
1
50%
Gratuit
18
Développeur 18
Évaluation
(564)
Projets
845
73%
Arbitrage
15
53% / 13%
En retard
193
23%
Gratuit
19
Développeur 19
Évaluation
(510)
Projets
978
74%
Arbitrage
27
19% / 67%
En retard
101
10%
Gratuit
Publié : 1 article, 6 codes
20
Développeur 20
Évaluation
(574)
Projets
945
47%
Arbitrage
309
58% / 27%
En retard
125
13%
Gratuit
Commandes similaires
I am looking for an experienced MQL5/MT5 developer to develop a custom Expert Advisor based on a complete technical architecture already prepared by the client. This is not a request to design a trading strategy from scratch . The strategy architecture, entry/exit concepts, filters, risk-management requirements and testing requirements are already documented. The main responsibility will be MQL5 development
Ready to use bot 100+ USD
seller must provide the following to be considered... i will answer to all who fit this description, and can purchase more than 1 EA... - brief strategy description - overall EA expectancy - 1 week limited trial version, with whatever settings you consider best (can be blocked on demo, i don't really care) - investor password from a reputable broker (if history is available... live / demo, same thing, doesn't really
can you help me use a Tickblaze Algo NRBO on the NT platform? I have it somewhat set up, but I have other questions about running it & knowing how to operate it in NT. Thank you if anyone have experience in this kindly bib and let do it asap
I need a fully automated custom Expert Advisor for MetaTrader 5 (MQL5). The EA is intended for use on a The5ers $100,000 2-Step prop-firm account. IMPORTANT DELIVERY REQUIREMENT: I must receive the complete editable .mq5 source code as well as the compiled .ex5 file. Compiled-only delivery is NOT acceptable. The EA must be coded specifically for this project and must not copy trades, use external trading signals or
Le robot devra : Respecter strictement les règles de risque des comptes FTMO : perte journalière maximale, perte maximale totale, taille des positions, etc. Intégrer un système de gestion du risque automatique. Être capable de gérer différents types de comptes et tailles de capital. Être basé sur ma stratégie et mes règles de trading que je fournirai au développeur. Être entièrement automatisé pour l’exécution des
I need a trading system similar to the attached files. Check attachment for details on the indicator. i guess the indicator contains some of (Rainbow MA , MTF Dashboard , Symbol Switcher , and Trend Histogram), though may not be exactly as listed
VENOM EA 35 - 50 USD
So, im a beginner and I'm pleading you to built me a bot that runs 24hrs and that can buy and sell at the same time, choose a better and profitable strategy. I will do anything thing it takes to get the bot. I hope you take my request into consideration
Je cherche un développeur MQL4 / MQL5 expérimenté pour créer un robot de trading automatique (Expert Advisor) performant et sécurisé. Validation de comptes Prop Firm capable de trader sur le forex et les matière première
I need a simple Expert Advisor for MT5 that trades based on RSI overbought/oversold levels. - Entry: Buy when RSI(14) < 30, Sell when RSI(14) > 70 - Exit: Take Profit and Stop Loss as adjustable input parameters (default 50/25 pips) - Position sizing: Risk 1% of account balance per trade, auto-calculated from stop-loss distance - Timeframe and currency pair: adjustable inputs, not hardcoded - Should include basic
1. Trading Instruments: - The robot should trade exclusively on the following currency pairs: - NZD/CHF - NZD/USD - GBP/USD 2. Trading Style: - The robot should implement a day trading strategy, focusing on short-term trades. 3. Risk Management: - Maximum drawdown percentage: 10%. - Stop loss settings: Adjustable based on volatility (suggested default: 30 pips). - Take profit settings: Adjustable

Informations sur le projet

Budget
30 - 40 USD