TafsirMAhmed
New member
Hello all.
I have an rVOL indicator that I have been using for some time, until recently I realized that it is not working in the premarket (works fine during market hours). Here is the code.
def avgVol = Average(volume, 10);
plot scan = Round(volume / avgVol[1], 2);
Simple enough, but I believe the problem occurs in how volume is calculated premarket. On my watchlist column, Volume counts yesterday's post market volume and today's premarket volume. But the volume in the rVOL is not accurately calculated during the premarket session.
Example
14 million volume and only 0.93 rVOL??? This thing must be a liquid lava. But something doesn't feel right ...
That's right, this thing is not a liquid lava (think NVDA or TSLA). So then why the low rVOL calculation? I suspect that during pre-market, the rVOL indicator is using yesterday's volume. But as soon as the market opens, the rVOL quickly adjusts and now shows the appropriate value. I believe an appropriate solution would be to count yesterday's post market volume into today's pre-market up until the market close. Then resetting the volume each day at market close. Then inserting that value here.
plot scan = Round(insertHere / avgVol[1], 2);. Any ways to go about it? Wouldn't a volume counter just reset at the beginning of each day (00:00)?
I have an rVOL indicator that I have been using for some time, until recently I realized that it is not working in the premarket (works fine during market hours). Here is the code.
def avgVol = Average(volume, 10);
plot scan = Round(volume / avgVol[1], 2);
Simple enough, but I believe the problem occurs in how volume is calculated premarket. On my watchlist column, Volume counts yesterday's post market volume and today's premarket volume. But the volume in the rVOL is not accurately calculated during the premarket session.
Example
14 million volume and only 0.93 rVOL??? This thing must be a liquid lava. But something doesn't feel right ...
That's right, this thing is not a liquid lava (think NVDA or TSLA). So then why the low rVOL calculation? I suspect that during pre-market, the rVOL indicator is using yesterday's volume. But as soon as the market opens, the rVOL quickly adjusts and now shows the appropriate value. I believe an appropriate solution would be to count yesterday's post market volume into today's pre-market up until the market close. Then resetting the volume each day at market close. Then inserting that value here.
plot scan = Round(insertHere / avgVol[1], 2);. Any ways to go about it? Wouldn't a volume counter just reset at the beginning of each day (00:00)?