mlsignups Posted February 3, 2022 Report Share Posted February 3, 2022 A few months back, Mike M. provided some great code to help put a scan column on my sheet for after hours volume %. The link is here: https://forums.medvedtrader.com/topic/4311-after-hrs-volume/#comment-20686 I noticed today that SNAP had massive after hrs volume but it was not showing because there was also very high volume during the day today and this compares I believe after hrs volume today to todays' volume. (I think). Any way to modify this to potentially show after hrs volume today vs the average volume over the last x days. Doesn't really matter if length of avg volume is 10 days or 20 days. Thanks Quote Link to comment Share on other sites More sharing options...
Mike Medved Posted February 4, 2022 Report Share Posted February 4, 2022 Well... I don't know what source you're using, but some sources return the average volume for the stock that you can then use from SymbolData.AvgVol. So - in that paintbar, change SetYValue(CurrentState.RegVol==0?0:CurrentState.AHVol*100/CurrentState.RegVol); to SetYValue(CurrentState.RegVol==0?0:CurrentState.AHVol*100/(SymbolData.AvgVol==0?1:SymbolData.AvgVol)); The ? : thing is just so that there is no division by 0 if there is no AvgVol in the data. Quote Link to comment Share on other sites More sharing options...
mlsignups Posted February 4, 2022 Author Report Share Posted February 4, 2022 Thanks. I'll give it a try. Quote Link to comment Share on other sites More sharing options...
mlsignups Posted February 4, 2022 Author Report Share Posted February 4, 2022 Looks like it did the trick - thanks Mike Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.