StockFetcher Forums · Filter Exchange · Trend Confirmations<< >>Post Follow-up
vishaljvora
5 posts
msg #133276
Ignore vishaljvora
12/18/2016 3:50:37 PM

Can someone help write this scan and have a display/flag set on columns ?
It applies to daily charts.

1) Figure out highest and lowest close of previous month - lets call it PMHC (previous month high close) and PMLC (previous month low close)
2) did price close >= PMHC at any time this month ? if yes label stock as UT - uptrend
3) did price close <=PMLC at any time this month ? if yes label stock as DT - downtrend


SAFeTRADE
630 posts
msg #133281
Ignore SAFeTRADE
12/19/2016 12:11:14 AM

Here is something for you to work with, sort on upt or dnt.

Fetcher[
set{4wkhi, high 4 week high 4 weeks ago}
set{4wklo, low 4 week low 4 weeks ago}
set{upt, count(close above 4wkhi,1)}
set{dnt, count(close below 4wklo,1)}

draw 4wkhi on plot price
draw 4wklo on plot price

s&p 500

add column upt
add column dnt

draw upt
draw dnt
]



SAFeTRADE
630 posts
msg #133282
Ignore SAFeTRADE
12/19/2016 12:29:54 AM

I like this, I added a few bells and whistles! Thank you for the idea! I will add this to my arsenal.

Fetcher[
set{4wkhi, high 4 week high 4 weeks ago}
set{4wklo, low 4 week low 4 weeks ago}
set{upt, count(close above 4wkhi,1)}
set{dnt, count(close below 4wklo,1)}

set{x, high 8 day high + low 8 day low}
set{ts8, x / 2}
set{x2, high 13 day high + low 13 day low}
set{ts13, x2 / 2}

draw 4wkhi on plot price
draw 4wklo on plot price
draw ts8 on plot price
draw ts13 on plot price

s&p 500

add column upt
add column dnt

draw upt
draw dnt
draw adx(8) line at 20
draw rsi(7) line at 70
draw macd(8,13,9)
]



mahkoh
1,065 posts
msg #133293
Ignore mahkoh
12/19/2016 3:33:56 PM

Fetcher[
set{mh,date(monthend,close 21 day high)}
set{ml,date(monthend,close 21 day low)}

set{upt,count (close above mh,1)}
set{dnt,count (close below ml,1)}
set{upordown, dnt + upt}
upordown above 0.5 do not draw upordown

add column upt
add column dnt

s&p 500
]



Every first of the month you'll need to adjust the days to look back in the first two lines according to the number of trading days in the previous month.

vishaljvora
5 posts
msg #133340
Ignore vishaljvora
12/20/2016 11:34:05 PM

Thanks for your help.. I ll test it out and post here.

StockFetcher Forums · Filter Exchange · Trend Confirmations<< >>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.