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
|
||||
plotshape(
|
||||
bullish,
|
||||
"Bullish Signal",
|
||||
style=shape.triangleup,
|
||||
location=location.belowbar,
|
||||
color=color.green,
|
||||
size=size.small
|
||||
series=bullish,
|
||||
title="Bullish Signal",
|
||||
style=shape.triangleup,
|
||||
location=location.belowbar,
|
||||
color=color.green,
|
||||
size=size.small
|
||||
)
|
||||
|
||||
plotshape(
|
||||
bearish,
|
||||
"Bearish Signal",
|
||||
style=shape.triangledown,
|
||||
location=location.abovebar,
|
||||
color=color.red,
|
||||
size=size.small
|
||||
series=bearish,
|
||||
title="Bearish Signal",
|
||||
style=shape.triangledown,
|
||||
location=location.abovebar,
|
||||
color=color.red,
|
||||
size=size.small
|
||||
)
|
||||
|
||||
// Alerts equivalent to get_signals() method
|
||||
alertcondition(
|
||||
bullish,
|
||||
"Bullish Signal Detected",
|
||||
"Sunny Bands: Bullish crossover of lower band"
|
||||
condition=bullish,
|
||||
title="Bullish Signal Detected",
|
||||
message="Sunny Bands: Bullish crossover of lower band"
|
||||
)
|
||||
|
||||
alertcondition(
|
||||
bearish,
|
||||
"Bearish Signal Detected",
|
||||
"Sunny Bands: Bearish crossunder of upper band"
|
||||
condition=bearish,
|
||||
title="Bearish Signal Detected",
|
||||
message="Sunny Bands: Bearish crossunder of upper band"
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user