fxcodebase-backup

Linear Regression Line (LSMA)

Source: https://fxcodebase.com/code/viewtopic.php?f=17&t=14929
Forum: 17 · Topic 14929 · 14 post(s)


Linear Regression Line (LSMA)

Apprentice · Mon Mar 19, 2012 1:51 pm

Linear Regression Line.png

Linear Regression Line.lua

Linear Regression Line with Alert.lua

LSMA.lua

The indicator was revised and updated


Re: Linear Regression Line

sagymmm · Thu Sep 20, 2012 5:26 am

Hello sir, Is there a possibility to have a linear regression cross over indicator? the used indicator is the regression line Entry point is the crossover of the lighter (for example regression line (20)) to the heavier (regression line (50)) as shown in the attached chart If the crossover is up we go long and if down we go short Stop loss or exit will be a red candle closing below the regression line (50) in case of long and green candle closing above regression line (50) in case of short That can be applicable to different pairs on different time frames with different settings of the regression line Thx for your interest


Re: Linear Regression Line (LSMA)

Apprentice · Sun Oct 21, 2012 5:23 am

Requested can be found here. viewtopic.php?f=31&t=24708


Re: Linear Regression Line (LSMA)

sagymmm · Wed Oct 31, 2012 7:12 am

Thx sir


Re: Linear Regression Line (LSMA)

Alexander.Gettinger · Tue Aug 13, 2013 8:36 am

MQL4 version of Linear Regression Line: http://www.fxcodebase.com/code/viewtopi … 466#p88466


Re: Linear Regression Line (LSMA)

Apprentice · Thu Jan 15, 2015 4:23 am

Bump Up.


Re: Linear Regression Line (LSMA)

Apprentice · Sun May 01, 2016 10:58 am

Linear Regression Line with Alert.lua Added.


Re: Linear Regression Line (LSMA)

Apprentice · Sun Jun 04, 2017 5:25 am

The indicator was revised and updated.


Re: Linear Regression Line (LSMA)

ahmedalhosenyy · Sun Feb 23, 2025 5:09 pm

Nice indicator indeed .

=request about the indicator is to have extra another way of changing color “ price above the line = green , price below line = red.

Also -Is it applicable to have Lsma candle indicator “ change candle color according to lsma color.


Re: Linear Regression Line (LSMA)

ahmedalhosenyy · Sun Feb 23, 2025 5:15 pm

https://forex-station.com/post1295402408.html#p1295402408


Re: Linear Regression Line (LSMA)

Apprentice · Mon Feb 24, 2025 3:50 pm

EURUSD D1 (02-24-2025 2203).png

Linear Regression Line.lua


Re: Linear Regression Line (LSMA)

ahmedalhosenyy · Mon Feb 24, 2025 4:45 pm

Many thanks , really appreciated


Re: Linear Regression Line (LSMA)

ahmedalhosenyy · Tue Oct 07, 2025 7:04 pm

May you add another option

above Lsma green , below lsma red

thanks


Re: Linear Regression Line (LSMA)

Apprentice · Sun Oct 12, 2025 2:35 am

We have added your request to the development list. Development reference 661