通達(dá)信公式—— 短線獵槍精品主圖附指標(biāo)詳解 {短線獵槍源碼:參數(shù):P5:49,1,300} P5:=49; 牛熊界:MA(CLOSE,P5),LINETHICK1,COLORWHITE; KS:=((CLOSE-EMA(CLOSE,13))/EMA(CLOSE,13))*(-100); 趨勢(shì)線:=EMA(KS/10+EMA(CLOSE,10),3); AA:= -100*(趨勢(shì)線-CLOSE)/趨勢(shì)線; AC:=EMA(AA,5); {STICKLINE(CLOSE>=OPEN AND AA>=0 AND AA>=AC,OPEN,CLOSE,2.8,1),COLOR0000FF; STICKLINE(CLOSE>=OPEN AND AA>=0 AND AA<AC,OPEN,CLOSE,2.8,1),COLORFF00FF; STICKLINE(OPEN > CLOSE AND AA >= 0 AND AA < AC,CLOSE,OPEN,2.8,0),COLORFF00FF; AG:=SUM((VOL/FINANCE(7)),1); STICKLINE(((((((CLOSE >= OPEN) AND (DATATYPE < 7)) ) AND (AG >= 8)) AND (AG < 15)) AND (AA < 0)),OPEN,(OPEN * 0.998),10,0),COLOR0000FF; STICKLINE(((((((OPEN > CLOSE) AND (DATATYPE < 7)) ) AND (AG >= 8)) AND (AG < 15)) AND (AA < 0)),(OPEN * 0.998),OPEN,10,0),COLOR0000FF; STICKLINE((((((CLOSE >= OPEN) AND (DATATYPE < 7)) ) AND (AG >= 15)) AND (AA >= 0)),OPEN,(OPEN * 1.008),15,0),COLORFFFFFF; STICKLINE((((((OPEN > CLOSE) AND (DATATYPE < 7)) ) AND (AG >= 15)) AND (AA >= 0)),(OPEN * 1.008),OPEN,15,0),COLORFFFFFF; SSL:=EMA(CLOSE,3); MMV:=EMA(SLOPE(CLOSE,22)*20+CLOSE,55); MM:=1; {(IF(((DATATYPE > 7) AND (DATATYPE < 11)),MA(MMV,1),IF((DATATYPE = 7),MA(MMV,4),IF((DATATYPE = 6),MA(MMV,8),IF((DATATYPE = 5),MA(MMV,16),IF((DATATYPE = 4),MA(MMV,32),0))))) );} SA:=0.985; SS:=MA(CLOSE,5); DD:=MA(CLOSE,13); GG:=MA(CLOSE,21); 短趨勢(shì):IF(SS>MM,SSL,SA),LINETHICK1,COLORWHITE; 空方:IF(SSL>MM,MA(MMV,8),SA),LINETHICK1,COLORFFFFFF; 多方:IF(SSL>MM,MA(MMV,16),SA),LINETHICK1,COLORFF00FF;{ IF(SA,SSL<=MM,DRAWNULL),LINETHICK3,COLORFF0000;} VAR2Y:=((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1))*100; VAR3Y:=((CLOSE - REF(OPEN,29)) / REF(OPEN,29))*100; VAR4Y:=REF(CLOSE,1); K24:=SMA(RSV24,3,1); D24:=SMA(K24,3,1); J24:=3*K24-2*D24; 壓力位:IF(CROSS(J24,J),H,REF(H,BARSLAST(CROSS(J24,J)))), COLORGREEN,LINETHICK1; 支撐位:IF(CROSS(J,J24),L,REF(L,BARSLAST(CROSS(J,J24)))) ,COLOR77AAFF,LINETHICK1; 公式代碼復(fù)制過(guò)來(lái)難免造成部分格式錯(cuò)誤。 如果對(duì)于指標(biāo)感興趣或者有疑問(wèn)的可以與我一起交流學(xué)習(xí)! 指標(biāo)源碼導(dǎo)入就可以使用。 |
|