Krach

Moving Average Area

Background Color changes if the CLOSE price is above or below the MA. You can also turn above or below OFF and change the colors. Enjoy
Skrip sumber terbuka

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Ingin menggunakan skrip ini pada carta?
// =====================================
// MA AREA
// by KRACH 

 
// ELI5 Description:
// =================
// Highlights area on chart when price is above the ma
// You can change the EMA and Color values
 
// 
// ====================
// *Get Rekt at your own risk*
// Tips BTC: 13CJxLuCKmccDvJDDrxa57NUKy7UEXFogz
// http://mktfx.com
// =====================================
study(title="Moving Average Area", shorttitle="Krach - MA Area", overlay=true)
len = input(9, minval=1, title="Length")
src = input(close, title="Source")
out = sma(src, len)
plot(out, color=blue, title="MA")
bgcolor(out <close ? silver:red, transp=90)