How to convert a text file (expert) into mq4 file?

 
I have a text file of an expert - how would I make this an executable expert mq4 file?
 
Save it as filename.mq4 instead of filename.txt
Put it in /experts folder
Compile it
 

For the case of using the text file I did this for a .set file but I believe it will work also for this case

1. Save a preset file of any of the indicators installed on your meta trader.

2. Open the metatrader script editor and drag this preset file there. It will open as a .mq4 file

3. Now, select whatever content is in this preset file and delete it. Copy the content in the text file and past it in this file.

4. Compile the new .mq4 and use it if it is usable.