error need help - page 2

 

This Indicator is not Showing on my FXDD MT4 platform. When I compiled this indicator I got an error - "'return' - expressions are not allowed on a global scope" and a warning as - "not all control paths return a value"

When I commented out the Return statement on line 152 by placing a // before return (0); I was able to compile it and attach it to chart by updating 240 as Timeframe, It did get attached to the chart but displayed no symbols on chart.

The working symbols that it has to display on the chart are as attached in Working Indicator file. The symbols that needs to be displayed on Chart is circled in Red.

Please help.

 
sandy82k: I got an error - "'return' - expressions are not allowed on a global scope" and a warning as - "not all control paths return a value"
int init()
  {
   ⋮
   IndicatorShortName("3L_ZZ_Semafor ["+TimeFrameStr+"]");
                                           ««««« No return value for init
  }                                        ««««« End of init
//----
   return(0);                              ««««« Code on global scope.