In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.
//@version=2 //synapticex.com study("Fractal Support Resistance", shorttitle="FSR", overlay=true) tf = input(title="Resolution", type=resolution, defval = "current") vamp = input(title="VolumeMA", type=integer, defval=6) vam = sma(volume, vamp) up = high>high and high>high and high<high and high<high and volume>vam down = low<low and low<low and low>low and low>low and volume>vam fractalup = up ? high : fractalup fractaldown = down ? low : fractaldown fuptf = security(tickerid,tf == "current" ? period : tf, fractalup) fdowntf = security(tickerid,tf == "current" ? period : tf, fractaldown) plot(fuptf, "FractalUp", color=lime, linewidth=1, style=cross, transp=0, offset =-3, join=false) plot(fdowntf, "FractalDown", color=red, linewidth=1, style=cross, transp=0, offset=-3, join=false)