通達信副圖趨勢(附源碼)
RUNO:=1;
TJ:=REFX(CLOSE,5)>0;
陰跌綿綿:=COUNT(C<REF(C,1),12)>=8;
動移均價:=DMA(CLOSE,VOL/SUM(VOL,5));
現(xiàn)價偏離:=CLOSE/動移均價<0.92;
回調(diào)買入:FILTER(陰跌綿綿 AND 現(xiàn)價偏離 AND CLOSE>LOW,10),COLORYELLOW;
VAR1:=LLV(LOW,35);
VARB:=HHV(HIGH,30);
VARC:=EMA((CLOSE-VAR1)/(VARB-VAR1)*4,4)*25;
趨勢:IF(TJ+RUNO,VARC,0),COLORFF00FF,LINETHICK2;
VARD:=87.5;
VARE:=(VARC-LLV(VARC,4))/(HHV(VARC,4)-LLV(VARC,4))*4*25;
目標位: DRAWTEXT(IF(CROSS(趨勢,VARD) AND VARE=100,50,0),56,'目標'),COLORFF00FF;
跑: DRAWTEXT(IF(CROSS(VARD,趨勢) AND (TJ+RUNO),87,0),85,'跑'),COLOR00FF00;
VAR6:=(2*C+H+L)/4;
VAR8:=LLV(LOW,30);
VARA:=HHV(HIGH,30);
B:=EMA((VAR6-VAR8)/(VARA-VAR8)*100,8);
B1:=EMA(B,5);
STICKLINE(B>0 AND B-B1>=0 AND (TJ+RUNO),79,80,6,0),COLOR00FF00;
STICKLINE(B>0 AND B-B1<0 AND (TJ+RUNO),79,80,6,0),COLORCYAN;
STICKLINE(B>0 AND B-B1>=0 AND (TJ+RUNO),49,50,6,0),COLORRED;
STICKLINE(B>0 AND B-B1<0 AND (TJ+RUN),49,50,6,0),COLORCYAN;
STICKLINE(B>0 AND B-B1>=0 AND (TJ+RUNO),19,20,6,0),COLOR00FF00;
STICKLINE(B>0 AND B-B1<0 AND (TJ+RUNO),19,20,6,0),COLORCYAN;
STICKLINE(B-B1>0 AND (TJ+RUNO),B,B1,8,1),COLORRED;
STICKLINE(B-B1<0 AND (TJ+RUNO),B,B1,8,1),COLOR00FF00;
聯(lián)系客服