//version=5
indicator('ArraTrader Golden Fibo', shorttitle='ArraTrader Golden Fibo', overlay=true)
dispdfibs = input(true, title='Munculkan Arra Fibo')

dhigh = request.security(syminfo.tickerid, '240', high)
dlow = request.security(syminfo.tickerid, '240', low)

newdint = dayofweek != dayofweek[120]

dh = 0.0
dh := newdint ? dhigh : dh[0]
dl = 0.0
dl := newdint ? dlow : dl[0]


//-------------------

d_diff = dh - dl

d_620 = d_diff * 0.620
d_786 = d_diff * 0.786
d_886 = d_diff * 0.886
d_1272 = d_diff * 1.272
d_1620 = d_diff * 1.620
d_1786 = d_diff * 1.786
d_1886 = d_diff * 1.886
d_2240 = d_diff * 2.224
d_2168 = d_diff * 2.168
d_1068 = d_diff * 1.068


// Daily Internal fibo lower
dfib1 = plot(dl != dl[1] ? na : dispdfibs ? dl - d_620 : na, style=plot.style_linebr, color=color.rgb(126, 41, 41), linewidth=2, title='Entry 2 Bawah')
dfib3 = plot(dl != dl[1] ? na : dispdfibs ? dl - d_886 : na, style=plot.style_linebr, color=color.rgb(0, 0, 0), linewidth=2, title='Entry 3 Bawah')
//--------------------

// Daily Internal fibo upper
dfib4 = plot(dl != dl[1] ? na : dispdfibs ? dh + d_620 : na, style=plot.style_linebr, color=color.rgb(126, 41, 41), linewidth=2, title='Entry 2 Atas')
dfib6 = plot(dl != dl[1] ? na : dispdfibs ? dh + d_886 : na, style=plot.style_linebr, color=color.rgb(0, 0, 0), linewidth=2, title='Entry 3 Atas')

//--------------------


// Daily upper fibo
dfib7 = plot(dl != dl[1] ? na : dispdfibs ? dl + d_1272 : na, style=plot.style_linebr, color=color.rgb(0, 35, 164), linewidth=2, title='Pullback Entry 1 Bawah')
//--------------------

// Daily lower fibo
dfib11 = plot(dl != dl[1] ? na : dispdfibs ? dh - d_1272 : na, style=plot.style_linebr, color=color.rgb(0, 55, 255), linewidth=2, title='Pullback Entry 1 Atas')
//--------------------
Technical Indicators

Thông báo miễn trừ trách nhiệm