首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在request.security()中设置Timezone?

如何在request.security()中设置Timezone?
EN

Stack Overflow用户
提问于 2022-10-05 21:09:38
回答 1查看 146关注 0票数 0

我想在我的时区检查条形外部调用,而不是在无聊的交换时区.

函数request.security()不允许输入Timezone (如"GMT-3"或其他)。

代码语言:javascript
复制
request.security(syminfo.tickerid, timeframe.period, expression, gaps, lookahead, ignore_invalid_symbol, currency)

我需要在timezone("GMT-3")中插入一个request.security(),但我做不到。

我已经在request.security()中尝试过request.security()中的time()检查器:

示例:(契约):

代码语言:javascript
复制
tz = time(timeframe.period, syminfo.session, "GMT-3")
r = (time == tz) ? request.security() : na

Return: none.

Runtime not call request.security()continues呈现same timezone of exchange.

为什么TradingView忘记在request.security()函数中添加一个Timezone

TradingView应该upgrade request.security(),在我想检查时区中条形图的结束时插入Timezone函数。

有人知道如何在request.security() ?中插入Timezone吗?

图像示例:在我的屏幕上。

这个图像代表了我的屏幕。yellow linerequest.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吗?

EN

回答 1

Stack Overflow用户

发布于 2022-10-06 06:36:00

您不需要request.security函数中的时区参数,只需手动将图表时区更改为您想要的时区.它将完成以下工作:)

亲切问候戴夫

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/73966367

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档