OPEN-SOURCE SCRIPT
Major Swings

This is an indicator that shows minor and major swing highs and lows.
With the help of Average True Range it is calculating if stop order bulls are able to make money buying above swing highs and if bears are able to make money selling below swing lows.
Assumption is that if they are able to make money ( at least a scalp that is a size of an average bar based on atr ) the trend is strong and the opposite swing point is therefore major.
It is possible to change the amount of bars that indicator compares to find swing points as well as atr period, label colors and show/hide minor swing points.
With the help of Average True Range it is calculating if stop order bulls are able to make money buying above swing highs and if bears are able to make money selling below swing lows.
Assumption is that if they are able to make money ( at least a scalp that is a size of an average bar based on atr ) the trend is strong and the opposite swing point is therefore major.
It is possible to change the amount of bars that indicator compares to find swing points as well as atr period, label colors and show/hide minor swing points.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.