I got the idea of an algorithm using a gap, which would behave a bit like RSI, therefore I called it momentum line. Don't know if it's very useful or how to improve it, it can keep you in trends, however it suffers from whipsawing. My first attempt in programming a strategy.
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.