有没有办法使用“isToday”与酒吧重播?

发布于 2025-01-15 12:20:08 字数 393 浏览 2 评论 0原文

如果“isToday”为真,我使用与时间相关的开关来更改线条样式。

简化:

if isToday
    DoThis
else
    DoThat

如果“今天”确实等于今天,这适用于真实图表,但在使用条形重播时它不起作用(显然,因为,例如今天的时间戳,仍然是今天(时间戳)。

我可能做错了什么并寻求使用 Bar Replay 回测我的脚本的方法

吗?

有人知道 使用 [ ] 历史引用运算符不是一个选项,因为我在依赖于比较“事件日期/时间”(today/currentWeek/currentMonth)的嵌套函数中使用它。

我希望有一个开发开关或者我错过的东西,允许以不同的方式使用 BarReplay?

I use a time related switch to change styling of lines if 'isToday' is true.

Simplified:

if isToday
    DoThis
else
    DoThat

This works on the real chart, if "today" really equals today, but it doesnt do its job while using Bar replay (obviously, since, e.g. todays timestamp, remains today (timestamp).

I might be doing something wrong and seek a way to backtest my script using Bar Replay.

Any idea? Someone?

Note:
Using [ ] history-referencing operator is not an option since I am using this in a nested function that relies on comparing 'event date/time' (today/currentWeek/currentMonth).

I hoped there is a dev switch or something I miss, allowing to use BarReplay maybe in a different fashion?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文