专家您好,输入“upSh”时出现语法错误,请建议更正

问题描述 投票:0回答:1
isRes = high[length] > upper
isSup = low[length] < lower
if isRes and isSup
upSh = high[length] - math.max(open[length]), close[length])
downSh = math.max(open[length]), close[length]) - low[length]
isRes := isRes and upSh > dwSh
isSup := isSup and dwSh > upSh
os := isRes ? 0 : isSup ? 1 : -1

请建议更正输入“upSh”时的语法错误

syntax
1个回答
0
投票

应该是您使用的变量

dwSh
中的拼写错误 - 因为您将其声明为
downSh

© www.soinside.com 2019 - 2024. All rights reserved.