I am using Excel to calculate thresholds for slope. X's are the number of a day. Y's are the price of a stock at the close of the day. Here is my Array:
X's Y's
3 68.82
2 70.12
1 69.40
The 3 day Slope of this array is -0.29 using the SLOPE function.
Now I want to replace 68.82 with a number such that my slope calculates to -0.02. Sure, I could simply manually iterate the 68.82 number to get it to equal -0.02, but I need a solution to mathematically solve the 68.82 number to achieve the -0.02 slope given the rest of the X's and Y's remain unchanged.
Thanks in advance!
X's Y's
3 68.82
2 70.12
1 69.40
The 3 day Slope of this array is -0.29 using the SLOPE function.
Now I want to replace 68.82 with a number such that my slope calculates to -0.02. Sure, I could simply manually iterate the 68.82 number to get it to equal -0.02, but I need a solution to mathematically solve the 68.82 number to achieve the -0.02 slope given the rest of the X's and Y's remain unchanged.
Thanks in advance!