'End of line Continuation issue
I am trying to resolve the issue with some Pine code but can't seem to find the root cause. Can anyone kindly assist in finding the cause of the error?
indicator(title="Multiple alert criteria - example 1", overlay=false)
rsiValue = ta.rsi(close, 12)
// Set up alert
alertcondition (condition= (rsiValue > 50) and (close > ta.ema(close, 25)),message="RSI > 50 with EMA uptrend")
// Plot values
plot (series=rsiValue,color red,linewidth=2)
Solution 1:[1]
Change line
plot (series=rsiValue,color red,linewidth=2)
with
plot(rsiValue, color = color.red, linewidth = 2)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Starr Lucky |
