Hi Everyone,
I would please like to set up a scan column that displays the 60-day average volume without including the current day's volume. I am currently using the script below, but this script includes the current day's volume. I am looking to create a script that goes 60 trading days in the past before the current trading day. May you please help me with this? Thank you very much for your time and your help.
I would please like to set up a scan column that displays the 60-day average volume without including the current day's volume. I am currently using the script below, but this script includes the current day's volume. I am looking to create a script that goes 60 trading days in the past before the current trading day. May you please help me with this? Thank you very much for your time and your help.
Code:
def avgVol = Average(volume, 60);
AddLabel(yes, Round(avgVol, 0));