There is something new with the version 2.2b : my terminal closes automatically after a few minutes each time I put the EA on a chart…
Do you have opened charts with other EAs on terminal? Prabobly it’s a problem with MT4 terminal. I had that problem before, and I solved it.
Try to reset chart using xml files on profile folder. You can use Notepad++ or default Notepad form Windows.
AFTER 1st STEP CLOSE MT4
Edit all charts, After save all, open MT4 again, charts will be reseted. Check if you can add Midnighht EA to new chart