Modify MT4 TD sequence to MT5 TD sequence

MQL5 지표

작업 종료됨

실행 시간 4 분
피고용인의 피드백
Thank you for this job!
고객의 피드백
速度快 服务好 非常不错!

명시

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

응답함

1
개발자 1
등급
(192)
프로젝트
232
30%
중재
1
100% / 0%
기한 초과
9
4%
무료
2
개발자 2
등급
(137)
프로젝트
167
35%
중재
11
91% / 0%
기한 초과
0
무료
3
개발자 3
등급
(336)
프로젝트
620
38%
중재
39
23% / 64%
기한 초과
93
15%
무료
비슷한 주문
Hello I'm in need of a developer who can modify only few items from my MT5 EA. Please take a look on the requirements below:  EA must force to close single trades at 0.1 dollars : True/False [value to change]  Sell break-even point has a bug  Sell trail stop has a bug N.B. Source code is available
Hello, I have an already working indicator on metatrader 4 but I want to convert it into tradingview pinescript and I need a developer that can help me to get this done and make it to work perfectly
I need to modify an existing deriv.com bot. Need to modify the money management and accuracy of taking trades, need to upgrade detecting of price when it's auto trading. need good results
I want an indicator based on two candles , once first candle is printed. Second candle must open and not trade above/below 50% of first candle(fully candle including highs and lows) , but it must trade below/above wick and close back inside first candle then give signal to buy or sell. Signal can be printed anywhere on chart but I don't want arrows on candles. Must be able to give alert via mobile phone
Hello, I have an already working indicator on metatrader 4 but I want to convert it into tradingview pinescript and I need a developer that can help me to get this done and make it to work perfectly
Conf. Prazo ZIGZAG: Exemplo “M5” ----------------------------------------------- % de Sensibilidade em Ziguezague: Exemplo 50% Sensibilidade de fuga do Ziguezague %: Exemplo' 75% Ziguezague normal preço fecha abaixo dos 50% ele fixa. Fuga do ziguezague quando 50% passa pelo último fundo ou topo. nesse exemplo o zigzague aberto passou o 50% do ultimo fundo então quando ele retorna e fecha acinma do 75% ele fixa. ele
I am looking for a unique indicator that incorporates the principles of specific indicators found on TradingView. I will provide a list of these indicators so that you can explore them on TradingView and understand their functionality. 1. Ppsignal Super Hull MA Cross V3 with alert Ppsignal01 2. Volume-based Support & Resistance Zones tommyf001 3. Breakout finder LonesomeThe 4. Hama Candles
Hello developer Am looking for scanner of mt5 when the orange dot come I want scanner to give buy signal on that script and just beside it should show the number of candle the signal have came vise versa for sell . Here is image for understanding https://prnt.sc/sSIHDwGUWw9L&nbsp ; And it should have option to disable this option of counting candle . And i can make a list of symbol which all symbol I want to scan
In an existing EA (MT4) I need to insert a new feature and delete a couple of un-utilised features. Please let me know if anyone can do the job. Thanks
Hello I have this MT4 indicator is is possible to convert to trading view indicator. I have pdf for strategy as well if needed, You must make sure you are an expert in this

프로젝트 정보

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