OPEN-SOURCE SCRIPT
All4 - Multi-Period Momentum [LucF]

All4 is a multi-period momentum indicator that includes a volume component. It doesn't use higher timeframes, but rather varying lengths. It is a simple way to get a more global picture of momentum.
It is calculated using a very simple weighted average of a few different indicators. The indicator is comprised of the main line called All4, its MA and a faster line.
The All4 components are the Stoch RSI’s K line, Rsi and MFI (to include a bit of volume information) in the following mix: (St14 + St21 + 2*St42 + 2*St90 + rsi + 2*mfi)/9. The respective K line periods and smoothing lengths are 14-4, 21-10, 42-10 and 90-15. Both the Rsi and MFI periods are 14. All those values are fixed.
The fast line is comprised of a 14 period Rsi and MFI in the following mix: (rsi + 2*mfi)/3. The length of the fast line can be changed.
The indicator also includes 4 status lines. The top 2 show when All4 is volatile and when it is trending. The bottom 2 show when All4 is in bearish/bullish territory, and the state of the 200 period MA.
There are lots of bells and whistles but pretty much everything is configurable, so you can make it as busy or as clean as you wish. I have included both extremes on the chart above.
As can be expected, the mishmash of indicators comprising All4 entails a loss of detail in the signal; it is the trade-off necessary to paint a broader picture.
It is calculated using a very simple weighted average of a few different indicators. The indicator is comprised of the main line called All4, its MA and a faster line.
The All4 components are the Stoch RSI’s K line, Rsi and MFI (to include a bit of volume information) in the following mix: (St14 + St21 + 2*St42 + 2*St90 + rsi + 2*mfi)/9. The respective K line periods and smoothing lengths are 14-4, 21-10, 42-10 and 90-15. Both the Rsi and MFI periods are 14. All those values are fixed.
The fast line is comprised of a 14 period Rsi and MFI in the following mix: (rsi + 2*mfi)/3. The length of the fast line can be changed.
The indicator also includes 4 status lines. The top 2 show when All4 is volatile and when it is trending. The bottom 2 show when All4 is in bearish/bullish territory, and the state of the 200 period MA.
There are lots of bells and whistles but pretty much everything is configurable, so you can make it as busy or as clean as you wish. I have included both extremes on the chart above.
As can be expected, the mishmash of indicators comprising All4 entails a loss of detail in the signal; it is the trade-off necessary to paint a broader picture.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
"The stock market is a device for transferring money from the impatient to the patient."
— Buffet
tradingview.com/u/PineCoders/
tradingview.com/u/TradingView/
— Buffet
tradingview.com/u/PineCoders/
tradingview.com/u/TradingView/
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
"The stock market is a device for transferring money from the impatient to the patient."
— Buffet
tradingview.com/u/PineCoders/
tradingview.com/u/TradingView/
— Buffet
tradingview.com/u/PineCoders/
tradingview.com/u/TradingView/
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.