Smiley face

 
Hi,

Is there any way my init procedure can tell MetaTrader that the initialization failed, such that the smiley face will not appear?

Thanks,
Kevin
 
The smiley or non smiley face does not indicate if EA is good or bad compilation. The face indicates that an EA is attached to chart. If not smiley face, you need to click "Expert Advisor" in upper MT4 toolbar. And, to assure EA trades, press F7 and then under the "common" tab, check "allow live trading" box.

More info in the MT4 Platform Help section - User Interface/Toolbars/Standard
 
Hi, thanks for the info...

To clarify my problem, I know the smiley doesn't indicate whether there were compilation errors. I'm not referring to compilation errors.

The smiley indicates that the expert attached to the chart - this implies successfully. I want to be able to prevent the smiley face from showing up if my initialization code detects that there is some reason why it cannot operate. Otherwise, if the smiley remains, it will incorrectly imply that the expert is operating.

Thanks,
Kevin
Reason: