StockFetcher Forums · General Discussion · Actual angle of slope<< >>Post Follow-up
fotchstecker
304 posts
msg #123198
Ignore fotchstecker
3/14/2015 1:44:58 PM

I'd like to add a column that shows the actual slope angle for "slope of the close".

If possible, I'd also like to filter based on slope angle itself.

I haven't quite figured out how to do this yet. Could someone provide me with a link or some suggestions?

Thank you.

fotchstecker
304 posts
msg #123199
Ignore fotchstecker
modified
3/14/2015 2:02:00 PM

Found this and have been messing around with it.

Does anyone know how the "0.1709" is calculated, which presumably is based on the number of days (20)?

"
Here's a 20 day, for example:

Submit Fetcher[close above 5
volume above 1000000

set{originxy, open 20 days ago}
set{adjacent, originxy * 0.1709}
set{opposite_vector, close - originxy}
set{radians, opposite_vector / adjacent}
set{atanval, atan(radians)}
set{hcircle, 180 / 3.14159}
set{angledeg, atanval * hcircle}

add column angledeg

and chart-length is 6 months

Sort column 5 descending
"

stockfetcher
979 posts
msg #123207
3/15/2015 9:01:41 AM

Hi,

We see this request a fair bit in support. The trick with angles is that you'll need to assume a unit value for time that corresponds to price. Unfortunately this would not correspond to an actual chart of the data since the range of price used is based on the high/low of all indicators drawn.

The easiest way to illustrate this is the same slope for different time periods. Below is an example of the same 100 day slope drawn on 1 year & 6 month charts. You'll notice the slope of the first is around -35 degrees and the second around -23 degrees.



Also, using the formula mentioned above (adjusted for the close 100 days ago), the result is about -13 degrees.



Best regards,
StockFetcher.com Support


graftonian
1,089 posts
msg #123208
Ignore graftonian
3/15/2015 10:14:34 AM

Does this help?

set{x, slope of close}
/*find radians*/
set{y, atan(x)}
/*convert to degrees*/
set{z, y * 57.2957}
add column z
draw z
sort on column 5 descending

fotchstecker
304 posts
msg #123210
Ignore fotchstecker
3/15/2015 2:28:04 PM

thanks graftonian and stockfetcher.

graftonian, one has to declare the actual time period of the slope of the close for that, as in "set{x, 150 day slope of close}"?


set{x, slope of close}
/*find radians*/
set{y, atan(x)}
/*convert to degrees*/
set{z, y * 57.2957}
add column z
draw z
sort on column 5 descending


graftonian
1,089 posts
msg #123215
Ignore graftonian
3/16/2015 7:19:30 AM

That takes us back to what SF posted, same data, different time period, different slope. I feel like I've got one foot nailed to the floor

StockFetcher Forums · General Discussion · Actual angle of slope<< >>Post Follow-up

*** Disclaimer *** StockFetcher.com does not endorse or suggest any of the securities which are returned in any of the searches or filters. They are provided purely for informational and research purposes. StockFetcher.com does not recommend particular securities. StockFetcher.com, Vestyl Software, L.L.C. and involved content providers shall not be liable for any errors or delays in the content, or for any actions taken based on the content.


Copyright 2022 - Vestyl Software L.L.C.Terms of Service | License | Questions or comments? Contact Us
EOD Data sources: DDFPlus & CSI Data Quotes delayed during active market hours. Delay times are at least 15 mins for NASDAQ, 20 mins for NYSE and Amex. Delayed intraday data provided by DDFPlus


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.