PROTECTED SOURCE SCRIPT
Cập nhật ATR Extensions (truss)

This is an ATR band study. It presents the Daily and Weekly ATRs onto the chart, with an adjustable pivot as the mid-point.
ATR:
The study projects the following, from both daily and weekly timeframe analysis:
14-period ATR Bands for Daily
4-period ATR Bands for Weekly
Both period settings are adjustable by the user
Pivot:
The default pivot is set to (H+L+C)/3, but there's an option to use the current period's opening print as the pivot on a gap (or not on a gap, just enable it, and set the threshold to 0).
MGI:
This study also provides users the ability to the prior period Marketed Generated Information, such as: Current Period Open (Daily/Weekly), Prior Period Close, Prior Period High, Prior Period Low.
*The show_last setting is on 1 for these items for now, as I found them to clutter the chart and wanted to focus my efforts on the ATR bands. If there's a lot of demand for MGI studies, I can add to this or make a new one when I have time.
Happy to hear comments/suggestions/requests/praise.
Cheers
ATR:
The study projects the following, from both daily and weekly timeframe analysis:
14-period ATR Bands for Daily
4-period ATR Bands for Weekly
Both period settings are adjustable by the user
Pivot:
The default pivot is set to (H+L+C)/3, but there's an option to use the current period's opening print as the pivot on a gap (or not on a gap, just enable it, and set the threshold to 0).
MGI:
This study also provides users the ability to the prior period Marketed Generated Information, such as: Current Period Open (Daily/Weekly), Prior Period Close, Prior Period High, Prior Period Low.
*The show_last setting is on 1 for these items for now, as I found them to clutter the chart and wanted to focus my efforts on the ATR bands. If there's a lot of demand for MGI studies, I can add to this or make a new one when I have time.
Happy to hear comments/suggestions/requests/praise.
Cheers
Phát hành các Ghi chú
This is an ATR band study. It presents the Daily and Weekly ATRs onto the chart, with an adjustable pivot as the mid-point.ATR:
The study projects the following, from both daily and weekly timeframe analysis:
14-period ATR Bands for Daily
4-period ATR Bands for Weekly
Both period settings are adjustable by the user
Pivot:
The default pivot is set to (H+L+C)/3, but there's an option to use the current period's opening print as the pivot on a gap (or not on a gap, just enable it, and set the threshold to 0).
MGI:
This study also provides users the ability to the prior period Marketed Generated Information, such as: Current Period Open (Daily/Weekly), Prior Period Close, Prior Period High, Prior Period Low.
*The show_last setting is on 1 for these items for now, as I found them to clutter the chart and wanted to focus my efforts on the ATR bands. If there's a lot of demand for MGI studies, I can add to this or make a new one when I have time.
Happy to hear comments/suggestions/requests/praise.
Cheers
2/1/24 Update:
MGI plots corrected, labels added.
N.B. on futures charts, the prior close and the current open often overlap if you have ETH charts. I'm too lazy to fix that and want to work on other projects.
Phát hành các Ghi chú
Tweaked ATR calculation because it wasn't working originally. Added:
T+2 MGI to the line charts
Distances to current day's highs and lows
Phát hành các Ghi chú
few cosmetic adjustmentsMã đượ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.