//critical input from Trash [ASF]
dt = DateTime();
grid_day = (Day()!=Ref(Day(),-1));
DH = TimeFrameGetPrice( "H", inDaily, 0 );
DL = TimeFrameGetPrice( "L", inDaily, 0 );
Plot( DH, "\nDay Hi", colorGreen, ParamStyle( "Style", styleLine | styleThick ) );
Plot( DL, "\nDay Lo", colorRed, ParamStyle( "Style", styleLine | styleThick ) );
Plot(C,"",colorDefault,64);
DHcond = H == DH;
DLcond = L == DL;
hi=HHV(V,grid_day);
lo=LLV(V,grid_day);
vol_col= IIf(dhcond, colorDarkGreen,IIf(dlcond,colorRed,colorBlack));
Filter = V > MA(V,15);//DHcond OR DLcond; // whatever cond u like u may put
SetOption( "Nodefaultcolumns", True );
AddTextColumn( Name(), "Symbol", 1 );
AddColumn( DateTime(), "Date/Time", formatDateTime );
AddTextColumn( Interval(2), "tf", 1 );
AddColumn( IIf( DHcond, ValueWhen( DHcond, dt ), Null ), "HHV DT", formatDateTime, colorWhite, colorDarkGreen, 120 );
AddColumn( H, "High", 1.2, IIf( DHcond, colorWhite, Null), IIf( DHcond, colorDarkGreen, colorWhite) );
AddColumn( IIf( DLcond, ValueWhen( DLcond, dt ), Null ), "LLV DT", formatDateTime, colorWhite, colorRed, 120 );
AddColumn( L, "Low", 1.2, IIf( DLcond, colorWhite, Null), IIf( DLcond, colorRed, colorWhite) );
AddColumn( C, "Close", 1.2 );
AddColumn( V,"Volume",1.0,colorWhite,vol_col);
//AddColumn(OI,"Open Interest",1.0); */
GraphXSpace=15;