커뮤니티
hull wave 변환
트레이딩뷰, 변환 부탁드립니다.
indicator("Hull Waves", "Hull Waves", true, max_lines_count = 100, max_bars_back = 100)
fiu_time = input.int (100, title="Number of Lines", minval=1)
mira = input.int (15, title="Lenght of fan")
lineColorUp = input (color.lime, title="Color for Lines Going Up")
lineColorDown = input (color.rgb(248, 5, 5), title="Color for Lines Going Down")
fillColorUp = input (color.new(#0fb5d2, 66), title="Fill Color for Up Lines")
fillColorDown = input (color.new(#de0ee2, 54), title="Fill Color for Down Lines")
sma1Length = input (8, title="Length for 5-period HMA")
sma2Length = input (21, title="Length for 20-period HMA")
fivehma = ta.hma(close, sma1Length)
twentyhma = ta.hma(close, sma2Length)
firstplot = plot(fivehma, title="8-period HMA", color=lineColorUp)
secondplot = plot(twentyhma, title="21-period HMA", color=lineColorDown)
fill(firstplot, secondplot, fivehma > twentyhma ? fillColorUp : fillColorDown)
for i = 0 to fiu_time
lineUp = math.avg(close[1], open[1])
discover_01 = (close - open) / fiu_time
giude_line = open + (discover_01 * i)
giude_line := giude_line + (giude_line - lineUp)
lineColor = giude_line > lineUp ? lineColorUp : lineColorDown
line.new(bar_index - 1, lineUp, bar_index + mira, giude_line, color = lineColor)
alertcondition(condition = ta.crossover(fivehma, twentyhma), title = "Hull Waves Cross", message = "The Hull Waves have crossed!")
답변 5
예스스탁 예스스탁 답변
2026-11-19 10:03:43
고성
2026-11-19 13:26:48
예스스탁 예스스탁 답변
2026-11-19 14:11:04
고성
2026-11-19 14:21:30
예스스탁 예스스탁 답변
2026-11-19 14:58:13