EvoCrypto

Trends & Ranges

Trends & Ranges uses EMA ATR bands as a SuperTrend indicator.

How to use:
This indicator can be used to give you a direction bias, with the added function to create ranges which often lead to reversals or flat trading periods. Trade the break-out or wait for pull backs in the direction of the trend.

I'm not great at explaining stuff and will probably make things only more complicated, so I won't bother for now,
but if you have a question on how the script works I will gladly give it a try.

The option "Flexible Trends" will disable the min/max function (trailing or non trailing).

Flexible Trends enabled:

Flexible Trends disabled:

Settings are not optimized for any asset or time frame, you will have to do that for yourself. Feel free to share them in the comments.
Thanks for showing interest, enjoy and good luck! :)

Notes de version: Fixed a typo
Notes de version: Update:
- New alerts
- New moving average options
- New extend line function
Script open-source

Dans le plus pur esprit de TradingView, l'auteur de ce texte l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur ! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par les règles internes. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Vous voulez utiliser ce script sur un graphique ?

Commentaires

Congratulations on this excellent indicator! I've been trying to understand it but this line eludes me, how does the value of up get passed between the conditionals?
up := up != 1 and close > (showRange ? downRange : downTrend) ? 1 : up == 1 and close < upTrend ? -1 : up
500coins
Répondre
@azohar, Good one, it doesn't really make sense. At the time, I couldn't get it working so when it finally did I just went with it and never looked back lol.. Can also be shorter like this I think:
 up := close > (showRange ? downRange : downTrend) ? 1 : close < upTrend ? -1 : up 

Many of my scripts need some fine-tuning when I get back into Pinecoding, as some of it is not the most efficient code or the best example for new coders. Thanks for the comment, I appreciate it a lot! :)
Répondre
What values are taken in super trend sir
Répondre
EvoCrypto sekhar6239
@sekhar6239, What do you mean ?
+1 Répondre
sekhar6239 EvoCrypto
@EvoCrypto, period and multiplier broo
Répondre
Thanks for sharing, you're doing a great job! Can you share your best setting for BTC, thanks?
Répondre
EvoCrypto ilesanmipepsi
@ilesanmipepsi, Thank you! That depends on how you want to use it, simply to give you a bias and use other indicators or take signals right when the trend changes.. then there is the option "Flexible Trend" which works different for each time frame. Overall i like the default settings for the daily how they are, for time frames like 1 hour I would use flexible trends since the close is not that strong as on the daily.
Répondre
ilesanmipepsi EvoCrypto
@EvoCrypto, I appreciate you for taking your time to drop this explanations! Thanks once, again.
Répondre
Looking for the indicator like above for a long time!
Hope for MQL4 version!
Répondre
EvoCrypto sonychen59
@sonychen59, Never used it so can't help you there.. But learning a coding language is easier than you might think, only getting started is the hard part.
+1 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 Messages privés Chat Se Déconnecter