fix: Correct Pine Script plotshape syntax error by removing explicit parameter names
This commit is contained in:
parent
3123fb2159
commit
013a76a53d
@ -31,23 +31,23 @@ fill(upper_plot, lower_plot, color.new(#673AB7, 90), "Band Area")
|
|||||||
|
|
||||||
// Signal markers
|
// Signal markers
|
||||||
plotshape(
|
plotshape(
|
||||||
series=bullish,
|
bullish,
|
||||||
title="Bullish Signal",
|
"Bullish Signal",
|
||||||
style=shape.triangleup,
|
shape.triangleup,
|
||||||
location=location.belowbar,
|
location.belowbar,
|
||||||
color=color.green,
|
color.green,
|
||||||
size=size.small
|
size=size.small
|
||||||
)
|
)
|
||||||
|
|
||||||
plotshape(
|
plotshape(
|
||||||
series=bearish,
|
bearish,
|
||||||
title="Bearish Signal",
|
"Bearish Signal",
|
||||||
style=shape.triangledown,
|
shape.triangledown,
|
||||||
location=location.abovebar,
|
location.abovebar,
|
||||||
color=color.red,
|
color.red,
|
||||||
size=size.small
|
size=size.small
|
||||||
)
|
)
|
||||||
|
|
||||||
// Alerts equivalent to get_signals() method
|
// Alerts equivalent to get_signals() method
|
||||||
alertcondition(bullish, title="Bullish Signal Detected", message="Sunny Bands: Bullish crossover of lower band")
|
alertcondition(bullish, "Bullish Signal Detected", "Sunny Bands: Bullish crossover of lower band")
|
||||||
alertcondition(bearish, title="Bearish Signal Detected", message="Sunny Bands: Bearish crossunder of upper band")
|
alertcondition(bearish, "Bearish Signal Detected", "Sunny Bands: Bearish crossunder of upper band")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user