以下是通达信HYXG源码附图指标公式(无源码的请下载附件导入)
M:=8;
N1:=16;
AAQ:=REF(HIGH,M)=HHV(HIGH,2*M+1);
AAQ1:=REF(HIGH,N1)=HHV(HIGH,2*N1+1);
QY:=BACKSET(AAQ,M+1);
QY1:=BACKSET(AAQ1,N1+1);
CC:=FILTER(QY,M) AND HIGH=HHV(HIGH,M+1);
CC1:=FILTER(QY1,N1) AND HIGH=HHV(HIGH,N1+1);
DDD:=BARSLAST(CC);
DDD1:=BARSLAST(CC1);
GDTS:=IF(CC,CURRBARSCOUNT,0);
GDTS1:=IF(CC1,CURRBARSCOUNT,0);
DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);
DINGBUTS1A:=IF(DDD1,REF(GDTS1,DDD1),GDTS1);
GDCS1:=CONST(DINGBUTS);
GDCS11:=CONST(DINGBUTS1A);
GDCS13:=CONST(REF(HIGH,GDCS1-1));
GDCS131:=CONST(REF(HIGH,GDCS11-1));
DINGBUTS1:=REF(DINGBUTS,DDD+1);
DINGBUTS11:=REF(DINGBUTS1A,DDD1+1);
GDCS23:=CONST(REF(HIGH,DINGBUTS1-1));
GDCS231:=CONST(REF(HIGH,DINGBUTS11-1));
BQ1:=BACKSET(ISLASTBAR,DINGBUTS1);
BQ11:=BACKSET(ISLASTBAR,DINGBUTS11);
BQ2:=BACKSET(ISLASTBAR,GDCS1);
BQ21:=BACKSET(ISLASTBAR,GDCS11);
CQ1:=IF(BQ1,GDCS23,DRAWNULL);
CQ2:=IF(BQ2,GDCS13,DRAWNULL);
A11:=CLOSE*VOL;
A12:=EMA((EXPMA(A11,3)/EXPMA(VOL,3)+EXPMA(A11,6)/EXPMA(VOL,6)+EXPMA(A11,12)/EXPMA(VOL,12)+EXPMA(A11,24)/EXPMA(VOL,24))/4,14);
QFX:=1.15*A12;
NGX:=HHV(MA(HIGH,6),10);
M1:=MA(CLOSE,5);
M2:=MA(CLOSE,10);
M3:=MA(CLOSE,20);
M4:=MA(CLOSE,60);
M14:=MA(CLOSE,14);
DT:=M1>M2 AND M2>M3 AND M3>M4;
JD:=ATAN((M14/REF(M14,1)-1)*100)*180/3.1416;
ZZ:=EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3);
ZC:=WINNER(CLOSE)*100;
SM:=(WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*100;
CMZS:=ZZ>SM AND ZZ>REF(ZZ,1) AND ZC>SM AND SM<65;
TDXSTEP416:CMZS AND DT AND JD>30 AND (CROSS(CLOSE,M1*1.015) OR CROSS(CLOSE,CQ1) OR CROSS(CLOSE,CQ2) OR CROSS(CLOSE,NGX) OR CROSS(CLOSE,A12)) AND CLOSE>REF(CLOSE,1)*1.028;
{-----------------------------------}
649144913.jpg
|