以下是通达信K线密码源码副图(无源码的请下载附件导入)
TDXSTEP414:STICKLINE(LOW>REF(HIGH,1),REF(HIGH,1),LOW,9,(-1)),COLORFD00DF;
TDXSTEP415:STICKLINE(HIGH<REF(LOW,1),REF(LOW,1),HIGH,9,(-1)),COLORFDFD00;
TDXSTEP416:DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
BOLL:MA(CLOSE,24),COLORGREEN;
UPPER:BOLL+2*STD(CLOSE,24),DOTLINE,COLORMAGENTA;
LOWER:BOLL-2*STD(CLOSE,24),DOTLINE,COLORYELLOW;
TDXSTEP417:IF(BOLL<REF(BOLL,1),BOLL,DRAWNULL),COLORGREEN;
TDXSTEP418:IF(BOLL>REF(BOLL,1),BOLL,DRAWNULL),COLORRED;
半分位:=(OPEN+CLOSE)/2;
昨半分位:=REF(半分位,1);
TDXSTEP419:STICKLINE(ISLASTBAR,昨半分位,昨半分位,10,0),COLORLIGRAY;
TDXSTEP420:DRAWNUMBER(ISLASTBAR,昨半分位,昨半分位),COLORBROWN;
TDXSTEP421:DRAWTEXT(ISLASTBAR,昨半分位,291),COLORBROWN;
大单动向:(LARGEINTRDVOL-LARGEOUTTRDVOL)*10000/FINANCE(7),NODRAW;
A01:=MIN(OPEN,CLOSE);
B01:=ABS(OPEN-CLOSE);
TDXSTEP422:STICKLINE(大单动向>0,A01,A01+B01/3.5,2.2,0),COLOR0000AA;
TDXSTEP423:STICKLINE(大单动向<0,A01+B01,A01+B01/1.8,2.2,0),COLOR00AA00;
平头底部:=REF(CLOSE,1)<MA(CLOSE,10) AND ABS(REF(CLOSE,1)-REF(OPEN,1))>MA(ABS(CLOSE-OPEN),10)*1.1 AND ABS(CLOSE-OPEN)<MA(ABS(CLOSE-OPEN),10)/1.1 AND LOW=REF(LOW,1);
TDXSTEP424:DRAWTEXT(平头底部,LOW*1.02,292),COLORYELLOW;
假阴线:DRAWTEXT(OPEN>MA(CLOSE,20) AND (OPEN-CLOSE)/OPEN*100>0.01 AND VOL/CAPITAL*100>=3 AND CLOSE>REF(CLOSE,1),LOW-0.08,293),COLORWHITE;
妖股线:=EMA((CLOSE-MA((2*CLOSE+HIGH+LOW)/4,30))/MA((2*CLOSE+HIGH+LOW)/4,30)*100,3);
妖股龙头:DRAWTEXT(CROSS(妖股线,15),LOW-0.12,294),COLORMAGENTA;
|