通达信主力:=POW(10,6)+241230-DATE;
进攻主图公式:=IF(通达信主力>0,1,0);{通达信指标www.gs6699.com}
进攻主图指标:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),10);
faaaa4:=HIGH-REF(HIGH,1);
faaaa5:=REF(LOW,1)-LOW;
faaaa6:=SUM(IF(faaaa4>0 AND faaaa4>faaaa5,faaaa4,0),20);
faaaa7:=SUM(IF(faaaa5>0 AND faaaa5>faaaa4,faaaa5,0),20);
faaaa8:=LLV(LOW,240);
faaaa9:=HHV(HIGH,240);
CD:=faaaa6/进攻主图指标/2*100,COLORRED;
DH:=(CLOSE-faaaa8)/faaaa8*100,COLORYELLOW;
ZH:=faaaa7/进攻主图指标/2*100,COLORMAGENTA;
SH:=(faaaa9-CLOSE)/CLOSE*100,COLORGREEN;
HH:=DH/SH,COLORWHITE;
通达信主力0:=HHV(CLOSE,20);
通达信主力1:=EMA(通达信主力0,30)*1.03;
通达信主力2:=EMA(通达信主力0,120)*1.03;
通达信主力3:=(CLOSE+HIGH+LOW)/3;
通达信主力4:=EMA(通达信主力3,10);
通达信主力5:=REF(通达信主力4,1);
看涨:=IF(DH>15 AND DH>ZH,DH,DRAWNULL),COLORYELLOW,LINETHICK3;
超强:=IF(DH>30 AND DH>SH,DH,DRAWNULL),COLORCYAN,LINETHICK2;
XG:FILTER(看涨 OR 超强 AND DH>=HHV(DH,10) AND OPEN/通达信主力4<1.08 AND OPEN/通达信主力1<1.1 AND OPEN/通达信主力2<1.2 AND CLOSE>通达信主力1 AND CLOSE>=REF(CLOSE,1)*1.05 AND SH<60 AND DH<120,30);