Trend indicator. It is based on a simple moving average, the maximum and minimum of this moving average for the period. When the moving average coincides with its maximum for the period , the trend is rising, when the moving average coincides with its minimum for the period, the trend is falling. The optimal periods should be selected for each timeframe and trading instrument.