你能帮我解决这个问题吗:"end of line without continuation"



Pine v3中有一段代码。行:DivBull =有一个错误end of line without continuation

我不知道该怎么修。

DivergenceSource=input(close)
highHist=outHist
highHist:=outHist>0 and outHist[1]<0?outHist:outHist<0?0:outHist>highHist[1]?outHist:highHist[1]
highprice=DivergenceSource
highprice:=highHist==0?0:highHist>highHist[1]?DivergenceSource:highprice[1]
highHist_=highHist
highHist_:=highHist==0 and highHist[1]>0?highHist[1]:highHist_[1]
highprice_=highprice
highprice_:=highprice==0 and highprice[1]>0?highprice[1]:highprice_[1]
DivBull = (highHist_[1]>highHist[1] and highprice_[1]<highprice[1]) and ((highHist>0 and (highHist==highHist[1] and highHist!=highHist[2])) or (highHist==0 and outHist[1]==highHist_)
bgcolor((highHist_[1]>highHist[1] and highprice_[1]<highprice[1]) and ((highHist>0 and (highHist==highHist[1] and highHist!=highHist[2])) or (highHist==0 and outHist[1]==highHist_))?red:na,transp=50,offset=-1)

((highHist>0 and (highHist==highHist[1] and highHist!=highHist[2]))中有一个额外的(

更改为:

DivBull = (highHist_[1]>highHist[1] and highprice_[1]<highprice[1]) and (highHist>0 and (highHist==highHist[1] and highHist!=highHist[2])) or (highHist==0 and outHist[1]==highHist_)

相关内容

最新更新