You are on page 1of 1

// This source code is subject to the terms of the Mozilla Public License 2.

0 at
https://mozilla.org/MPL/2.0/
// © Trendy_Traders

//@version=4

// This source code is subject to the terms of the Mozilla Public License 2.0 at
https://mozilla.org/MPL/2.0/
// © Trendy_Traders

//@version=4
study("Trendy_Traders Indicator", overlay=true)

[Trend1, dir_1] = supertrend(3, 7)


[Trend2, dir_2] = supertrend(2, 7)
[Trend3, dir_3] = supertrend(4, 10)

Long = close > Trend1 and close > Trend2 and close > Trend3 and
crossover(rsi(close,14),60) and volume > sma(volume,20)
Short = close < Trend1 and close < Trend2 and close < Trend3 and
crossunder(rsi(close,14),40) and volume > sma(volume,20)

plotshape(Long, title="Long", text="Long", textcolor=color.white,


style=shape.labelup, location=location.belowbar, color=color.green, transp=0,
size=size.tiny)
plotshape(Short, title="Short", text="Short", textcolor=color.white,
style=shape.labeldown, location=location.abovebar, color=color.red, transp=0,
size=size.tiny)

You might also like