我在 Pine Script 中有一行:
baseLine := line.new(x1, y1, x2, y2, width=1, extend=extendStyle, color=color.new(colorLower, 0))
我如何检测价格是否超过了基线?
isCrossed = ta.crossover(high, baseline)
上面的行导致以下错误:
Cannot call 'ta.crossover' with argument 'source2'='baseline'. An argument of 'series line' type was used but a 'series float' is expected.