########################################################## # # # Begin Code # # # # BTT_Multi_Volume_Label By Palmer # # # # www.bankthetrade.com # # # ########################################################## input DaysAgo = 1; def yesterdayvol = volume(period = ”DAY”)[DaysAgo]; def todayvol = volume(period = ”DAY”); def volopen = volume(period = ”DAY”); def volnow = volume;#(period = agg); def percentdiff = ((todayvol - yesterdayvol) / yesterdayvol) *100; def volg = todayvol is greater than yesterdayvol; def voll = todayvol is less than yesterdayvol; def vperchange =roundup( (todayvol - yesterdayvol)/yesterdayvol *100,0); AddLabel(yes, "Y_V: " + yesterdayvol, Color.white); AddLabel(yes, ("T_V: " + volopen), if volopen > 0 and volopen < 50000 then color.GRAY else if volopen > 49999 and volopen < 250000 then color.light_gray else if volopen > 249000 and volopen < 500000 then color.lime else if volopen > 499999 and volopen < 750000 then color.light_green else color.green); AddLabel(yes, ("V%_Ch: " + vperchange), if vperchange > 1 then color.light_green else color.pink); AddLabel(yes, "V_B: " + volnow, color.white); # End Code