I'm trying to create a code where you can input a "X" number of days, and I can get the average Volume of the First bar for those "X" days.
For example, I want to get the average Volume of the first Bar for the last 5 days, beginning with yesterday.
I feel like this should be pretty simple, but I can't seem to get the code right. Any help would be appreciated!
For example, I want to get the average Volume of the first Bar for the last 5 days, beginning with yesterday.
I feel like this should be pretty simple, but I can't seem to get the code right. Any help would be appreciated!