Pine 脚本在实时K线上的行为与在历史K线上的行为非常不同。回想一下,当图表的标的上的交易处于活动状态时,实时K线是图表上最右侧的那一根。另外,请记住,策略strategy类型脚本在实时K线中可以以两种不同的方式表现。默认情况下,它们仅在实时K线收盘时执行一次,但可以将声明语句`calc_on_every_tick`的参数`strategy`设置为 true 以修改策略的行为,以便它像指标(indicator)一样在每次实时K线更新时执行。
Avoid losing contact!Don't miss out! The first and most important thing to do is to join my Discord chat now! Click here to start your adventure: discord.com/invite/ZTGpQJq 防止失联,请立即行动,加入本猫聊天群: discord.com/invite/ZTGpQJq
Also on:
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.