作为指标用以下代码:m1:ma(c,12);m2:ma(c,25);m3:ma(c,37);m4:ma(c,50);m5:ma(c,75);m6:ma(c,100);mmax:=max(max(max(max(max(m1,m2),m3),m4),m5),m6);mini:=min(min(min(min(min(m1,m2),m3),m4),m5),m6);tj:=c>mmax and r...
ma1:ma(c,5);ma2:ma(c,10);ma3:ma(c,20);ma4:ma(c,60);ma5:ma(c,120);bb:=c>ma(c,20) and c>ma(c,120) and cross(ma(c,5),ma(c,20));ss:=cross(ma(c,10),c);drawtext(bb,l,'买');drawtext(ss,h,'卖&...
diff=ema(close,12)-ema(close,26);dea=ema(diff,9);t1:=macd>0 and macd-dea>0.03;t2:=diff-dea>1.0;if(26>12) { if(t1=1 and ref(t1,1)=0) buy;if(t2=1 and ref(t2,1)=0) sell;} 没明白这买卖依据,macd指标是均线类指...