如何以特定价格开仓?

问题描述

伙计们,我是 Strategies en Pine Script 的新手,我试图在绿色方框中看到 4 个确认蜡烛(3 个看跌和 1 个看涨)之后在橙色线中建立一个卖出头寸,但我不知道为什么不开仓,有什么想法吗?

enter image description here

if (Black_Body[3]) and (Black_Body[2]) and (Black_Body[1]) and (White_Body and high > high[1] and low > low[1] )
    label.new(bar_index,high + Line_Size/2,"SHORT",style=label.style_label_down)
    strategy.order("Sell",false,1,when = low <= low[1] - Line_Size/15 )
    strategy.exit("exit","Sell",profit = 3,loss = 1)

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)