通達(dá)信底部扶搖直上騎牛副圖 指標(biāo)源碼: VAR1:=(2*CLOSE+HIGH+LOW)/4; VAR2:=LLV(LOW,34); VAR3:=HHV(HIGH,34); VAR4:=IF(VAR2<=-150 AND VAR2>-200 AND VAR3<=-150 AND VAR3>-200,10,0); VAR6:=SMA((CLOSE-LLV(LOW,14))/(HHV(HIGH,14)-LLV(LOW,14))*100,4,1); VAR7:=SMA((CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100,4,1); VAR8:=IF(BARSCOUNT(CLOSE)<70,-120,IF(VAR3<=-200 AND VAR2<=-150,15,VAR4)-120); VAR9:=SMA((VAR7-50)*2,3,1)+SMA((VAR6-50)*2,3,1)/2; VAR10:=(HIGH+LOW+CLOSE*2)/4; VAR11:=EMA(VAR10,10); VAR12:=STD(VAR10,10); VAR13:=(VAR10-VAR11)*100/VAR12; VAR14:=EMA(VAR13,5); VAR15:=EMA(VAR14,10)+100/2-5,COLORRED; VAR16:=EMA(VAR15,4),COLORWHITE; AA:EMA((VAR1-VAR2)/(VAR3-VAR2)*100,13); BB:EMA(0.667*REF(AA,1)+0.333*AA,2) , ; STICKLINE(BB<AA,AA,BB,2,0),COLORRED; XG:IF(CROSS(AA,BB) AND AA<20 ,30,0),COLORMAGENTA; 黃柱:CROSS(AA,22) AND BB<AA,COLORYELLOW; STICKLINE(黃柱,AA+5,AA-5,2,0),COLORYELLOW; DRAWTEXT(黃柱,AA-12,'底部參加'); 逃頂:FILTER(CROSS(BB,AA) AND AA>80 ,3),COLORGREEN; STICKLINE(逃頂,96,100,2,0),COLORGREEN; DRAWICON(逃頂,95,15); 是底:IF(CROSS(VAR15,VAR16) AND VAR16<-10,0.8,0) AND CROSS(VAR9,VAR8),COLORMAGENTA; WWWCHNMONEYCOM:=IF((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)<-0.04,1,0); DRAWTEXT(是底,0.8,' 是底'),COLORMAGENTA; DRAWBAND(是底,RGB(255,0,255),0,RGB(0,0,0)); |
|