20813

Multi Timeframe EMA

This indicator will show you the exponantial moving average (ema) of the higher timeframes (up to 1D). Current timeframe is colored red, higher timeframes are colored from light to dark gray (you can change this).

How to Trade this:

1. Look for tranding ema on higher timeframe (line is stepping up).
2. Look for faster time frames to pull back (decline) to a higher timeframe.
3. This is a good area to look for a buy entry (vice versa for sell entry).

Don't fight the trend :)

Updated Version:
สคริปต์โอเพนซอร์ซ

ด้วยจิตวิญญาณของ TradingView อย่างแท้จริง ผู้เขียนสคริปต์นี้ได้เผยแพร่เป็นโอเพนซอร์ส เพื่อให้ผู้ค้าสามารถเข้าใจและตรวจสอบได้ ไชโยให้กับผู้เขียน! คุณสามารถใช้ได้ฟรี แต่การใช้รหัสนี้ซ้ำในสิ่งพิมพ์อยู่ภายใต้กฎระเบียบการใช้งาน คุณสามารถตั้งเป็นรายการโปรดเพื่อใช้บนชาร์ตได้

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ เงื่อนไขการใช้บริการ

ต้องการที่จะใช้สคริปต์นี้บนชาร์ตใช่ไหม?
study("Multi Timeframe EMA", shorttitle="MTF_EMA",overlay=true)
len = input(20, title="Length", type=integer)
src = input(close, title="Source", type=source)
show5m = input(true, title="show 5m", type=bool)
show15m = input(true, title="show 15m", type=bool)
show30m = input(true, title="show 30m", type=bool)
show1h = input(true, title="show 1h", type=bool)
show2h = input(true, title="show 2h", type=bool)
show4h = input(true, title="show 4h", type=bool)
show1D = input(true, title="show 1D", type=bool)

emaCurrent = ema(src,len)
ema5m = security(ticker,"5",ema(src,len))
ema15m = security(ticker,"15",ema(src,len))
ema30m = security(ticker,"30",ema(src,len))
ema1h = security(ticker,"60",ema(src,len))
ema2h = security(ticker,"120",ema(src,len))
ema4h = security(ticker,"240",ema(src,len))
ema1D = security(ticker,"D",ema(src,len))

plot(emaCurrent, color=red, title="ema current")

plot(show5m ? ema5m : na, color=interval < 5 and not isdaily and not isweekly and not ismonthly  ? #aaaaaa : na, title="ema 5m")
plot(show15m ? ema15m : na, color=interval < 15 and not isdaily and not isweekly and not ismonthly  ? #999999 : na, title="ema 15m")
plot(show30m ? ema30m : na, color=interval < 30 and not isdaily and not isweekly and not ismonthly  ? #888888 : na, title="ema 30m")
plot(show1h ? ema1h : na, color=interval < 60 and not isdaily and not isweekly and not ismonthly  ? #777777 : na, title="ema 1h")
plot(show2h ? ema2h : na, color=interval < 120 and not isdaily and not isweekly and not ismonthly  ? #666666 : na, title="ema 2h")
plot(show4h ? ema4h : na, color=interval < 240 and not isdaily and not isweekly and not ismonthly ? #555555 : na, title="ema 4h")
plot(show1D ? ema1D : na, color=not isdaily and not isweekly and not ismonthly ? #444444 : na, title="ema 1D")