StockFetcher Forums · General Discussion · SCAN FOR MOMENTUM MOVES<< >>Post Follow-up
tmaccorm
2 posts
msg #119560
Ignore tmaccorm
5/11/2014 3:38:52 PM

I'm completely new to Stock Fetcher and was wondering how to create the following scan. The code is meant for tc2000 but was hoping it could be incorporated into Stock Fetcher. Being a newbie I need some help. Here's the scan with the code and explanatory notes for each step described beneath each line of code. See below:

SCAN CRITERIA FOR LONGS (telechart charting)

MINL5 > MINL20
(the minimum low of the last five day is greater than the minimum low of the last 20 days)
AND MAXH7.1 = MAXH36
(the maximum high of the last 7 days as of 1 day ago equals the maximum high of the last 36 days)
AND MAXH3.1 < MAXH36.1
(the maximum high of the last 3 days as of 1 day ago is less than the maximum high of the last 36 days as of 1 day ago)
AND H > MAXH3.1 * 1.005
(today’s high is greater than the (high of the last three bars as of 1 day ago * 1.005))
AND AVGV50 > 5000
(the average volume of the last 50 days is greater than 500000)

SCAN CRITERIA FOR SHORTS (telechart charting)

MAXH5 < MAXH20
(the maximum high of the last 5 days is less than the maximum high of the last 20 days)
AND MINL7.1 = MINL36
(the minimum low of the last 7 bars as of 1 day ago is equal to the minimum low of the last 36 bars)
AND MINL3.1 > MINL36.1
(the minimum low of the last 3 bars as of 1 day ago > the minimum low of the last 36 days as of 1 day ago)
AND L < MINL3.1 * 0.995
(today’s low is less than (the minimum low of the last 3 days as of 1 day ago * 0.995)
AND AVGV50 > 5000

Kevin_in_GA
4,599 posts
msg #119561
Ignore Kevin_in_GA
5/11/2014 10:25:02 PM

SCAN CRITERIA FOR LONGS (telechart charting)

MINL5 > MINL20
(the minimum low of the last five day is greater than the minimum low of the last 20 days)
AND MAXH7.1 = MAXH36
(the maximum high of the last 7 days as of 1 day ago equals the maximum high of the last 36 days)
AND MAXH3.1 < MAXH36.1
(the maximum high of the last 3 days as of 1 day ago is less than the maximum high of the last 36 days as of 1 day ago)
AND H > MAXH3.1 * 1.005
(today’s high is greater than the (high of the last three bars as of 1 day ago * 1.005))
AND AVGV50 > 5000
(the average volume of the last 50 days is greater than 500000)
++++++++++++++++++++

We'll take this line by line ... I'll use a set of user-defined variables to hopefully make it a little clearer.

Fetcher[

/*LET'S START WITH SOME USER-DEFINED VARIABLES*/

set{MINL5, low 5 day low}
set{MINL20, low 20 day low}

set{MAXH3, high 3 day high}
set{MAXH31, MAXH3 1 day ago}

set{MAXH7, high 7 day high}
set{MAXH71, MAXH7 1 day ago}

set{MAXH36, high 36 day high}
set{MAXH361, MAXH36 1 day ago}

/*NOW YOUR CODE LINE BY LINE*/

MINL5 ABOVE MINL20

MAXH71 EQUALS MAXH361

MAXH31 BELOW MAXH361

HIGH MORE THAN 0.5 PERCENT ABOVE MAXH31

AVERAGE VOLUME(50) ABOVE 500000
]



marine2
963 posts
msg #119628
Ignore marine2
5/12/2014 2:55:35 PM

Has the creator of this filter backtested this and what results did he or she get?

marine2
963 posts
msg #119629
Ignore marine2
5/12/2014 2:59:33 PM

My apologies on the him or her statement. I believe this was Kevin's filter. Kevin, how did this filter come out when you backtested it?

Kevin_in_GA
4,599 posts
msg #119644
Ignore Kevin_in_GA
5/13/2014 9:19:14 AM

I did not backtest or develop this one - just converted the code into SF syntax. There are no exit rules defined here, so how can one backtest?

tmaccorm
2 posts
msg #119691
Ignore tmaccorm
5/13/2014 11:13:52 PM

Many thanks for taking the time to "translate" the TC200 scan into SF language. Much appreciated. Have attempted to do the same for the short sell criteria but unfortunately this is still over my head. Will keep working on it but any hints and/or guidance would be warmly welcomed. Meanwhile, many thanks again for the work you put into this.

StockFetcher Forums · General Discussion · SCAN FOR MOMENTUM MOVES<< >>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.