MT4 to MT5 code converter - page 53

jair soares rocha jr
19
jair soares rocha jr  

Hello Friends!!

Is it possible convert this mql4 file into mql5?

Tks!!

Files:
ADR.mq4 3 kb
adr.png 3 kb
Sergey Golubev
Moderator
119513
Sergey Golubev  
jair soares rocha jr:

Hello Friends!!

Is it possible convert this mql4 file into mql5?

Tks!!

I hope - sone will help on this thread.
If no one helps here so you may consider to use Freelance service for example.
Trading applications for MetaTrader 5 to order
Trading applications for MetaTrader 5 to order
  • www.mql5.com
Hello , can someone develop me an indicator that's capable of identifying trend & ranging markets in 5min Charts and also to scan strong breakout levels and draws resistance and support lines. The objective is to detect previous strong levels in the chart. Valid strong levels as I see them, should be: visible using line chart (High/low price...
Only Brave
10
Only Brave  

Hello Every one i am trying to convert indicator from MT4 to MT5 , to make the wick more visible and thick , i manage to redo it but i am facing this problem 

//+------------------------------------------------------------------+
//|                                                            d.mq5 |
//|                        Copyright 2020, MetaQuotes Software Corp. |
//|                                             https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2020, MetaQuotes Software Corp."
#property link      "https://www.mql5.com"
#property version   "1.00"

#property indicator_chart_window
#property  indicator_buffers 4
#property  indicator_plots   2
input color Bearish_Wick_Color = Black;         //+------Bearish_Wick_Color
input color Bullish_Wick_Color = Black;         //+------Bullish_Wick_Color
input int   Wick_Width  = 2;                    //+------Wick_Width

//+-------------//---- the declaration of the dynamic array ----\\--------+//

double ExtMapBuffer1[];   // Candle open   //0
double ExtMapBuffer2[];   // Candle high   //1
double ExtMapBuffer3[];   // Candle low    //2
double ExtMapBuffer4[];   // Candle close  //3

int ExtCountedBars=0;

//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
void OnInit()
  {
//--- indicator buffers mapping

   SetIndexBuffer(0,ExtMapBuffer1);
   SetIndexBuffer(1,ExtMapBuffer2);
   SetIndexBuffer(2,ExtMapBuffer3);
   SetIndexBuffer(3,ExtMapBuffer4);

//---- indicators plots parameters

   PlotIndexSetInteger(0,PLOT_DRAW_TYPE,DRAW_HISTOGRAM);
   PlotIndexSetInteger(1,PLOT_DRAW_TYPE,DRAW_HISTOGRAM);
   PlotIndexSetInteger(2,PLOT_DRAW_TYPE,DRAW_HISTOGRAM);
   PlotIndexSetInteger(3,PLOT_DRAW_TYPE,DRAW_HISTOGRAM);

//---- indicators plots parameters Width

   PlotIndexSetInteger(0,PLOT_LINE_WIDTH,0,Wick_Width);
   PlotIndexSetInteger(1,PLOT_LINE_WIDTH,0,Wick_Width);
   PlotIndexSetInteger(2,PLOT_LINE_WIDTH,0,Wick_Width);
   PlotIndexSetInteger(3,PLOT_LINE_WIDTH,0,Wick_Width);

//---- indicators plots parameters COLOR

   PlotIndexSetInteger(0,PLOT_LINE_COLOR,0,Bearish_Wick_Color);
   PlotIndexSetInteger(1,PLOT_LINE_COLOR,0,Bullish_Wick_Color);
   PlotIndexSetInteger(2,PLOT_LINE_COLOR,0,Bearish_Wick_Color);
   PlotIndexSetInteger(3,PLOT_LINE_COLOR,0,Bullish_Wick_Color);

//----

   PlotIndexSetInteger(0,PLOT_DRAW_BEGIN,10);
   PlotIndexSetInteger(1,PLOT_DRAW_BEGIN,10);
   PlotIndexSetInteger(2,PLOT_DRAW_BEGIN,10);
   PlotIndexSetInteger(3,PLOT_DRAW_BEGIN,10);

  }

//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int OnCalculate(const int rates_total,         // total number of bars on the current tick
                const int prev_calculated,     // number of calculated bars on the previous tick
                const datetime & time[],
                const double & open[],
                const double & high[],         // price array for the maximum price for the indicator calculation
                const double & low[],          // price array for the minimum price for the indicator calculation
                const double & close[],
                const long & tick_volume[],
                const long & volume[],
                const int & spread[])
  {

//--- checking the number of bars

   if(rates_total<=10)
      return(0);
  
//---- check for possible errors

   if(prev_calculated<0)
      return(-1);

//+------------------------------------------------------------------+     
   int pos=rates_total-prev_calculated-1;
   
   while(pos>=0)
     {
      if(open[pos]<close[pos])
        {
         ExtMapBuffer1[pos]=low[pos];
         ExtMapBuffer2[pos]=high[pos];
        }
      else
        {
         ExtMapBuffer1[pos]=high[pos];
         ExtMapBuffer2[pos]=low[pos];
        }
      ExtMapBuffer3[pos]=open[pos];
      ExtMapBuffer4[pos]=close[pos];
      pos--;
     }
//--- return value of prev_calculated for next call
   return(rates_total);
  }
dark_sam
30
dark_sam  

Hello,


Can help for this to MQ5 ?


Thank you
Files:
Sergey Golubev
Moderator
119513
Sergey Golubev  
dark_sam:

Hello,


Can help for this to MQ5 ?


Thank you
If no one helps on this thread so you may consider to use Freelance service for example.
Trading applications for MetaTrader 5 to order
Trading applications for MetaTrader 5 to order
  • www.mql5.com
Based on my requirement need help to create EA for MT4. My curruncy steanth is based on strategy. EA should run exclusively on each currency pair I want. I want source code also. Once deal confirmed I will explain my requirement Job to add new ATR based stop loss and take profit user inputs and calculations. Also add new dollar specific take...
Multivalve Multivalve
9
Multivalve Multivalve  
Greetings,I fail to convert mt4 indicators to mt5 can you please help
Sergey Golubev
Moderator
119513
Sergey Golubev  
Multivalve Multivalve:
Greetings,I fail to convert mt4 indicators to mt5 can you please help
You may find a help in Freelance service for example.
Trading applications for MetaTrader 5 to order
Trading applications for MetaTrader 5 to order
  • www.mql5.com
There is an indicator called "Compare"Simply , i need EA related to ""compare"" indicator , I need to do the following , compare the closed value with the previous closed value (For any interval) and chose (Optional), if it is lower then sell if it is higher then buy ,or if it is lower then buy and if it is higher then sell. and : 1-SL and TP...
Heleen Pretorius
9
Heleen Pretorius  

Good day 

Can anyone please assist to convert these indicator files to from .ex4 to be used in Metatrader 5. (MQL5)

You assistance will be greatly appreciated.

<ex4 files deleted>
Sergey Golubev
Moderator
119513
Sergey Golubev  
Heleen Pretorius:

Good day 

Can anyone please assist to convert these indicator files to from .ex4 to be used in Metatrader 5. (MQL5)

You assistance will be greatly appreciated.

1. It is necessary to have source codes to convert.

2. Converting = coding = programming = job.

Forum on trading, automated trading systems and testing trading strategies

Please fix this indicator or EA

Sergey Golubev, 2017.03.24 07:23

And this is my other suggestion (which came from tsd 2010 and from tsd 2008):

----------------

Just to remind:

Coders (any coder) are coding for free:

  • if it is interesting for them personally, or
  • if it is interesting for many members of this forum.

and Freelance section of the forum should be used in most of the cases.


chincent
9
chincent  
CONVERT VERTEX INDICATOR TO MT5


HI, please I will so much appreciate if a good Samaritan here will help convert this Vertex indicator to mt5. Please help, many thanks to you in advance.