rrturtles2

Window Periods

// Work in progress.. visualize event windows

// to do:
// - assign sector relevance (add opec events and weight more to commodity typed instruments, whereas revenue forecasts of walmart won't be as relevant to commodities)
// - create weighting onto macro probability valuators
// - create means to store window weight/values in an accessible way so that additional scripts can access this data (post hidden text in window?) or maybe just duplicate arrays elsewhere in additional code (terrible option)
// - correct colors to scale within like types of events (opex the same, rebalancing periods the same, political and financial meeting the same color etc..)
// - find a way to make transfer the timestamps or date strings as const variables usable within functions. v5 sends as series and cannot be converted back making this an overly complicated case instead of a function/library
// - add dates back to 2017 for better referencing
// - convert a number of the variables to inputs so they can be controlled in-chart, such as transparancy, and color of each window period?

Tilden
Mã nguồn mở

Với tinh thần TradingView, tác giả của tập lệnh này đã xuất bản nó dưới dạng mã nguồn mở, vì vậy các nhà giao dịch có thể hiểu và xác minh nó. Chúc mừng tác giả! Bạn có thể sử dụng mã này miễn phí, nhưng việc sử dụng lại mã này trong một ấn phẩm chịu sự điều chỉnh của Nội quy nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

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.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?