Converting old custom indicators to new MQL4 language. - I need help pls - page 2

 
PipiBrasci:

Thansk Werner for the kindness and time to help me out. Much appreciated. Thank you so much but it just has one more error and i dont want to make a mess of it. pls.

Now i removed that line 68 as it sems to be a duplicate and no more errors but surprisingly the indicator doesn't show up on chart. weird. What must have gone wrong??

 

Hi,

there are two ways to solve the problem:

1. delete the "int"-declaration in the second for-loop:

        bool up=true;
        for(i=limit-2; i>=0; i--)
        {


2. the clean way :-) Insert "#property strict" at the top section of the File:


#property version   "1.00"
#property strict


Hope, this will help you.

Best regards

 
werner.klehr:

Hi,

there are two ways to solve the problem:

1. delete the "int"-declaration in the second for-loop:


2. the clean way :-) Insert "#property strict" at the top section of the File:



Hope, this will help you.

Best regards

Thanks Klehr. But it didnt. I tried it all. im just frustrated. id just wished you could have tested it also to see if it works. Indicator refused to appear on chart.

Reason: