Here's the MS formula for the differences:
ma:=Mov(C,20,S);
Up:=C>ma;
Dn:=C<ma;
x:=Up-Dn;
y:=ROC(x,1,$);
pCh:=ValueWhen(1,y<>0,C);
sUp:=If(x>0,100*(C-pCh)/pCh,0);
sDn:=If(x<0,100*(C-pCh)/pCh,0);
sUp; {colour me green}
sDn; {colour me red}
I suppose the next step will be to export this function (which is actually two lines) into Excel and simply use the histogram function there to do the analysis.
If you need any more help, just ask.
wabbit :D
P.S. Remember MetaStock is a charting technical analysis tool, not a statistics package.
"The question of whether a computer can think is no more interesting than the question of whether a submarine can swim."
Edsgar W. Dijkstra
MS: 6.52 EOD, 7.x EOD, 8.0 PRO, 9.2 PRO w/QC, 10 PRO w/QC C, 11 PRO w/QC & MDK
For custom MetaStock programming : http://www.wabbit.com.au
My SkyPE status : 
My SkyPE account : wabbit.com.au