timfor 17 posts msg #116606 - Ignore timfor |
11/8/2013 11:23:03 PM
Hello,
I am struggling to generate the code for a weekly price/50 sma divergence both long and short. Here is a jpeg visually showing what I'm trying to scan for.
I'm hoping one of you talented experienced coders can help me with some code.
First of all, here is a jpeg showing what I'm trying to get a scan to find:
As you can see, there are times when price will diverge from the 50 sma in both long and short scenarios.
I am interested in performing this scan on WEEKLY charts with a slope of .07.
I was able to do this on DAILY charts with the following code but I can't seem to make it work on WEEKLIES. Here is the code I'm using for DAILY charts.
Show Stocks where the 3 day slope of the MA(50) is above .07
and price > 15
and the low is below the MA(50)
and the low is below the MA(15)
and the low is more than 3% below the MA(50)
and the average volume(30) is above 1000000
show stocks that are optionable
and add column Average Day Point Range(30)
and add column Average Day Point Range(3)
add column exchange
Thanks to anyone who can help me with this. I'm looking for code for both long and short divergences.
Tim
|
alf44 2,025 posts msg #116607 - Ignore alf44 modified |
11/9/2013 12:00:55 AM
HEY, Tim ... would you please pass me tha salt and a lime wedge ... for some Tequila Shot(s) !
... just as I thought ...
---
Are you SURE you want that "weekly slope" at ".07" ???
WHY NOT ".08" ???
... maybe ".07999" ?
I'll be sure & git rite on this ...
GEEEZ !!!
.
|
four 5,087 posts msg #116608 - Ignore four |
11/9/2013 12:34:01 AM
perhaps...
|
alf44 2,025 posts msg #116609 - Ignore alf44 modified |
11/9/2013 12:38:59 AM
... hey, "four" !!!
I NEED SOME SALT & LIME SLICES ... OVA HEAH !!!
Thank you ... in advance !!!
LOL
.
|
timfor 17 posts msg #116610 - Ignore timfor modified |
11/9/2013 2:06:46 AM
Thanks Four! You were very helpful.
|
four 5,087 posts msg #116611 - Ignore four |
11/9/2013 2:27:52 AM
timfor,
OK
|