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.
|
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.
|