这两个句子的结尾,Insuy [1]和Insuy有什么区别?

发布于 2025-02-12 02:47:10 字数 263 浏览 1 评论 0原文

inBuy := not inBuy[1] and close < l1Long[1] ? true : inBuy[1]

inBuy := inBuy[1] and close > stopPrice ? false : inBuy

我知道inbuy [1]语句处于调用Inbuy的值的状态,但是Inbuy是什么意思没有[]

inBuy := not inBuy[1] and close < l1Long[1] ? true : inBuy[1]

inBuy := inBuy[1] and close > stopPrice ? false : inBuy

I know that the inBuy[1] statement is in the state of calling the value of inBuy in previous the bar,but what does inBuy mean without []?

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

随遇而安 2025-02-19 02:47:10

我不确定“ Insuy”代表什么值,但我可以告诉您两者之间的区别。

ibuy alone refers to the value of the current bar. (right most on chart)
inBuy[0] is identical to inBuy alone, without sequence reference (as above)
inBuy[1] refers to 1 bar ago from the current bar. 
inBuy[2] refers to 2 bars ago from the current bar.

等,等等

I'm not sure what value "inBuy" represents but I can tell you the difference between the two.

ibuy alone refers to the value of the current bar. (right most on chart)
inBuy[0] is identical to inBuy alone, without sequence reference (as above)
inBuy[1] refers to 1 bar ago from the current bar. 
inBuy[2] refers to 2 bars ago from the current bar.

Etc, etc.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文