一、通达信狼巡成本均线主图指标公式
AB:=(SUM(C*AMOUNT,360)/SUM(AMOUNT,360));
A1:=(SUM(C*AMOUNT,300)/SUM(AMOUNT,300));
A2:=(SUM(C*AMOUNT,240)/SUM(AMOUNT,240));
A3:=(SUM(C*AMOUNT,180)/SUM(AMOUNT,180));
A4:=(SUM(C*AMOUNT,120)/SUM(AMOUNT,120));
A5:=(SUM(C*AMOUNT,90)/SUM(AMOUNT,90));
A6:=(SUM(C*AMOUNT,60)/SUM(AMOUNT,60));
A7:=(SUM(C*AMOUNT,30)/SUM(AMOUNT,30));
B1:(A1+A2+A3)/3;
B2:(A3+A4+A5)/3;
B3:(A6+A7+A5)/3;
B4:(AB+A1)/2,LINETHICK2;
二、通达信交叉反转指标公式
Var1:=(HIGH+LOW+CLOSE)/3;
A1:EMA((HHV(var1,60)-var1)/(HHV(var1,60)-LLV(var1,60)),5)*-1000,coloryellow;
B2:EMA((HHV(var1,60)-var1)/(HHV(var1,60)-LLV(var1,60)),15)*-1000,colorgreen;
C3:EMA((HHV(var1,60)-var1)/(HHV(var1,60)-LLV(var1,60)),30)*-1000,colorred;
D4:EMA((HHV(var1,60)-var1)/(HHV(var1,60)-LLV(var1,60)),60)*-1000,colorcyan;
交叉选股:CROSS(A1,B2) AND D4>C3 AND C3>B2;
DRAWICON(交叉选股,B2,1);