Adding a linear regression (best fit) line to an indicator [SOLVED]
-
- Posts: 191
- Joined: 27 Apr 2010
- Location: San Jose
- Has thanked: 67 times
- Been thanked: 10 times
Adding a linear regression (best fit) line to an indicator
Does MC (or anybody else?) have any code samples for feeding indicator data into the LinearReg function? I've got a custom indicator to which I'd like to apply a best fit line and have been chasing my tail. Any help or references would be hugely appreciated.
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: Adding a linear regression (best fit) line to an indicat [SOLVED]
there is a built-in function for LinearReg.Does MC (or anybody else?) have any code samples for feeding indicator data into the LinearReg function? I've got a custom indicator to which I'd like to apply a best fit line and have been chasing my tail. Any help or references would be hugely appreciated.
just apply that to whatever data you have.