MT4 to MT5 code converter - page 54

 
Hi,
I have an mql4 indicator, and I want to use it in the MT5 system. This code is written by Jason Robinson and show buy/sell signals. Please assist in converting these indicator from mql4 to be used in MT5 (MQL5).
If you know a better indicator than the one introduced that can be used in the MT5 system, please present it.
Sincerely,
Files:
MT4.mq4  15 kb
 
BOforex:

is this the same indi?

see attachment (hope it goes through)

my guy thank you for sharing this mql4 been looking for it !
 

I manage to use the script in post #1  to convert a MT4 indicator to MT5

but by compiling I face so many such ambiguous call  errors

'ObjectsDeleteAll' - ambiguous call to overloaded function mq4_Breakout_PANCA_EAGLE ASIA.mq5 68 5

Could someone help me how to fix these errors   

'mq4_Breakout_PANCA_EAGLE ASIA.mq5'     mq4_Breakout_PANCA_EAGLE ASIA.mq5       1       1
'mt4accountinfo.mqh'    mt4accountinfo.mqh      1       1
'mt4string.mqh' mt4string.mqh   1       1
'mt4datetime.mqh'       mt4datetime.mqh 1       1
'mt4objects_1.mqh'      mt4objects_1.mqh        1       1
'mt4timeseries_2.mqh'   mt4timeseries_2.mqh     1       1
OnDeinit function declared with wrong type or/and parameters    mq4_Breakout_PANCA_EAGLE ASIA.mq5       51      6
no indicator plot defined for indicator         0       0
possible loss of data due to type conversion    mt4accountinfo.mqh      41      3
possible loss of data due to type conversion    mt4accountinfo.mqh      53      3
possible loss of data due to type conversion    mt4accountinfo.mqh      69      3
possible loss of data due to type conversion    mt4objects_1.mqh        31      4
possible loss of data due to type conversion    mt4objects_1.mqh        61      44
expression is always 'true'     mt4objects_1.mqh        76      24
possible loss of data due to type conversion    mt4objects_1.mqh        89      4
possible loss of data due to type conversion    mt4timeseries_2.mqh     98      59
'ObjectsDeleteAll' - ambiguous call to overloaded function      mq4_Breakout_PANCA_EAGLE ASIA.mq5       68      5
could be one of 3 function(s)   mq4_Breakout_PANCA_EAGLE ASIA.mq5       68      5
   built-in: int ObjectsDeleteAll(long,int,int) mq4_Breakout_PANCA_EAGLE ASIA.mq5       68      5
   built-in: int ObjectsDeleteAll(long,const string,int,int)    mq4_Breakout_PANCA_EAGLE ASIA.mq5       68      5
   int ObjectsDeleteAll(int,int)        mt4objects_1.mqh        55      5
'Highest' - undeclared identifier       mq4_Breakout_PANCA_EAGLE ASIA.mq5       123     21
'Highest' - some operator expected      mq4_Breakout_PANCA_EAGLE ASIA.mq5       123     21
possible use of uninitialized variable 'High'   mq4_Breakout_PANCA_EAGLE ASIA.mq5       123     16
',' - unexpected token  mq4_Breakout_PANCA_EAGLE ASIA.mq5       123     33
expression has no effect        mq4_Breakout_PANCA_EAGLE ASIA.mq5       123     29
',' - unexpected token  mq4_Breakout_PANCA_EAGLE ASIA.mq5       123     36
expression has no effect        mq4_Breakout_PANCA_EAGLE ASIA.mq5       123     35
',' - unexpected token  mq4_Breakout_PANCA_EAGLE ASIA.mq5       123     47
expression has no effect        mq4_Breakout_PANCA_EAGLE ASIA.mq5       123     38
',' - unexpected token  mq4_Breakout_PANCA_EAGLE ASIA.mq5       123     66
expression has no effect        mq4_Breakout_PANCA_EAGLE ASIA.mq5       123     58
')' - unexpected token  mq4_Breakout_PANCA_EAGLE ASIA.mq5       123     75
expression has no effect        mq4_Breakout_PANCA_EAGLE ASIA.mq5       123     68
']' - unexpected token  mq4_Breakout_PANCA_EAGLE ASIA.mq5       123     76
'Lowest' - undeclared identifier        mq4_Breakout_PANCA_EAGLE ASIA.mq5       124     20
'Lowest' - some operator expected       mq4_Breakout_PANCA_EAGLE ASIA.mq5       124     20
possible use of uninitialized variable 'Low'    mq4_Breakout_PANCA_EAGLE ASIA.mq5       124     15
',' - unexpected token  mq4_Breakout_PANCA_EAGLE ASIA.mq5       124     32
expression has no effect        mq4_Breakout_PANCA_EAGLE ASIA.mq5       124     28
',' - unexpected token  mq4_Breakout_PANCA_EAGLE ASIA.mq5       124     35
expression has no effect        mq4_Breakout_PANCA_EAGLE ASIA.mq5       124     34
',' - unexpected token  mq4_Breakout_PANCA_EAGLE ASIA.mq5       124     46
expression has no effect        mq4_Breakout_PANCA_EAGLE ASIA.mq5       124     37
',' - unexpected token  mq4_Breakout_PANCA_EAGLE ASIA.mq5       124     65
expression has no effect        mq4_Breakout_PANCA_EAGLE ASIA.mq5       124     57
')' - unexpected token  mq4_Breakout_PANCA_EAGLE ASIA.mq5       124     74
expression has no effect        mq4_Breakout_PANCA_EAGLE ASIA.mq5       124     67
']' - unexpected token  mq4_Breakout_PANCA_EAGLE ASIA.mq5       124     75
'OBJPROP_TIME1' - undeclared identifier mq4_Breakout_PANCA_EAGLE ASIA.mq5       128     23
'OBJPROP_TIME1' - cannot convert enum   mq4_Breakout_PANCA_EAGLE ASIA.mq5       128     23
'OBJPROP_TIME2' - undeclared identifier mq4_Breakout_PANCA_EAGLE ASIA.mq5       129     23
'OBJPROP_TIME2' - cannot convert enum   mq4_Breakout_PANCA_EAGLE ASIA.mq5       129     23
'OBJPROP_PRICE1' - undeclared identifier        mq4_Breakout_PANCA_EAGLE ASIA.mq5       133     27
'OBJPROP_PRICE1' - cannot convert enum  mq4_Breakout_PANCA_EAGLE ASIA.mq5       133     27
'OBJPROP_PRICE2' - undeclared identifier        mq4_Breakout_PANCA_EAGLE ASIA.mq5       134     27
'OBJPROP_PRICE2' - cannot convert enum  mq4_Breakout_PANCA_EAGLE ASIA.mq5       134     27
'True' - undeclared identifier  mq4_Breakout_PANCA_EAGLE ASIA.mq5       137     41
'OBJPROP_PRICE1' - undeclared identifier        mq4_Breakout_PANCA_EAGLE ASIA.mq5       142     27
'OBJPROP_PRICE1' - cannot convert enum  mq4_Breakout_PANCA_EAGLE ASIA.mq5       142     27
'OBJPROP_PRICE2' - undeclared identifier        mq4_Breakout_PANCA_EAGLE ASIA.mq5       143     27
')' - open parenthesis expected mq4_Breakout_PANCA_EAGLE ASIA.mq5       143     69
'OBJPROP_PRICE2' - cannot convert enum  mq4_Breakout_PANCA_EAGLE ASIA.mq5       143     27
'True' - undeclared identifier  mq4_Breakout_PANCA_EAGLE ASIA.mq5       146     41
'OBJPROP_PRICE1' - undeclared identifier        mq4_Breakout_PANCA_EAGLE ASIA.mq5       151     27
')' - open parenthesis expected mq4_Breakout_PANCA_EAGLE ASIA.mq5       151     68
'OBJPROP_PRICE1' - cannot convert enum  mq4_Breakout_PANCA_EAGLE ASIA.mq5       151     27
'OBJPROP_PRICE2' - undeclared identifier        mq4_Breakout_PANCA_EAGLE ASIA.mq5       152     27
'OBJPROP_PRICE2' - cannot convert enum  mq4_Breakout_PANCA_EAGLE ASIA.mq5       152     27
'True' - undeclared identifier  mq4_Breakout_PANCA_EAGLE ASIA.mq5       155     41
'OBJPROP_PRICE1' - undeclared identifier        mq4_Breakout_PANCA_EAGLE ASIA.mq5       160     27
')' - open parenthesis expected mq4_Breakout_PANCA_EAGLE ASIA.mq5       160     69
'OBJPROP_PRICE1' - cannot convert enum  mq4_Breakout_PANCA_EAGLE ASIA.mq5       160     27
'OBJPROP_PRICE2' - undeclared identifier        mq4_Breakout_PANCA_EAGLE ASIA.mq5       161     27
')' - open parenthesis expected mq4_Breakout_PANCA_EAGLE ASIA.mq5       161     68
'OBJPROP_PRICE2' - cannot convert enum  mq4_Breakout_PANCA_EAGLE ASIA.mq5       161     27
'False' - undeclared identifier mq4_Breakout_PANCA_EAGLE ASIA.mq5       165     41
'High: ' - variable expected    mq4_Breakout_PANCA_EAGLE ASIA.mq5       167     43
implicit conversion from 'number' to 'string'   mq4_Breakout_PANCA_EAGLE ASIA.mq5       167     25
implicit conversion from 'number' to 'string'   mq4_Breakout_PANCA_EAGLE ASIA.mq5       197     23
implicit conversion from 'number' to 'string'   mq4_Breakout_PANCA_EAGLE ASIA.mq5       197     41
implicit conversion from 'number' to 'string'   mq4_Breakout_PANCA_EAGLE ASIA.mq5       197     60
implicit conversion from 'number' to 'string'   mq4_Breakout_PANCA_EAGLE ASIA.mq5       197     77
implicit conversion from 'number' to 'string'   mq4_Breakout_PANCA_EAGLE ASIA.mq5       197     95
46 errors, 28 warnings          47      29
Documentation on MQL5: Constants, Enumerations and Structures / Named Constants / Predefined Macro Substitutions
Documentation on MQL5: Constants, Enumerations and Structures / Named Constants / Predefined Macro Substitutions
  • www.mql5.com
//| Expert initialization function                                   | //| Expert deinitialization function                                 | //| Expert tick function                                             | //| test1                                                            |...
 
Mladen Rakic:

Why don't you post what you have made so far?

here is the script I got it rewriten toMT5. I think a experienced coder can help with compiling easily, as errors seems to appear because command calling from 2 different libraries.

Because in the source code there are #include ... So we should copy the incude files in MT5/MQL5/Include too, but with this action ambigous objects issues come up

 
and could you change this one to MT5 please
 

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.




 

Thanks God Bless you. I try it but i could not use the indicator. please kindly help me i attached the file here

<Decompiled code removed>

 
OBAFEMI BADEJO:

<Decompiled code removed>

Do not post decompiled code.

Do so again and you can expect to be banned.

 
Deibys marrero:
hello I find myself in the need to ask for help since I do not know anything about programming I would like if someone could help me it is a short code I wanted to know who could give me a hand to pass it to mq5 thank you very much who can help me

Just my standard reply:

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.




Reason: