Page 1 of 1

How to Make a 2 Color Indicator

Posted: Sun Jul 31, 2022 12:12 am
by Banzai


How to make a 2 colour indicator for MT4

Part 2 in a series on writing indicators beginning with the basics. This part covers creating an indicator that alternates colours with the trend.

The actual indicator used here is simple and probably not fit for use as an indicator but I wanted something simple so that I could focus on the code for displaying 2 colours and not worry about complexities of the indicator. The formula for the indicator is nothing more than the midpoint of 2 moving averages.