How to upgrade indicators for Build 600+?

 

What are the things need to be changed for making indicators compatible with Build 600+ ?

If there any link of the detail discussion please give it.

Thanks

 
try to compile it in the new compiler it will show you anything that needs to be changed/fixed.
 
SDC:
try to compile it in the new compiler it will show you anything that needs to be changed/fixed.


Thanks for the reply.

It's showing no Error but warnings.

 
Arav007:


Thanks for the reply.

It's showing no Error but warnings.


Line 143, you have a void function returning a value

Probably it has return(0);

Just delete the (0)

But make sure that any call to the function does not expect a return

It is the same with void functions at lines 249 and 306.

The one at line 360 is the opposite.

Most likely, the code has

int Start()

{

//

//

}

It should have return(0) before the final }

 
GumRai:

The one at line 360 is the opposite.
https://www.mql5.com/en/forum/150866
 
GumRai:


Line 143, you have a void function returning a value

Probably it has return(0);

Just delete the (0)

But make sure that any call to the function does not expect a return

It is the same with void functions at lines 249 and 306.

The one at line 360 is the opposite.

Most likely, the code has

int Start()

{

//

//

}

It should have return(0) before the final }


Thanks Gumrai.
I am seeing that the 'Void' function is returning -1.

And the 360 one has return type 'Srting'.

Actually this is the infamous Codersguru's 'xpMA' indi.

After compiling it's working on build 610 but with limitation.

It's working for upto the MA type 5. After it, it's not working though all the necessary indicators are placed in the MQL4 Data folder.

Files:
xpma.mq4  13 kb
 
Arav007:


It's working for upto the MA type 5.


above type 5 it's been using custom indicators
either you dont have it or you need the make adjustments for B600 >
 
qjol:

above type 5 it's been using custom indicators
either you dont have it or you need the make adjustments for B600 >


I have them all as I got them with the Main indicators pack.

And I have compiled them in Build 610 and got no Warning or Error.

So a bit confused.

Files:
xpma_2.zip  10 kb
 
I am seeing that the 'Void' function is returning -1.
We use void for a one way function only. Using other than void function if we wants something in return ..
 
Arav007:


And I have compiled them in Build 610 and got no Warning or Error.



try to put one of the indicators on a chart for instance the "T3MA" you will see that the values = 0
 
qjol:

try to put one of the indicators on a chart for instance the "T3MA" you will see that the values = 0


Yes, you are right. But why?

I have compiled them as SDC said and found '0' Error or Warning.

Then what can I do to upgrade them to B-600+ ?

Reason: