一、通达信大底十字选股指标公式
VAR1:=13;
VAR2:=1;
VAR3:=1;
VAR4:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
VAR5:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
VAR6:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
VAR7:=(VAR4+2*VAR5+3*VAR6*VAR3)/6;
VAR8:=MA(VAR7,3)-STD(VAR7,3)*VAR3;
VAR9:=STICKLINE(VAR8<(-4) AND VAR8>(-6),(-17),(-30),5,0);
VAR10:=(EMA(CLOSE,12)-EMA(CLOSE,26))*100+50;
VAR11:=EMA(VAR10,9);
VAR12:=2*(VAR10-VAR11*VAR2);
VAR13:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR14:=SMA(VAR13*VAR2,3,1);
VAR15:=SMA(VAR14,3,1);
VAR16:=3*VAR14-2*VAR15*VAR3;
M1:=IF(CROSS(VAR16,VAR15) AND COUNT(VAR8<(-9),4)>=1,3,0);
M2:=IF(CROSS(VAR16,VAR15) AND COUNT(VAR8<(-12),3)>=1,2,0);
M3:=IF(CROSS(VAR16,VAR15) AND COUNT(VAR8<(-16),4)>=1,1,0);
大底十字:M1 OR M2 OR M3;
二、通达信波浪三段主图指标公式
N:=80;
M1:=8;
M2:=8;
N2:=12;
高:=REF(HHV(H,N),1);
低:=REF(LLV(L,N),1);
H1:=高-(高-低)/3;
H2:=高-(高-低)*2/3;
H3:=H2-(高-低)/6;
顶点:REFDATE(高,DATE),COLORWHITE;
第1支撑点:REFDATE(H1,DATE),COLORYELLOW;
第2支撑点:REFDATE(H2,DATE),COLORMAGENTA;
极限点:REFDATE(H3,DATE),COLORMAGENTA;
低点:REFDATE(低,DATE),COLORWHITE;
DRAWTEXT(ISLASTBAR,顶点,'顶点'),COLORWHITE;
DRAWTEXT(ISLASTBAR,第1支撑点,'第1支撑点'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,第2支撑点,'第2支撑点'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,极限点,'极限点'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,低点,'低点'),COLORWHITE;
【箱顶】:PEAK(HIGH,10,1)*0.8*(1+M1/100),COLORGREEN;
【箱底】:PEAK(HIGH,10,1)*0.8*(1-M2/100),COLORGREEN;
【箱高】:100*(【箱顶】-(【箱顶】-【箱底】)*0.5),NODRAW;
{BIAS}
LC:=REF(CLOSE,1);
DRAWTEXT(CROSS((CLOSE-MA(CLOSE,N2))/MA(CLOSE,N2)*100,MA((CLOSE-MA(CLOSE,N2))/MA(CLOSE,N2)*100,N2)),LOW,'-----买入'),COLORYELLOW;
DRAWTEXT(CROSS(MA((CLOSE-MA(CLOSE,N2))/MA(CLOSE,N2)*100,N2),(CLOSE-MA(CLOSE,N2))/MA(CLOSE,N2)*100),HIGH,'-----逃顶'),COLORYELLOW;