This is a repeat of a post originally written for another site where we maintained an affiliation. Since then our arrangements have changed and the original post is no longer available.
Rather than reproduce the original article I have included the youtube video here.
The purpose of this is to lead you through the basics of creating a very simple indicate which I have called the Moving Average Ribbon. You may be able to find variations of this indicator in other places but this is the full source code and the associated video will explain the coding techniques used.
You can download the source code used in the video from GitHub
https://github.com/OrchardForexTutorials/140409_metatrader_indicator_step_by_step