PineScript策略开发遇'end of line without line continuation'报错求助
PineScript 报错求助:'end of line without line continuation'
我不是PineScript资深开发者,目前在做策略开发,但始终遇到报错end of line without line continuation。试过用4空格或制表符格式化代码,也找过相关平台和ChatGPT,都没能解决,报错一直出现。希望能在这里分享代码,有人帮忙排查问题,以下是我写的代码:
BP = iff(close < open, iff(close[1] < open, math.max(high - close[1], close - low), math.max(high - open, close - low)), iff(close > open, iff(close[1] > open, high - low, math.max(open - close[1], high - low)), iff(high - close > close - low, iff(close[1] < open, math.max(high - close[1], close - low), high - open), iff(high - close < close - low, iff(close[1] > open, high - low, math.max(open - close[1], high - low)), iff(close[1] > open, math.max(high - open, close - low), iff(close[1] < open, math.max(open - close[1], high - low), high - low)))))))
内容的提问来源于stack exchange,提问作者user25532658
相关产品推荐
相关产品推荐

