I have a parenthesis error. I still can't find it. Anyone want to teach? - page 3

 
Kutluhan Yesilkaya #:

1) I closed the parenthesis after the return. It did not happen.

2) I closed the parenthesis before return. It did not happen.

3) I closed the parenthesis after the signal. It didn't happen again.

How should I do?

1. Put the line Signal(); into the first Ontic function.

2. delete the 2nd Ontick()

{

}

omg. if you cant do those 2 steps, then buy a effing coder.

 
Revo Trades #:

1. Put the line Signal(); into the first Ontic function.

2. delete the 2nd Ontick()

{

}

omg. if you cant do those 2 steps, then buy a effing coder.

Thank you very much for your help. I did what you said. Again it gave 2 bracket errors. I am attaching the file

Files:
sadeceinput.mq5  15 kb
 
Kutluhan Yesilkaya #: Thank you very much for your help. I did what you said. Again it gave 2 bracket errors. I am attaching the file

You didn't do anything. Your code is still the same as #13.

 
William Roeder #:

You didn't do anything. Your code is still the same as #13.

First of all, thank you for your interest. Since there are 2 of the same file, I discarded the old one. I edited it for you but there are 2 brackets eror.

Files:
sadeceinput.mq5  15 kb
 
Kutluhan Yesilkaya #:I discarded the old one. I edited it for you but there are 2 brackets eror.
 void OnTick()
  {                                                             // Open 1
// Signal
   Signal(); 
   
   double main[],signal[];
   ArraySetAsSeries(main,true);
   ArraySetAsSeries(signal,true);
   int start_pos=0,count=3;
   if(!iGetArray(handle_iMACD,MAIN_LINE,start_pos,count,main) ||
      !iGetArray(handle_iMACD,SIGNAL_LINE,start_pos,count,signal)) 
      
     {                                                          // Open 2
      return;
     }                                                          // Close 2
     

                                                                // Close 1 ??

//-----------------------------------------------------------------------------------------------------------------------------------------------
// Signal
void Signal()
  {                                                             // Open 1 ??
 
William Roeder #:

I know the branches are too much. I closed after the signal. It did not happen. I turned off after return, it did not again.

 
William Roeder #:

This is the last one. I did what you said. There are still errors. I need help. I'm about to go crazy.

Files:
sadeceinput.mq5  15 kb
Reason: