Jump to content
Medved Trader Forums

AFter Hr Volume Scan


Recommended Posts

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

Link to comment
Share on other sites

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.

 

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...