TradingView
ChartingCycles
2022年3月31日下午3點44分

YTD 

Tesla, Inc.NASDAQ

描述

A simple year-to-date (YTD) % return calculation, displayed on a panel.
評論
tradepatiently
Hey ChartingCycles- great script! I thought I'd mention that it's using the closing price of the first trading day of the year to calculate the % (I think), so it seems a bit off compared to other sources. I'm thinking it should be using the opening price of the first trading day, or the closing price of the last trading day of the previous year?
ChartingCycles
@cphelpsone just seeing this comment now - you are correct! Fix incoming.
ChartingCycles
更多