PINE LIBRARY
Cập nhật CommonMarkup

Library "CommonMarkup"
Provides functions for chart markup, such as indicating recession bands.
markRecessionBands(showBands, lineY, labelY)
Mark vertical bands and show recession band labels if argument showBands is true. Example "markRecessionBands(bar_index[0],3.0"
Parameters:
showBands: - show vertical recession bands when true. Functionally equiv to no op when false
lineY: - y-axis value for line positioning
labelY: - y-axis value for label positioning
return true - always answers the value of showBands
Provides functions for chart markup, such as indicating recession bands.
markRecessionBands(showBands, lineY, labelY)
Mark vertical bands and show recession band labels if argument showBands is true. Example "markRecessionBands(bar_index[0],3.0"
Parameters:
showBands: - show vertical recession bands when true. Functionally equiv to no op when false
lineY: - y-axis value for line positioning
labelY: - y-axis value for label positioning
return true - always answers the value of showBands
Phát hành các Ghi chú
Common markup lib v2. Changes as follows:- Added 2022 contraction over Q1 to Q2
- Updated time refs to be UTC+0
Phát hành các Ghi chú
Minor cosmetic rendering updatesPhát hành các Ghi chú
v4 - minor display and formatting updates for readabilityPhát hành các Ghi chú
v5Added control parameter for defining if 2 consecutive quarters of negative GDP is considered a recession
Updated:
markRecessionBands(showBands, twoQrtsOfNegativeGDPIsRecession, lineY, labelY)
Mark vertical bands and show recession band labels if argument showBands is true. Example "markRecessionBands(bar_index[0],3.0"
Parameters:
showBands: - show vertical recession bands when true. Functionally equiv to no op when false
twoQrtsOfNegativeGDPIsRecession: - if true, then periods with two consecutive quarters of negative GDP is considered a recession. Defaut is false.
lineY: - y-axis value for line positioning
labelY: - y-axis value for label positioning
return true - always answers the value of showBands
Phát hành các Ghi chú
v6Updated:
markRecessionBands(showBands, twoQrtsOfNegativeGDPIsRecession, labelY)
Mark vertical bands and show recession band labels if argument showBands is true. Example "markRecessionBands(bar_index[0],false3.0)"
Parameters:
showBands (bool): - show vertical recession bands when true. Functionally equiv to no op when false
twoQrtsOfNegativeGDPIsRecession (bool): - if true, then periods with two consecutive quarters of negative GDP are considered a recession. Defaut is false.
labelY (float): - y-axis value for label positioning
return true - always answers the value of showBands
Phát hành các Ghi chú
v7Updated:
- Resolved issue with private function for drawing recession bands scaling the y-axis excessively
Thư viện Pine
Theo tinh thần TradingView thực sự, tác giả đã xuất bản mã Pine này dưới dạng thư viện nguồn mở để các lập trình viên Pine khác trong cộng đồng của chúng tôi có thể sử dụng lại. Xin tri ân tác giả! Bạn có thể sử dụng thư viện này riêng tư hoặc trong các bài đăng nguồn mở khác. Tuy nhiên, bạn cần sử dụng lại mã này theo Nội quy chung.
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.
Thư viện Pine
Theo tinh thần TradingView thực sự, tác giả đã xuất bản mã Pine này dưới dạng thư viện nguồn mở để các lập trình viên Pine khác trong cộng đồng của chúng tôi có thể sử dụng lại. Xin tri ân tác giả! Bạn có thể sử dụng thư viện này riêng tư hoặc trong các bài đăng nguồn mở khác. Tuy nhiên, bạn cần sử dụng lại mã này theo Nội quy chung.
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.