This is just another version of the well known Super Trend indicator. The code is simplified but it has the same output on the chart screen. Dots are used instead of lines andΓ iCustom calls are easier to implement ...
from https://tradingrobots.net/super-trend-updated-and-simpler-code-indicator-for-metatrader-4/