Attachments forums

List of attachments posted on this forum.


All files on forums: 135479

Re: Moving Average indicators for MT4

mrtools, Wed Aug 25, 2021 1:50 am

ujtrader wrote: Wed Aug 25, 2021 12:46 am i am struggling to find lsma indicator like trading view for mt4 with all 3 parameters. can anyone please help?

Code: Select all

study(title = "Least Squares Moving Average", shorttitle="LSMA", overlay=true, resolution="")
length = input(title="Length", type=input.integer, defval=25)
offset = input(title="Offset", type=input.integer, defval=0)
src = input(close, title="Source")
lsma = linreg(src, length, offset)
plot(lsma)
Have this version, there is also lsma included in the averages indicator.
All files in topic