I wonder how I could add the linear regression slope value into another indicator and use it as a multiplier inside a formula to adjust a visual MA indicator output.
I mean, ideally the slope indicator should give me a value of X degrees (by a method described in this post or similar. I would like to then use the degrees inside a formula with two other multipliers Y (a fixed decimal number multiplier) and Z (an MA from an indicator) by the following
Does anyone have a good reference link or a code snippet sample for doing the above?
For example by using the basic LinReg and the LinRegSlope indicators.
Thank you.

Unless your scales have exactly the same values (i.e., 1 unit of price (in number of pixels/screen length) is exactly equal to 1 unit of time (in number of pixels/screen length), a slope will not look visually the way that you expect. IOW, what calculates to 45 degrees, for example, will look like 45 degrees if, and only if your scales are identical.
Comment