Modify MT4 TD sequence to MT5 TD sequence

MQL5 Indicateurs

Tâche terminée

Temps d'exécution 4 minutes
Commentaires de l'employé
Thank you for this job!
Commentaires du client
速度快 服务好 非常不错!

Spécifications

//+------------------------------------------------------------------+
//| TD Sequential.mq4                                                |
//| Copyright ?2004, MetaQuotes Software Corp.                      |
//| http://www.metaquotes.net                                        |
//+------------------------------------------------------------------+
#property copyright "James OBrien"
#property link "http://www.metaquotes.net"
//----
#property indicator_chart_window
#property indicator_buffers 1
#property indicator_color1 LimeGreen
//#property indicator_color2 Red
//---- input parameters
//int shift=0;
int i;
int num=0;
int num1=0;
string textVar;
//---- buffers
double ExtMapBuffer1[];
//double ExtMapBuffer2[];
//double b4plusdi,b4minusdi,nowplusdi,nowminusdi;
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
//---- indicators
   SetIndexStyle(0,DRAW_ARROW);
   SetIndexArrow(0,159);
   SetIndexBuffer(0, ExtMapBuffer1);
/*
SetIndexStyle(1,DRAW_ARROW,EMPTY);
SetIndexArrow(1,234);
SetIndexBuffer(1, ExtMapBuffer2);
*/
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custor indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
//---- TODO: add your code here
   int limit;
   limit=1500;
   for(int i=limit; i>=0; i--)
     {
      ObjectDelete(""+i);
     }
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
   int limit;
   int counted_bars=IndicatorCounted();
//---- check for possible errors
   if(counted_bars<0) return(-1);
//---- last counted bar will be recounted
   if(counted_bars>0) counted_bars--;
   limit=1500-counted_bars;
//---- macd counted in the 1-st buffer
   for(int i=limit; i>=0; i--)
     {
      if(Close[i+1]<Close[i+5])num=num + 1;
      else num=0;
        if (num > 0 && num < 10) 
        {
         textVar=num;
         ObjectCreate(""+i, OBJ_TEXT, 0, Time[i+1],Low[i+1]-5*Point );
         ObjectSetText(""+i, ""+DoubleToStr(num,0), 10, "Arial", Red);
        }
        if (num==9) 
        {
         ObjectCreate(""+i, OBJ_TEXT, 0, Time[i+1],Low[i+1]-5*Point );
         ObjectSetText(""+i, ""+DoubleToStr(num,0), 16, "Arial", Red);
        }
      else if((Close[i+1]<Close[i+5])&& num>=10)
           {
            ObjectCreate(""+i, OBJ_TEXT, 0, Time[i+1],Low[i+1]-5*Point );
            ObjectSetText(""+i, ""+DoubleToStr(num,0), 10, "Arial", Orange);
           }
      if(Close[i+1]>Close[i+5]) num1=num1 + 1;
      else num1=0;
//----
      if (num1 > 0 && num1 < 10)
        {
         textVar=num1;
         ObjectCreate(""+i, OBJ_TEXT, 0, Time[i+1],High[i+1]+10*Point );
         ObjectSetText(""+i, ""+DoubleToStr(num1,0), 10, "Arial", RoyalBlue);
        }
        if (num1==9) 
        {
         ObjectCreate(""+i, OBJ_TEXT, 0, Time[i+1],High[i+1]+10*Point );
         ObjectSetText(""+i, ""+DoubleToStr(num1,0), 16, "Arial", RoyalBlue);
        }
      else if((Close[i+1]>Close[i+5])&& num1>=10)
           {
            ObjectCreate(""+i, OBJ_TEXT, 0, Time[i+1],High[i+1]+10*Point );
            ObjectSetText(""+i, ""+DoubleToStr(num1,0), 10, "Arial", LightSkyBlue);
           }
     }
//----
   return(0);
  }
//+------------------------------------------------------------------+

Répondu

1
Développeur 1
Évaluation
(192)
Projets
232
30%
Arbitrage
1
100% / 0%
En retard
9
4%
Gratuit
2
Développeur 2
Évaluation
(137)
Projets
167
35%
Arbitrage
11
91% / 0%
En retard
0
Gratuit
3
Développeur 3
Évaluation
(336)
Projets
620
38%
Arbitrage
39
23% / 64%
En retard
93
15%
Gratuit
Commandes similaires
Hello Guys! I want to modify/fix the indicator that uses sequential type of entries (it counts from 1 to 9) and if the conditions are met it provides an arrow (signal) with alert. The problem is that, sometimes (for unknown for me reasons) it repaints arrow signal. Like on the picture: Signal 1 - everything is correct. The signal is created. Signal 2 - everything is correct. The signal is created. Signal 3 -
I have the source code for a think or swim indicator. I would like someone procient in converting TOS code for use in MT5. Good communication skills in English is preferred. A detailed description of the indicator can be found here: https://intercom.help/simpler-trading/en/articles/6003945-about-quant-pivots
Hi, I am having trouble with my EA developer for me . i have not able to see him online to communicating with me . The EA is based on a strategy from and indicator signal . The error i get from the EA is ............ indicator is too slow, 2078 ms. rewrite the indicator, please, i need anyone who can fix it for me
I 'm looking for a bot to take trades . I have questions 1 . What is the win rate? It could be ! 2 . Any guarantee if the bot does not take a win trade
I am looking to have a tool developed that can connect and copy trade from Quantower on machine A to Quantower on machine B. I am aware that Quantower has a built in trade copier but I need to get the trades over to a different instance of QT on a separate machine. Is this possible and something you could help with? All orders for entry and exit would be market orders so do not need any targets or stop losses copied
I'm looking for professional developer for my project.I'm having indicators source code , i want to convert it into MT4 EA .it is having some basic inputs such as lot size,TP,SL,B.E,trailing,News filter features along with some special inputs.detailed strategy will be discussed in chat room.i prefer Indian developers who speaks hindi
Modify EA 30 - 50 USD
I am looking to add an extra order in the opposite direction to the current settings for an EA. entry settings should be cloned from the current EA, and the user should be able to edit these settings, in the same way as the user is currently able to edit the normal EA settings. for this project I would like to only clone the settings for "initial trade only" trading mode in the current EA, and also only allow
I am looking to have a tool developed that can connect and copy trade from Quantower on machine A to Quantower on machine B. I am aware that Quantower has a built in trade copier but I need to get the trades over to a different instance of QT on a separate machine. Is this possible and something you could help with? All orders for entry and exit would be market orders so do not need any targets or stop losses copied
MT4 INDICATOR 30 - 35 USD
Looking for a proven MT4 indicator that is highly consistent and profitable preferably that you have developed and are able to share with me. If you have some indicator that is valuable for making consistent profit please bid and show me trading history from using it in your MT4 account. Thanks
Hello great developer, I am a trader and I have an existing indicator in pinescript , but I need an expert to translate the specific concepts and functions of Pine Script to MQL4. I have many information to share with you in the comment section, so please if you are capable of handling this project successfully please apply to this order, looking forward to your response

Informations sur le projet

Budget
30+ USD
Pour le développeur
27 USD