StockFetcher Forums · Filter Exchange · Controlled pullback in rising 20ma<< >>Post Follow-up
angel2bias
2 posts
msg #51769
Ignore angel2bias
5/24/2007 10:43:19 AM

Guys I need your help to write a code for a controlled pullback. I'm anticipating for a green bar after 5 decreasing red bars, with requirements below.

price is between $10 and $100
last bar close is above ma(20)
last bar low price is above ma(200)
price is decreasing for the last 5 bars
all 5 bars close below open /red bars/
all 5 bars open below the open of its prior day


lockwhiz
206 posts
msg #51790
Ignore lockwhiz
modified
5/24/2007 10:25:07 PM

Ther may be an easier way ... but I will through this out as a start:

Fetcher[

price is between 10 and 100

and close is greater then ma(20)

and low is greater then ma(200)

and price 4 days ago is greater then price 3 days ago
and price 3 days ago is greater then price 2 days ago
and price 2 days ago is greater then price 1 days ago
and price 1 days ago is greater then price

and close 4 days ago is less then open 4 days ago
and close 3 days ago is less then open 3 days ago
and close 2 days ago is less then open 2 days ago
and close 1 days ago is less then open 1 days ago
and close is less then open

and open 3 days ago is less then open 4 days ago
and open 2 days ago is less then open 3 days ago
and open 1 days ago is less then open 2 days ago
and open is less then open 1 days ago
]



Results show only 3 stock ....ouch. BNI CPL and LXU

lockwhiz

lockwhiz
206 posts
msg #51792
Ignore lockwhiz
modified
5/24/2007 10:35:21 PM

I guess you can consolidate some of the lines by using :

and price has been decreasing for the last 5 days
and close has been decreasing for the last 5 days

StockFetcher Forums · Filter Exchange · Controlled pullback in rising 20ma<< >>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.