TOTAL, ERAMET, AIRBUS, Apple, TESLA INC, UBER TECHNOLOGIES INC
CAC 40, Indice DAX, Euro Stoxx 50, FTSE 100, Dow Jones, S&P 500
France 10Y, Allemagne 10Y, Italie 10Y, UK 10Y, US 10Y, Japon rendement 10Y
Script tries to capture the length of trends. It calculates an SMA and then determines the slope of the SMA using a simple momentum function. From there it counts bars from when the slope changed directions last. The lime green line is the count from when the slope changed. The yellow line is the average time of a trend. The white line is "trying" to capture the...