Mi è venuto un dubbio, lo sapete che esiste la funzione SuperTrend già fatta, io scrivo il copia incolla dell'indicatore:

INPUTS: @periods(9), @strength(5)

SET PLOT1 = SuperTrend(@periods, @strength)
SET PLOTCOLOR1 = IF(PLOT1 > CLOSE, COLOR_LIGHT_RED, COLOR_LIGHT_GREEN)