calculate the slope of moving average


Category:
0
0

Dear Pete,

Hi, I am Jerry, I would like to calculate the slope of 17Days simple moving average. May I ask how can I get the value of the 17Days simple moving average of the day and calculate the slope comparing with the previous day, using the slope formula in thinkscript?

A case is attached, how could I calculate and get the value of slope using the two points(3.77, 3.8)

 

 

Attachments:
Marked as spam
Posted by (Questions: 1, Answers: 0)
Asked on April 1, 2020 3:43 am
441 views
0
Private answer

It is not possible to compute angles on a chart. Because the zoom setting can change the distance between candles and therefore angles do not exist. Slope may be positive or negative but it can never be expressed as an angle for stock chart on any trading platform. The best you do is to compute rise over time. This has already been explained in the forum:

https://www.hahn-tech.com/ans/slope/

https://www.hahn-tech.com/ans/34-ema-on-slope-scan/

 

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on April 1, 2020 8:37 am