LeonCherni 4 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 222 posts msg #120185 - Ignore compound_gains modified |
5/27/2014 7:18:51 PM
|
LeonCherni 4 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 4 posts msg #120492 - Ignore LeonCherni |
6/5/2014 1:51:20 PM
Any luck addressing my modified question?
Thank you
|
dashover 226 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
|