sammyn 81 posts msg #141418 - Ignore sammyn modified |
1/26/2018 12:48:25 PM
So, I’m reading “Trend Trading for a Living” by Carr. In it, he talks about a pullback method, and I thought I would try coding it in SF.
Here are his rules:
Identify a stock that has pulled back to an up sloping 20MA or 50MA.
20MA is rising, and is above the 50MA
The stochastics (5,3 period) is to or below the oversold 20 line.
Average Volume(60)> 500000
Close is > 15
Close is < than Close 5 days ago * 1.15
Below is my SF code.
Let me know if anyone has any tweaks to add. Would love your feedback.
Thanks!
|
mahkoh 1,065 posts msg #141424 - Ignore mahkoh |
1/26/2018 4:10:55 PM
You cannot use multiple calculations in one sentence of code
Close is < than Close 5 days ago * 1.15
should be
set{x, close 5 days ago * 1.15}
close below x
|
sammyn 81 posts msg #141425 - Ignore sammyn modified |
1/26/2018 5:10:07 PM
Thank you. I did not know that. Here is the updated code
|
novacane32000 331 posts msg #141463 - Ignore novacane32000 |
1/28/2018 5:51:14 PM
Thanks Sam
Here is the pullback filter I have on file
|
miketranz 969 posts msg #141467 - Ignore miketranz |
1/28/2018 9:17:16 PM
|
Ruaquik1 5 posts msg #141470 - Ignore Ruaquik1 |
1/28/2018 11:00:35 PM
Hi Miketranz,
Could you please explain why you sort column 5 (Correlation FMI 200) by descending? Does this mean the lower the FMI 200 number, the better candidate it is for a possible trade?
Thank you for sharing!
|
miketranz 969 posts msg #141511 - Ignore miketranz |
1/29/2018 8:22:54 PM
Ruaquik,I tweeked the filter for deeper pullbacks,plus added MA's.I like to enter when or if price crosses back over from below.
|