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 de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.