Pine script 如何以特定的价格开仓?

Pine script 如何以特定的价格开仓?,pine-script,strategy-pattern,testing-strategies,Pine Script,Strategy Pattern,Testing Strategies,伙计们,我是新来的,我正在尝试在橙色线中打开一个卖出位置,在绿色方框中可以看到4个确认蜡烛(3个熊市和1个牛市)之后,但我不确定为什么这个位置不会打开,有什么想法吗 if(黑色体[3])和(黑色体[2])以及(黑色体[1])和(白色体和高>高[1]和低>低[1]) label.new(条形索引,高+线条大小/2,“短”,样式=label.style\u label\u down) 策略.订单(“卖出”,错误,1,当=低 if (Black_Body[3]) and (Black_Body[2]

伙计们,我是新来的,我正在尝试在橙色线中打开一个卖出位置,在绿色方框中可以看到4个确认蜡烛(3个熊市和1个牛市)之后,但我不确定为什么这个位置不会打开,有什么想法吗

if(黑色体[3])和(黑色体[2])以及(黑色体[1])和(白色体和高>高[1]和低>低[1])
label.new(条形索引,高+线条大小/2,“短”,样式=label.style\u label\u down)
策略.订单(“卖出”,错误,1,当=低
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)