第一部分 副图公式 手机/电脑
CAIH18:=(HIGH+LOW+CLOSE)/(3);
CAIH19:=(CAIH18-MA(CAIH18,14))/((0.015)*(AVEDEV(CAIH18,14)));
CAIH1A:=(CAIH18-MA(CAIH18,70))/((0.015)*(AVEDEV(CAIH18,70)));
CAIH1B:=IF((CAIH19>=150) AND (CAIH19=150) AND (CAIH1A<200),(-10),0);
CAIH1C:=IF((CAIH19(-200)) AND (CAIH1A(-200)),10,0);
CAIH1D:=((CLOSE-MA(CLOSE,13))/(MA(CLOSE,13)))*(100);
CAIH1E:=100-ABS(CAIH1D);
短线:100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),COLORWHITE;
中线:100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)),COLORYELLOW;
中长线:100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)),COLORMAGENTA;
长线:100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),COLORRED,LINETHICK2;
险1:IF((BARSCOUNT(CLOSE)=200) AND (CAIH19>=150),(-15),CAIH1B)+120),LINETHICK2,COLORCCFF66;
险2:IF((BARSCOUNT(CLOSE)<13),100,IF((CAIH1E0),85,100)),LINETHICK2,COLORBLUE;
险3:IF((BARSCOUNT(CLOSE)<13),(-100),0-IF((CAIH1E<92) AND (CAIH1D<0),85,100)),LINETHICK2,COLORGREEN;
险4:IF((BARSCOUNT(CLOSE)<70),(-120),IF((CAIH1A<=(-200)) AND (CAIH19REF(MA(C,60),10);
买入:CROSS(J,J1) AND AA;
STICKLINE(买入,0,-30,-12,0),COLOR0000FF;
STICKLINE(买入,-30,-60,-10,0),COLORWHITE;
STICKLINE(买入,-60,-80,-6,0),COLORYELLOW;
DRAWTEXT(买入,-40,'买牛'),COLORFF00FF;
N:=5;
CAIH1:4*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)-
3*SMA(SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1),3.2,1),COLORYELLOW,LINETHICK0;
CAIH2:8,COLORGREEN,LINETHICK0;
拉升:IF(CROSS(CAIH1,CAIH2),-100,0),STICK,COLOR0000CC,LINETHICK2;
DRAWTEXT(CROSS(CAIH1,CAIH2),-100,'拉升'),COLOR00FFFF;
第二部分 选股公式 |