New Members: Be sure to confirm your email address by clicking on the link that was sent to your email inbox. You will not be able to post messages until you click that link.
Price near MA, Slope parameter, scan for a cross in a time range, and types
I have questions about four things, but they're all related to a scan I'm trying to build. Also, this is the second time I've typed this, but I'm pretty sure I inadvertently deleted the page before I could post it. So if it appears as well, my apologies in advance. :-)
I want to tell when price is above but descending to near a particular MA. Is it possible to phrase an argument to tell when price is a certain % or amount from the average? I already have the argument for price is above an MA.
To tell price is descending, I know I can do a few days < more days back. Does the Slope parameter also get used for that? Can Slope apply to MAs as well? Can Slope work on Volume?
If I want to set a scan range to tell that an MA cross happened within a certain amount of time prior, including "at least this far back"? (In case I want to know that the cross happened, say, in the last two months, but before two weeks ago)?
Didn't I see a page that lists what the possibilities for scan parameters are, such as what can be if using "type," what are the types that can be scanned for? Sometimes I want to specify ETFs, for instance.
0
Answers
Regarding slope, try it and see. The scan engine allows you to add "volume" or "ema(20,close)" as a parameter, but I'm not sure how you would verify that the results are meaningful. Slope does not appear to be one the indicators available under advanced options (where you can put an indicator on an indicator).
For crossovers in the past, you could just adjust the scan date. If you don't want to do that, you could try testing for the shorter ma above or below the longer ma x days ago, but below or above it y days ago.
You can get to the scan support page from the support tab or from the instructions tab at the bottom of the advanced scan page.
I'm not sure how to set the scan date. Using the line that starts "Starting x trading days before the," the default is 0. That means it scans for just one day's data, but if I put 15, it looks for data in the last three trading weeks?
How many lines can the scan have? It looks like a way to have certain criteria in a block of time in the past but not right up to the present (e.g., from 6 weeks ago up to 2 weeks ago), a series of "x/x+1/x+2/etc." weeks ago lines would work. I kinda want a bullish golden cross in the past, but not too far in the past, with price descending to retest the 13, which means it would have had to have been higher first. I think I understand the sentence ("testing for the shorter ma above or...," and will try that.
"and [[Last week's EMA(13,close) x last week's EMA(50,close)] or [2 weeks ago EMA(13,close) x 2 weeks ago EMA(50,close)]]"
in the scan, the goal is to get the 50/200 daily-candle crossover in the previous week and the week before that. The scan turned up NEM, for instance, and the crossover is the third week back. When I remove the 2 weeks ago part, it still turns up NEM in the scan. Should it not do that because the scan was only for the 2nd week back?
I guess it would also be good to know how the scan machine interprets "last weeks" crossover. Does it mean that the 13/50 crossover on the weekly candles could have happened in any of the five days of two weeks ago, (meaning that the 50/200 crossover would have happened in those five days)?