refactor: Improve plotshape and alertcondition parameter clarity in Sunny_Bands.pine
This commit is contained in:
parent
c445f350d9
commit
1c4c9553a2
@ -31,32 +31,32 @@ fill(upper_plot, lower_plot, color.new(#673AB7, 90), "Band Area")
|
|||||||
|
|
||||||
// Signal markers
|
// Signal markers
|
||||||
plotshape(
|
plotshape(
|
||||||
bullish,
|
series=bullish,
|
||||||
"Bullish Signal",
|
title="Bullish Signal",
|
||||||
style=shape.triangleup,
|
style=shape.triangleup,
|
||||||
location=location.belowbar,
|
location=location.belowbar,
|
||||||
color=color.green,
|
color=color.green,
|
||||||
size=size.small
|
size=size.small
|
||||||
)
|
)
|
||||||
|
|
||||||
plotshape(
|
plotshape(
|
||||||
bearish,
|
series=bearish,
|
||||||
"Bearish Signal",
|
title="Bearish Signal",
|
||||||
style=shape.triangledown,
|
style=shape.triangledown,
|
||||||
location=location.abovebar,
|
location=location.abovebar,
|
||||||
color=color.red,
|
color=color.red,
|
||||||
size=size.small
|
size=size.small
|
||||||
)
|
)
|
||||||
|
|
||||||
// Alerts equivalent to get_signals() method
|
// Alerts equivalent to get_signals() method
|
||||||
alertcondition(
|
alertcondition(
|
||||||
bullish,
|
condition=bullish,
|
||||||
"Bullish Signal Detected",
|
title="Bullish Signal Detected",
|
||||||
"Sunny Bands: Bullish crossover of lower band"
|
message="Sunny Bands: Bullish crossover of lower band"
|
||||||
)
|
)
|
||||||
|
|
||||||
alertcondition(
|
alertcondition(
|
||||||
bearish,
|
condition=bearish,
|
||||||
"Bearish Signal Detected",
|
title="Bearish Signal Detected",
|
||||||
"Sunny Bands: Bearish crossunder of upper band"
|
message="Sunny Bands: Bearish crossunder of upper band"
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user