TradingView
RicardoSantos
2016년 1월 11일 오후 9시 57분
[RS]Auto Regression Channel V0
FX:EURUSD
5
Euro Fx/U.S. Dollar
FXCM
설명
⋅
2016년 1월 11일 오후 9시 57분
EXPERIMENTAL:
Auto adjusting regressive channel.
experimental
regression
Parallel Channel
코멘트
Spunsen
⋅
2022년 5월 2일 오후 6시 48분
//Для тех, кто искал //
@version
=5
//
@version
=5
indicator(title='[RS]Auto Regression Channel V0', shorttitle='ARC', overlay=true)
length_RS = input(10)
length2_RS = input(10)
multiplier_RS = input(0.01)
h_RS = 0.0
l_RS = 0.0
mid_RS = 0.0
ema_1 = ta.ema(close, length_RS)
ema_2 = ta.ema(h_RS[1] - close, length_RS)
ema_3 = ta.ema(h_RS[1] - close, length_RS)
h_RS := ta.ema(na(h_RS[1]) ? high : high >= h_RS[1] ? high : ema_1 >= mid_RS[1] ? h_RS[1] + ema_2 * multiplier_RS : h_RS[1] - ema_3 * multiplier_RS, length2_RS)
ema_4 = ta.ema(close, length_RS)
ema_5 = ta.ema(close - l_RS[1], length_RS)
ema_6 = ta.ema(close - l_RS[1], length_RS)
l_RS := ta.ema(na(l_RS[1]) ? low : low <= l_RS[1] ? low : ema_4 <= mid_RS[1] ? l_RS[1] - ema_5 * multiplier_RS : l_RS[1] + ema_6 * multiplier_RS, length2_RS)
mid_RS := math.avg(h_RS, l_RS)
plot(title='H', series=h_RS, color=color.new(color.black, 0), linewidth=2)
plot(title='M', series=mid_RS, color=color.new(color.black, 0), linewidth=2)
plot(title='L', series=l_RS, color=color.new(color.black, 0), linewidth=2)
theCerics
⋅
2018년 7월 19일 오전 10시 56분
You really make useful scripts.....loved this one : )
BillionaireLau
⋅
2020년 4월 19일 오전 9시 11분
Is that really regresison ? Seems like it is composed by ema
h2Trader
⋅
2018년 6월 16일 오후 6시 22분
#Grail. Thnx Dev! <3
더보기
//@version=5
indicator(title='[RS]Auto Regression Channel V0', shorttitle='ARC', overlay=true)
length_RS = input(10)
length2_RS = input(10)
multiplier_RS = input(0.01)
h_RS = 0.0
l_RS = 0.0
mid_RS = 0.0
ema_1 = ta.ema(close, length_RS)
ema_2 = ta.ema(h_RS[1] - close, length_RS)
ema_3 = ta.ema(h_RS[1] - close, length_RS)
h_RS := ta.ema(na(h_RS[1]) ? high : high >= h_RS[1] ? high : ema_1 >= mid_RS[1] ? h_RS[1] + ema_2 * multiplier_RS : h_RS[1] - ema_3 * multiplier_RS, length2_RS)
ema_4 = ta.ema(close, length_RS)
ema_5 = ta.ema(close - l_RS[1], length_RS)
ema_6 = ta.ema(close - l_RS[1], length_RS)
l_RS := ta.ema(na(l_RS[1]) ? low : low <= l_RS[1] ? low : ema_4 <= mid_RS[1] ? l_RS[1] - ema_5 * multiplier_RS : l_RS[1] + ema_6 * multiplier_RS, length2_RS)
mid_RS := math.avg(h_RS, l_RS)
plot(title='H', series=h_RS, color=color.new(color.black, 0), linewidth=2)
plot(title='M', series=mid_RS, color=color.new(color.black, 0), linewidth=2)
plot(title='L', series=l_RS, color=color.new(color.black, 0), linewidth=2)