以下是通达信自用大主力公式
VAR1:=(HHV(HIGH,5)-LLV(LOW,5));
VAR2:=(HHV(HIGH,9)-CLOSE);
VAR3:=(CLOSE-LLV(LOW,9));
VAR4:=VAR2/VAR1*100-70;
VAR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
VAR6:=(2*C+H+L)/4;
VAR7:=SMA((VAR3/VAR1*100),3,1);
VAR8:=LLV(LOW,34);
VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);
VAR10:= IF(VAR9>100,VAR9-100,0);
VARA:=HHV(HIGH,34);
主力:3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV
(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),LINETHICK2;
见底信号:10,LINETHICK2,COLORRED;
买入准备: IF(主力<=10,20,10),LINETHICK2;
买入时机: IF(CROSS(主力,见底信号),40,10),LINETHICK2,COLORYELLOW;
防线B:EMA((VAR6-VAR8)/(VARA-VAR8)*100,8),COLORCYAN,LINETHICK2;
B1:EMA(防线B,5),COLORFF00FF,LINETHICK2;
出击:STICKLINE(防线B-B1>0,防线B,B1,2,0),LINETHICK2,COLORRED;
主力做多:STICKLINE(防线B>0 AND 防线B-B1>=0,88,100,2,0),COLOR00FFFF;