{一线牵牛优化副图源码如下}
A1:=COUNT(ABS(MA(CLOSE,24)-MA(CLOSE,60))/MA(CLOSE,60)<=0.006,2)=2;
A2:=COUNT(MA(CLOSE,24)>REF(MA(CLOSE,24),1)-0.05 AND MA(CLOSE,24)<REF(MA(CLOSE,24),1)+0.05,2)=2;
A22:=COUNT(MA(CLOSE,60)>REF(MA(CLOSE,60),1)-0.05 AND MA(CLOSE,60)<REF(MA(CLOSE,60),1)+0.05,2)=2;
A3:=MA(CLOSE,5)>MA(CLOSE,24) AND MA(CLOSE,5)>MA(CLOSE,60);
A4:=C>MA(C,24)AND C>MA(C,60) AND C>O AND C=HHV(C,5) AND H/C<1.03;
XG1:=A1 AND A2 AND A22 AND A3 AND A4;
A5:=CROSS(MA(V,5),MA(V,60));
A6:=REF(A5,1) AND NOT(REF(XG1,1));
A7:=REF(A5,2) AND NOT(REF(XG1,1)) AND NOT(REF(XG1,2));
MAV1:=MA(AMOUNT,6);
MAV2:=MA(AMOUNT,12);
MAV3:=MA(AMOUNT,24);
AP1:=MAV1>MAV2 AND MAV2>MAV3;
AP2:=MAV1>REF(MAV1,1) AND MAV2>REF(MAV2,1) AND MAV3>REF(MAV3,1);
LNXG:=AP1;
XGXG:=LNXG;
A8:=CROSS(V,EMA(V,30)*2) AND MA(V,5)>MA(V,60) AND LNXG;
A9:=MA(C,5)/MA(C,24)<1.05;
B1:=EVERY(REF(C,1)/REF(C,2)<1.07,10);
XGW1:XG1 AND (A5 OR A6 OR A7 OR A8) AND A9 AND B1;
{一线牵牛优化主图源码如下}
MA1:MA(CLOSE,5);
MA2:MA(CLOSE,24);
MA3:MA(CLOSE,60);
{一线牵牛优化版----通达信主图}
A1:=COUNT(ABS(MA(CLOSE,24)-MA(CLOSE,60))/MA(CLOSE,60)<=0.006,2)=2;
A2:=COUNT(MA(CLOSE,24)>REF(MA(CLOSE,24),1)-0.05 AND MA(CLOSE,24)<REF(MA(CLOSE,24),1)+0.05,2)=2;
A22:=COUNT(MA(CLOSE,60)>REF(MA(CLOSE,60),1)-0.05 AND MA(CLOSE,60)<REF(MA(CLOSE,60),1)+0.05,2)=2;
A3:=MA(CLOSE,5)>MA(CLOSE,24) AND MA(CLOSE,5)>MA(CLOSE,60);
A4:=C>MA(C,24)AND C>MA(C,60) AND C>O AND C=HHV(C,5) AND H/C<1.03;
XG1:=A1 AND A2 AND A22 AND A3 AND A4;
A5:=CROSS(MA(V,5),MA(V,60));
A6:=REF(A5,1) AND NOT(REF(XG1,1));
A7:=REF(A5,2) AND NOT(REF(XG1,1)) AND NOT(REF(XG1,2));
MAV1:=MA(AMOUNT,6);
MAV2:=MA(AMOUNT,12);
MAV3:=MA(AMOUNT,24);
AP1:=MAV1>MAV2 AND MAV2>MAV3;
AP2:=MAV1>REF(MAV1,1) AND MAV2>REF(MAV2,1) AND MAV3>REF(MAV3,1);
LNXG:=AP1;
XGXG:=LNXG;
A8:=CROSS(V,EMA(V,30)*2) AND MA(V,5)>MA(V,60) AND LNXG;
A9:=MA(C,5)/MA(C,24)<1.05;
B1:=EVERY(REF(C,1)/REF(C,2)<1.07,10);
XGW1:=XG1 AND (A5 OR A6 OR A7 OR A8) AND A9 AND B1;
DRAWTEXT(XGW1,L*0.97,'★一线牵牛'),COLORWHITE;