QQQ. Days of the week. Yesterday's open to today's open.

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 %1.05-45.0680.0871.87-25.73

Day of week profit/loss grouped by the year
YearMon-TueTue-WedWed-ThuThu-FriFri-Mon
19998.5314.27-6.7825.1622.29
2000-3.852.17-42.31-23.9545.00
2001-10.843.96-30.8123.76-11.61
2002-1.51-10.51-36.5423.63-15.09
2003-0.336.7622.19-4.1218.99
2004-6.195.71-1.755.917.65
2005-0.38-0.01-4.201.825.15
2006-9.49-4.363.3814.733.68
2007-4.30-1.579.5312.393.60
20088.64-20.740.02-31.28-3.60
20091.726.5912.1116.0211.96
201011.13-4.774.8511.27-3.50
2011-6.65-2.1722.24-9.81-1.54


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