How do I copy codes

I am very new at programming so this question is probably a very simple one for most of you.

I use MetaTrader5 and have found a code for an EA that I wish to use here:
w w w. molanis.com/images/stories/molanis/Downloads/MA-multi_timeframe-EA.mol5

I have tried to copy it into the MetaEditor, as there is some small changes I would like to do before I start using it. My problem is that I can not copy it into the MetaEditor the correct way.

When I try to open an empty template it looks like this:


Where do I paste it in, on the template? If I delete what is allready written and then copy the code it doesn’t work.

I thank you for all the advise I can get:)

This is the very basic expert advisor template and contains only needed [B]system functions[/B] to operate.
OnInit(), OnTick() and OnDeInit() are necessary functions for each expert advisor.

Everything inside OnInit() will be executed when the expert advisor is started.
Everything inside OnDeInit will be executed when the expert advisor is closed (removed from chart)
Everything inside OnTick is executed at each tick, so this is the function where the expert advisor “lives”.

You can copy code, but… you need to know what this code can do, and that is even much more difficult than understanding these 3 basic functions here. You have to read tons of documentation, programming is not so easy.

Start here: MQL4 Documentation

If you have the complete code for the EA you can just delete all the text in the template and paste in the new code. Many EAs have a .dll file that does the real work of the program if you don’t have that or you have it but no license to use the EA well you need to buy it.
I am not sure where you got the code you have or if has a license that will allow you to use and modify it. I looked for your link I could not find the code. I did find some example EA’s on that site but they are in the propitiatory format of the commercial EA builder for sale on the site. Buy the product or use a free EA builder to make what you want. look for post by View Profile: JDeel - BabyPips.com Forex Forum he is the creator of a great free EA builder. Or you could just take the time and learn to code yourself.