第一部分 副图公式 手机/电脑
高位:90,COLORRED,DOTLINE;
次高:80,COLORYELLOW,DOTLINE;
次低:20,COLORGREEN,DOTLINE;
低位:10,COLORBLUE,DOTLINE;
极底:0,COLORGRAY,DOTLINE;
CAIH1:=100*(CLOSE-HHV(HIGH,14))/(HHV(HIGH,14)-LLV(LOW,14));
CAIH2:=EMA(100*(CLOSE-HHV(HIGH,34))/(HHV(HIGH,34)-LLV(LOW,34)),4);
CAIH3:=MA(100*(CLOSE-HHV(HIGH,34))/(HHV(HIGH,34)-LLV(LOW,34)),19);
短线:CAIH1+100,COLOR888888;
中线:CAIH2+100,COLORYELLOW,LINETHICK2;
长线:CAIH3+100,COLORRED;
跌幅:1-(C/HHV(C,60)),NODRAW;
见顶:(REF(中线,1)>85 AND REF(短线,1)>85 AND REF(长线,1)>65) AND CROSS(长线,短线);
顶:(中线80) AND (REF(短线,1)>95 OR REF(短线,2)>95 ) AND 长线>60 AND 短线<83.5 AND 短线
<中线 AND 短线<长线+4;
顶部:=FILTER(顶,4);
底部:(长线<12 AND 中线<8 AND (短线<7.2 OR REF(短线,1)REF(中线,1) OR 短线>REF(短线,1))) OR (长线<8 AND
中线<7 AND 短线REF(短线,1)) OR (长线<10 AND 中线<7 AND 短线<1) ;
STICKLINE(顶部,99,103,20,1),COLORRED,LINETHICK2;
STICKLINE(底部,-4,0,22,0),COLORGREEN;
金叉:长线<15 AND REF(长线,1)<15 AND 中线REF(短线,1) AND CROSS(短线,长线) AND 短线>中线 AND (REF(短线,1)<5 OR REF(短线,2)=长线 OR REF( 短线,1)<1 );
STICKLINE(金叉,0,5,11,0),COLORRED;
超跌:(中线0.20 AND 短线<10 AND 中线<10 AND ABS(C-O)/O0.20 AND 短线<10 AND 中线<10 AND ABS(C-O)/O<0.01,COLORWHITE;
{选股公式二:红箭头图标}
CAIH1:=100*(CLOSE-HHV(HIGH,14))/(HHV(HIGH,14)-LLV(LOW,14));
CAIH2:=EMA(100*(CLOSE-HHV(HIGH,34))/(HHV(HIGH,34)-LLV(LOW,34)),4);
CAIH3:=MA(100*(CLOSE-HHV(HIGH,34))/(HHV(HIGH,34)-LLV(LOW,34)),19);
短线:=CAIH1+100,COLOR888888;
中线:=CAIH2+100,COLORYELLOW,LINETHICK2;
超跌:=(中线<10 AND CROSS(短线,中线)),COLORYELLOW;
{DRAWICON(超跌,中线,1);}
红箭头图标:超跌;
|