如何在straution.entry()中添加第二个条件?
我如何添加“策略条目”的条件,其中我只想考虑到200me以下的信号,
strategy.entry("Buy", strategy.long, 100.0, when = buySignal)
这是当前的代码。如何添加条件?
How do i add a condition of "strategy entry" where i only want signals below the 200EMA to be taken into consideration
strategy.entry("Buy", strategy.long, 100.0, when = buySignal)
This is the current code. How do i add the conditions to this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
EMA
首先buysignal
这应该给您一个想法:
ema
firstbuySignal
This should give you an idea: