//@version=5 indicator("Fractal Example", overlay=true) // Define fractals fractalUp = ta.highest(high, 5) fractalDown = ta.lowest(low, 5) // Plotting fractals plotshape(fractalUp, style=shape.triangleup, color=color.green) plotshape(fractalDown, style=shape.triangledown, color=color.red)