You need first to make sure that you have ticked the correct boxes in the Expert Advisor Tab. You need to go to Tools → Options → Experts tab and make sure that the correct boxes are selected. You need also to make sure that the Expert Advisor button on the main toolbar is pressed.