w1ld3r / crypto-signal

The #1 Automated Technical Analysis (TA) & Algo. Trading tool for Coinbase, Bittrex, Binance, and more! (Track over 500+ coins)
http://cryptosignal.dev
MIT License
76 stars 37 forks source link

[FEATURE] ... I want to make it help me T T #55

Closed hellomyvision closed 2 years ago

hellomyvision commented 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)

20220222_161559 20220222_161630 f

w1ld3r commented 2 years ago

Hello @hellomyvision, have you asked on the discord ? Here is the link: https://discord.gg/MWTJVFf