StockFetcher Forums · Filter Exchange · Slope (?) question<< >>Post Follow-up
glgene
613 posts
msg #136128
Ignore glgene
5/30/2017 3:42:33 PM

I am doing some reading on "bubbles" and, accordingly, I would like to write a SF script that would filter for me (produce) stocks that fit between 45% and 90% angle. Is slope and angle the same thing, or am I way off?!

If they're the same thing, what 1 or 2 lines of SF script would I include to produce the stocks I'm attempting to find?

Thank you. (I have never done slopes in my SF scripting).

Gene in FL

Kevin_in_GA
4,599 posts
msg #136129
Ignore Kevin_in_GA
5/30/2017 4:12:41 PM

Please be cautious here - slope is defined as rise over run, but one axis is price and the other time. Hard to do absolute gain when comparing two very differently priced stocks.

You should be looking at the rate-of-change function (ROC()). That is in essence the slope, measured on percent gain per unit time.

glgene
613 posts
msg #136130
Ignore glgene
5/30/2017 5:48:33 PM

Kevin,
I don't think I asked my question appropriately. Basically, I believe that has a price run (graphed) at a 45 degree angle (slope) may be sustainable. But a stock graph (slope) of 75 degrees is not sustainable (over the long term)... I would say a stock at a 75 degree angle, thus, might be a worthy "short" candidate.

How would I script in SF to include a filter to find stocks that lie somewhere between 45 and 90 degrees (slope), looking back 90 days?

I hope I asked the question more clearly... or maybe it's just a dumb question on my part?!

Thank you.

Gene in FL

Kevin_in_GA
4,599 posts
msg #136135
Ignore Kevin_in_GA
5/30/2017 9:42:53 PM

My point is that "slope" as you are defining it is really the ROC - the key is that the y-axis (price) cannot be simply in $$$ since you then cannot compare two stocks that are differently priced. Better to use the percent gain per day. However, you can use slope if that is what you think meets your needs and especially if it turns a profit.

SAFeTRADE
630 posts
msg #136139
Ignore SAFeTRADE
5/31/2017 3:01:35 PM

Try this for a start.

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
]



Found here:

http://www.stockfetcher.com/forums2/Filter-Exchange/Slope-Angle-in-Degrees/55214/20

Hope this helps

glgene
613 posts
msg #136151
Ignore glgene
6/1/2017 7:57:13 PM

SafeTrade... I shall explore your suggestion, along with a new line...

Draw Angledeg

... right after your line of "Add column angledeg"

Gene in FL

SAFeTRADE
630 posts
msg #136155
Ignore SAFeTRADE
6/2/2017 8:08:39 AM

Added Kevin's Wilson RSI Plot , however changed RSI to Angledeg, Pretty interesting.

Fetcher[close above 5
volume above 1000000

set{originxy, open 10 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}

set{overbought,1}
set{OB1, angledeg - overbought}
set{OB2, OB1 /100}
set{OB3, close * OB2}
set{OB, close - OB3}


draw OB on plot price

add column angledeg
draw angledeg line at 0
and chart-length is 6 months

Sort column 5 descending
]



SAFeTRADE
630 posts
msg #136156
Ignore SAFeTRADE
6/2/2017 8:39:03 AM

Here is one with 75 degree angle drawn on chart as well. Enjoy!

Fetcher[close above 5
volume above 1000000

set{originxy, open 10 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}

set{overbought,1}
set{OB1, angledeg - overbought}
set{OB2, OB1 /100}
set{OB3, close * OB2}
set{OB, close - OB3}

set{upperNZ, 75}
set{OS1, angledeg - uppernz}
set{OS2, OS1 / 100}
set{OS3, close * OS2}
set{OS, close - OS3}
draw OS on plot price


draw OB on plot price

add column angledeg
draw angledeg line at 0
and chart-length is 6 months

Sort column 5 descending
draw rsi(5)
draw macd(2,3,3)
draw macd(6,13,5)
]



StockFetcher Forums · Filter Exchange · Slope (?) question<< >>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.