StockFetcher Forums · General Discussion · Problem plotting slope of EMA(34)<< >>Post Follow-up
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:

Fetcher[
set{diff,EMA(34)/EMA(34) 1 day ago}
diff above 1
/*substitute "1 day ago" to any other number you prefer*/
]

Just my 2-cents.


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.

Fetcher[set{TSF,LRI(14) + LRS(14)}
set{TSF1,TSF 1 day ago}

set{HUMP,TSF / TSF1}

draw TSF on plot price

draw HUMP on plot price
stock is optionable
close is between 10 and 250
Average Volume(10) is above 500000
ADX(14,14) is above 25
ERSI(2,5) below 3
hump > 1
hump 1 day ago < 1
]




StockFetcher Forums · General Discussion · Problem plotting slope of EMA(34)<< >>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.