Its made of ATR for , EOM for and for the trend direction.
In this case on the ATR, I applied an to check if current position is above the -> bull trend, below -> bear trend
For EOM I am using the positive and negative value scale, if its positive we are in a bull movement, otherwise a bear movement.
Lastly for , I took the min and max, and made an average, after that I am using the average and compare it with 1 value. Above 1 -> bull, belowe 1-> bear.
This strategy only goes long.
If you have any questions, let me know.
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.
Telegram group: https://t.me/atrader_life