You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.22 11:30:59