This oscillator based on linear regression . By subtracting the slower LMA from the faster LMA we can get a value, which we will further compare with zero. If the resulting difference is greater than 0, then we can assume that the trend is upward. Also by using offset we could increase the expected profit (focusing on backtest data).
You could get access for this script by the link below.