我想在我的时区检查条形外部调用,而不是在无聊的交换时区.
函数request.security()不允许输入Timezone (如"GMT-3"或其他)。
request.security(syminfo.tickerid, timeframe.period, expression, gaps, lookahead, ignore_invalid_symbol, currency)我需要在timezone("GMT-3")中插入一个request.security(),但我做不到。
我已经在request.security()中尝试过request.security()中的time()检查器:
示例:(契约):
tz = time(timeframe.period, syminfo.session, "GMT-3")
r = (time == tz) ? request.security() : naReturn: none.
Runtime not call request.security()或continues呈现same timezone of exchange.
为什么TradingView忘记在request.security()函数中添加一个Timezone?
TradingView应该upgrade request.security(),在我想检查时区中条形图的结束时插入Timezone函数。
有人知道如何在request.security() ?中插入Timezone吗?
图像示例:在我的屏幕上。

这个图像代表了我的屏幕。yellow line以request.security(syminfo.tickerid, "1D", close[1]) with gaps off.表示closing value of bar "1D"
请注意,request.security()只在closing the "1D" daily bar.时更改行
在request.security() daily bar "1D" closes In exchange time zone "GMT+8"中。所以,在我的timezone中,它显示了closes at 13:00,因为我是"GMT-3"。
如果request.security()是set to "GMT-3",那么我的图表应该是close the "1D" bar at 00:00 ("GMT-3")。你应该是解决办法!
有人知道如何在request.security() ?中插入Timezone吗?
发布于 2022-10-06 06:36:00
您不需要request.security函数中的时区参数,只需手动将图表时区更改为您想要的时区.它将完成以下工作:)
亲切问候戴夫
https://stackoverflow.com/questions/73966367
复制相似问题