有没有办法使用“isToday”与酒吧重播?
如果“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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论