通達信底部波段指標公式
V1:=MA(C,5)=HHV(MA(C,5),20);
V2:=MA(C,5) > MA(C,20);
V3:=COUNT(MA(C,1) > REF(C,1),3)=3;
V11:=MA(C,5)=HHV(MA(C,5),120);
V21:=MA(C,5) > MA(C,120);
V31:=COUNT(MA(C,1) > REF(C,1),3)=3;
底部:=5;
趨勢:5*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1) -3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1) -SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1) ,3,1),2,1),COLOR7F52AF;
趨勢1:EMA(MA(趨勢,5),3),COLORA6B8C1;
STICKLINE(趨勢 >=趨勢1,趨勢,趨勢1,2,0),COLOR7F52AF;
STICKLINE(趨勢 < 趨勢1,趨勢,趨勢1,2,0),COLORA6B8C1;
STICKLINE(趨勢 > 108 AND 趨勢 >=趨勢1,趨勢,108,2,0),COLORBLUE ;
STICKLINE(趨勢1 > 108 AND 趨勢 < 趨勢1,趨勢1,108,2,0),COLORWHITE;
STICKLINE(趨勢 < 0 AND 趨勢 < 趨勢1,趨勢,0,2,0),COLORF00FF0 ;
STICKLINE(趨勢1 < 0 AND 趨勢 > 趨勢1,趨勢1,0,2,0),COLORF0F000;
風險:IF(V1 AND V2 AND V3,30,0),STICK,COLOR00FF00;
風險1:IF(V11 AND V21 AND V31,60,0),STICK,COLORF0F000;
抄底:IF(CROSS(趨勢,底部),60,0),STICK,COLORYELLOW,LINETHICK2;
DRAWTEXT(CROSS(趨勢,底部),50, '抄底'),COLORRED;
天線:108,COLORFF9D00;
逃頂:IF(CROSS(天線,趨勢),1,0),STICK,COLORFF9D00;
STICKLINE(CROSS(天線,趨勢),90,108,3,0),COLORFF9D00;
DRAWTEXT(CROSS(天線,趨勢),85,'逃頂'),COLORFF9D00;