New free code from MQL5: indicators, EAs, and scripts for traders.
The real author:
igorad
The typical semaphore trend indicator.
Never miss news-driven moves – use the News OCO Expert Advisor to place pending orders safely around economic releases. Find out more.
This indicator was first implemented in MQL4 and published in Code Base at mql4.com on 28.10.2007.

Fig.1 The TrendEnvelopes indicator
Complement community code with advanced automation from RobotFX.
1394