Ciao 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/