Closed hellomyvision closed 2 years ago
Hello gentle guys?
I'm studying tradingview pine script source code.
I want to make some indicator like my picture below.
I'd like to mark when the close and leadline are cross eachother over or under only.
but I don't know why the gogo and nono mark are discoverd at all time.
pleae help me gentle guys!
//@version=5 indicator("my Script", overlay=true) laggingSpan2Periods = input.int(26, minval=1, title="Leading Span B Length") donchian(len) => math.avg(ta.lowest(len), ta.highest(len)) leadline = donchian(laggingSpan2Periods) displacement = input.int(26, minval=1, title="Displacement")
plot(close) p2 = plot(leadline, offset = displacement - 1, color=color.red, title="Leading Span B")
isOver = ta.crossover(close, leadline) isUnder = ta.crossunder(close, leadline)
plotshape(isOver, text="gogo~", style=shape.arrowup, location=location.belowbar, size=size.large, color=color.green) plotshape(isUnder, text="nono~", style=shape.arrowdown, location=location.abovebar, size=size.large, color=color.red)
f
Hello @hellomyvision, have you asked on the discord ? Here is the link: https://discord.gg/MWTJVFf
Hello gentle guys?
I'm studying tradingview pine script source code.
I want to make some indicator like my picture below.
I'd like to mark when the close and leadline are cross eachother over or under only.
but I don't know why the gogo and nono mark are discoverd at all time.
pleae help me gentle guys!
//@version=5 indicator("my Script", overlay=true) laggingSpan2Periods = input.int(26, minval=1, title="Leading Span B Length") donchian(len) => math.avg(ta.lowest(len), ta.highest(len)) leadline = donchian(laggingSpan2Periods) displacement = input.int(26, minval=1, title="Displacement")
plot(close) p2 = plot(leadline, offset = displacement - 1, color=color.red, title="Leading Span B")
isOver = ta.crossover(close, leadline) isUnder = ta.crossunder(close, leadline)
plotshape(isOver, text="gogo~", style=shape.arrowup, location=location.belowbar, size=size.large, color=color.green) plotshape(isUnder, text="nono~", style=shape.arrowdown, location=location.abovebar, size=size.large, color=color.red)
f