В видео показал как можно создавать оповещения по своим собственным условиям, отличным от тех, что идут в базовой комплектации ТВ.
הערה:
Просили код индикатора, вот он:
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')