Professional Documents
Culture Documents
New Text Document
New Text Document
//
// Pine Script v4
//
// MA is a variable used to store the actual moving average value. In this case,
from the sma() built-in function
// sma - https://www.tradingview.com/pine-script-reference/v4/#fun_sma
MA = sma(close, MAPeriod)