var1:=(2*close+high+low+open)/5;var2:=ema(ema(ema(var1,4),4),4);sj: =(var2-ref(var2,1))/ref(var2,1)*100;sd: =ma(sj,2);sk: =ma(sj,1);var4:=cross(sk,0);var5:=cross(sk,sd) and sk>0;买二: var4 or var5;
diff:=ema(close,12)-ema(close,26);{什么是diff,macd参数12,26,9} dea:=ema(diff,9);{什么是dea} macd:=2*(diff-dea);{什么是macd};macd>ref(macd,1){比较前面第1日} and ref(macd,1)>ref(macd,2);{比较前面第2日};