副图公式 源码支持:手机/电脑
GUP1:=C=HHV(C,20);
GUP2:=BARSLAST(GUP1);
GUP3:=IF(GUP2>0,REF(C,GUP2),REF(C,GUP2));
GUP4:=CROSS(C,REF(GUP3,1));
均线1:MA(CLOSE,8),COLORWHITE,LINETHICK1;
均线2:MA(CLOSE,30),COLORYELLOW,LINETHICK1;
均线3:MA(CLOSE,60),COLORRED,LINETHICK2;
均线4:MA(CLOSE,300),COLORMAGENTA,LINETHICK2;
GUA1:=REF((O+H+L+2*C)/5,1);
GUA2:=GUP4 AND COUNT(GUP4,5)=1;
DRAWTEXT(GUA2>0,MA(L,3),'↖★突'),COLORRED;
GUB1:=C-REF(C,1);
GUB2:=100*EMA(EMA(GUB1,6),6)/EMA(EMA(ABS(GUB1),6),6);
GUB3:=IF(LLV(GUB2,2)=LLV(GUB2,7) AND COUNT(GUB2<0,2) AND CROSS(GUB2,MA(GUB2,2)),1,0);
GUB4:=FILTER(GUB3=1,5);
DRAWTEXT(GUB4,MA(L,3),'↖★买'),COLOR00FFFF;
选股公式源码
{选股公式一:买}
GUP1:=C=HHV(C,20);
GUP2:=BARSLAST(GUP1);
GUP3:=IF(GUP2>0,REF(C,GUP2),REF(C,GUP2));
GUP4:=CROSS(C,REF(GUP3,1));
GUB1:=C-REF(C,1);
GUB2:=100*EMA(EMA(GUB1,6),6)/EMA(EMA(ABS(GUB1),6),6);
GUB3:=IF(LLV(GUB2,2)=LLV(GUB2,7) AND COUNT(GUB2<0,2) AND CROSS(GUB2,MA(GUB2,2)),1,0);
GUB4:=FILTER(GUB3=1,5);
买:GUB4;
{选股公式二:突}
GUP1:=C=HHV(C,20);
GUP2:=BARSLAST(GUP1);
GUP3:=IF(GUP2>0,REF(C,GUP2),REF(C,GUP2));
GUP4:=CROSS(C,REF(GUP3,1));
GUA1:=REF((O+H+L+2*C)/5,1);
GUA2:=GUP4 AND COUNT(GUP4,5)=1;
GUB1:=C-REF(C,1);
GUB2:=100*EMA(EMA(GUB1,6),6)/EMA(EMA(ABS(GUB1),6),6);
GUB3:=IF(LLV(GUB2,2)=LLV(GUB2,7) AND COUNT(GUB2<0,2) AND CROSS(GUB2,MA(GUB2,2)),1,0);
突:GUA2>0; |