# BB_EMA_Kumo_Fibonacci

219 lượt xem
219
//@version=3
//Chinh
study(shorttitle="Jchinh1302", title="BB_EMA_Kumo_Fibonacci", overlay=true)

//==============================================

m1 = input(05, minval=1)
m2 = input(08, minval=1)
m3 = input(13, minval=1)
m4 = input(21, minval=1)
m5 = input(34, minval=1)
m6 = input(50, minval=1)
m7 = input(55, minval=1)
m8 = input(89, minval=1)
m9 = input(100, minval=1)
m10 = input(144, minval=1)
m11 = input(200, minval=1)
m12 = input(233, minval=1)
m13 = input(377, minval=1)
m14 = input(610, minval=1)
m15 = input(987, minval=1)
m16 = input(1597, minval=1)
m17 = input(2584, minval=1)

src = input(close, title="Source")

media_1 = ema ( src , m1 )
media_2 = ema ( src , m2 )
media_3 = ema ( src , m3 )
media_4 = ema ( src , m4)
media_5 = ema ( src , m5)
media_6 = ema ( src , m6)
media_7 = ema ( src , m7)
media_8 = ema ( src , m8)
media_9 = ema ( src , m9)
media_10 = ema ( src , m10)
media_11 = ema ( src , m11)
media_12 = ema ( src , m12)
media_13 = ema ( src , m13)
media_14 = ema ( src , m14)
media_15 = ema ( src , m15)
media_16 = ema ( src , m16)
media_17 = ema ( src , m17)

plot(media_1, title="EMA05",color=black)
plot(media_2, title="EMA08",color=purple)
plot(media_3, title="EMA13",color=red)
plot(media_4, title="EMA21",color=orange)
plot(media_5, title="EMA34",color=blue)
plot(media_6, title="EMA50",color=yellow)
plot(media_7, title="EMA55",color=gray)
plot(media_8, title="EMA89",color=green)
plot(media_9, title="EMA100",color=silver)
plot(media_10, title="EMA144",color=yellow)
plot(media_11, title="EMA200",color=black)
plot(media_12, title="EMA233",color=black)
plot(media_13, title="EMA337",color=black)
plot(media_14, title="EMA610",color=black)
plot(media_15, title="EMA987",color=black)
plot(media_16, title="EMA1597",color=black)
plot(media_17, title="EMA2584",color=black)
source = close

//==============================================

length = input(20, minval=1), mult1 = input(2, minval=0.001, maxval=50), mult2 = input(1, minval=0.001, maxval=50)
basis = sma (source, length)
dev1 = mult1 * stdev(source, length)
dev2 = mult2 * stdev(source, length)
upper1 = basis + dev1
lower1 = basis - dev1
upper2 = basis + dev2
lower2 = basis - dev2
plot(basis, title="Basic",color=green)
plot(upper1, title="bb+1",color=green)
plot(lower1, title="bb-1",color=green)
plot(upper2, title="bb+2",color=green)
plot(lower2, title="bb-2" ,color=green)

//==============================================

conversionPeriods = input(34, minval=1),
basePeriods = input(26, minval=1)
laggingSpan2Periods = input(52, minval=1),
displacement = input(26, minval=1)
donchian ( len ) => avg (lowest( len ), highest( len ))
conversionLine = donchian (conversionPeriods)
baseLine = donchian (basePeriods)
fill(p1, p2, color=black, transp=90)
VI Tiếng Việt
EN English
EN English (UK)
EN English (IN)
DE Deutsch
FR Français
ES Español
IT Italiano
PL Polski
SV Svenska
TR Türkçe
RU Русский
PT Português
ID Bahasa Indonesia
MS Bahasa Melayu
TH ภาษาไทย
JA 日本語
KO 한국어
ZH 简体中文
ZH 繁體中文
AR العربية
HE עברית