搜索
产品
社区
市场
新闻
经纪商
更多
CN
开始
Как создавать оповещения по своим условиям
教学
XRP / TetherUS PERPETUAL CONTRACT
(
BINANCE:XRPUSDT.P
)
IntelTrading
已更新
BINANCE:XRPUSDT.P
XRP / TetherUS PERPETUAL CONTRACT
Trend Analysis
alert
Relative Strength Index (RSI)
92
7
trendanalysis
alert
relativestrengthindex
В видео показал как можно создавать оповещения по своим собственным условиям, отличным от тех, что идут в базовой комплектации ТВ.
评论:
Просили код индикатора, вот он:
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')
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在
使用条款
阅读更多信息。
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')