It's a useful script for pairs where you can operate long and short.
It's a combination algorithm of the Range filter and the ADX.
The ADX helps to make the decision to enter to open long or short position.
LG --> Long
xL --> Close Long position
ST --> Short
xS --> close Short Position
Enjoy!!!