Created
December 15, 2016 08:57
-
-
Save marketcalls/481288384f12ed38c7f05bf69778de15 to your computer and use it in GitHub Desktop.
1st Hour Cumulative Volume Scanner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_SECTION_BEGIN("Volume For 1st Hour"); | |
//Cumulative Volume Monitor Start Time and End Time | |
starttime = ParamTime( "Start Time", "09:15" ); | |
endtime = ParamTime( "End Time", "10:15" ); | |
Bars_so_far_today = 1 + BarsSince( Day() != Ref(Day(), -1)); | |
StartBar = ValueWhen(TimeNum() == starttime, BarIndex()); | |
points = ValueWhen(TimeNum() == endtime, close)- TimeFrameGetPrice("O",inDaily,0); | |
TodayVolume = Sum(V,Bars_so_far_today); | |
V1hour=IIf (BarIndex() >= StartBar AND TimeNum() <= endtime, TodayVolume,Null); | |
Plot (V1hour, "Total Volume for First One Hour",colorYellow,stylehistogram); | |
Filter = TimeNum() == endtime; | |
AddColumn(points,"Points",1.2); | |
AddColumn(v1hour,"Volume for 1st 1 Hour",1); | |
_SECTION_END(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment