Rob: I don't know why you're not getting the same results. I've tested the MACD scans, and they give the same values as WOW (and QP if you bring up the charts). You do have to make sure that before you run the scans, you close QP after downloading quotes -- otherwise you'll get yesterday's values. But you're probably doing this. I'd have to see the specific scans you're using in WOW and QP to know why your results differ.
Here's an MACD scan you can use to get values, and then compare with WOW:
//MACD (Variable): Get values for MACD(0); MACDSignal(0); Histogram; and Histogram Percent +/- //by Brooke
output="macd.lst"; input="ames.lst"; issuetype=common; exchange nyse,nasdaq,amex; DaysToLoad=500;
integer a, b, c; float histogram, histogramprev, percentchange;
a:=13; b:=34; c:=89;
Set MACD = a,b,c;
histogram:=MACD(0)-MACDSignal(0); //this creates oscillator to look //for macd crossing its signal line; 0 represents crossing point histogramprev:=MACD(-1)-MACDSignal(-1); //yesterday's value
percentchange:=((histogram-histogramprev)/abs(histogramprev+.0000001))*100;
println Symbol:-3, ",", "Close: ":-3,Close(0):7:3,"," , " MACD ", ",", MACD(0):7:4,"," , " MACDSignal ", ",", MACDSignal(0):7:4,"," , " Histogram ", ",", histogram:7:4, " Histogramprev ", ",", histogramprev:7:4, " Histogram percent +/- ", ",", percentchange:7:4; |