我给你一个自编的主图指标,你导入大智慧后就可以使用了。dir1:=abs(close-ref(close,5));vir1:=sum(abs(close-ref(close,1)),5);er1:=dir1/vir1;cs1:=er1*(0.8-2/8)+2/8;cq1:=cs1*cs1;dir2:=abs(close-ref(close,10));vir2:=sum(abs(close-ref(close,1)),10);er2:=dir2/vir2;cs2:=er2*(0.8-2/24)+2/24;cq2:=cs2*cs2;ama2:ema(dma(close,cq2),2),colorgreen,linethick2;partline(ama2,ama2/ref(ama2,1)>0.997),colorblue,linethick2;partline(ama2,ama2/ref(ama2,1)>1.001),colorred,linethick2;gjtj1:=100*(c-llv(l,5))/(hhv(c,5)-llv(l,5));gjtj2:=100*(c-llv(l,10))/(hhv(c,10)-llv(l,10));gjtj3:=100*(c-llv(l,20))/(hhv(c,20)-llv(l,20));gjtj4:=100*(c-llv(l,30))/(hhv(c,30)-llv(l,30));a:=gjtj1=gjtj2 and gjtj2=gjtj3 and gjtj1=100 and gjtj4>96;b:=count(a,2)=1;d:=gjtj1<gjtj2 and gjtj1<gjtj3 and gjtj1<gjtj4 and gjtj2<gjtj3 and gjtj4<95;yh:=indexc/ref(indexc,1)*ref(c,1);yh1:=ref(c,1)+c-indexc/ref(indexc,1)*ref(c,1);x1:=ema(yh1,7);x2:=ema(yh1,14);x3:=ema(x1,14);e:=x1>x2 and x2>x3;竟星:=b and d and e;drawtext(竟星,(l * 0.95),'竟星'),colorwhite;xg:=barslast(cross(gjtj4,gjtj1))<5 and gjtj1>gjtj4;天瀑:=count(xg,3)=1 and xg;drawtext(天瀑,(l * 0.95),'天瀑'),coloryellow;a1:=barslast(cross(30,gjtj1))<2 and barslast(cross(gjtj1,50))<2;b1:=barslast(cross(gjtj4,gjtj1))<2 and gjtj1>gjtj4;e1:=gjtj1>60 and gjtj4>70;白金:=a1 and b1 and e1;drawtext(白金,(l * 0.95),'白金'),colorgreen;a2:=barslast(cross(97,gjtj1))<=1 and barslast(cross(gjtj1,85))<=1;b2:=barslast(cross(97,gjtj2))<=1 and barslast(cross(gjtj2,85))<=1;a3:=a2 and b2;aa:=barslast(cross(97,gjtj1))<=2 and barslast(cross(gjtj1,85))<=1;ba:=barslast(cross(97,gjtj2))<=2 and barslast(cross(gjtj2,85))<=1;a4:=aa and ba ;aaa:=barslast(cross(97,gjtj1))<=3 and barslast(cross(gjtj1,85))<=1;baa:=barslast(cross(97,gjtj2))<=3 and barslast(cross(gjtj2,85))<=1;a8:=aaa and baa ;b21:=ref(a3,1);b3:=ref(a4,1);b4:=ref(a8,1);d2:=gjtj1=100 and gjtj2=100 and a3 ;d3:=gjtj1=100 and gjtj2=100 and a4 ;d4:=gjtj1=100 and gjtj2=100 and a8 ;日月:=d2 or d3 or d3;drawtext(日月,(l * 0.95),'日月'),colorf00ff0;a5:=barslast(cross(95,gjtj1))<=2;b5:=barslast(cross(95,gjtj2))<=2;e5:= gjtj4<gjtj1 and gjtj1<gjtj2 and gjtj1<gjtj3;f1:=gjtj2>50 and gjtj3>50;g1:=gjtj1=100 and gjtj2=100;tx:=count(g1,2)=1;青干:=a5 and b5 and e5 and f1 and tx;drawtext(青干,(l * 0.95),'青干'),colorred;a6:=gjtj3=100;b6:=gjtj4<90;莫问:=count(a6,2) = 2 and b6;drawtext(莫问,(l * 0.95),'莫问'),colorblue;a7:=barslast(cross(50,gjtj1))<3 and barslast(cross(gjtj1,50))<3;b7:=barslast(cross(gjtj4,gjtj1))<2 and gjtj1>gjtj4;黄金:=a7 and b7;drawtext(黄金,(l * 0.95),'黄金'),colorffbb00;diff:=ema(close,12)-ema(close,26);dea:=ema(diff,9);多头:stickline(diff>dea,c,o,2,0),colorred;stickline(diff>dea,h,l,0,0),colorred;空头:stickline(diff<=dea,c,o,2,0),colorf0f000;stickline(diff<=dea,h,l,0,0),colorf0f000;drawtext(cross(diff,dea),l-0.2,'买入');drawtext(cross(dea,diff),h+0.2,'卖出'); 20210311