是否有任何命令,例如'if strument.open_orders> 0&quot?

发布于 2025-01-21 01:30:40 字数 338 浏览 2 评论 0原文

正如有“ 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 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文