StockFetcher Forums · Filter Exchange · /* Price Level Display Filter */<< >>Post Follow-up
TheRumpledOne
6,407 posts
msg #43638
Ignore TheRumpledOne
modified
5/11/2006 4:22:18 PM

Fetcher[
/* Price Level Display Filter */
/* change below */

close above 20
close below 23

set{LoBound, 20 + 1 }

/* change above */


set{UpBound1, LoBound + 1 }
set{UpBound2, LoBound + 2 }
set{UpBound3, LoBound + 3 }
set{UpBound4, LoBound + 4 }
set{UpBound5, LoBound + 5 }

set{Bound0, count(close below LoBound , 1 )}

set{Bound01, count(close above LoBound, 1 ) * count(close below UpBound1, 1 )}

set{Bound12, count(close above UpBound1, 1 ) * count(close below UpBound2, 1 )}

Set{ level0 , count( Bound0 equal 1 , 10) }
Set{ level01, count( Bound01 equal 1 , 10) }
Set{ level12, count( Bound12 equal 1 , 10) }


/* for debug
and add column Bound0
and add column Bound01
and add column Bound12
*/

and add column level0
and add column level01
and add column level12

volume above 1000000
]




The purpose of this display is to show how many times a stock has closed between 2 levels.

I really need a ROUND FUNCTION to complete the automation.

This example is for stocks between $20 and $23 over the last 10 trading days.

Level0 is the number of times the stock closed below $21

Level12 is the number of times the stock closed between $21 and $22

Level23 is the number of times the stock closed between $22 and $23

If StockFechter provides the rounding function, then I can program the filter to adjust the range to the price of the stock to the nearest dollar.

This can be used as a heads up for breakouts, tops and bottoms.

STOCKFETHER, PLEASE GIVE US A ROUNDING FUNCTION!



TheRumpledOne
6,407 posts
msg #48346
Ignore TheRumpledOne
modified
12/2/2006 8:27:36 PM

Fetcher[
/* Price Level Display Filter */

set{LoBound, round(close) }

set{UpBound1, LoBound + 1 }
set{UpBound2, LoBound + 2 }
set{UpBound3, LoBound + 3 }
set{UpBound4, LoBound + 4 }
set{UpBound5, LoBound + 5 }

set{Bound0, count(close below LoBound , 1 )}

set{Bound01, count(close above LoBound, 1 ) * count(close below UpBound1, 1 )}

set{Bound12, count(close above UpBound1, 1 ) * count(close below UpBound2, 1 )}

Set{ level0 , count( Bound0 equal 1 , 10) }
Set{ level01, count( Bound01 equal 1 , 10) }
Set{ level12, count( Bound12 equal 1 , 10) }


/* for debug
and add column Bound0
and add column Bound01
and add column Bound12
*/

and add column level0
and add column level01
and add column level12

close above 20
volume above 100000
market is nasdaq

draw upbound1 on plot price
draw upbound2 on plot price
draw upbound3 on plot price
draw upbound4 on plot price
draw upbound5 on plot price

]



I completely forgot about this. I knew I needed ROUND for something!

Thanks again SF.






TheRumpledOne
6,407 posts
msg #58588
Ignore TheRumpledOne
modified
12/28/2007 2:41:07 PM

Fetcher[
/* TRO Price Level Display Filter */

set{LoBound, round(close 1 day ago) }

set{UpBound1, LoBound + 1 }
set{UpBound2, LoBound + 2 }
set{UpBound3, LoBound + 3 }
set{UpBound4, LoBound + 4 }
set{UpBound5, LoBound + 5 }

set{Bound0, count( high below LoBound , 1 )}

set{Bound01, count( high above LoBound, 1 ) }

set{Bound12, count( high above UpBound1, 1 ) }

Set{ level0 , count( Bound0 equal 1 , 100) }
Set{ level01, count( Bound01 equal 1 , 100) }
Set{ level12, count( Bound12 equal 1 , 100) }


/* for debug
and add column Bound0
and add column Bound01
and add column Bound12
*/
and add column LoBound
and add column level0
and add column level01
and add column level12

close above 20
volume above 100000
market is nasdaq

draw upbound1 on plot price
draw upbound2 on plot price
draw upbound3 on plot price
draw upbound4 on plot price
draw upbound5 on plot price

sort column 8 descending

]



This will display the number of times a stock pentrated the next levels in the past 100 days.

This is like the TRO STAT SCANS but this one just checks the even dollar crosses.


TheRumpledOne
6,407 posts
msg #58589
Ignore TheRumpledOne
modified
12/28/2007 2:50:24 PM

Fetcher[
/* TRO Price Level Display Filter - GREEN ON THE SCREEN */

set{LoBound, round(close 1 day ago) }

set{UpBound1, LoBound + 1 }
set{UpBound2, LoBound + 2 }
set{UpBound3, LoBound + 3 }
set{UpBound4, LoBound + 4 }
set{UpBound5, LoBound + 5 }

set{Bound0, count( high below LoBound , 1 )}

set{Bound01, count( high above LoBound, 1 ) }

set{Bound12, count( high above UpBound1, 1 ) }

Set{ level0 , count( Bound0 equal 1 , 100) }
Set{ level01, count( Bound01 equal 1 , 100) }
Set{ level12, count( Bound12 equal 1 , 100) }


/* for debug
and add column Bound0
and add column Bound01
and add column Bound12
*/
and add column LoBound
and add column level0
and add column level01
and add column level12

close is between 1 and 15
average volume(10) above 250000

draw upbound1 on plot price
draw upbound2 on plot price
draw upbound3 on plot price
draw upbound4 on plot price
draw upbound5 on plot price

sort column 8 descending

]



StockFetcher Forums · Filter Exchange · /* Price Level Display Filter */<< >>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.