QQQ. Days of the week. Yesterday's close to today's open. (Opening gap)

Profit/loss calculated for each day of the week for the period from 3/10/1999 till 11/28/2011: go long on open, exit on close.

Mon-TueTue-WedWed-ThuThu-FriFri-Mon
PL %33.2812.1159.7031.0044.92

Day of week profit/loss grouped by the year
YearMon-TueTue-WedWed-ThuThu-FriFri-Mon
199910.008.8018.8011.3818.12
20007.805.08-22.7915.7834.46
2001-8.3014.493.1410.53-21.85
2002-2.07-1.97-8.691.65-3.29
20038.382.804.326.522.00
20043.895.250.19-0.686.42
20055.171.310.583.016.13
20060.28-0.532.332.672.32
20072.063.795.85-1.528.13
20085.384.63-8.26-3.22-12.93
2009-4.13-1.179.325.961.00
201014.18-3.025.772.89-3.44
2011-0.37-4.220.851.30-1.21


Query used:
select 
case DATEPART(W, t_1.d)
      when 2 then 'Mon-Tue'
      when 3 then 'Tue-Wed'
      when 4 then 'Wed-Thu'
      when 5 then 'Thu-Fri'
      when 6 then 'Fri-Mon'
      end 'Day of Week', 
cast(sum((t.o- t_1.c)/t_1.c * 100) as decimal(10,2)) 'PL %' 
from qqq t
join qqq t_1 on t_1.id = t.id -1
group by DATEPART(W, t_1.d)
order by DATEPART(W, t_1.d)

theCrunchR | © 2011