style: Format Pine Script function calls with proper indentation
This commit is contained in:
parent
3e39261fd5
commit
c445f350d9
@ -30,13 +30,33 @@ lower_plot = plot(lower_band, "Lower Band", color=color.new(#4CAF50, 0), linewid
|
|||||||
fill(upper_plot, lower_plot, color.new(#673AB7, 90), "Band Area")
|
fill(upper_plot, lower_plot, color.new(#673AB7, 90), "Band Area")
|
||||||
|
|
||||||
// Signal markers
|
// Signal markers
|
||||||
plotshape(bullish, "Bullish Signal", style=shape.triangleup,
|
plotshape(
|
||||||
location=location.belowbar, color=color.green, size=size.small)
|
bullish,
|
||||||
plotshape(bearish, "Bearish Signal", style=shape.triangledown,
|
"Bullish Signal",
|
||||||
location=location.abovebar, color=color.red, size=size.small)
|
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
|
||||||
|
)
|
||||||
|
|
||||||
// Alerts equivalent to get_signals() method
|
// Alerts equivalent to get_signals() method
|
||||||
alertcondition(bullish, "Bullish Signal Detected",
|
alertcondition(
|
||||||
"Sunny Bands: Bullish crossover of lower band")
|
bullish,
|
||||||
alertcondition(bearish, "Bearish Signal Detected",
|
"Bullish Signal Detected",
|
||||||
"Sunny Bands: Bearish crossunder of upper band")
|
"Sunny Bands: Bullish crossover of lower band"
|
||||||
|
)
|
||||||
|
|
||||||
|
alertcondition(
|
||||||
|
bearish,
|
||||||
|
"Bearish Signal Detected",
|
||||||
|
"Sunny Bands: Bearish crossunder of upper band"
|
||||||
|
)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user