I'm new - why no init() in the sample EA's?

 

Hello,

I am just getting started learning to program in mql4. Part of my study is to examine other code for clues.

I have been looking into the sample EA's that come with MT and I do not see the functions init() and deinit() in them.

Are these functions optional then?

- Rad

 
fascoe1261 wrote >>

Hello,

I am just getting started learning to program in mql4. Part of my study is to examine other code for clues.

I have been looking into the sample EA's that come with MT and I do not see the functions init() and deinit() in them.

Are these functions optional then?

- Rad

Yes, they are optional. If you need the functionality of init and deinit then simply add them.

-mt