| dleather25 39 posts
 msg #148964
 - Ignore dleather25
 | 8/21/2019 3:20:14 AM 
 Trying to make a filter that has the Center of Gravity where over a 10-26 week period the center of gravity COG(10,2) difference is getting narrower and narrower, for instance 12 weeks ago it was above 1 and then 8 weeks ago it was below -1 and then 6 weeks ago it was above .75 and then 4 weeks ago it was below -.75 and then 2 weeks ago it was above .25 and then 5 days ago it was below -.25.... basically if drawn out it would be like a bouncy ball bouncing up a hill until it finally stops bouncing. Obviously values don't need to be in there if I am trying to just get it where it keeps getting closer to zero over a 10-26 week period, but i was just using those as an example, HDII and IGEX has something similar to that going on right now. Is this something that is possible to create. I tried to draw it below but it wouldn't let me put forward slashes only backward slashes, but I put spaces instead. I'd also like to figure out a way to do this with closing prices as well.
 
 
 
 
 --1------/- -------------------------------------------------------------------------------------
 --------/--- -----------/- ----------------------------------------------------------------------
 ------/------- --------/---- ------/- -------------------------------------------------------------
 -----/---------- -----/------ ---/---- --/ ---0---------------------------------------------------
 ----/------------ --/---------- / ----- /-----------------------------------------------------------
 -1/-------------- /------------------------------------------------------------------------------
 /
 
 
 
 | 
| graftonian 1,089 posts
 msg #148967
 - Ignore graftonian
 | 8/21/2019 12:39:47 PM 
 Does TOL fit your profile?
 
 
 
 
 | 
| xarlor 619 posts
 msg #148970
 - Ignore xarlor
 | 8/21/2019 2:09:00 PM 
 This is a start. Hopefully, someone can add to it and refine.
 
 
 
 
 
 | 
| graftonian 1,089 posts
 msg #148971
 - Ignore graftonian
 | 8/21/2019 2:36:59 PM 
 additions to xarlors code
 
 
 
 
 | 
| dleather25 39 posts
 msg #148973
 - Ignore dleather25
 | 8/21/2019 5:17:52 PM 
 Those look pretty close, Thanks for your help! Is there a way to do that with closing prices over a similar period
 
 
 | 
| dleather25 39 posts
 msg #148974
 - Ignore dleather25
 | 8/21/2019 5:35:09 PM 
 the x and ma on there when they get close it looks like the stocks tend to run, just now diving into the results, thanks a lot xarlor and graftonian!!!
 
 
 | 
| dleather25 39 posts
 msg #148977
 - Ignore dleather25
 | 8/22/2019 12:27:40 AM 
 @graftonian What does sttdev mean in the formula you created and if i didn't want it to do the pattern I asked for and it just show me the x and the cma you have it drawing on the chart, what would I remove? the < -.0005 and just put the 126 day slope of var1?
 
 "chart-time is 1 year
 average volume(30) > 1234567
 close < .01
 
 set{var1,abs(cog(10,2))}
 126 day slope var1 < -0.0005
 
 draw cog(10,2)
 /*************my additions ***********/
 set{x, stddev(var1, 30)}
 draw x
 draw cma(x, 126)
 add column cma(x, 126)
 sort on column 5 ascending
 /************************************/
 /* exclude IPOs in the last year */
 volume 1 year ago > 0
 
 -
 ADX(14) is between 15 and 40
 draw Williams Accumulation Distribution
 draw Accumulation Distribution
 draw Williams Accumulation Distribution 10 week low
 set{52wh, close 52 week high}
 add column 52wh
 set{52wl, close 52 week low}
 add column 52wl
 -"
 
 the bottom is my additions to it just forget those.
 
 
 | 
| xarlor 619 posts
 msg #148980
 - Ignore xarlor
 | 8/22/2019 7:52:02 PM 
 dleather25, just remove the entire line as commented below.  This will stop SF from filtering based on the narrowing pattern you asked originally.
 
 As for graft's addition, I believe it is sorting the results by (least to greater) amount of variation in the COG during the last 30 days.
 
 
 
 
 
 |