Posted on December 9th, 2015
Getting started in custom indicators is a great starting point for your mql development. I’m going to start these tutorials in mql4 and make mirror tutorials for mql5. But since mql4 is the most widely used and most brokers might not support mql5 yet we’re going to start there.
If your version of metatrader is on mql4 when you create your new custom indicator in metaeditor you will already have a template setup for you. If you have mql5 you can simply create the indicator , delete the template and insert your own mql4 template. Here is the bare bones functions we need in any mql4 indicator. I’ve commented most of the code below but lets go over it in some detail as this is the most important step to understanding how metatrader functions.