# 2BB_EMA_Fibonacci

75 lượt xem
75
//@version=3

// Jchinh
// 3 EMA en 1 Indicador and 2 bollinger band
// 3 Medias Móviles Exponenciales en un Indicador

//@version=3
study(shorttitle="Jchinh", title="3 EMA 132134", overlay=true)
m1 = input(05, minval=2)
m2 = input(08, minval=2)
m3 = input(13, minval=2)
m4 = input(21, minval=2)
m5 = input(34, minval=2)
m6 = input(55, minval=2)
m7 = input(89, minval=2)
m8 = input(144, minval=2)
m9 = input(233, minval=2)
m10 = input(377, minval=2)
m11 = input(610, minval=2)
m12 = input(987, minval=2)
m13 = input(1597, minval=2)
m14 = input(2584, minval=2)

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)

plot(media_1, color=red)
plot(media_2, color=orange)
plot(media_3, color=purple)
plot(media_4, color=black)
plot(media_5, color=blue)
plot(media_6, color=yellow)
plot(media_7, color=gray)
plot(media_8, color=green)
plot(media_9, color=silver)
plot(media_10, color=black)
plot(media_11, color=black)
plot(media_12, color=black)
plot(media_13, color=black)
plot(media_14, color=black)

//study(shorttitle="jchinh2BB", title="Bollinger Bands double", overlay=true)
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, color=green)
plot(upper1, color=green)
plot(lower1, color=green)
plot(upper2, color=green)
plot(lower2, color=green)
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 עברית