StockFetcher Forums · General Discussion · Compare prev 200-day high to the latest 200-day high<< >>Post Follow-up
LeonCherni
3 posts
msg #120169
Ignore LeonCherni
5/27/2014 3:38:09 PM

Trying to screen stock where latest 200 day high is higher than previous 200 day high. Any code examples?

Thank you

compound_gains
152 posts
msg #120185
Ignore compound_gains
modified
5/27/2014 7:18:51 PM

Fetcher[set{current200high, high 200 day high}
add column current200high
set{past200high, high 200 day high 200 days ago}
add column past200high
close > 3
count(volume > 150000, 60) equals 60
draw price line at current200high on plot price
draw price line at past200high on plot price
set{chk, current200high / past200high}
add column chk
sort column 7 descending
]



LeonCherni
3 posts
msg #120372
Ignore LeonCherni
6/3/2014 2:24:13 PM

Thank you for a great example. Unfortunately, I was imprecise in explaining my goal.

I am trying to compare the latest 200-day high to a ROLLING 200-day high. For example: My criteria is if latest 200-day high (which for instance happened 2 days ago) had taken out a 200-day high as of 10 days ago.

Mathematically, i schemed it out as approximately this:

a= MAX( Price, -200 days ago);

b= MAX( Price(-X days), -200 days ago);

where X is between 1 and 200 .

My condition is true if a > b

I am too green to picture StockFetcher Code for this, if at all possible

Appreciate your help,

Leon

LeonCherni
3 posts
msg #120492
Ignore LeonCherni
6/5/2014 1:51:20 PM

Any luck addressing my modified question?

Thank you

dashover
166 posts
msg #120620
Ignore dashover
modified
6/10/2014 2:44:13 PM

set{current200high, high 200 day high}
add column current200high
set{past200high, high 200 day high 10 days ago}
add column past200high
close > 3
count(volume > 150000, 60) equals 60
draw price line at current200high on plot price
draw price line at past200high on plot price
set{chk, current200high / past200high}
add column chk
sort column 7 descending

StockFetcher Forums · General Discussion · Compare prev 200-day high to the latest 200-day high<< >>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 2016 - 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