Hi guys,
i was programming a screener to compare the volume candle of todays first 5 minutes of the day and yesterdays first 5 minutes of the day. Sadly my code gives me not stocks that fulfill all criteria. I would be really happy if someone could help me and tell me what i’m doing wrong. I would like to then expand this scanner with the same thing just for 15 minute candles.
IntraBarIndexToLook = 0
timeframe(5 minutes)
//The variable set to 0, just for coding purposes
NumberOfDays = 0
VolumeToday = 0
VolumeOfPreviousDay = 0
MinuteRatio = 0
For i = 0 to 250 do
if NumberOfDays < 2 then
if intradaybarindex[i] = IntraBarIndexToLook
then
NumberOfDays = NumberOfDays + 1
if NumberOfdays = 1 then
VolumeToday = Volume[i]
else
VolumeOfPreviousDay = Volume[i]
Endif
Else
Endif
EndIf
Next
MinuteRatio = VolumeToday / VolumeOfPreviousDay
SCREENER[MinuteRatio > 1] (MinuteRatio AS “MinuteRatio”)
Yeah I am interested in also how to use the “Intradaybarindex” for screener on the intraday time frames. Would be great if someone could assist or provide some examples of how to code this.
You can use this screener to make a test:
SCREENER[close > 300](intraDayBarIndex)