Hi Guys,
I am currently using the below scans to find Inside Candles on Weekly and Monthly timeframes
c1= high[0] < high[1]
c2= low[0] > low[1]
insidebar = c1 and c2
screener[insidebar]
This provides inside candles for the prior week , however if want to run the scan on the weekend for the current week is there a way to modify this ?
Any help would be appreciated
This will only work on Mondays:
timeframe(Daily)
IF DayOfWeek < DayOfWeek[1] THEN
PreviousHigh = high[1]
PreviousLow = low[1]
ENDIF
c1 = 0
c2 = 0
IF DayOfWeek = 1 OR (DayOfWeek > 1 AND DayOfWeek < DayOfWeek[1]) THEN
c1 = high[0] < PreviousHigh
c2 = low[0] > PreviousLow
ENDIF
timeframe(default)
insidebar = (c1 and c2)
screener[insidebar]
Hi,
Thanks for the response, the current scan i have also works on Mondays. Is there a way that it would work on a saturday or Sunday ?
Try this one:
timeframe(Daily)
IF OpenDayOfWeek = 5 THEN
PreviousHigh = high
PreviousLow = low
ENDIF
c1 = 0
c2 = 0
IF DayOfWeek > 5 OR DayOfWeek = 0 THEN
c1 = high < PreviousHigh
c2 = low > PreviousLow
ENDIF
timeframe(default)
insidebar = (c1 and c2)
screener[insidebar]
Hi,
Thanks for the updated code, however unfortunately it does not bring up results when tried, would you know of any other solution?
You’ll have to apply it to instruments/assets being traded on Saturday and Sunday.
I am looking to apply to it to UK shares that would not be traded on the weekend. I want to be able to run a scan on a Sat/Sunday for the current week is that not possible with Prorealtime ?
You can scan anytime, but when the market is closed, you will be reported conditions at closing time (till it opens again).
not sure I follow, are you saying that on a weekend the weekly candle has not closed ? Therefore I need to wait till monday ? and there is no way to screen based on the week having closed on last trading day which would be friday ?
Screeners scan live markets, how could they scan price movements when markets are closed?
not sure what you mean.. by that logic you shouldn’t be able to scan in the evening (whilst the market is closed) for a daily inside candle, however that seems to work perfectly fine