The TrendLineD indicator draws a trendline by extreme points determined using the standard Fractals indicator. Trend direction is detected automatically. Based on this information, either a resistance line (downtrend) or a support line (uptrend) is drawn. If the indicator fails to identify the trend direction, the lines will not be displayed. It can display a trendline of a higher timeframe (set in the TimeFrame parameter). The line color and width are set in input parameters. The indicator can also generate an Alert and send an e-mail (parameters EnableAlert, EnableEmail, EnableSound) when a price bar crosses the trend line (the last closed bar is taken into account).