副图公式 源码支持:手机/电脑
GUP1:=SMA(MAX(CLOSE-REF(C,1),0),12,1)/SMA(ABS(CLOSE-REF(C,1)),15,1)*100;
DRAWTEXT(CROSS(82,GUP1),H*1.04,’快卖’),COLORWHITE;
S:=C-REF(C,1);
GUP2:=100*EMA(EMA(S,6),6)/EMA(EMA(ABS(S),6),6);
买进:=IF(LLV(GUP2,2)=LLV(GUP2,7) AND COUNT(GUP2<0,2) AND CROSS(GUP2,MA(GUP2,2)),1,0);
DRAWTEXT(FILTER(买进=1,5),L*0.96,’买涨’),COLORYELLOW;
GUP3:=(EMA(C,1)+EMA(C,2)+EMA(C,3)+EMA(C,4))/4;
GUP4:=(EMA(C,10)+EMA(C,20)+EMA(C,40)+EMA(C,80))/4;
DRAWICON(CROSS(GUP3-GUP4,0),L*0.98,1);
GUP5:=SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100;
DRAWICON(CROSS(84,GUP5),H*1.04,2);
E:=(HIGH+LOW+OPEN+2*CLOSE)/5;
明阻:=2*E-LOW;
明撑:=2*E-HIGH;
明突:=E+(HIGH-LOW);
明反:=E-(HIGH-LOW);
今阻:=REF(明阻,1);
今撑:=REF(明撑,1);
A:=HHV(HIGH,13)=HIGH AND HIGH>REF(HIGH,1);
GUA1:=FILTER(A,12);
B:=LLV(LOW,13)=LOW AND LOW<REF(LOW,1);
GUB1:=FILTER(B,12);
TS1:=BARSLAST(GUA1);
箱体顶:REF(HIGH,TS1),COLORFF00FF,NODRAW;
STICKLINE(1,箱体顶,箱体顶,1.5,0),COLORFF00FF;
TS2:=BARSLAST(GUB1);
箱体底:REF(LOW,TS2),COLORFFBB80,NODRAW;
STICKLINE(1,箱体底,箱体底,1.5,0),COLORFFBB80;
箱体高:100*(箱体顶-箱体底)/箱体底,NODRAW;
选股公式源码
{选股公式一:买涨}
GUP1:=SMA(MAX(CLOSE-REF(C,1),0),12,1)/SMA(ABS(CLOSE-REF(C,1)),15,1)*100;
S:=C-REF(C,1);
GUP2:=100*EMA(EMA(S,6),6)/EMA(EMA(ABS(S),6),6);
GUP3:=(EMA(C,1)+EMA(C,2)+EMA(C,3)+EMA(C,4))/4;
买进:=IF(LLV(GUP2,2)=LLV(GUP2,7) AND COUNT(GUP2<0,2) AND CROSS(GUP2,MA(GUP2,2)),1,0);
{DRAWTEXT(FILTER(买进=1,5),L*0.96,’买涨’),COLORYELLOW;}
买涨:FILTER(买进=1,5);
{选股公式二:红箭头图标}
GUP1:=SMA(MAX(CLOSE-REF(C,1),0),12,1)/SMA(ABS(CLOSE-REF(C,1)),15,1)*100;
S:=C-REF(C,1);
GUP2:=100*EMA(EMA(S,6),6)/EMA(EMA(ABS(S),6),6);
GUP3:=(EMA(C,1)+EMA(C,2)+EMA(C,3)+EMA(C,4))/4;
GUP4:=(EMA(C,10)+EMA(C,20)+EMA(C,40)+EMA(C,80))/4;
{DRAWICON(CROSS(GUP3-GUP4,0),L*0.98,1);}
红箭头图标:CROSS(GUP3-GUP4,0);