StockFetcher Forums · General Discussion · how to find lowest low over X number of days<< >>Post Follow-up
abajwa
1 posts
msg #98517
Ignore abajwa
1/10/2011 3:14:09 AM

Hi,

i am trying to use a filter in which todays high is compared to the lowest low and highest high over X days. how would i make this filter?

right now im reverted to use weekly high and weekly low.

this is what i want to try to do for X number od days instead of using weekly.
todays high is less than 2.5% above the lowest low over the last 3 days
and todays high is more than 2.5% below the highest high over the last 3 days.

this is what i am using right now:
high is less than 2.5% above weekly low
and high is more than 2.5% below weekly high

thanks

TheRumpledOne
6,407 posts
msg #98521
Ignore TheRumpledOne
modified
1/10/2011 9:50:32 AM

Fetcher[
/* Low touched Dynamic Support */

/* PRICE POSITION PERCENT DISPLAY */

/* enter your Upper Limit criteria */
set{UpperLim, High 5 Day High}

/* enter your Lower Limit criteria */
set{LowerLim, Low 5 Day Low}
set{touch5d, count( low equal LowerLim , 1) }

/* enter your Lower Limit criteria */
set{LOW5w, Low 5 week Low}
set{DIFF5, CLOSE MINUS LOW5w }
set{touch5w, count( low equal LOW5w , 1) }

/* enter your Lower Limit criteria */
set{LOW13w, Low 13 week Low}
set{DIFF13, CLOSE MINUS LOW13w }
set{touch13w, count( low equal LOW13w , 1) }

/* enter your Lower Limit criteria */
set{LOW26w, Low 26 week Low}
set{DIFF26, CLOSE MINUS LOW26w }
set{touch26w, count( low equal LOW26w , 1) }

/* enter your Lower Limit criteria */
set{LOW52w, Low 52 week Low}
set{DIFF52, CLOSE MINUS LOW52w }
set{touch52w, count( low equal LOW52w , 1) }

set{touch3, touch5d + touch5w }
set{touch2, touch3 + touch13w }
set{touch1, touch2 + touch26w }
set{touch, touch1 + touch52w }

set{LimDiff, UpperLim minus LowerLim}
set{PPDiff, CLOSE minus LowerLim}
set{PPDiv, PPDiff / LimDiff}
set{BallOn, PPDiv * 100}

set{PCT, LimDiff / LowerLim}

set{HiOp,high - open}
set{OpLo, open - low}
set{ClLo, close - low}

set{CCb,days(close is above close 1 day ago,100)}
set{CCa,days(close is below close 1 day ago,100)}
set{ClxCl, CCa - CCb}

set{HHb,days(High is above High 1 day ago,100)}
set{HHa,days(High is below High 1 day ago,100)}
set{HixHi, HHa - HHb}

set{LLb,days(Low is above Low 1 day ago,100)}
set{LLa,days(Low is below Low 1 day ago,100)}
set{LoxLo, LLa - LLb}

/* column display */

add column ClxCl
add column HixHi
add column LoxLo

add column ClLo
add column HiOp
add column OpLo

add column BallOn
add column PCT

add column touch5d
add column touch5w
add column touch13w
add column touch26w
add column touch52w



add column DIFF5
add column DIFF13
add column DIFF26
add column DIFF52

add column LOW5w
add column LOW13w
add column LOW26w
add column LOW52w




/* PLOTS */

draw UpperLim on plot price
draw LowerLim on plot price

/* Selection Criteria */

set{BallLow, count( BallOn < 2 , 1 ) }
set{BallHigh, count( BallOn > 98 , 1 ) }
set{PlayBall, BallLow + BallHigh }

touch above 0
Close above 1
MARKET IS NASDAQ

volume above 1000000

add column industry

Sort column 5 ascending

/* DRAW LINES */

draw upperlim on plot price
draw lowerlim on plot price

draw LOW5w on plot price
draw LOW13w on plot price
draw LOW26w on plot price
draw LOW52w on plot price
]



StockFetcher Forums · General Discussion · how to find lowest low over X number of days<< >>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.