jimw909 5 posts msg #44039  Ignore jimw909 
5/22/2006 12:07:33 PM
The filter: Show stocks where EMA(34)/EMA(34)[1] has crossed > 1 in past 1 day does not show charts where the slope has changed from negative to positive. Can anyone help with this. Thanks in advance. Jim

heyen 124 posts msg #44040  Ignore heyen 
5/22/2006 12:16:40 PM
slope crosses above 0 when turning positive and vice cersa

jimw909 5 posts msg #44041  Ignore jimw909 
5/22/2006 12:55:55 PM
Thanks for your reply heyen. Let me repeat the filter making a slight change as when I use past 1 day there are no matches so I will use 5 days:
Show stocks where EMA(34)/EMA(34)[1] has crossed above 1 in past 5 days
This filter should show the slope of the EMA(34) on the charts of the matches going from negative to positive. However, looking at the charts all of the EMA(34) slopes are positive. Example, first chart is RGMI which has had a positive EMA(34) slope on the daily chart since the end of February. What I want to do is pinpoint the slope change from negative to positive on the daily chart. Any help with this filter would be appreciated. Jim

builderer 13 posts msg #44044  Ignore builderer 
5/22/2006 2:20:20 PM
A slope of 1 is 45 degrees. A slope of 1 is 45 degrees. A slope of 0 is a horizontal line tangent to the peak. Slope will change from above 0 to below 0 as you move over the hill or visa versa (into/out of the valley).
I am curious about your syntax:'EMA(34)/EMA(34)[1] has crossed above 1 in past 5 days'
What does the [1] enable? Can't find any documentation on it.

jimw909 5 posts msg #44046  Ignore jimw909 
5/22/2006 3:17:01 PM
Thanks for your reply builder. My understanding is that the notation [x] is x days back in time. So for example, EMA(34)/EMA(34)[x] would be the EMA(34)at the close of yesterday/the EMA(34)at the close x days back. I am using [1] to try and find where the EMA(34) turned up. Jim

nikoschopen 2,824 posts msg #44047  Ignore nikoschopen 
5/22/2006 4:18:59 PM
Jim,
Such notation would be a nice addition to SF but, to ure dismay as well as mine, it doesn't exist. You still need to resort to the predefined expression, ie. "days ago", that will evaluate to the x constant you assign. Hence, "EMA(34)/EMA(34)[x]" would be written:
Just my 2cents.

jimw909 5 posts msg #44094  Ignore jimw909 
5/23/2006 12:45:34 PM
Thanks nik

builderer 13 posts msg #44101  Ignore builderer 
5/23/2006 3:50:46 PM
On the same trak.....can you tell me where the problem is below? I'm not finding a lot of guidance in the book. In backtesting, all 0's. Nothing is found.I've using () but SF apparantly finds this confusing and ignores it.
I am looking for the transition point of TSF.
set{TSF,LRI(14) +LRS(14)}
set{HUMP,TSF/TSF 1 day ago}
draw TSF on plot price
draw HUMP on plot price
Show stocks where stocks are optionable
and close is between 10 and 250
and Average Volume(10) is above 500000
and ADX(14,14) is above 25
and ERSI(2,5) below 3 and hump > 1 and hump < 1 1 day ago

BFreshour 139 posts msg #44106  Ignore BFreshour 
5/23/2006 4:37:43 PM
Not sure why creating the HUMP variable like that doesn't work. I changed it to this and it works.
