This script is using fractals and other indicators/formulas to find long entries and exits.
It works best for volatile markets but I found it can work sometimes in ranging markets as well.
Don't take signals against the major trend as it also prints buy entries in bear markets (that are invalidated afterwards)