The SMA calculates the average of a selected range of prices by the number of periods in that range. It is the most fundamental trend indicator.
//@version=6
indicator('SMA', overlay=true)
len = input.int(9, 'Length')
plot(ta.sma(close, len), 'SMA', color=color.blue)Enhance your trading workflow with these professional tools and platforms.
Get funded up to $300K. Keep 90% of your profits.
The professional choice for secure execution.
Mirror top-tier traders instantly.