DojiEmoji

Economic Calendar (Import from Spreadsheet)

DojiEmoji 업데이트됨   
This script draws vertical lines to mark Economic Calendar Events.
Datetime of events is defined by user in Settings via a standardized line of text.

Motivation for coding this script:
All traders should be aware of economic calendar events. At times, when you really need to pay attention to an upcoming major event, you might even decide to use the vertical-line drawing tool to mark it. However, this takes manual effort.
This script provides a solution to performing mundane tasks such as drawing vertical lines and dragging them ever so slightly, just to have them approximately aligned with exact time.

Parameters:
(1) Source data - String representation of collection of datetime referencing to Economic Calendar Events
(2) Line color, & (3) Width of line - For displaying vertical lines drawn by script.

Standardized format for Source Data:
Example:
If 'GMT;2022,6,1,14,0,0;2022,6,2,12,15,0;' is provided to PineScript, then two vertical lines will be drawn on June 6, 2022 according to the exact time in 'YYYY,MM,DD,hh,mm,ss' format at the specified timezone (GMT in this case).

Template for Source Data:
Included here, link below, is a shared Google Sheet that systematically processes Economic Calendar data provided in the 'Raw Data' tab.
https://drive.google.com/drive/folders/14DUDbPBFqhDI84rMbaVXAnkP2H7L8v86

Users are advised to use their preferred methods* to format the string (for source data param.), and apply their own criteria to sort down the Events. (ie. only include Events of High Impact, etc.)
* Preferred methods (as mentioned above) does not mean being limited to using the template as provided in this post.
릴리즈 노트:
- Code clean up
- Adjusted settings UI with 'text_area'
릴리즈 노트:
(1) Refactored,
(2) Implemented fail-safe approach to ensure most recent lines get drawn, ignoring oldest events when n > 500 (max no. of lines allowed to shown on chart by pine)
릴리즈 노트:
Fix: To adjust for potential timing differences. Original Unix time might cause lines to offset when chart viewed on other timeframes (ie 12hour).
Thanks to @jdehorty for pointing this out and letting me use his logic for converting Unix time.
릴리즈 노트:
changes to docstring
릴리즈 노트:
New feature: Multiple categories; option to show/hide, rename, and select colors for each grouping.
릴리즈 노트:
Added table showing legend for line colors
릴리즈 노트:
릴리즈 노트:
Updated the calendar:
오픈 소스 스크립트

이 스크립트의 오써는 참된 트레이딩뷰의 스피릿으로 이 스크립트를 오픈소스로 퍼블리쉬하여 트레이더들로 하여금 이해 및 검증할 수 있도록 하였습니다. 오써를 응원합니다! 스크립트를 무료로 쓸 수 있지만, 다른 퍼블리케이션에서 이 코드를 재사용하는 것은 하우스룰을 따릅니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

차트에 이 스크립트를 사용하시겠습니까?