A0:=(L+H+C*2)/4;
A1:EMA(A0,14),COLORBLUE,LINETHICK2;
A2:EMA(A0,25);
A1X:=(A1-REF(A1,1))/REF(A1,1)*100;
A2X:=(A2-REF(A2,1))/REF(A2,1)*100;
a12x:=(A1-a2)/a2*100;
VA:=(c-a1)/a1*100;
DIF:=(EMA(C,12)-EMA(C,26))*100+50;
DEA:=EMA(DIF,9);
VC:=((h-MA(CLOSE,6))/MA(CLOSE,6)*100+(h-MA(CLOSE,24))/MA(CLOSE,24)*100+(h-MA (CLOSE,32))/MA(CLOSE,32)*100)/3;
{ _大智慧股票指标公式}
drawtext(VC>20 AND FILTER(VC< REF(VC,1),5),H*1.02,'S'),LINETHICK2,COLORGREEN;
YB:=c<ref(c,1) and o>=c and vc<6.5 and va<3 and va>0 and count(a1x>0 and a1>a2,5)=5 and a12x<3;
drawtext(yb,l*0.99,'YB'),ALIGN1;