Please help me check my coding , it's not working . - page 4

Tjipke de Vries
6856
Tjipke de Vries  
juniorlcq:
read the link what cycle do you wanna break ??
Simon Gniadkowski
17400
Simon Gniadkowski  
juniorlcq:


I'm sorry still don't get it ........

You need to read the Book if you don't understand about function return values and how to use them . . .

juniorlcq:


The Symbol to Emblem still not working :(

Show your current code, and please fit it to the page so I don't have to keep editing it for you . . .
Simon Gniadkowski
17400
Simon Gniadkowski  
juniorlcq:

How do I solve this break issue ???

Easy . . .

 else
            {
        //       break ;
            }
Simon Gniadkowski
17400
Simon Gniadkowski  
juniorlcq:

This is the current one, I've check everything else is fine ( I guess )

I edited your code again to stop it making the page unusably wide . . . please do not post your code like that again, I already asked you to fix it once.

Your last remaining compile issue is the break . . . what is it meant to achieve ?
[Deleted]  
RaptorUK:

Easy . . .


If I add //, then I'm not using the break function at all isn't it ????
Simon Gniadkowski
17400
Simon Gniadkowski  
juniorlcq:

If I add //, then I'm not using the break function at all isn't it ????
What is the break meant to be doing for you ? if we don't understand what you are trying to do it's hard to tell you how to do it correctly . . . the break is certainly wrong.
[Deleted]  
RaptorUK:
What is the break meant to be doing for you ? if we don't understand what you are trying to do it's hard to tell you how to do it correctly . . . the break is certainly wrong.


Break the sub function if there is no error in it ...
Simon Gniadkowski
17400
Simon Gniadkowski  
juniorlcq:

Break the sub function if there is no error in it ...

OK Why not simply . . .

return(0);

. . . ?

okwh
1646
okwh  

so many answers?!

codes! forum shoude accept those as chars.

yes, all functions should definded outside start function.

//+------------------------------------------------------------------+
   int start()
   {
   
      if ( IsConnected() == False )
      {
         Alert ( " Please ensure that the server is connected properly !!! " ) ;
      }
      
      
      for ( int x = 0 ; x < TotalPairs ; x++ )
      {
         iBars ( MajorPairs[x] , PERIOD_M1   ) ;
         iBars ( MajorPairs[x] , PERIOD_M5   ) ;
         iBars ( MajorPairs[x] , PERIOD_M15  ) ;
         iBars ( MajorPairs[x] , PERIOD_M30  ) ;
         iBars ( MajorPairs[x] , PERIOD_H1   ) ;
         iBars ( MajorPairs[x] , PERIOD_H4   ) ;
         iBars ( MajorPairs[x] , PERIOD_D1   ) ;
         iBars ( MajorPairs[x] , PERIOD_W1   ) ;
         iBars ( MajorPairs[x] , PERIOD_MN1  ) ;
      }
      
      
            ProcessDaily   ( PERIOD_D1 ) ;
            ProcessWeekly  ( PERIOD_W1 ) ;
            ProcessMonthly ( PERIOD_MN1 ) ;
   
            Alert ( " Update completed successfully :) !!! " ) ;

   return(0) ;
   }
okwh
1646
okwh  
 else
            {
               break ;
            }

such break does not has any effect !, so you can delete it .