字符不匹配' '期待'"'

问题描述 投票:0回答:1

我有这个指标代码,但它显示了这个错误

字符不匹配' ' 期待 '"' 在第 3 行

//@version=5
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // Sajid Khan Ghori
indicator (title="Volume Analysis', shorttitle= 'Relative Volume [ND]', overlay=false)
length1 input.int (14, minval-1, title= 'SMA length')
SMA88 plot(ta.sma (volume, length1) 0.5, color-color.new(color.teal, 75), style-plot.style_area, title= 'Lowest SMA') SMA13 plot(ta.sma (volume, length1) 1.9, color-color.new(color.green, 75), linewidth=1, title= 'Middle SMA') SMA18 plot(ta.sma (volume, length1) 2.2, color-color.new(color.red, 75), linewidth=1, title= 'High SMA") SMA3 plot(ta.sma (volume, length1) 3.5, color-color.new(color.purple, 75), linewidth=1, title= 'Highest SMA')
x = SMA3
fill(SMA13, SMA08, color-color.new(#0965f5, 81)) fill(SMA13, SMA18, color-color.new(#ffcdd2, 61)) fill(SMA3, SMA18, color-color.new(#e57373, 39))
I
colorx = volume < volume [1] and volume < volume [2] ? #f321cb: (volume > volume [1] or volume > volume [2]) and open < close color.blue: (volume > volume [1] or volume > volume [2]) and open close color.red: color.black
SMALong
plot(ta.sma (volume, length1), style-plot.style_line, color-color.new(color.black, 0), linewidth=2, title= 'MA line') SMABody plot (volume, style-plot.style_histogram, linewidth=4, color-colorx, title= 'VOLUME', transp=0)

我该如何解决这个问题?

pine-script pine-script-v5
1个回答
0
投票

在错误所示的第 3 行中,您有一个开头 ' 但已用“..”将其关闭

title= 'High SMA")

这应该更改为

title= 'High SMA')
© www.soinside.com 2019 - 2024. All rights reserved.