是否有任何命令,例如'if strument.open_orders> 0&quot?
正如有“ stragity.position_size> 0”一样,还有一个命令描述是否有开放顺序?例如,我将条目放置在:
if strategy.position_size == 0(如果CLOSS&lt)中; ”,策略。
ta.ema(Close,20)策略。输入(“长 最大并激活顺序。
如果我想确定只有在输入“长”后才完成的事情,我会写
: ...“
但是,如果我想描述一个变量在激活“ stragity.entry”(“ long” ...“)之后,有一个新值,是否有任何命令,例如farrateh.open_orders&gt> 0“?
Just as there is "strategy.position_size > 0", is there also a command that describes if there is an open order? For example, I place an entry with:
if strategy.position_size==0 if close < ta.ema(close, 20) strategy.entry("LONG", strategy.long, stop= high)
The next candlestick can surpass the maximum and enter, or after a few candles ahead, one appears that exceeds the maximum and activates the order.
If I want to determine that something is done only after entering "LONG" I write:
"if strategy.positon_size > 0
..."
But if I want to describe that a variable has a new value after activating the order "strategy.entry("LONG"..."), is there any command like "if strategy.open_orders > 0"?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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