SimpleCryptoLife

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!
Notes de version: Removed a stray unnecessary input to the f_flip function.
Added comment to f_trail function to make it more portable.
Notes de version: Fixed description of the _longTrail and _shortTrail variables.
Fixed edge cases where a wick causes us to try to flip both long and short.
Supprimer des scripts favoris Ajouter aux scripts favoris

Commentaires

I have only recently started using the GMMA indicator which uses fractal repetition. Your indicator is an excellent addition to the GMMA. Well done. Thank you very much. :)
Répondre
@cmcfarlane, Thanks very much. I'm glad it can help you. Will check out GMMA.
Répondre
Amazing script, learned a lot from it. Thanks!
Répondre
@EvoCrypto, Thank you sir. Coming from such a proficient scripter that means a lot.
+1 Répondre
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
Répondre
@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.
Répondre
Great, thanks for sharing :)
Répondre
@maybach47, glad you found it useful :)
Répondre
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!
Répondre
@PineCoders, Thanks very much!
Répondre
Accueil Screener d'actions Screener Forex Screener Crypto Calendrier économique Comment ça marche Caractéristiques du graphique Prix Parrainer un ami Règles de conduite Centre d'aide Solutions site web & courtier Widgets Solutions de cartographie Bibliothèque de graphiques allégés Blog & News Twitter
Profil Paramètres du Profil Compte et Facturation Amis référés Coins Mes tickets au support Centre d'aide Idées Publiées Followers Suivi(e) Messages privés Chat Se Déconnecter