Screener recent crossover
Forums › ProRealTime English forum › ProScreener support › Screener recent crossover
- This topic has 7 replies, 3 voices, and was last updated 2 years ago by Victor.Strand.
-
-
08/17/2022 at 5:04 PM #199174
Hi everyone
I wanted to know, how could one program a screener that will give the exact list for stocks that made a RSI crossover over zero today?
Generally one can get screening for stocks that made the RSI crossover maybe days ago because the RSI is already above zero, but how to get the list for the stocks that made a crossover today?
thanks
08/17/2022 at 11:22 PM #199188Only post in the language of the forumthat you are posting in. For example English only in the English speaking forums and French only in the French speaking forums.
I moved it from Spanish forum.
Thank you 🙂
08/17/2022 at 11:26 PM #199189There you go:
1Screener[rsi[14](close) CROSSES OVER 0](rsi[14](close) as “Rsi”)1 user thanked author for this post.
09/13/2022 at 4:04 PM #200712Thanks a lot Roberto
I tried your screener, and it gives many ideas, but it wasnt exactly what I was looking for.
What I was looking for is an indicator which could give me a signal for turns in the market, for example, today 13september 2022, SPY opened down with a gap. If the screener were based on a median, then it would have flashed a sell/short alert today, not tomorrow (if tomorrow sept14 we had a down bar, and also on sept15, then we would have short alert again, but 1 and 2 days later respectively).
The concept would be, how to have a screener that flases buy/sell alerts based only on the day these turns happen?
All the best, and thanks a lot,
09/13/2022 at 6:37 PM #200734The CROSSOVER only happens once, not every candle so, to have signals on later days more crosovers have to occur. If they do then a signal is returned at that very time.
1 user thanked author for this post.
09/14/2022 at 4:50 PM #200810Ciao Roberto,
I will check that back again, thanks Roberto.
Would there be a way to estimate how many candles in the past did the crossover happen, maybe… I am not sure how to code it… if price i son the Y axis and time i son the X axis, I think prorealcode doesnt offer a way to codeo n X (time) axis the same way as Y axis (price), otherwise, multitimeframe indicators would be much easier…
Is there a way to know how many bars in the past have passed since a crossover for the same RSI, so then the crossing issue doesnt matter? That would make the crossing estimate much easier, so for yesterday daily down bar on sept13, we could have a much clearer view on hourly, because an entry on a daily bar should be on daily close, but on an hourly bar it could be on the opening bars (the first ones).
I cant really say/propose any code using the time axis. Below I found a (maybe) useful code for screening, its brings some ideas on an ideal timing for entry, so to use both the screening and timing as a result indicator in one of the screening columns on the screener result, so one can have an idea how many bars (X number of 15min, hourly bars) have passed since the alert/screen flashed a buy or sell. I hope one can post codes, I used the source as well.
Thanks a lot Roberto,
////timeframe for the event
eventtime = X
ind1 = Average[20](close)
ind2 = Average[40](close)
c1 = ind1 crosses over ind2
if c1 then
event = 1
eventindex = barindex
endif
if barindex – eventindex < eventtime then
event = 1
elsif barindex – eventindex > eventtime then
event = 0
endif
return event as “event”
//https://www.prorealcode.com/topic/screen-condition-c-within-last-x-days/
09/15/2022 at 5:04 AM #200821There is an instruction “BarsSince” with which you determine how many bars ago a certain condition has taken place.
ind1 = Average[20](close)
ind2 = Average[40](close)
c1 = ind1 crosses over ind2
testA = barssince(c1,1)
testB = barssince(c1)
return testA as “previous occurrence”, testB as “last occurence”
1 user thanked author for this post.
09/16/2022 at 3:41 PM #200901Hi JS
that looks great, many thanks mate, I will try posting something if I get an interesting result
Cheers,
-
AuthorPosts
Find exclusive trading pro-tools on