以下是通达信参考公式源码
通达信短线参考公式源码:
VAR2:=(CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6))*100;
VAR3:=SMA(SMA(VAR2,3,1),6,5)/28.57;
VAR4:=EMA(VAR3,5);
VAR5:=3*VAR3-2*VAR4;
AA:=CROSS(VAR5,VAR3)ANDVAR3 2.1ANDC
var6:=(2*CLOSE+HIGH+LOW)/4;
var7:=LLV(LOW,13);
var8:=HHV(HIGH,13);
var9:=EMA((var6-var7)/(var8-var7)*100,13);
varA:=EMA(0.667*REF(var9,1)+0.333*var9,1);
多:var9,colorred,POINTDOT;
空:EMA(0.382*REF(var9,2)+0.618*var9,12),COLOR00FF00;
STICKLINE(var9 varA,var9,varA,6,0),colorred;
STICKLINE(var9 =varA,var9,varA,6,0),COLORFFCC66;
STICKLINE(AA,0,40,19.5,1),coloryellow;
STICKLINE(AA,16,39.5,18,0),colorgreen;
STICKLINE(AA,1,16,18,0),colorgreen;
STICKLINE(AA,56.5,40,6,0),coloryellow;
STICKLINE(AA,40,49.5,6,0),coloryellow;
STICKLINE(AA,57,60,6,1),colorred;
STICKLINE(AA,61,64,6,1),colorred;
STICKLINE(AA,65,68,6,1),colorred;
STICKLINE(AA,69,75,8,0),colorffcccc;
DRAWTEXT(AA,85,'干杯'),coloryellow;
RSV:=(((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)))*100);
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
X:=LLV(J,2)=LLV(J,8);
RE:=CROSS(J,REF(J+0.01,1))ANDXANDJ
STICKLINE(RE,0,1,3,0),COLORYELLOW;
P1:=5;
P2:=4;
SSRCJL:=EMA(VOL,13);
SSRCJE:=EMA(AMOUNT,13);
SSRCBJX:=((SSRCJE/SSRCJL)/100);
SSRGL:=(((CLOSE-SSRCBJX)/SSRCBJX)*100);
绝对底:SSRGL (0-18),COLORRED;
大底:SSRGL (0-14),COLORMAGENTA;
中底:SSRGL (0-10),COLORYELLOW;
短底:SSRGL (0-6),COLORWHITE;
STICKLINE((SSRGL (0-18)),60,80,3,0),COLORRED;
STICKLINE((SSRGL (0-14)),40,60,3,0),COLORMAGENTA;
STICKLINE((SSRGL (0-10)),20,40,3,0),COLORYELLOW;
STICKLINE((SSRGL (0-6)),0,20,3,0),COLORWHITE;
VAR1:=LLV(LOW,P1);
VAR2:=HHV(HIGH,P1);
K:EMA((CLOSE-VAR1)/(VAR2-VAR1)*100,P2),COLORRED,LINETHICK1;
D:EMA(0.667*REF(K,1)+0.333*K,2),COLORGREEN,LINETHICK1;
连续3天短底买:0;
CSS:=((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100);
HH:=CROSS(20,EMA(CSS,3));
CE:=REF(HH,1);
AA:=REF(CLOSE,1);
BBB:=SMA(MAX(CLOSE-AA,0),5,1)/SMA(ABS(CLOSE-AA),5,1)*1000;
HHH:=BBB-LLV(BBB,10);
SS:=(MA(HHH,2)*3+HHH*13)/16;
短线买点:=IF(SS 13,MA(SS,2),SS)/6;
短线出击:=IF(CROSS(短线买点,1)AND(短线买点 30),30,1);
II:=短线出击=30;
合成:CEANDII;
通达信短线参考公式截图