Williams Fractal Trailing Stops

Unlike the built-in version, you can configure how many bars it takes to confirm a fractal . This indicator plots all Williams high and low fractals, and a stop line that trails the fractals up and down. Includes long and short stop alerts. You can choose whether the trail flips long-short based on the price being exceeded within a candle or on candle close. This indicator deals only with fractals and doesn't get into the Alligator or anything else.
I've commented it extensively, so that it might be useful for people learning Pinescript. Enjoy!
Notas de Lançamento: Removed a stray unnecessary input to the f_flip function.
Added comment to f_trail function to make it more portable.
Notas de Lançamento: Fixed description of the _longTrail and _shortTrail variables.
Fixed edge cases where a wick causes us to try to flip both long and short.
Remover dos scripts favoritos Adicionar aos scripts favoritos


Hi this is what I have been looking for but want 7 finger fractal instead of 5 using it within tradingview but I do not how how ? Can you please help thank you
@Gregcox, add this script to your chart, then right-click on the trailing line and select "Settings". You should get a dialog box with the name of the script at the top. If you get a box that says "Chart Settings" then you clicked the chart instead of the indicator. In the "Williams Fractal Range" box, just change it to 7 instead of 5.
Great, thanks for sharing :)
@maybach47, glad you found it useful :)
This publication will be featured in our "Best Scripts of The Month" selection. Thank you for your valuable contribution to the TradingView community, and congrats!
@PineCoders, Thanks very much!
Início Rastreador de Fundamentos Rastreador Forex Rastreador de Criptomoedas Calendário Econômico Como Funciona Recursos gráficos Preços Indique um Amigo Regras da Casa Central de Ajuda Soluções para Sites & Corretoras Widgets Soluções em Gráficos Biblioteca de Gráficos Lightweight Blog & Notícias Twitter
Perfil Configurações de perfil Conta e cobrança Indique um Amigo Meus Tíquetes de Suporte Central de Ajuda Ideias Publicadas Seguidores Seguindo Mensagens Privadas Conversa Deslogar