PROTECTED SOURCE SCRIPT
ATR% Multiples from SMA/EMA

Inspired by the indicator ATR% multiple from 50-MA by jfsrev, this tool measures how far price is extended from a Moving Average using an ATR% multiple.
What’s added vs. ATR% multiple from 50-MA indicator:
How to use the indicator:
I find the ATR multiple to be a very versatile tool that can be used for profit taking, mean reverting, and to make better assumption about what market environment to expect.
Which thresholds should you use?
It's up to you really. Personally I use them in a quite discretionary manner where I will change inputs depending on market and it's current regime - E.g. if we are in a strong uptrend I might use higher multiples to the upside and lower multiples to the downside, and if the market is in a range I will use them in a different manner. Be creative, test things, and work out what makes sense to you and the market and timeframe you are trading in.
What’s added vs. ATR% multiple from 50-MA indicator:
- Downside multiples — flags extensions below and above the MA.
- Timeframe selection — compute on Daily/Weekly/Monthly or intraday, independent of your chart.
- EMA/SMA toggle — choose the MA type (EMA/SMA).
- Multi-thresholds — set several ATR% multiple levels.
How to use the indicator:
I find the ATR multiple to be a very versatile tool that can be used for profit taking, mean reverting, and to make better assumption about what market environment to expect.
Which thresholds should you use?
It's up to you really. Personally I use them in a quite discretionary manner where I will change inputs depending on market and it's current regime - E.g. if we are in a strong uptrend I might use higher multiples to the upside and lower multiples to the downside, and if the market is in a range I will use them in a different manner. Be creative, test things, and work out what makes sense to you and the market and timeframe you are trading in.
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ể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
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ã đượ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ể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
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.