PROTECTED SOURCE SCRIPT
SG Momentum

Hello All,
I have made a momentum indicator based on the distance from exponential moving average. This captures both buy and sell cycles effectively. The logic is to calculate the distance of closing price from an exponential moving average ( I use 13 period - You are free to choose any other period) - this is the dim grey line which you can toggle off too. Then I smoothen this by calculating a 9-period EMA of the same (the green line). I further slow it down by another 9-period EMA of the same ( the red line). Now when the green lines crosses the red line from below 0 it signifies a new bull cycle and vice versa for bear cycle. This works across all timeframes. I have marked few signals in the below chart for your reference.

I have made a momentum indicator based on the distance from exponential moving average. This captures both buy and sell cycles effectively. The logic is to calculate the distance of closing price from an exponential moving average ( I use 13 period - You are free to choose any other period) - this is the dim grey line which you can toggle off too. Then I smoothen this by calculating a 9-period EMA of the same (the green line). I further slow it down by another 9-period EMA of the same ( the red line). Now when the green lines crosses the red line from below 0 it signifies a new bull cycle and vice versa for bear cycle. This works across all timeframes. I have marked few signals in the below chart for your reference.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.