When I calculate the slope, it looks smooth on the graph, but the coordinate axis is too small for the x-axis, which results in a large value. How do you guys solve this problem? def angle ((v1)):
bx = 3502 -3516
by = 4
angle1 = math.atan2(bx, by)
print(angle1)
angle1 = int(angle1 * 180/math.pi)
print(angle1)
So the gaps, slopes and angles of 14 points are very large. - 1.2924966677897853 - What are you doing? -74, please.
The treeLet's do some research together.
Black and white.def angle ((v1, elongated): R = _C (exchange.GetRecords) The data length = len (v1) Data length = int ((data length −1)) Let's see if we can do this. dx1 = v1 [length of data] dy1 = data length + 1 dx2 is equal to v1 [Data length-length] while dx2 is None: So let's say that this is going to be equal to 1. dx2 is equal to v1 [Data length-length] dy2 = data length - lengthening So bx is equal to dx1 minus dx2. #by = dy1 - dy2 by = zhou*2 angle1 = math.atan2 ((bx, by) angle1 = int ((angle1 * 90/math.pi)) return angle is 1
Black and white.I'm just going to zoom in on the y-axis, and it looks a little bit normal.
Black and white. /upload/asset/21c62a2668df9cf81eb98.png
Black and white.I've changed the value range of the angle to 90, which is correct. I was thinking that the second and fourth quadrants add up to 180.
Inventors quantify - small dreamsThe slope of the data on the time series is calculated, but not as a simple triangular function graph. Because the X-axis is represented by the Y-axis, there are basically two defined values. LINEARREG_SLOPE ((Records[Close], Time Period = 14) = Array ((outReal) is a linear regression slope algorithm that refers to talib
Black and white.So I'm asking, what is this angle, which is the slope of the straight line, which is similar to the slope of the straight line as seen by the naked eye, and the purpose is to determine whether the line is going up or down, and then to make a decision based on the amplitude.
Inventors quantify - small dreams😂, in itself does not work, one is the number of K line BAR, one is the price data, neither one dimension, what is the meaning of the slope calculated.
Black and white.I'm trying to draw a graph right now, and I'm not feeling very good about it.
Inventors quantify - small dreamsWhat exactly is this by = 4? 4 bars? Or?
Black and white.The slope of the linear regression SLOPE is not quite the same as the slope of the data I want to express, I want to express the slope of the straight line similar to that seen with the naked eye.
Black and white.Okay, thank you. I'll try this function.