OPEN-SOURCE SCRIPT

Squeeze Momentum + MACD Balanced

99
combines Squeeze Momentum and MACD, scaling the MACD to visually match the Squeeze Momentum histogram. I went through your code and it looks mostly correct, but I can give you a few notes and potential improvements to make it cleaner and more robust:

Disclaimer

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.