В видео показал как можно создавать оповещения по своим собственным условиям, отличным от тех, что идут в базовой комплектации ТВ.
Comment:
Просили код индикатора, вот он:
indicator("AlertCond")
act = input.symbol(defval = 'ETHUSDT', title = 'input Active 2')
source = input(defval = ohlc4, title = 'source')
p = input.int(title="period", defval = 30)
s = request.security(act, timeframe.period, source)
r1 = ta.rsi(source, p)
r2 = ta.rsi(s, p)
d = math.abs(r1 - r2)
plot(r1, color = color.red, linewidth = 2)
plot(r2, color = color.yellow, linewidth = 1)
alertcondition(r1 < 20 and r2 > 80, title = 'diver')
alertcondition(d>10, title = 'd>10')
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
indicator("AlertCond")
act = input.symbol(defval = 'ETHUSDT', title = 'input Active 2')
source = input(defval = ohlc4, title = 'source')
p = input.int(title="period", defval = 30)
s = request.security(act, timeframe.period, source)
r1 = ta.rsi(source, p)
r2 = ta.rsi(s, p)
d = math.abs(r1 - r2)
plot(r1, color = color.red, linewidth = 2)
plot(r2, color = color.yellow, linewidth = 1)
alertcondition(r1 < 20 and r2 > 80, title = 'diver')
alertcondition(d>10, title = 'd>10')